|
31342
|
1228
|
41
|
2026-05-13T08:35:45.651662+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661345651_m2.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
ffmpeg
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.27027926,"top":1.0,"width":0.0944149,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.27227393,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.36469415,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.36668882,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.45894283,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.4609375,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.5531915,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.55518615,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"ffmpeg","depth":2,"bounds":{"left":0.64744014,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.64943486,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.7280585,"top":1.0,"width":0.01861702,"height":-0.023144484},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.5043218,"top":1.0,"width":0.010970744,"height":-0.02394259},"on_screen":true,"role_description":"text"}]...
|
-7422587483688276708
|
308133539208952257
|
click
|
accessibility
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
ffmpeg
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31341
|
1227
|
53
|
2026-05-13T08:35:45.655080+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661345655_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
ffmpeg
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"ffmpeg","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
-7422587483688276708
|
308133539208952257
|
click
|
accessibility
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
ffmpeg
Close Tab
⌥⌘1
-zsh...
|
31340
|
NULL
|
NULL
|
NULL
|
|
31343
|
1227
|
54
|
2026-05-13T08:35:48.058495+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661348058_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
5189263229882239278
|
308133539208952257
|
visual_change
|
accessibility
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31345
|
NULL
|
0
|
2026-05-13T08:35:49.048804+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661349048_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.76163566,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.76163566,"top":0.054269753,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76396275,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"15m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
-1023602329917362857
|
-630665661245847444
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought...
|
31342
|
NULL
|
NULL
|
NULL
|
|
31344
|
NULL
|
0
|
2026-05-13T08:35:49.048824+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661349048_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl
in
"${...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"15m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table has no","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column - its primary key is","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frame_id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":". The script incorrectly assumes all tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column when creating the unique index.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix is in","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"around line 363-370. The loop needs to check if the table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the index:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# Re-run install_id + index setup so freshly-created tables get them too.","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"in","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"${","depth":23,"on_screen":true,"role_description":"text"}]...
|
83263583916937498
|
-1937835450942652322
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl
in
"${...
|
31343
|
NULL
|
NULL
|
NULL
|
|
31346
|
1229
|
0
|
2026-05-13T08:35:51.063966+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661351063_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl
in
"${
ALL_SYNC_TABLES
[
@
]}"
;
do
HAS_COL
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='install_id';"
)
if
[
"
$HAS_COL
"
=
"0"
];
then
sqlite3
"
$NAS_DB
"
"ALTER TABLE
$tbl
ADD COLUMN install_id TEXT;"
fi
# Check if table has 'id' column before creating index
HAS_ID
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='id';"
)
if
[
"
$HAS_ID
"
-gt
"0"
];
then
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, id);"
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
The same fix applies to
screenpipe_fts_migrate.sh
at line 106. Both scripts have the same bug.
You'll need to switch to Code mode to apply these changes.
Feedback submitted
fix it
Expand content to scroll
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"15m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table has no","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column - its primary key is","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frame_id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":". The script incorrectly assumes all tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column when creating the unique index.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix is in","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"around line 363-370. The loop needs to check if the table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the index:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# Re-run install_id + index setup so freshly-created tables get them too.","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"in","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ALL_SYNC_TABLES","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"@","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"]}\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":";","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"do","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"HAS_COL","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM pragma_table_info('","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"') WHERE name='install_id';\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$HAS_COL","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"ALTER TABLE","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ADD COLUMN install_id TEXT;\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# Check if table has 'id' column before creating index","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"HAS_ID","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM pragma_table_info('","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"') WHERE name='id';\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$HAS_ID","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-gt","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, id);\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The same fix applies to","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"at line 106. Both scripts have the same bug.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You'll need to switch to Code mode to apply these changes.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fix it","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: meetings ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating indexes ✓ 0m01s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating FTS tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m02s] ▶ Syncing data for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"video_chunks ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames (6857 rows) ✓ 2m37s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"error here ---^","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT OR IGNORE INTO nas.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.* FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"JOIN main.frames f ON o.frame_id = f.id","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT by explicitly listing columns instead of using","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.*","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", which caused the ambiguous column name error with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"existing in both","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me also check the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table INSERT since it also uses a JOIN with frames and might have the same issue:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script you're running is","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe_sync.sh","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on your Mac, but I've been editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on the NAS. These are different files.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You need to either:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Copy the fixed script from NAS to Mac, or","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Apply the same fix to your Mac's script","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix for the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ambiguous column error is to change:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"*","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.frame_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_json,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.app_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.ocr_engine,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.window_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.focused,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_length,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.sync_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.synced_at,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Which script are you actually running on your Mac - the one in","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"?","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Now add also audio data. CREATE TABLE audio_chunks (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"file_path TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"machine_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"evicted_at TIMESTAMP DEFAULT NULL","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE \"audio_transcriptions\" (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunk_id INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"offset_index INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device TEXT NOT NULL DEFAULT '',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"is_input_device BOOLEAN NOT NULL DEFAULT TRUE,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription_engine TEXT NOT NULL DEFAULT 'Whisper',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"start_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"end_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"text_length INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"redacted_at INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me first check the current script structure:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me make the necessary changes:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_MEETINGS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"5","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"printf","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\" %-20s %s\\n\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions:\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"}]...
|
-2303672677952648048
|
9211583603618071197
|
visual_change
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl
in
"${
ALL_SYNC_TABLES
[
@
]}"
;
do
HAS_COL
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='install_id';"
)
if
[
"
$HAS_COL
"
=
"0"
];
then
sqlite3
"
$NAS_DB
"
"ALTER TABLE
$tbl
ADD COLUMN install_id TEXT;"
fi
# Check if table has 'id' column before creating index
HAS_ID
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='id';"
)
if
[
"
$HAS_ID
"
-gt
"0"
];
then
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, id);"
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
The same fix applies to
screenpipe_fts_migrate.sh
at line 106. Both scripts have the same bug.
You'll need to switch to Code mode to apply these changes.
Feedback submitted
fix it
Expand content to scroll
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31348
|
1230
|
0
|
2026-05-13T08:36:00.138307+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661360138_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"}]...
|
-5204373747217472010
|
-6650930558807865266
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31347
|
1229
|
1
|
2026-05-13T08:36:00.166043+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661360166_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"}]...
|
-209468111109857836
|
-6650930522824931250
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
...
|
31346
|
NULL
|
NULL
|
NULL
|
|
31349
|
1229
|
2
|
2026-05-13T08:36:00.822580+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661360822_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
5189263229882239278
|
308133539208952257
|
click
|
accessibility
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31350
|
1230
|
1
|
2026-05-13T08:36:00.884189+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661360884_m2.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.27027926,"top":1.0,"width":0.0944149,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.27227393,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.36469415,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.36668882,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.45894283,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.4609375,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.5531915,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.55518615,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.64744014,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.64943486,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.7280585,"top":1.0,"width":0.01861702,"height":-0.023144484},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.5043218,"top":1.0,"width":0.010970744,"height":-0.02394259},"on_screen":true,"role_description":"text"}]...
|
5189263229882239278
|
308133539208952257
|
click
|
accessibility
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
31348
|
NULL
|
NULL
|
NULL
|
|
31351
|
1229
|
3
|
2026-05-13T08:36:03.136833+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661363136_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh","depth":4,"on_screen":true,"value":"^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 695 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb\n[2026-05-12 20:19:37] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
5637274981786285350
|
308133539208952257
|
visual_change
|
accessibility
|
NULL
|
^G Get Help ^O WriteOut ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] Screenpipe sync starting for: 2026-05-11
UW PICO 5.09 New Buffer
[ Read 695 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[2026-05-12 20:19:37] install_id: 2ff6574c-4272-4dbf-a20b-434b024c65fb
[2026-05-12 20:19:37] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31352
|
1229
|
4
|
2026-05-13T08:36:06.155582+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661366155_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
2335665969906699025
|
5496280309939763393
|
visual_change
|
accessibility
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
31351
|
NULL
|
NULL
|
NULL
|
|
31353
|
1230
|
2
|
2026-05-13T08:36:09.689347+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661369689_m2.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.27027926,"top":1.0,"width":0.0944149,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.27227393,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.36469415,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.36668882,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.45894283,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.4609375,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.5531915,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.55518615,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.64744014,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.64943486,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.7280585,"top":1.0,"width":0.01861702,"height":-0.023144484},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.5043218,"top":1.0,"width":0.010970744,"height":-0.02394259},"on_screen":true,"role_description":"text"}]...
|
2335665969906699025
|
5496280309939763393
|
click
|
accessibility
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31355
|
1230
|
3
|
2026-05-13T08:36:14.680117+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661374680_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.76163566,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.76163566,"top":0.054269753,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76396275,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"15m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table has no","depth":21,"bounds":{"left":0.78789896,"top":0.07102953,"width":0.024268618,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.8131649,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column - its primary key is","depth":21,"bounds":{"left":0.8178192,"top":0.07102953,"width":0.04920213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frame_id","depth":22,"bounds":{"left":0.8680186,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":". The script incorrectly assumes all tables have an","depth":21,"bounds":{"left":0.88397604,"top":0.07102953,"width":0.09009308,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9750665,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column when creating the unique index.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23071809,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix is in","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.021609042,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.78457445,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.79022604,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"around line 363-370. The loop needs to check if the table has an","depth":21,"bounds":{"left":0.82912236,"top":0.07102953,"width":0.11768617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9478058,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the index:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23204787,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"bounds":{"left":0.77160907,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# Re-run install_id + index setup so freshly-created tables get them too.","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.1462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.0063164895,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.7726064,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"bounds":{"left":0.77460104,"top":0.07102953,"width":0.0063164895,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
836854112217016470
|
-1937905821834313634
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl...
|
31353
|
NULL
|
NULL
|
NULL
|
|
31354
|
1229
|
5
|
2026-05-13T08:36:14.694699+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661374694_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl
in
"${
ALL_SYNC_TABLES
[
@
]}"
;
do
HAS_COL
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='install_id';"
)
if
[
"
$HAS_COL
"
=
"0"
];
then
sqlite3
"
$NAS_DB
"
"ALTER TABLE
$tbl
ADD COLUMN install_id TEXT;"
fi
# Check if table has 'id' column before creating index
HAS_ID
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='id';"
)
if
[
"
$HAS_ID
"...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"15m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table has no","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column - its primary key is","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frame_id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":". The script incorrectly assumes all tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column when creating the unique index.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix is in","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"around line 363-370. The loop needs to check if the table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the index:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# Re-run install_id + index setup so freshly-created tables get them too.","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"in","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ALL_SYNC_TABLES","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"@","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"]}\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":";","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"do","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"HAS_COL","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM pragma_table_info('","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"') WHERE name='install_id';\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$HAS_COL","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"ALTER TABLE","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ADD COLUMN install_id TEXT;\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# Check if table has 'id' column before creating index","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"HAS_ID","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM pragma_table_info('","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"') WHERE name='id';\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$HAS_ID","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"}]...
|
9157523094705495623
|
-1181266038039936545
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl
in
"${
ALL_SYNC_TABLES
[
@
]}"
;
do
HAS_COL
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='install_id';"
)
if
[
"
$HAS_COL
"
=
"0"
];
then
sqlite3
"
$NAS_DB
"
"ALTER TABLE
$tbl
ADD COLUMN install_id TEXT;"
fi
# Check if table has 'id' column before creating index
HAS_ID
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='id';"
)
if
[
"
$HAS_ID
"...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31356
|
1229
|
6
|
2026-05-13T08:36:15.248877+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661375248_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl
in
"${
ALL_SYNC_TABLES
[
@
]}"
;
do
HAS_COL
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='install_id';"
)
if
[
"
$HAS_COL
"
=
"0"
];
then
sqlite3
"
$NAS_DB
"
"ALTER TABLE
$tbl
ADD COLUMN install_id TEXT;"
fi
# Check if table has 'id' column before creating index
HAS_ID
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='id';"
)
if
[
"
$HAS_ID
"
-gt
"0"
];
then
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, id);"
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
The same fix applies to
screenpipe_fts_migrate.sh
at line 106. Both scripts have the same bug.
You'll need to switch to Code mode to apply these changes.
Feedback submitted
fix it
Expand content to scroll
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"15m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table has no","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column - its primary key is","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frame_id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":". The script incorrectly assumes all tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column when creating the unique index.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix is in","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"around line 363-370. The loop needs to check if the table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the index:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# Re-run install_id + index setup so freshly-created tables get them too.","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"in","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ALL_SYNC_TABLES","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"@","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"]}\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":";","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"do","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"HAS_COL","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM pragma_table_info('","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"') WHERE name='install_id';\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$HAS_COL","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"ALTER TABLE","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ADD COLUMN install_id TEXT;\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# Check if table has 'id' column before creating index","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"HAS_ID","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM pragma_table_info('","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"') WHERE name='id';\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$HAS_ID","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-gt","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, id);\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The same fix applies to","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"at line 106. Both scripts have the same bug.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You'll need to switch to Code mode to apply these changes.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fix it","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: meetings ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating indexes ✓ 0m01s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating FTS tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m02s] ▶ Syncing data for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"video_chunks ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames (6857 rows) ✓ 2m37s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"error here ---^","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT OR IGNORE INTO nas.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.* FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"JOIN main.frames f ON o.frame_id = f.id","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT by explicitly listing columns instead of using","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.*","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", which caused the ambiguous column name error with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"existing in both","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me also check the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table INSERT since it also uses a JOIN with frames and might have the same issue:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script you're running is","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe_sync.sh","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on your Mac, but I've been editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on the NAS. These are different files.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You need to either:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Copy the fixed script from NAS to Mac, or","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Apply the same fix to your Mac's script","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix for the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ambiguous column error is to change:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"*","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.frame_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_json,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.app_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.ocr_engine,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.window_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.focused,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_length,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.sync_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.synced_at,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Which script are you actually running on your Mac - the one in","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"?","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Now add also audio data. CREATE TABLE audio_chunks (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"file_path TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"machine_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"evicted_at TIMESTAMP DEFAULT NULL","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE \"audio_transcriptions\" (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunk_id INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"offset_index INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device TEXT NOT NULL DEFAULT '',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"is_input_device BOOLEAN NOT NULL DEFAULT TRUE,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription_engine TEXT NOT NULL DEFAULT 'Whisper',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"start_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"end_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"text_length INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"redacted_at INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me first check the current script structure:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me make the necessary changes:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_MEETINGS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"5","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"printf","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\" %-20s %s\\n\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions:\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_FRAMES","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"] && [","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"log","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"No frames or audio chunks found for","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"— skipping DB sync\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DB_ALREADY_SYNCED","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"true","depth":24,"on_screen":true,"role_description":"text"}]...
|
-84045090779321297
|
9175554802304139997
|
visual_change
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl
in
"${
ALL_SYNC_TABLES
[
@
]}"
;
do
HAS_COL
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='install_id';"
)
if
[
"
$HAS_COL
"
=
"0"
];
then
sqlite3
"
$NAS_DB
"
"ALTER TABLE
$tbl
ADD COLUMN install_id TEXT;"
fi
# Check if table has 'id' column before creating index
HAS_ID
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='id';"
)
if
[
"
$HAS_ID
"
-gt
"0"
];
then
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, id);"
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
The same fix applies to
screenpipe_fts_migrate.sh
at line 106. Both scripts have the same bug.
You'll need to switch to Code mode to apply these changes.
Feedback submitted
fix it
Expand content to scroll
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31357
|
1230
|
4
|
2026-05-13T08:36:16.837554+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661376837_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl
in
"${
ALL_SYNC_TABLES
[
@
]}"
;
do
HAS_COL
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='install_id';"
)
if
[
"
$HAS_COL
"
=
"0"
];
then
sqlite3
"
$NAS_DB
"
"ALTER TABLE
$tbl
ADD COLUMN install_id TEXT;"
fi
# Check if table has 'id' column before creating index
HAS_ID
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='id';"
)
if
[
"
$HAS_ID
"
-gt
"0"
];
then
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, id);"
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
The same fix applies to
screenpipe_fts_migrate.sh
at line 106. Both scripts have the same bug.
You'll need to switch to Code mode to apply these changes.
Feedback submitted
fix it
Expand content to scroll
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.76163566,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.76163566,"top":0.054269753,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76396275,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"15m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":19,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table has no","depth":21,"bounds":{"left":0.78789896,"top":0.07102953,"width":0.024268618,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.8131649,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column - its primary key is","depth":21,"bounds":{"left":0.8178192,"top":0.07102953,"width":0.04920213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frame_id","depth":22,"bounds":{"left":0.8680186,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":". The script incorrectly assumes all tables have an","depth":21,"bounds":{"left":0.88397604,"top":0.07102953,"width":0.09009308,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9750665,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column when creating the unique index.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23071809,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix is in","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.021609042,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.78457445,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.79022604,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"around line 363-370. The loop needs to check if the table has an","depth":21,"bounds":{"left":0.82912236,"top":0.07102953,"width":0.11768617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9478058,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the index:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23204787,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"bounds":{"left":0.77160907,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# Re-run install_id + index setup so freshly-created tables get them too.","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.1462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.0063164895,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.7726064,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"bounds":{"left":0.77460104,"top":0.07102953,"width":0.0063164895,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"in","depth":23,"bounds":{"left":0.78291225,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.7869016,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"${","depth":23,"bounds":{"left":0.78889626,"top":0.07102953,"width":0.005984043,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ALL_SYNC_TABLES","depth":23,"bounds":{"left":0.79488033,"top":0.07102953,"width":0.029920213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"bounds":{"left":0.82480055,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"@","depth":23,"bounds":{"left":0.8267952,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"]}\"","depth":23,"bounds":{"left":0.8287899,"top":0.07102953,"width":0.0063164895,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":";","depth":23,"bounds":{"left":0.83477396,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"do","depth":23,"bounds":{"left":0.8387633,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"HAS_COL","depth":23,"bounds":{"left":0.7706117,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"bounds":{"left":0.7849069,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":23,"bounds":{"left":0.7869016,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"bounds":{"left":0.79089093,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.80485374,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.8068484,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"bounds":{"left":0.8088431,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.8228058,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.82480055,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM pragma_table_info('","depth":23,"bounds":{"left":0.8267952,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"bounds":{"left":0.90890956,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"') WHERE name='install_id';\"","depth":23,"bounds":{"left":0.9168883,"top":0.07102953,"width":0.05618351,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":23,"bounds":{"left":0.97273934,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":23,"bounds":{"left":0.7706117,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"bounds":{"left":0.77460104,"top":0.07102953,"width":0.0063164895,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$HAS_COL","depth":23,"bounds":{"left":0.78291225,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.79886967,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.80086434,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"bounds":{"left":0.80285907,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.80485374,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":23,"bounds":{"left":0.8068484,"top":0.07102953,"width":0.005984043,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":23,"bounds":{"left":0.8128325,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":23,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.00831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"bounds":{"left":0.77460104,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.78889626,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.79089093,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"bounds":{"left":0.79288566,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.8068484,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.8088431,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"ALTER TABLE","depth":23,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.026263298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"bounds":{"left":0.8367686,"top":0.07102953,"width":0.00831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ADD COLUMN install_id TEXT;\"","depth":23,"bounds":{"left":0.84474736,"top":0.07102953,"width":0.05817819,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":23,"bounds":{"left":0.7706117,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# Check if table has 'id' column before creating index","depth":23,"bounds":{"left":0.7706117,"top":0.07102953,"width":0.10837766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"HAS_ID","depth":23,"bounds":{"left":0.7706117,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":23,"bounds":{"left":0.78291225,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":23,"bounds":{"left":0.7849069,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"bounds":{"left":0.78889626,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.80285907,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.80485374,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"bounds":{"left":0.8068484,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.8228058,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM pragma_table_info('","depth":23,"bounds":{"left":0.82480055,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$tbl","depth":23,"bounds":{"left":0.9069149,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"') WHERE name='id';\"","depth":23,"bounds":{"left":0.9148936,"top":0.07102953,"width":0.040226065,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":23,"bounds":{"left":0.95478725,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":23,"bounds":{"left":0.7706117,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":23,"bounds":{"left":0.77460104,"top":0.07102953,"width":0.0063164895,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$HAS_ID","depth":23,"bounds":{"left":0.78291225,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.796875,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.79886967,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-gt","depth":23,"bounds":{"left":0.80086434,"top":0.07102953,"width":0.005984043,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.8068484,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":23,"bounds":{"left":0.8088431,"top":0.07102953,"width":0.005984043,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":23,"bounds":{"left":0.81482714,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":23,"bounds":{"left":0.8228058,"top":0.07102953,"width":0.00831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.00831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"bounds":{"left":0.77460104,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.78889626,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.79089093,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"bounds":{"left":0.79288566,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.8068484,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.8088431,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":23,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"bounds":{"left":0.89295214,"top":0.07102953,"width":0.005984043,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":23,"bounds":{"left":0.89893615,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"bounds":{"left":0.93484044,"top":0.07102953,"width":0.0063164895,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, id);\"","depth":23,"bounds":{"left":0.94082445,"top":0.07102953,"width":0.038231384,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":23,"bounds":{"left":0.7706117,"top":0.07102953,"width":0.00831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.00831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":23,"bounds":{"left":0.77460104,"top":0.07102953,"width":0.08843085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.00831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":23,"bounds":{"left":0.77460104,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.78889626,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.79089093,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":23,"bounds":{"left":0.79288566,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"bounds":{"left":0.8068484,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.8088431,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":23,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"bounds":{"left":0.89295214,"top":0.07102953,"width":0.005984043,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":23,"bounds":{"left":0.89893615,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":23,"bounds":{"left":0.93484044,"top":0.07102953,"width":0.0063164895,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":23,"bounds":{"left":0.94082445,"top":0.07102953,"width":0.044215426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":23,"bounds":{"left":0.7706117,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.00831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The same fix applies to","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.04255319,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.8055186,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"bounds":{"left":0.8111702,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"at line 106. Both scripts have the same bug.","depth":21,"bounds":{"left":0.8650266,"top":0.07102953,"width":0.07912234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You'll need to switch to Code mode to apply these changes.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.10704787,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fix it","depth":25,"bounds":{"left":0.9857048,"top":0.07102953,"width":0.00731383,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"bounds":{"left":0.9830452,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.84640956,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"bounds":{"left":0.85139626,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.08643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.04488032,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.093417555,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.85771275,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"bounds":{"left":0.86236703,"top":0.07102953,"width":0.111369684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9744016,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.01662234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"bounds":{"left":0.81648934,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.027925532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"bounds":{"left":0.81549203,"top":0.07102953,"width":0.059840426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.88098407,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.9182181,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"bounds":{"left":0.83045214,"top":0.07102953,"width":0.05851064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.88962764,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.89461434,"top":0.07102953,"width":0.035904255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.93151593,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.10239362,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.18218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1100399,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.057513297,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.06382979,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07180851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08676862,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045212764,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.046875,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045545213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.040226065,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.09474734,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07247341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08610372,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.080784574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07679521,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: meetings ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating indexes ✓ 0m01s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07347074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating FTS tables ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.076130316,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m02s] ▶ Syncing data for 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.072140954,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"video_chunks ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07347074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames (6857 rows) ✓ 2m37s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.16589096,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.13630319,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"error here ---^","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.062832445,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"bounds":{"left":0.8956117,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.053856384,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.8181516,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"bounds":{"left":0.83410907,"top":0.07102953,"width":0.04654255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"bounds":{"left":0.88164896,"top":0.07102953,"width":0.010970744,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"bounds":{"left":0.89361703,"top":0.07102953,"width":0.046210106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.94082445,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22772606,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.9175532,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"bounds":{"left":0.9331782,"top":0.07102953,"width":0.017952127,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.11303192,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.87732714,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22805852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"bounds":{"left":0.82546544,"top":0.07102953,"width":0.0013297872,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.07945479,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.03158245,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.79587764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.8015292,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"bounds":{"left":0.8071808,"top":0.07102953,"width":0.019614361,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.105053194,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.105053194,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"bounds":{"left":0.9857048,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT OR IGNORE INTO nas.ocr_text","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0625,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.* FROM main.ocr_text o","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.060837764,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.22972074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM main.ocr_text o","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"JOIN main.frames f ON o.frame_id = f.id","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.01761968,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.7815825,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT by explicitly listing columns instead of using","depth":21,"bounds":{"left":0.7975399,"top":0.07102953,"width":0.09507979,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.*","depth":22,"bounds":{"left":0.89361703,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", which caused the ambiguous column name error with","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22606383,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"existing in both","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.029587766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.81914896,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":21,"bounds":{"left":0.83477396,"top":0.07102953,"width":0.008976064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"bounds":{"left":0.84474736,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"bounds":{"left":0.85704786,"top":0.07102953,"width":0.0009973404,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me also check the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.040226065,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements","depth":22,"bounds":{"left":0.80452126,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table INSERT since it also uses a JOIN with frames and might have the same issue:","depth":21,"bounds":{"left":0.82014626,"top":0.07102953,"width":0.14860372,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.106715426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script you're running is","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.049867023,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe_sync.sh","depth":22,"bounds":{"left":0.81416225,"top":0.07102953,"width":0.058843084,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on your Mac, but I've been editing","depth":21,"bounds":{"left":0.87400264,"top":0.07102953,"width":0.062832445,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.9368351,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.9424867,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on the NAS. These are different files.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You need to either:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.033909574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Copy the fixed script from NAS to Mac, or","depth":22,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.07480053,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Apply the same fix to your Mac's script","depth":22,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.06981383,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix for the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.026263298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.79022604,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ambiguous column error is to change:","depth":21,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.06881649,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"bounds":{"left":0.77160907,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":23,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"*","depth":23,"bounds":{"left":0.7849069,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.7869016,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":23,"bounds":{"left":0.78889626,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.796875,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":23,"bounds":{"left":0.79886967,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.82480055,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":23,"bounds":{"left":0.8267952,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.004654255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"bounds":{"left":0.77160907,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":24,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.frame_id,","depth":24,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80285907,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text,","depth":24,"bounds":{"left":0.80485374,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8188165,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_json,","depth":24,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.024268618,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.84474736,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.app_name,","depth":24,"bounds":{"left":0.84674203,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8686835,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.ocr_engine,","depth":24,"bounds":{"left":0.8706782,"top":0.07102953,"width":0.026263298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8969415,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.window_name,","depth":24,"bounds":{"left":0.89893615,"top":0.07102953,"width":0.02825798,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9268617,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.focused,","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9488032,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_length,","depth":24,"bounds":{"left":0.95079786,"top":0.07102953,"width":0.02825798,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9790558,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.sync_id,","depth":24,"bounds":{"left":0.98105055,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.synced_at,","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.redacted_at","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Which script are you actually running on your Mac - the one in","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.112034574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/","depth":22,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"?","depth":21,"bounds":{"left":0.90292555,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Now add also audio data. CREATE TABLE audio_chunks (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.09607713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.078125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"file_path TEXT NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.046875,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.041888297,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"machine_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"evicted_at TIMESTAMP DEFAULT NULL","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.06815159,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0013297872,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE \"audio_transcriptions\" (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0674867,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.078125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunk_id INTEGER NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.064494684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"offset_index INTEGER NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.058843084,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.061170213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription TEXT NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.05319149,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device TEXT NOT NULL DEFAULT '',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0625,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"is_input_device BOOLEAN NOT NULL DEFAULT TRUE,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id INTEGER,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.03756649,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription_engine TEXT NOT NULL DEFAULT 'Whisper',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.099734046,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"start_time REAL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.03025266,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
8464544488953394504
|
8022633301992260253
|
visual_change
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
15m
2m
1m
Show More
Thought
for 1s
The
ocr_text
table has no
id
column - its primary key is
frame_id
. The script incorrectly assumes all tables have an
id
column when creating the unique index.
The fix is in
screenpipe_sync.sh
around line 363-370. The loop needs to check if the table has an
id
column before creating the index:
bash
# Re-run install_id + index setup so freshly-created tables get them too.
for
tbl
in
"${
ALL_SYNC_TABLES
[
@
]}"
;
do
HAS_COL
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='install_id';"
)
if
[
"
$HAS_COL
"
=
"0"
];
then
sqlite3
"
$NAS_DB
"
"ALTER TABLE
$tbl
ADD COLUMN install_id TEXT;"
fi
# Check if table has 'id' column before creating index
HAS_ID
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM pragma_table_info('
$tbl
') WHERE name='id';"
)
if
[
"
$HAS_ID
"
-gt
"0"
];
then
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, id);"
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
The same fix applies to
screenpipe_fts_migrate.sh
at line 106. Both scripts have the same bug.
You'll need to switch to Code mode to apply these changes.
Feedback submitted
fix it
Expand content to scroll
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31358
|
1230
|
5
|
2026-05-13T08:36:19.870304+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661379870_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.7659575,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.7659575,"top":0.054269753,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76828456,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.84640956,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"bounds":{"left":0.85139626,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.08643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.04488032,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.093417555,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.85771275,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"bounds":{"left":0.86236703,"top":0.07102953,"width":0.111369684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9744016,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.01662234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"bounds":{"left":0.81648934,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.027925532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"bounds":{"left":0.81549203,"top":0.07102953,"width":0.059840426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.88098407,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.9182181,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"bounds":{"left":0.83045214,"top":0.07102953,"width":0.05851064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.88962764,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.89461434,"top":0.07102953,"width":0.035904255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.93151593,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.10239362,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.18218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1100399,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.057513297,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.06382979,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07180851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08676862,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045212764,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.046875,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045545213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.040226065,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.09474734,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07247341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08610372,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.080784574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07679521,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: meetings ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating indexes ✓ 0m01s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07347074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating FTS tables ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.076130316,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m02s] ▶ Syncing data for 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.072140954,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"video_chunks ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07347074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames (6857 rows) ✓ 2m37s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.16589096,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.13630319,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"error here ---^","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.062832445,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"bounds":{"left":0.8956117,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.053856384,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.8181516,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"bounds":{"left":0.83410907,"top":0.07102953,"width":0.04654255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"bounds":{"left":0.88164896,"top":0.07102953,"width":0.010970744,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"bounds":{"left":0.89361703,"top":0.07102953,"width":0.046210106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.94082445,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22772606,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.9175532,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"bounds":{"left":0.9331782,"top":0.07102953,"width":0.017952127,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.11303192,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.87732714,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22805852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"bounds":{"left":0.82546544,"top":0.07102953,"width":0.0013297872,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.07945479,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.03158245,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.79587764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.8015292,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"bounds":{"left":0.8071808,"top":0.07102953,"width":0.019614361,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.105053194,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.105053194,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"bounds":{"left":0.9857048,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT OR IGNORE INTO nas.ocr_text","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0625,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.* FROM main.ocr_text o","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.060837764,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.22972074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM main.ocr_text o","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"JOIN main.frames f ON o.frame_id = f.id","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.01761968,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.7815825,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT by explicitly listing columns instead of using","depth":21,"bounds":{"left":0.7975399,"top":0.07102953,"width":0.09507979,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.*","depth":22,"bounds":{"left":0.89361703,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", which caused the ambiguous column name error with","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22606383,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"existing in both","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.029587766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.81914896,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":21,"bounds":{"left":0.83477396,"top":0.07102953,"width":0.008976064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"bounds":{"left":0.84474736,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"bounds":{"left":0.85704786,"top":0.07102953,"width":0.0009973404,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me also check the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.040226065,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements","depth":22,"bounds":{"left":0.80452126,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table INSERT since it also uses a JOIN with frames and might have the same issue:","depth":21,"bounds":{"left":0.82014626,"top":0.07102953,"width":0.14860372,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.106715426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script you're running is","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.049867023,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe_sync.sh","depth":22,"bounds":{"left":0.81416225,"top":0.07102953,"width":0.058843084,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on your Mac, but I've been editing","depth":21,"bounds":{"left":0.87400264,"top":0.07102953,"width":0.062832445,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.9368351,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.9424867,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on the NAS. These are different files.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You need to either:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.033909574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Copy the fixed script from NAS to Mac, or","depth":22,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.07480053,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Apply the same fix to your Mac's script","depth":22,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.06981383,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix for the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.026263298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.79022604,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ambiguous column error is to change:","depth":21,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.06881649,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"bounds":{"left":0.77160907,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":23,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"*","depth":23,"bounds":{"left":0.7849069,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.7869016,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":23,"bounds":{"left":0.78889626,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.796875,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":23,"bounds":{"left":0.79886967,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.82480055,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":23,"bounds":{"left":0.8267952,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.004654255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"bounds":{"left":0.77160907,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":24,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.frame_id,","depth":24,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80285907,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text,","depth":24,"bounds":{"left":0.80485374,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8188165,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_json,","depth":24,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.024268618,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.84474736,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.app_name,","depth":24,"bounds":{"left":0.84674203,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8686835,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.ocr_engine,","depth":24,"bounds":{"left":0.8706782,"top":0.07102953,"width":0.026263298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8969415,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.window_name,","depth":24,"bounds":{"left":0.89893615,"top":0.07102953,"width":0.02825798,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9268617,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.focused,","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9488032,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_length,","depth":24,"bounds":{"left":0.95079786,"top":0.07102953,"width":0.02825798,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9790558,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.sync_id,","depth":24,"bounds":{"left":0.98105055,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.synced_at,","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.redacted_at","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Which script are you actually running on your Mac - the one in","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.112034574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/","depth":22,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"?","depth":21,"bounds":{"left":0.90292555,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Now add also audio data. CREATE TABLE audio_chunks (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.09607713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.078125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"file_path TEXT NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.046875,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.041888297,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"machine_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"evicted_at TIMESTAMP DEFAULT NULL","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.06815159,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0013297872,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE \"audio_transcriptions\" (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0674867,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.078125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunk_id INTEGER NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.064494684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"offset_index INTEGER NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.058843084,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.061170213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription TEXT NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.05319149,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device TEXT NOT NULL DEFAULT '',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0625,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"is_input_device BOOLEAN NOT NULL DEFAULT TRUE,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id INTEGER,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.03756649,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription_engine TEXT NOT NULL DEFAULT 'Whisper',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.099734046,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"start_time REAL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.03025266,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"end_time REAL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.028590426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"text_length INTEGER,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.038231384,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"redacted_at INTEGER,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.045545213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.109042555,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.10771277,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.024268618,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.021276595,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.034242023,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.037898935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.203125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"bounds":{"left":0.87333775,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me first check the current script structure:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.18351063,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me make the necessary changes:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.16722074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while editing","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.030585106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.79488033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.80019945,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98769945,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"bounds":{"left":0.9900266,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_MEETINGS","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.796875,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"bounds":{"left":0.81349736,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.82613033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.828125,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '","depth":24,"bounds":{"left":0.82978725,"top":0.07102953,"width":0.11037234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.94015956,"top":0.07102953,"width":0.021941489,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"bounds":{"left":0.96210104,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"bounds":{"left":0.9674202,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ACHUNKS","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.79488033,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"bounds":{"left":0.81349736,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.82613033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.828125,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"bounds":{"left":0.82978725,"top":0.07102953,"width":0.11037234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.94015956,"top":0.07102953,"width":0.021941489,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"bounds":{"left":0.96210104,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"bounds":{"left":0.9674202,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ATRANS","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.01861702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.7875665,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.005984043,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"bounds":{"left":0.81349736,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.82613033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.828125,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"bounds":{"left":0.82978725,"top":0.07102953,"width":0.16555852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.9830452,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"5","depth":23,"bounds":{"left":0.9850399,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.98836434,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"bounds":{"left":0.9896942,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"printf","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\" %-20s %s\\n\"","depth":24,"bounds":{"left":0.78224736,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8224734,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions:\"","depth":24,"bounds":{"left":0.8244681,"top":0.07102953,"width":0.042220745,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
2670819667948411065
|
3987409131487618653
|
visual_change
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"...
|
31357
|
NULL
|
NULL
|
NULL
|
|
31360
|
1230
|
6
|
2026-05-13T08:36:30.268408+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661390268_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.76163566,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.76163566,"top":0.054269753,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76396275,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.84640956,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"bounds":{"left":0.85139626,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.08643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.04488032,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.093417555,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.85771275,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"bounds":{"left":0.86236703,"top":0.07102953,"width":0.111369684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9744016,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.01662234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"bounds":{"left":0.81648934,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.027925532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"bounds":{"left":0.81549203,"top":0.07102953,"width":0.059840426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.88098407,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.9182181,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"bounds":{"left":0.83045214,"top":0.07102953,"width":0.05851064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.88962764,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.89461434,"top":0.07102953,"width":0.035904255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.93151593,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.10239362,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.18218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1100399,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.057513297,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.06382979,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07180851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08676862,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045212764,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.046875,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045545213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.040226065,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.09474734,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07247341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08610372,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.080784574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07679521,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: meetings ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating indexes ✓ 0m01s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07347074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating FTS tables ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.076130316,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m02s] ▶ Syncing data for 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.072140954,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"video_chunks ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07347074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames (6857 rows) ✓ 2m37s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.16589096,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.13630319,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"error here ---^","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.062832445,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"bounds":{"left":0.8956117,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.053856384,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.8181516,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"bounds":{"left":0.83410907,"top":0.07102953,"width":0.04654255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"bounds":{"left":0.88164896,"top":0.07102953,"width":0.010970744,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"bounds":{"left":0.89361703,"top":0.07102953,"width":0.046210106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.94082445,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22772606,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.9175532,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"bounds":{"left":0.9331782,"top":0.07102953,"width":0.017952127,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.11303192,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.87732714,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22805852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"bounds":{"left":0.82546544,"top":0.07102953,"width":0.0013297872,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.07945479,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.03158245,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
-1368014154690489632
|
3977256799194038445
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31359
|
1229
|
7
|
2026-05-13T08:36:30.268417+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661390268_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: meetings ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating indexes ✓ 0m01s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating FTS tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m02s] ▶ Syncing data for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"video_chunks ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames (6857 rows) ✓ 2m37s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"error here ---^","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"}]...
|
3177881383254247668
|
8588942267865612461
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched...
|
31356
|
NULL
|
NULL
|
NULL
|
|
31362
|
1230
|
7
|
2026-05-13T08:36:31.558262+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661391558_m2.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.27027926,"top":1.0,"width":0.0944149,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.27227393,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.36469415,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.36668882,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.45894283,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.4609375,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.5531915,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.55518615,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.64744014,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.64943486,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.7280585,"top":1.0,"width":0.01861702,"height":-0.023144484},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.5043218,"top":1.0,"width":0.010970744,"height":-0.02394259},"on_screen":true,"role_description":"text"}]...
|
2335665969906699025
|
5496280309939763393
|
click
|
accessibility
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
31360
|
NULL
|
NULL
|
NULL
|
|
31361
|
1229
|
8
|
2026-05-13T08:36:31.558281+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661391558_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
2335665969906699025
|
5496280309939763393
|
click
|
accessibility
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31363
|
1229
|
9
|
2026-05-13T08:36:33.795297+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661393795_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
2335665969906699025
|
5496280309939763393
|
visual_change
|
accessibility
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31365
|
1230
|
8
|
2026-05-13T08:36:34.187378+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661394187_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.76163566,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.76163566,"top":0.054269753,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76396275,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.84640956,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"bounds":{"left":0.85139626,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.08643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.04488032,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.093417555,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.85771275,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"bounds":{"left":0.86236703,"top":0.07102953,"width":0.111369684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9744016,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.01662234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"bounds":{"left":0.81648934,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.027925532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"bounds":{"left":0.81549203,"top":0.07102953,"width":0.059840426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.88098407,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.9182181,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"bounds":{"left":0.83045214,"top":0.07102953,"width":0.05851064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.88962764,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.89461434,"top":0.07102953,"width":0.035904255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.93151593,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.10239362,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.18218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
5972130621633015158
|
3995270081547847852
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31364
|
1229
|
10
|
2026-05-13T08:36:34.217429+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661394217_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"}]...
|
-3548726671322627491
|
2842631173172609709
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync...
|
31363
|
NULL
|
NULL
|
NULL
|
|
31366
|
1230
|
9
|
2026-05-13T08:36:35.110824+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661395110_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true
Thoughts
screenpipe_sync.sh
+
2
CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;
DETACH nas;
Thoughts
screenpipe_sync.sh
+
3
CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);
CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);
DETACH nas;
Thought
for 1s
screenpipe_sync.sh
+
8
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
);
DETACH nas;
Thoughts
screenpipe_sync.sh
+
16
WHERE date(c.timestamp) = '
$TARGET_DATE
';
DETACH nas;
"...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.76163566,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.76163566,"top":0.054269753,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76396275,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.84640956,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"bounds":{"left":0.85139626,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.08643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.04488032,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.093417555,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.85771275,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"bounds":{"left":0.86236703,"top":0.07102953,"width":0.111369684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9744016,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.01662234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"bounds":{"left":0.81648934,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.027925532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"bounds":{"left":0.81549203,"top":0.07102953,"width":0.059840426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.88098407,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.9182181,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"bounds":{"left":0.83045214,"top":0.07102953,"width":0.05851064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.88962764,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.89461434,"top":0.07102953,"width":0.035904255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.93151593,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.10239362,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.18218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1100399,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.057513297,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.06382979,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07180851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08676862,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045212764,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.046875,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045545213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.040226065,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.09474734,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07247341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08610372,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.080784574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07679521,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: meetings ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating indexes ✓ 0m01s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07347074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating FTS tables ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.076130316,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m02s] ▶ Syncing data for 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.072140954,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"video_chunks ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07347074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames (6857 rows) ✓ 2m37s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07712766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.16589096,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.13630319,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"error here ---^","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.062832445,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"bounds":{"left":0.8956117,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.053856384,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.8181516,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"bounds":{"left":0.83410907,"top":0.07102953,"width":0.04654255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"bounds":{"left":0.88164896,"top":0.07102953,"width":0.010970744,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"bounds":{"left":0.89361703,"top":0.07102953,"width":0.046210106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.94082445,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22772606,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.9175532,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"bounds":{"left":0.9331782,"top":0.07102953,"width":0.017952127,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.11303192,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.87732714,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22805852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"bounds":{"left":0.82546544,"top":0.07102953,"width":0.0013297872,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.07945479,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.03158245,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.79587764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.8015292,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"bounds":{"left":0.8071808,"top":0.07102953,"width":0.019614361,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.105053194,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.105053194,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"bounds":{"left":0.9857048,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT OR IGNORE INTO nas.ocr_text","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0625,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.* FROM main.ocr_text o","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.060837764,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.22972074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM main.ocr_text o","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"JOIN main.frames f ON o.frame_id = f.id","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.01761968,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.7815825,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT by explicitly listing columns instead of using","depth":21,"bounds":{"left":0.7975399,"top":0.07102953,"width":0.09507979,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.*","depth":22,"bounds":{"left":0.89361703,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", which caused the ambiguous column name error with","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22606383,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"existing in both","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.029587766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.81914896,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":21,"bounds":{"left":0.83477396,"top":0.07102953,"width":0.008976064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"bounds":{"left":0.84474736,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"bounds":{"left":0.85704786,"top":0.07102953,"width":0.0009973404,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me also check the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.040226065,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements","depth":22,"bounds":{"left":0.80452126,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table INSERT since it also uses a JOIN with frames and might have the same issue:","depth":21,"bounds":{"left":0.82014626,"top":0.07102953,"width":0.14860372,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.106715426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script you're running is","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.049867023,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe_sync.sh","depth":22,"bounds":{"left":0.81416225,"top":0.07102953,"width":0.058843084,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on your Mac, but I've been editing","depth":21,"bounds":{"left":0.87400264,"top":0.07102953,"width":0.062832445,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.9368351,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.9424867,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on the NAS. These are different files.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You need to either:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.033909574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Copy the fixed script from NAS to Mac, or","depth":22,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.07480053,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Apply the same fix to your Mac's script","depth":22,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.06981383,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix for the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.026263298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.79022604,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ambiguous column error is to change:","depth":21,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.06881649,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"bounds":{"left":0.77160907,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":23,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"*","depth":23,"bounds":{"left":0.7849069,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.7869016,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":23,"bounds":{"left":0.78889626,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.796875,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":23,"bounds":{"left":0.79886967,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.82480055,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":23,"bounds":{"left":0.8267952,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.004654255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"bounds":{"left":0.77160907,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":24,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.frame_id,","depth":24,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80285907,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text,","depth":24,"bounds":{"left":0.80485374,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8188165,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_json,","depth":24,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.024268618,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.84474736,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.app_name,","depth":24,"bounds":{"left":0.84674203,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8686835,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.ocr_engine,","depth":24,"bounds":{"left":0.8706782,"top":0.07102953,"width":0.026263298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8969415,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.window_name,","depth":24,"bounds":{"left":0.89893615,"top":0.07102953,"width":0.02825798,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9268617,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.focused,","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9488032,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_length,","depth":24,"bounds":{"left":0.95079786,"top":0.07102953,"width":0.02825798,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9790558,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.sync_id,","depth":24,"bounds":{"left":0.98105055,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.synced_at,","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.redacted_at","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Which script are you actually running on your Mac - the one in","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.112034574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/","depth":22,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"?","depth":21,"bounds":{"left":0.90292555,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Now add also audio data. CREATE TABLE audio_chunks (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.09607713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.078125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"file_path TEXT NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.046875,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.041888297,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"machine_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"evicted_at TIMESTAMP DEFAULT NULL","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.06815159,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0013297872,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE \"audio_transcriptions\" (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0674867,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.078125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunk_id INTEGER NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.064494684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"offset_index INTEGER NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.058843084,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.061170213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription TEXT NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.05319149,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device TEXT NOT NULL DEFAULT '',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0625,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"is_input_device BOOLEAN NOT NULL DEFAULT TRUE,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id INTEGER,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.03756649,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription_engine TEXT NOT NULL DEFAULT 'Whisper',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.099734046,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"start_time REAL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.03025266,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"end_time REAL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.028590426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"text_length INTEGER,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.038231384,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"redacted_at INTEGER,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.045545213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.109042555,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.10771277,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.024268618,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.021276595,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.034242023,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.037898935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.203125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"bounds":{"left":0.87333775,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me first check the current script structure:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.18351063,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me make the necessary changes:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.16722074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while editing","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.030585106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.79488033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.80019945,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98769945,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"bounds":{"left":0.9900266,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_MEETINGS","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.796875,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"bounds":{"left":0.81349736,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.82613033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.828125,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '","depth":24,"bounds":{"left":0.82978725,"top":0.07102953,"width":0.11037234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.94015956,"top":0.07102953,"width":0.021941489,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"bounds":{"left":0.96210104,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"bounds":{"left":0.9674202,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ACHUNKS","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.79488033,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"bounds":{"left":0.81349736,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.82613033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.828125,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"bounds":{"left":0.82978725,"top":0.07102953,"width":0.11037234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.94015956,"top":0.07102953,"width":0.021941489,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"bounds":{"left":0.96210104,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"bounds":{"left":0.9674202,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ATRANS","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.01861702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.7875665,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.005984043,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"bounds":{"left":0.81349736,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.82613033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.828125,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"bounds":{"left":0.82978725,"top":0.07102953,"width":0.16555852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.9830452,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"5","depth":23,"bounds":{"left":0.9850399,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.98836434,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"bounds":{"left":0.9896942,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"printf","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\" %-20s %s\\n\"","depth":24,"bounds":{"left":0.78224736,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8224734,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions:\"","depth":24,"bounds":{"left":0.8244681,"top":0.07102953,"width":0.042220745,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.86668885,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.86835104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ATRANS","depth":24,"bounds":{"left":0.8703458,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_FRAMES","depth":24,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.8005319,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8021942,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"bounds":{"left":0.80418885,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"] && [","depth":24,"bounds":{"left":0.8171542,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.8317819,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ACHUNKS","depth":24,"bounds":{"left":0.8334442,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.8557181,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.85738033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"bounds":{"left":0.859375,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8646942,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"bounds":{"left":0.86668885,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":24,"bounds":{"left":0.87200797,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":24,"bounds":{"left":0.8793218,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"log","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"No frames or audio chunks found for","depth":24,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.06815159,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.8480718,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"— skipping DB sync\"","depth":24,"bounds":{"left":0.8703458,"top":0.07102953,"width":0.036901597,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DB_ALREADY_SYNCED","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.03125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.80418885,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"true","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98769945,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"bounds":{"left":0.9900266,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.15990691,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.18916224,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.18916224,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98769945,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"bounds":{"left":0.9896942,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.16156915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.16888298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.19281915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.18384309,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98769945,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.9896942,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.064494684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.042220745,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.044215426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":");","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98603725,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"16","depth":23,"bounds":{"left":0.98836434,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"WHERE date(c.timestamp) = '","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.053523935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.8188165,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';","depth":24,"bounds":{"left":0.84075797,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
-6173040090066334079
|
3986318407094495069
|
visual_change
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true
Thoughts
screenpipe_sync.sh
+
2
CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;
DETACH nas;
Thoughts
screenpipe_sync.sh
+
3
CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);
CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);
DETACH nas;
Thought
for 1s
screenpipe_sync.sh
+
8
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
);
DETACH nas;
Thoughts
screenpipe_sync.sh
+
16
WHERE date(c.timestamp) = '
$TARGET_DATE
';
DETACH nas;
"...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31368
|
1230
|
10
|
2026-05-13T08:36:36.804208+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661396804_m2.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.27027926,"top":1.0,"width":0.0944149,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.27227393,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.36469415,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.36668882,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.45894283,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.4609375,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.5531915,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.55518615,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.64744014,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.64943486,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.7280585,"top":1.0,"width":0.01861702,"height":-0.023144484},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.5043218,"top":1.0,"width":0.010970744,"height":-0.02394259},"on_screen":true,"role_description":"text"}]...
|
2335665969906699025
|
5496280309939763393
|
click
|
accessibility
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
31366
|
NULL
|
NULL
|
NULL
|
|
31367
|
1229
|
11
|
2026-05-13T08:36:36.804283+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661396804_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
2335665969906699025
|
5496280309939763393
|
click
|
accessibility
|
NULL
|
NAS mount: OK /Volumes/screenpipe
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31369
|
1229
|
12
|
2026-05-13T08:36:40.250751+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661400250_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Archive DB: will be created
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
7826652889776349268
|
5496280309939763393
|
visual_change
|
accessibility
|
NULL
|
Archive DB: will be created
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31371
|
1230
|
11
|
2026-05-13T08:36:43.729090+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661403729_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"}]...
|
-5204373747217472010
|
-6650930558807865266
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31370
|
1229
|
13
|
2026-05-13T08:36:43.737328+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661403737_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"}]...
|
1497672738321338709
|
-631799256681314196
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear...
|
31369
|
NULL
|
NULL
|
NULL
|
|
31372
|
1229
|
14
|
2026-05-13T08:36:46.292562+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661406292_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: meetings ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating indexes ✓ 0m01s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating FTS tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m02s] ▶ Syncing data for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"video_chunks ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames (6857 rows) ✓ 2m37s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"error here ---^","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT OR IGNORE INTO nas.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.* FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"JOIN main.frames f ON o.frame_id = f.id","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT by explicitly listing columns instead of using","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.*","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", which caused the ambiguous column name error with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"existing in both","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me also check the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table INSERT since it also uses a JOIN with frames and might have the same issue:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script you're running is","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe_sync.sh","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on your Mac, but I've been editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on the NAS. These are different files.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You need to either:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Copy the fixed script from NAS to Mac, or","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Apply the same fix to your Mac's script","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix for the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ambiguous column error is to change:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"*","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.frame_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_json,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.app_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.ocr_engine,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.window_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.focused,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_length,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.sync_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.synced_at,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Which script are you actually running on your Mac - the one in","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"?","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Now add also audio data. CREATE TABLE audio_chunks (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"file_path TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"machine_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"evicted_at TIMESTAMP DEFAULT NULL","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE \"audio_transcriptions\" (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunk_id INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"offset_index INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device TEXT NOT NULL DEFAULT '',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"is_input_device BOOLEAN NOT NULL DEFAULT TRUE,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription_engine TEXT NOT NULL DEFAULT 'Whisper',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"start_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"end_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"text_length INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"}]...
|
4718523503496933893
|
2843493722865779229
|
visual_change
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31373
|
1230
|
12
|
2026-05-13T08:36:46.466261+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661406466_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.76163566,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.76163566,"top":0.054269753,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76396275,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.84640956,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"bounds":{"left":0.85139626,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.08643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
2751046012462818212
|
-6684628359770044308
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31375
|
1230
|
13
|
2026-05-13T08:36:47.143230+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661407143_m2.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Archive DB: will be created
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.27027926,"top":1.0,"width":0.0944149,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.27227393,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.36469415,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.36668882,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.45894283,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.4609375,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.5531915,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.55518615,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.64744014,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.64943486,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.7280585,"top":1.0,"width":0.01861702,"height":-0.023144484},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.5043218,"top":1.0,"width":0.010970744,"height":-0.02394259},"on_screen":true,"role_description":"text"}]...
|
7826652889776349268
|
5496280309939763393
|
click
|
accessibility
|
NULL
|
Archive DB: will be created
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
31373
|
NULL
|
NULL
|
NULL
|
|
31374
|
1229
|
15
|
2026-05-13T08:36:47.167277+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661407167_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Archive DB: will be created
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","depth":4,"on_screen":true,"value":"Archive DB: will be created\n Frame data dir: OK (283 files, 318M)\n Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
7826652889776349268
|
5496280309939763393
|
click
|
accessibility
|
NULL
|
Archive DB: will be created
Archive DB: will be created
Frame data dir: OK (283 files, 318M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
31372
|
NULL
|
NULL
|
NULL
|
|
31376
|
1229
|
16
|
2026-05-13T08:36:49.316087+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661409316_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Audio files: OK (2507 files, 267M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","depth":4,"on_screen":true,"value":"Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
2403603552469165063
|
5496280309939763393
|
visual_change
|
accessibility
|
NULL
|
Audio files: OK (2507 files, 267M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31377
|
1229
|
17
|
2026-05-13T08:36:58.126904+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661418126_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"on_screen":true,"role_description":"text"}]...
|
-833606434293100443
|
-6684629459281672052
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done...
|
31376
|
NULL
|
NULL
|
NULL
|
|
31378
|
1230
|
14
|
2026-05-13T08:36:58.163701+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661418163_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.76163566,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.76163566,"top":0.054269753,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76396275,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.84640956,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"bounds":{"left":0.85139626,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.08643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.04488032,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.093417555,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.85771275,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"bounds":{"left":0.86236703,"top":0.07102953,"width":0.111369684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9744016,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.01662234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"bounds":{"left":0.81648934,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.027925532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"bounds":{"left":0.81549203,"top":0.07102953,"width":0.059840426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.88098407,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.9182181,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"bounds":{"left":0.83045214,"top":0.07102953,"width":0.05851064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.88962764,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.89461434,"top":0.07102953,"width":0.035904255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.93151593,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.10239362,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.18218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1100399,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.057513297,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.06382979,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07180851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08676862,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045212764,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.046875,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045545213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.040226065,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.09474734,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07247341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08610372,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.080784574,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
1041345484342837160
|
2842349697927463053
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31379
|
1229
|
18
|
2026-05-13T08:36:58.636427+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661418636_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true
Thoughts
screenpipe_sync.sh
+
2
CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;
DETACH nas;
Thoughts
screenpipe_sync.sh
+
3
CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);
CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);
DETACH nas;
Thought
for 1s
screenpipe_sync.sh
+
8
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
);
DETACH nas;
Thoughts
screenpipe_sync.sh
+
16
WHERE date(c.timestamp) = '
$TARGET_DATE
';
DETACH nas;
"
# ─── FTS UPDATE ───────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
11
AND t.transcription IS NOT NULL;
DETACH nas;
"
# ─── VERIFY DB ────────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
2
V_MEETINGS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start)= '
$TARGET_DATE
';"
)
V_ACHUNKS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
V_ATRANS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thoughts
screenpipe_sync.sh
+
2
check
"meetings"
"
$V_MEETINGS
"
"
$SRC_MEETINGS
"
check
"audio_chunks"
"
$V_ACHUNKS
"
"
$SRC_ACHUNKS
"
check
"audio_transcriptions"
"
$V_ATRANS
"
"
$SRC_ATRANS
"
Thoughts
screenpipe_sync.sh
+
19
else
printf
" %-36s %s\n"
"rsync logs → NAS"
"skipped (no matching logs)"
fi
# ─── SUMMARY ──────────────────────────────────────────────────────────────────
Thought
for 1s
I've successfully added audio data syncing and log copying to the script. Here's what was added:
Audio Data Syncing:
Added
audio_chunks
and
audio_transcriptions
table creation
Added indexes for audio tables (timestamp, audio_chunk_id)
Added
audio_transcriptions_fts
full-text search table...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: meetings ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating indexes ✓ 0m01s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating FTS tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m02s] ▶ Syncing data for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"video_chunks ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames (6857 rows) ✓ 2m37s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"error here ---^","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT OR IGNORE INTO nas.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.* FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"JOIN main.frames f ON o.frame_id = f.id","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT by explicitly listing columns instead of using","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.*","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", which caused the ambiguous column name error with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"existing in both","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me also check the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table INSERT since it also uses a JOIN with frames and might have the same issue:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script you're running is","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe_sync.sh","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on your Mac, but I've been editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on the NAS. These are different files.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You need to either:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Copy the fixed script from NAS to Mac, or","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Apply the same fix to your Mac's script","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix for the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ambiguous column error is to change:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"*","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.frame_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_json,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.app_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.ocr_engine,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.window_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.focused,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_length,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.sync_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.synced_at,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Which script are you actually running on your Mac - the one in","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"?","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Now add also audio data. CREATE TABLE audio_chunks (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"file_path TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"machine_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"evicted_at TIMESTAMP DEFAULT NULL","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE \"audio_transcriptions\" (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunk_id INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"offset_index INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device TEXT NOT NULL DEFAULT '',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"is_input_device BOOLEAN NOT NULL DEFAULT TRUE,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription_engine TEXT NOT NULL DEFAULT 'Whisper',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"start_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"end_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"text_length INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"redacted_at INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me first check the current script structure:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me make the necessary changes:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_MEETINGS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"5","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"printf","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\" %-20s %s\\n\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions:\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_FRAMES","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"] && [","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"log","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"No frames or audio chunks found for","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"— skipping DB sync\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DB_ALREADY_SYNCED","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"true","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":");","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"16","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"WHERE date(c.timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# ─── FTS UPDATE ───────────────────────────────────────────────────────────","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"11","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"AND t.transcription IS NOT NULL;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# ─── VERIFY DB ────────────────────────────────────────────────────────────","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"V_MEETINGS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start)= '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"V_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"V_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"check","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"meetings\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$V_MEETINGS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_MEETINGS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"check","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_chunks\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$V_ACHUNKS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ACHUNKS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"check","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$V_ATRANS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ATRANS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"printf","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\" %-36s %s\\n\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"rsync logs → NAS\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"skipped (no matching logs)\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# ─── SUMMARY ──────────────────────────────────────────────────────────────────","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I've successfully added audio data syncing and log copying to the script. Here's what was added:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Audio Data Syncing:","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Added","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunks","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_transcriptions","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table creation","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Added indexes for audio tables (timestamp, audio_chunk_id)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Added","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_transcriptions_fts","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"full-text search table","depth":22,"on_screen":true,"role_description":"text"}]...
|
-6076230417160529401
|
3986283171199575901
|
visual_change
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true
Thoughts
screenpipe_sync.sh
+
2
CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;
DETACH nas;
Thoughts
screenpipe_sync.sh
+
3
CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);
CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);
DETACH nas;
Thought
for 1s
screenpipe_sync.sh
+
8
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
);
DETACH nas;
Thoughts
screenpipe_sync.sh
+
16
WHERE date(c.timestamp) = '
$TARGET_DATE
';
DETACH nas;
"
# ─── FTS UPDATE ───────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
11
AND t.transcription IS NOT NULL;
DETACH nas;
"
# ─── VERIFY DB ────────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
2
V_MEETINGS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start)= '
$TARGET_DATE
';"
)
V_ACHUNKS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
V_ATRANS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thoughts
screenpipe_sync.sh
+
2
check
"meetings"
"
$V_MEETINGS
"
"
$SRC_MEETINGS
"
check
"audio_chunks"
"
$V_ACHUNKS
"
"
$SRC_ACHUNKS
"
check
"audio_transcriptions"
"
$V_ATRANS
"
"
$SRC_ATRANS
"
Thoughts
screenpipe_sync.sh
+
19
else
printf
" %-36s %s\n"
"rsync logs → NAS"
"skipped (no matching logs)"
fi
# ─── SUMMARY ──────────────────────────────────────────────────────────────────
Thought
for 1s
I've successfully added audio data syncing and log copying to the script. Here's what was added:
Audio Data Syncing:
Added
audio_chunks
and
audio_transcriptions
table creation
Added indexes for audio tables (timestamp, audio_chunk_id)
Added
audio_transcriptions_fts
full-text search table...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31381
|
1230
|
15
|
2026-05-13T08:37:01.372993+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661421372_m2.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Audio files: OK (2507 files, 267M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","depth":4,"on_screen":true,"value":"Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.27027926,"top":1.0,"width":0.0944149,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.27227393,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.36469415,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.36668882,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.45894283,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.4609375,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.5531915,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.55518615,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.64744014,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.64943486,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.7280585,"top":1.0,"width":0.01861702,"height":-0.023144484},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.5043218,"top":1.0,"width":0.010970744,"height":-0.02394259},"on_screen":true,"role_description":"text"}]...
|
2403603552469165063
|
5496280309939763393
|
click
|
accessibility
|
NULL
|
Audio files: OK (2507 files, 267M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31380
|
1229
|
19
|
2026-05-13T08:37:01.415846+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661421415_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Audio files: OK (2507 files, 267M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","depth":4,"on_screen":true,"value":"Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
2403603552469165063
|
5496280309939763393
|
click
|
accessibility
|
NULL
|
Audio files: OK (2507 files, 267M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
31379
|
NULL
|
NULL
|
NULL
|
|
31382
|
1229
|
20
|
2026-05-13T08:37:01.783561+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661421783_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Audio files: OK (2507 files, 267M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","depth":4,"on_screen":true,"value":"Audio files: OK (2507 files, 267M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n audio_tags: 0\n speakers: 15 (all-time)\n speaker_embeddings: 58 (all-time)\n\n[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating vision tables ✓ 0m00s\n creating audio tables ✓ 0m01s\nError: in prepare, no such column: id\n S idx_ocr_text_install_pk ON ocr_text(install_id, id);\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite \"PRAGMA table_info(ocr_text);\"\n0|frame_id|INTEGER|1||0\n1|text|TEXT|1||0\n2|text_json|TEXT|0||0\n3|app_name|TEXT|1|''|0\n4|ocr_engine|TEXT|1|'unknown'|0\n5|window_name|TEXT|0||0\n6|focused|BOOLEAN|0|FALSE|0\n7|text_length|INTEGER|0||0\n8|sync_id|TEXT|0||0\n9|synced_at|DATETIME|0||0\n10|redacted_at|INTEGER|0||0\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk\nusage: mv [-f | -i | -n] [-hv] source target\n mv [-f | -i | -n] [-v] source ... directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8801488\ndrwxr-xr-x 21 lukas staff 672 12 May 09:21 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810840\ndrwxr-xr-x 21 lukas staff 672 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8810880\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data\n-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8799288\ndrwxr-xr-x 22 lukas staff 704 12 May 20:54 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data\n-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite\n-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11 \n[2026-05-12 20:58:45] ========================================\n[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 20:58:45] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)\n creating tables ✓ 0m00s\n\n[+00m00s] ▶ Reconciling NAS schema with source\n schema: video_chunks ✓ in sync\n schema: frames ✓ in sync\n schema: elements ✓ in sync\n schema: ocr_text ✓ in sync\n schema: ui_events ✓ in sync\n schema: meetings ✓ in sync\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m02s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m37s\n ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name\n acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win\n error here ---^\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849272\ndrwxr-xr-x 21 lukas staff 672 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 353 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8849304\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data\n-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:25] ========================================\n[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:25] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:06:46] ========================================\n[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:06:46] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:07:36] ========================================\n[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:07:36] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n\n[+00m00s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m00s\n\n[+00m01s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m28s\n ocr_text (2332 rows) ✓ 0m48s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m08s\n meetings (1 rows) ✓ 0m00s\n\n[+04m26s] ▶ Updating FTS indexes\n elements_fts ✓ 0m46s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m01s\n\n[+07m40s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n\n[+07m48s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)\n\n[2026-05-12 21:15:49] Archive DB size: 1.3G\n[2026-05-12 21:15:49] Total time: 8m13s\n[2026-05-12 21:15:49] Sync complete for 2026-05-11\n[2026-05-12 21:15:49] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 8923464\ndrwxr-xr-x 22 lukas staff 704 12 May 21:03 .\ndrwx------+ 96 lukas staff 3072 12 May 20:12 ..\n-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data\n-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite\n-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm\n-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log\n-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\n-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ New file ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 420 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\nzsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:08] ========================================\n[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:08] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11\n[2026-05-12 21:28:50] ========================================\n[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11\n[2026-05-12 21:28:50] ========================================\n\n[+00m00s] ▶ Preflight checks\n Source DB: OK (4.2G)\n NAS mount: OK /Volumes/screenpipe\n Archive DB: will be created\n Data dir: OK (283 files, 318M)\n\n[+00m00s] ▶ Counting source rows for 2026-05-11\n frames: 6857\n elements: 672129\n ui_events: 7063\n ocr_text: 2332\n meetings: 1\n audio_chunks: 2507\n audio_transcriptions: 226\n\n[+00m01s] ▶ Initialising tables, indexes, FTS\n creating tables ✓ 0m00s\n creating indexes ✓ 0m01s\n creating FTS tables ✓ 0m01s\n\n[+00m03s] ▶ Syncing data for 2026-05-11\n video_chunks ✓ 0m00s\n frames (6857 rows) ✓ 2m24s\n ocr_text (2332 rows) ✓ 0m45s\n ui_events (7063 rows) ✓ 0m01s\n elements (672129 rows) ✓ 1m01s\n meetings (1 rows) ✓ 0m01s\n audio_chunks (2507 rows) ✓ 0m00s\n audio_transcriptions (226 rows) ✓ 0m00s\n\n[+04m15s] ▶ Updating FTS indexes\n elements_fts ✓ 0m48s\n frames_fts ✓ 2m27s\n ui_events_fts ✓ 0m00s\n audio_transcriptions_fts ✓ 0m00s\n\n[+07m30s] ▶ Verifying DB\n frames: 6857 / 6857 ✓\n elements: 672129 / 672129 ✓\n ui_events: 7063 / 7063 ✓\n ocr_text: 2332 / 2332 ✓\n meetings: 1 / 1 ✓\n audio_chunks: 2507 / 2507 ✓\n audio_transcriptions: 226 / 226 ✓\n\n[+07m39s] ▶ Copying data folder for 2026-05-11\n rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)\n\n[+07m41s] ▶ Copying screenpipe logs for 2026-05-11\n rsync logs → NAS ✓ 1 file(s), 520K\n\n[2026-05-12 21:36:31] Archive DB size: 1.3G\n[2026-05-12 21:36:31] Total time: 7m41s\n[2026-05-12 21:36:31] Sync complete for 2026-05-11\n[2026-05-12 21:36:31] ========================================\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop\nscreenpipe stopped\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status\n{\n \"status\": \"degraded\",\n \"frame_status\": \"ok\",\n \"audio_status\": \"stale\",\n \"last_frame\": \"2026-05-13T11:27:35+03:00\",\n \"uptime\": 7854.077230416,\n \"fps\": 0.27488907183634176,\n \"frames\": 2159\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status\nsp-status='curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"'\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ curl -s http://localhost:3030/health | jq \"{status, frame_status, audio_status, last_frame: .last_frame_timestamp, uptime: .pipeline.uptime_secs, fps: .pipeline.capture_fps_actual, frames: .pipeline.frames_captured}\"\n{\n \"status\": \"healthy\",\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 297 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n \"frame_status\": \"ok\",\n \"audio_status\": \"ok\",\n \"last_frame\": \"2026-05-13T11:28:00+03:00\",\n \"uptime\": 7879.209718708,\n \"fps\": 0.27426608468981734,\n \"frames\": 2161\n}\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n UW PICO 5.09 New Buffer \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n [ Read 139 lines ] \n^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos \n^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell \n/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll\ntotal 9468000\ndrwxr-xr-x 24 lukas staff 768 13 May 11:25 .\ndrwx------+ 96 lukas staff 3072 13 May 09:16 ..\n-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store\n-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id\n-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash\ndrwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data\n-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite\n-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm\n-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal\ndrwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes\n-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log\n-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log\n-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log\n-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log\n-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log\n-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log\n-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log\n-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log\n-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh\n-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk\n-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak\n-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts\n-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ \nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/\ntotal 48\ndrwxrwxrwx 5 lukas staff 160 13 May 10:24 .\ndrwxr-xr-x 5 lukas staff 160 13 May 11:26 ..\n-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh\n-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh\n-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh\n#!/bin/bash\n# screenpipe_sync_helpers.sh\n# Helper functions for screenpipe sync scripts\n# Source this file in other scripts to use the helpers\n\n# ─── CONFIG ───────────────────────────────────────────────────────────────────\n# These can be overridden by the sourcing script\nSCRIPT_START=${SCRIPT_START:-$(date +%s)}\nDB_SRC=\"${DB_SRC:-$HOME/.screenpipe/db.sqlite}\"\nLOG_FILE=\"${LOG_FILE:-$HOME/.screenpipe/sync.log}\"\n# ──────────────────────────────────────────────────────────────────────────────\n\n# ─── HELPERS ──────────────────────────────────────────────────────────────────\n\nlog() {\n local msg=\"[$(date '+%Y-%m-%d %H:%M:%S')] $*\"\n echo \"$msg\" | tee -a \"$LOG_FILE\"\n}\n\nstep() {\n local now=$(date +%s)\n local elapsed=$(( now - SCRIPT_START ))\n local min=$(( elapsed / 60 ))\n local sec=$(( elapsed % 60 ))\n printf \"\\n[+%02dm%02ds] ▶ %s\\n\" \"$min\" \"$sec\" \"$*\" | tee -a \"$LOG_FILE\"\n}\n\nrun_sqlite_heredoc() {\n local label=\"$1\"\n local sql=\"$2\"\n local start=$(date +%s)\n\n printf \" %-36s \" \"$label\"\n\n sqlite3 \"$DB_SRC\" <<< \"$sql\" &\n local pid=$!\n local spin=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')\n local i=0\n while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
2403603552469165063
|
5496280309939763393
|
visual_change
|
accessibility
|
NULL
|
Audio files: OK (2507 files, 267M)
Audio files: OK (2507 files, 267M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
audio_tags: 0
speakers: 15 (all-time)
speaker_embeddings: 58 (all-time)
[+00m01s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating vision tables ✓ 0m00s
creating audio tables ✓ 0m01s
Error: in prepare, no such column: id
S idx_ocr_text_install_pk ON ocr_text(install_id, id);
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sqlite3 ~/.screenpipe/db.sqlite "PRAGMA table_info(ocr_text);"
0|frame_id|INTEGER|1||0
1|text|TEXT|1||0
2|text_json|TEXT|0||0
3|app_name|TEXT|1|''|0
4|ocr_engine|TEXT|1|'unknown'|0
5|window_name|TEXT|0||0
6|focused|BOOLEAN|0|FALSE|0
7|text_length|INTEGER|0||0
8|sync_id|TEXT|0||0
9|synced_at|DATETIME|0||0
10|redacted_at|INTEGER|0||0
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano --version
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh-bakk
usage: mv [-f | -i | -n] [-hv] source target
mv [-f | -i | -n] [-v] source ... directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8801488
drwxr-xr-x 21 lukas staff 672 12 May 09:21 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3613 lukas staff 115616 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4488413184 12 May 20:51 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 15721952 12 May 20:53 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270317 12 May 20:53 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ mv screenpipe_sync.sh screenpipe_sync.sh-bakk
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810840
drwxr-xr-x 21 lukas staff 672 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3615 lukas staff 115680 12 May 20:53 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8810880
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3619 lukas staff 115808 12 May 20:54 data
-rw-r--r--@ 1 lukas staff 4492152832 12 May 20:54 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16615992 12 May 20:54 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 270865 12 May 20:54 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8799288
drwxr-xr-x 22 lukas staff 704 12 May 20:54 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3629 lukas staff 116128 12 May 20:57 data
-rw-r--r--@ 1 lukas staff 4495654912 12 May 20:56 db.sqlite
-rw-r--r--@ 1 lukas staff 32768 12 May 20:21 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 6357192 12 May 20:57 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 271226 12 May 20:56 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 19714 12 May 20:54 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9058 12 May 20:19 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849272
drwxr-xr-x 21 lukas staff 672 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3651 lukas staff 116832 12 May 21:02 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273267 12 May 21:02 screenpipe.2026-05-12.0.log
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ Read 353 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8849304
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 20:14 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3653 lukas staff 116896 12 May 21:03 data
-rw-r--r--@ 1 lukas staff 4511797248 12 May 21:03 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16665432 12 May 21:03 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 273781 12 May 21:03 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15135 12 May 21:03 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 9771 12 May 21:01 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:25] ========================================
[2026-05-12 21:06:25] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:25] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:25] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:06:46] ========================================
[2026-05-12 21:06:46] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:06:46] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:06:46] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:07:36] ========================================
[2026-05-12 21:07:36] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:07:36] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m01s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m28s
ocr_text (2332 rows) ✓ 0m48s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m08s
meetings (1 rows) ✓ 0m00s
[+04m26s] ▶ Updating FTS indexes
elements_fts ✓ 0m46s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m01s
[+07m40s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
[+07m48s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m25s (283 files, 318M)
[2026-05-12 21:15:49] Archive DB size: 1.3G
[2026-05-12 21:15:49] Total time: 8m13s
[2026-05-12 21:15:49] Sync complete for 2026-05-11
[2026-05-12 21:15:49] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ open .
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 8923464
drwxr-xr-x 22 lukas staff 704 12 May 21:03 .
drwx------+ 96 lukas staff 3072 12 May 20:12 ..
-rw-r--r--@ 1 lukas staff 6148 12 May 21:25 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3739 lukas staff 119648 12 May 21:24 data
-rw-r--r--@ 1 lukas staff 4549767168 12 May 21:24 db.sqlite
-rw-r--r--@ 1 lukas staff 65536 12 May 21:01 db.sqlite-shm
-rw-r--r--@ 1 lukas staff 16611872 12 May 21:25 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 283731 12 May 21:24 screenpipe.2026-05-12.0.log
-rwxr-xr-x 1 lukas staff 15130 12 May 21:07 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
-rw-r--r--@ 1 lukas staff 11815 12 May 21:15 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ rm screenpipe_sync.sh
UW PICO 5.09 New Buffer
[ New file ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
UW PICO 5.09 New Buffer
[ Read 420 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
zsh: permission denied: /Users/lukas/.screenpipe/screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ chmod +x screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:08] ========================================
[2026-05-12 21:28:08] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:08] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
[2026-05-12 21:28:08] ERROR: NAS not mounted at /Volumes/Test/screenpipe
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ nano screenpipe_sync.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 21:28:50] ========================================
[2026-05-12 21:28:50] Screenpipe sync starting for: 2026-05-11
[2026-05-12 21:28:50] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
audio_chunks: 2507
audio_transcriptions: 226
[+00m01s] ▶ Initialising tables, indexes, FTS
creating tables ✓ 0m00s
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m01s
[+00m03s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m24s
ocr_text (2332 rows) ✓ 0m45s
ui_events (7063 rows) ✓ 0m01s
elements (672129 rows) ✓ 1m01s
meetings (1 rows) ✓ 0m01s
audio_chunks (2507 rows) ✓ 0m00s
audio_transcriptions (226 rows) ✓ 0m00s
[+04m15s] ▶ Updating FTS indexes
elements_fts ✓ 0m48s
frames_fts ✓ 2m27s
ui_events_fts ✓ 0m00s
audio_transcriptions_fts ✓ 0m00s
[+07m30s] ▶ Verifying DB
frames: 6857 / 6857 ✓
elements: 672129 / 672129 ✓
ui_events: 7063 / 7063 ✓
ocr_text: 2332 / 2332 ✓
meetings: 1 / 1 ✓
audio_chunks: 2507 / 2507 ✓
audio_transcriptions: 226 / 226 ✓
[+07m39s] ▶ Copying data folder for 2026-05-11
rsync 2026-05-11/ → NAS ✓ 0m01s (283 files, 318M)
[+07m41s] ▶ Copying screenpipe logs for 2026-05-11
rsync logs → NAS ✓ 1 file(s), 520K
[2026-05-12 21:36:31] Archive DB size: 1.3G
[2026-05-12 21:36:31] Total time: 7m41s
[2026-05-12 21:36:31] Sync complete for 2026-05-11
[2026-05-12 21:36:31] ========================================
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-stop
screenpipe stopped
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ sp-status
{
"status": "degraded",
"frame_status": "ok",
"audio_status": "stale",
"last_frame": "2026-05-13T11:27:35+03:00",
"uptime": 7854.077230416,
"fps": 0.27488907183634176,
"frames": 2159
}
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ alias sp-status
sp-status='curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ curl -s [URL_WITH_CREDENTIALS] ~/.screenpipe $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
UW PICO 5.09 New Buffer
[ Read 139 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
/Users/lukas/.screenpipe/scripts/screenpipe_sync.sh: line 28: /Users/lukas/.screenpipe/scripts/lib/lib/screenpipe_sync_files.sh: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ll
total 9468000
drwxr-xr-x 24 lukas staff 768 13 May 11:25 .
drwx------+ 96 lukas staff 3072 13 May 09:16 ..
-rw-r--r--@ 1 lukas staff 10244 13 May 11:26 .DS_Store
-rw-r--r--@ 1 lukas staff 37 11 May 20:54 .sync_install_id
-rw-r--r-- 1 lukas staff 0 10 May 14:43 clipboard-disabled-after-crash
drwxr-xr-x 3996 lukas staff 127872 13 May 11:31 data
-rw-r--r--@ 1 lukas staff 4844216320 13 May 11:31 db.sqlite
-rw-r--r-- 1 lukas staff 65536 13 May 09:17 db.sqlite-shm
-rw-r--r-- 1 lukas staff 955872 13 May 11:31 db.sqlite-wal
drwxr-xr-x 9 lukas staff 288 10 May 11:39 pipes
-rw-r--r-- 1 lukas staff 28408 6 May 21:02 screenpipe.2026-05-06.0.log
-rw-r--r-- 1 lukas staff 566164 7 May 21:50 screenpipe.2026-05-07.0.log
-rw-r--r-- 1 lukas staff 382102 8 May 22:20 screenpipe.2026-05-08.0.log
-rw-r--r-- 1 lukas staff 167023 9 May 23:04 screenpipe.2026-05-09.0.log
-rw-r--r-- 1 lukas staff 88266 10 May 23:51 screenpipe.2026-05-10.0.log
-rw-r--r-- 1 lukas staff 528943 11 May 22:54 screenpipe.2026-05-11.0.log
-rw-r--r-- 1 lukas staff 294131 12 May 21:46 screenpipe.2026-05-12.0.log
-rw-r--r-- 1 lukas staff 86812 13 May 11:31 screenpipe.2026-05-13.0.log
-rwxr-xr-x 1 lukas staff 18401 12 May 21:28 screenpipe_sync.sh
-rwxr-xr-x@ 1 lukas staff 32005 11 May 20:54 screenpipe_sync.sh-bakk
-rwxr-xr-x@ 1 lukas staff 14994 6 May 20:26 screenpipe_sync.sh.bak
-rwxr-xr-x@ 1 lukas staff 21485 10 May 13:34 screenpipe_sync.sh.bak2
drwxr-xr-x 5 lukas staff 160 13 May 11:26 scripts
-rw-r--r--@ 1 lukas staff 13813 12 May 21:36 sync.log
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ cd scripts/lib
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ll
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11643 13 May 10:24 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4896 13 May 11:22 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_db.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ nano screenpipe_sync_files.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ ls -la ~/.screenpipe/scripts/lib/
total 48
drwxrwxrwx 5 lukas staff 160 13 May 10:24 .
drwxr-xr-x 5 lukas staff 160 13 May 11:26 ..
-rwxrwxrwx 1 lukas staff 11635 13 May 11:33 screenpipe_sync_db.sh
-rwxrwxrwx 1 lukas staff 4890 13 May 11:34 screenpipe_sync_files.sh
-rwxrwxrwx 1 lukas staff 2997 13 May 10:23 screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cat ~/.screenpipe/scripts/lib/screenpipe_sync_helpers.sh
#!/bin/bash
# screenpipe_sync_helpers.sh
# Helper functions for screenpipe sync scripts
# Source this file in other scripts to use the helpers
# ─── CONFIG ───────────────────────────────────────────────────────────────────
# These can be overridden by the sourcing script
SCRIPT_START=${SCRIPT_START:-$(date +%s)}
DB_SRC="${DB_SRC:-$HOME/.screenpipe/db.sqlite}"
LOG_FILE="${LOG_FILE:-$HOME/.screenpipe/sync.log}"
# ──────────────────────────────────────────────────────────────────────────────
# ─── HELPERS ──────────────────────────────────────────────────────────────────
log() {
local msg="[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$msg" | tee -a "$LOG_FILE"
}
step() {
local now=$(date +%s)
local elapsed=$(( now - SCRIPT_START ))
local min=$(( elapsed / 60 ))
local sec=$(( elapsed % 60 ))
printf "\n[+%02dm%02ds] ▶ %s\n" "$min" "$sec" "$*" | tee -a "$LOG_FILE"
}
run_sqlite_heredoc() {
local label="$1"
local sql="$2"
local start=$(date +%s)
printf " %-36s " "$label"
sqlite3 "$DB_SRC" <<< "$sql" &
local pid=$!
local spin=[PASSWORD] '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31383
|
1229
|
21
|
2026-05-13T08:37:04.793948+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661424793_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
while kill -0 "$pid" 2>/dev/null; do
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh","depth":4,"on_screen":true,"value":"while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
6312035286386496901
|
-8934624564712543840
|
visual_change
|
accessibility
|
NULL
|
while kill -0 "$pid" 2>/dev/null; do
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
31382
|
NULL
|
NULL
|
NULL
|
|
31384
|
1229
|
22
|
2026-05-13T08:37:13.816403+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661433816_m1.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
while kill -0 "$pid" 2>/dev/null; do
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","depth":4,"on_screen":true,"value":"while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.0,"top":0.05888889,"width":0.19722222,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.004166667,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.19722222,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.2013889,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.3940972,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.3982639,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.59097224,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.5951389,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.7878472,"top":0.05888889,"width":0.196875,"height":0.026666667},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.7920139,"top":0.06333333,"width":0.011111111,"height":0.017777778},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.95625,"top":0.032222223,"width":0.03888889,"height":0.018888889},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.4888889,"top":0.033333335,"width":0.022916667,"height":0.017777778},"on_screen":true,"role_description":"text"}]...
|
6781208629539466581
|
-8353730564353922816
|
click
|
accessibility
|
NULL
|
while kill -0 "$pid" 2>/dev/null; do
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31385
|
1230
|
16
|
2026-05-13T08:37:13.816413+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661433816_m2.jpg...
|
iTerm2
|
-zsh
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
while kill -0 "$pid" 2>/dev/null; do
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
[{"role":"AXTextArea","text [{"role":"AXTextArea","text":"while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","depth":4,"bounds":{"left":0.27027926,"top":0.4309657,"width":0.4793883,"height":0.56903434},"on_screen":true,"value":"while kill -0 \"$pid\" 2>/dev/null; do\n printf \"\\r %-36s %s \" \"$label\" \"${spin[$i]}\"\n i=$(( (i + 1) % 10 ))\n sleep 0.2\n done\n wait \"$pid\"\n local rc=$?\n if [ $rc -ne 0 ]; then\n printf \"\\r %-36s ✗ FAILED\\n\" \"$label\" | tee -a \"$LOG_FILE\"\n exit $rc\n fi\n\n local dur=$(( $(date +%s) - start ))\n printf \"\\r %-36s ✓ %dm%02ds\\n\" \"$label\" \"$(( dur / 60 ))\" \"$(( dur % 60 ))\" | tee -a \"$LOG_FILE\"\n}\n\ncheck() {\n local label=\"$1\" got=\"$2\" expected=\"$3\"\n if [ \"$got\" -eq \"$expected\" ]; then\n printf \" %-20s %s / %s ✓\\n\" \"$label:\" \"$got\" \"$expected\"\n else\n printf \" %-20s %s / %s ✗ MISMATCH\\n\" \"$label:\" \"$got\" \"$expected\"\n fi\n}\n# ──────────────────────────────────────────────────────────────────────────────\n\n# If this script is executed directly (not sourced), run a test\nif [[ \"${BASH_SOURCE[0]}\" == \"${0}\" ]]; then\n echo \"screenpipe_sync_helpers.sh - Helper functions test\"\n echo \"This script should be sourced, not executed directly.\"\n echo \"\"\n echo \"Usage:\"\n echo \" source ./lib/screenpipe_sync_helpers.sh\"\n echo \"\"\n echo \"Available functions:\"\n echo \" log(msg)\"\n echo \" step(msg)\"\n echo \" run_sqlite_heredoc(label, sql)\"\n echo \" check(label, got, expected)\"\nfi\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts\nsource lib/screenpipe_sync_helpers.sh\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11\n/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s\n\n# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────\n\ndb_init_tables() {\n run_sqlite_heredoc creating: No such file or directory\nlukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $","is_focused":true},{"role":"AXRadioButton","text":"DOCKER","depth":2,"bounds":{"left":0.27027926,"top":1.0,"width":0.0944149,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.27227393,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"DEV (-zsh)","depth":2,"bounds":{"left":0.36469415,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.36668882,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"APP (-zsh)","depth":2,"bounds":{"left":0.45894283,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.4609375,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"-zsh","depth":2,"bounds":{"left":0.5531915,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.55518615,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"screenpipe\"","depth":2,"bounds":{"left":0.64744014,"top":1.0,"width":0.09424867,"height":-0.042298436},"on_screen":true,"role_description":"radio button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Close Tab","depth":3,"bounds":{"left":0.64943486,"top":1.0,"width":0.005319149,"height":-0.04549086},"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"⌥⌘1","depth":1,"bounds":{"left":0.7280585,"top":1.0,"width":0.01861702,"height":-0.023144484},"on_screen":true,"automation_id":"_NS:8","role_description":"text"},{"role":"AXStaticText","text":"-zsh","depth":1,"bounds":{"left":0.5043218,"top":1.0,"width":0.010970744,"height":-0.02394259},"on_screen":true,"role_description":"text"}]...
|
6781208629539466581
|
-8353730564353922816
|
click
|
accessibility
|
NULL
|
while kill -0 "$pid" 2>/dev/null; do
while kill -0 "$pid" 2>/dev/null; do
printf "\r %-36s %s " "$label" "${spin[$i]}"
i=$(( (i + 1) % 10 ))
sleep 0.2
done
wait "$pid"
local rc=$?
if [ $rc -ne 0 ]; then
printf "\r %-36s ✗ FAILED\n" "$label" | tee -a "$LOG_FILE"
exit $rc
fi
local dur=$(( $(date +%s) - start ))
printf "\r %-36s ✓ %dm%02ds\n" "$label" "$(( dur / 60 ))" "$(( dur % 60 ))" | tee -a "$LOG_FILE"
}
check() {
local label="$1" got="$2" expected="$3"
if [ "$got" -eq "$expected" ]; then
printf " %-20s %s / %s ✓\n" "$label:" "$got" "$expected"
else
printf " %-20s %s / %s ✗ MISMATCH\n" "$label:" "$got" "$expected"
fi
}
# ──────────────────────────────────────────────────────────────────────────────
# If this script is executed directly (not sourced), run a test
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "screenpipe_sync_helpers.sh - Helper functions test"
echo "This script should be sourced, not executed directly."
echo ""
echo "Usage:"
echo " source ./lib/screenpipe_sync_helpers.sh"
echo ""
echo "Available functions:"
echo " log(msg)"
echo " step(msg)"
echo " run_sqlite_heredoc(label, sql)"
echo " check(label, got, expected)"
fi
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ source screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts/lib $ cd ~/.screenpipe/scripts
source lib/screenpipe_sync_helpers.sh
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ clear
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $ ~/.screenpipe/scripts/screenpipe_sync.sh 2026-05-11
/Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_db.sh: line 13: /Users/lukas/.screenpipe/scripts/lib/screenpipe_sync_helpers.s
# ─── DB FUNCTIONS ─────────────────────────────────────────────────────────────
db_init_tables() {
run_sqlite_heredoc creating: No such file or directory
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe/scripts $
DOCKER
Close Tab
DEV (-zsh)
Close Tab
APP (-zsh)
Close Tab
-zsh
Close Tab
screenpipe"
Close Tab
⌥⌘1
-zsh...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31386
|
1229
|
23
|
2026-05-13T08:37:17.142877+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661437142_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac....
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"on_screen":true,"role_description":"text"}]...
|
4070188788529245959
|
2842348576940998829
|
visual_change
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac....
|
31384
|
NULL
|
NULL
|
NULL
|
|
31387
|
1230
|
17
|
2026-05-13T08:37:17.155852+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661437155_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.76163566,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.76163566,"top":0.054269753,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76396275,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.08211436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.84640956,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"bounds":{"left":0.85139626,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.08643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.04488032,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.98537236,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.08111702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.07513298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.8849734,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"bounds":{"left":0.92353725,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.093417555,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.85771275,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"bounds":{"left":0.86236703,"top":0.07102953,"width":0.111369684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"bounds":{"left":0.9744016,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.01662234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"bounds":{"left":0.81648934,"top":0.07102953,"width":0.015292553,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.027925532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"bounds":{"left":0.81549203,"top":0.07102953,"width":0.059840426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.88098407,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.9182181,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"bounds":{"left":0.7765958,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"bounds":{"left":0.83045214,"top":0.07102953,"width":0.05851064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"bounds":{"left":0.88962764,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"bounds":{"left":0.89461434,"top":0.07102953,"width":0.035904255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"bounds":{"left":0.93151593,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.10239362,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.18218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1100399,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.1306516,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.05086436,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.057513297,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0831117,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.06382979,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.07180851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.08676862,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"bounds":{"left":0.81083775,"top":0.07102953,"width":0.045212764,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
-7085370800426226298
|
2842348044374491821
|
click
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857...
|
31385
|
NULL
|
NULL
|
NULL
|
|
31388
|
1229
|
24
|
2026-05-13T08:37:20.162860+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661440162_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true
Thoughts
screenpipe_sync.sh
+
2
CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;
DETACH nas;
Thoughts
screenpipe_sync.sh
+
3
CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);
CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);
DETACH nas;
Thought
for 1s
screenpipe_sync.sh
+
8
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
);
DETACH nas;
Thoughts
screenpipe_sync.sh
+
16
WHERE date(c.timestamp) = '
$TARGET_DATE
';
DETACH nas;
"
# ─── FTS UPDATE ───────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
11
AND t.transcription IS NOT NULL;
DETACH nas;
"
# ─── VERIFY DB ────────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
2
V_MEETINGS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start)= '
$TARGET_DATE
';"
)
V_ACHUNKS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
V_ATRANS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thoughts
screenpipe_sync.sh
+
2
check
"meetings"
"
$V_MEETINGS
"
"
$SRC_MEETINGS
"
check
"audio_chunks"
"
$V_ACHUNKS
"
"
$SRC_ACHUNKS
"
check
"audio_transcriptions"
"
$V_ATRANS
"
"
$SRC_ATRANS...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"16m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"4m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll fix both scripts to handle tables without an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh and screenpipe_fts_migrate.sh","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"done","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# For tables without 'id', use rowid instead","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"CREATE UNIQUE INDEX IF NOT EXISTS idx_${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}_install_pk ON ${","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tbl","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"}(install_id, rowid);\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed both scripts. They now check if a table has an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column before creating the unique index. If the table lacks an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column (like","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"), it uses","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"instead.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Changes made:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 369-375): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"(line 106-113): Added check for","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column, fallback to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"rowid","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You can now retry running the sync script from your Mac.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[2026-05-12 20:58:45] ========================================","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Preflight checks","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Source DB: OK (4.2G)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"NAS mount: OK /Volumes/screenpipe","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Archive DB: will be created","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Data dir: OK (283 files, 318M)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Counting source rows for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames: 6857","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements: 672129","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ui_events: 7063","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text: 2332","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"meetings: 1","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m00s] ▶ Reconciling NAS schema with source","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: video_chunks ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: frames ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: elements ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ocr_text ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: ui_events ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"schema: meetings ✓ in sync","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating indexes ✓ 0m01s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"creating FTS tables ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[+00m02s] ▶ Syncing data for 2026-05-11","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"video_chunks ✓ 0m00s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames (6857 rows) ✓ 2m37s","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"acted_at\") SELECT \"frame_id\",\"text\",\"text_json\",\"app_name\",\"ocr_engine\",\"win","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"error here ---^","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT OR IGNORE INTO nas.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.* FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"JOIN main.frames f ON o.frame_id = f.id","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT by explicitly listing columns instead of using","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.*","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", which caused the ambiguous column name error with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"existing in both","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me also check the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table INSERT since it also uses a JOIN with frames and might have the same issue:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script you're running is","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe_sync.sh","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on your Mac, but I've been editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on the NAS. These are different files.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You need to either:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Copy the fixed script from NAS to Mac, or","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Apply the same fix to your Mac's script","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix for the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ambiguous column error is to change:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"*","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.frame_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_json,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.app_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.ocr_engine,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.window_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.focused,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_length,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.sync_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.synced_at,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Which script are you actually running on your Mac - the one in","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"?","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Now add also audio data. CREATE TABLE audio_chunks (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"file_path TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"machine_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"evicted_at TIMESTAMP DEFAULT NULL","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE \"audio_transcriptions\" (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunk_id INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"offset_index INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device TEXT NOT NULL DEFAULT '',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"is_input_device BOOLEAN NOT NULL DEFAULT TRUE,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription_engine TEXT NOT NULL DEFAULT 'Whisper',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"start_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"end_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"text_length INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"redacted_at INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me first check the current script structure:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me make the necessary changes:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_MEETINGS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"5","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"printf","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\" %-20s %s\\n\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions:\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_FRAMES","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"] && [","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"log","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"No frames or audio chunks found for","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"— skipping DB sync\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DB_ALREADY_SYNCED","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"true","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":");","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"16","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"WHERE date(c.timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# ─── FTS UPDATE ───────────────────────────────────────────────────────────","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"11","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"AND t.transcription IS NOT NULL;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# ─── VERIFY DB ────────────────────────────────────────────────────────────","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"V_MEETINGS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start)= '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"V_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"V_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"check","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"meetings\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$V_MEETINGS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_MEETINGS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"check","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_chunks\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$V_ACHUNKS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ACHUNKS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"check","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$V_ATRANS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ATRANS","depth":23,"on_screen":true,"role_description":"text"}]...
|
-4932897227671646684
|
3986283154019706717
|
visual_change
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
16m
4m
2m
1m
Show More
Thoughts
I'll fix both scripts to handle tables without an
id
column.
Read
screenpipe_sync.sh and screenpipe_fts_migrate.sh
Thought
for 1s
screenpipe_sync.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
done
screenpipe_fts_migrate.sh
+
8
-
1
else
# For tables without 'id', use rowid instead
sqlite3
"
$NAS_DB
"
"CREATE UNIQUE INDEX IF NOT EXISTS idx_${
tbl
}_install_pk ON ${
tbl
}(install_id, rowid);"
fi
fi
Thoughts
Fixed both scripts. They now check if a table has an
id
column before creating the unique index. If the table lacks an
id
column (like
ocr_text
), it uses
rowid
instead.
Changes made:
screenpipe_sync.sh
(line 369-375): Added check for
id
column, fallback to
rowid
screenpipe_fts_migrate.sh
(line 106-113): Added check for
id
column, fallback to
rowid
You can now retry running the sync script from your Mac.
Feedback submitted
lukas@Lukas-Kovaliks-MacBook-Pro-Jiminny ~/.screenpipe $ ~/.screenpipe/screenpipe_sync.sh 2026-05-11
[2026-05-12 20:58:45] ========================================
[2026-05-12 20:58:45] Screenpipe sync starting for: 2026-05-11
[2026-05-12 20:58:45] ========================================
[+00m00s] ▶ Preflight checks
Source DB: OK (4.2G)
NAS mount: OK /Volumes/screenpipe
Archive DB: will be created
Data dir: OK (283 files, 318M)
[+00m00s] ▶ Counting source rows for 2026-05-11
frames: 6857
elements: 672129
ui_events: 7063
ocr_text: 2332
meetings: 1
[+00m00s] ▶ Initialising tables (CREATE IF NOT EXISTS)
creating tables ✓ 0m00s
[+00m00s] ▶ Reconciling NAS schema with source
schema: video_chunks ✓ in sync
schema: frames ✓ in sync
schema: elements ✓ in sync
schema: ocr_text ✓ in sync
schema: ui_events ✓ in sync
schema: meetings ✓ in sync
creating indexes ✓ 0m01s
creating FTS tables ✓ 0m00s
[+00m02s] ▶ Syncing data for 2026-05-11
video_chunks ✓ 0m00s
frames (6857 rows) ✓ 2m37s
ocr_text (2332 rows) ⠋ Parse error near line 3: ambiguous column name: app_name
acted_at") SELECT "frame_id","text","text_json","app_name","ocr_engine","win
error here ---^
Expand content to scroll
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true
Thoughts
screenpipe_sync.sh
+
2
CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;
DETACH nas;
Thoughts
screenpipe_sync.sh
+
3
CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);
CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);
DETACH nas;
Thought
for 1s
screenpipe_sync.sh
+
8
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
);
DETACH nas;
Thoughts
screenpipe_sync.sh
+
16
WHERE date(c.timestamp) = '
$TARGET_DATE
';
DETACH nas;
"
# ─── FTS UPDATE ───────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
11
AND t.transcription IS NOT NULL;
DETACH nas;
"
# ─── VERIFY DB ────────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
2
V_MEETINGS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start)= '
$TARGET_DATE
';"
)
V_ACHUNKS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
V_ATRANS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thoughts
screenpipe_sync.sh
+
2
check
"meetings"
"
$V_MEETINGS
"
"
$SRC_MEETINGS
"
check
"audio_chunks"
"
$V_ACHUNKS
"
"
$SRC_ACHUNKS
"
check
"audio_transcriptions"
"
$V_ATRANS
"
"
$SRC_ATRANS...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31389
|
1230
|
18
|
2026-05-13T08:37:42.116747+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661462116_m2.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
17m
1m
1m
Show More
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true
Thoughts
screenpipe_sync.sh
+
2
CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;
DETACH nas;
Thoughts
screenpipe_sync.sh
+
3
CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);
CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);
DETACH nas;
Thought
for 1s
screenpipe_sync.sh
+
8
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
);
DETACH nas;
Thoughts
screenpipe_sync.sh
+
16
WHERE date(c.timestamp) = '
$TARGET_DATE
';
DETACH nas;
"
# ─── FTS UPDATE ───────────────────────────────────────────────────────────
Thoughts...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"bounds":{"left":0.0,"top":0.047885075,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.05586592,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"bounds":{"left":0.0,"top":0.07581804,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.083798885,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"bounds":{"left":0.0,"top":0.103751,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.11173184,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"bounds":{"left":0.005319149,"top":0.11811652,"width":0.0033244682,"height":0.007980846},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.0056515955,"top":0.118914604,"width":0.0013297872,"height":0.0071827616}},{"char_start":1,"char_count":1,"bounds":{"left":0.006981383,"top":0.118914604,"width":0.0016622341,"height":0.0071827616}}],"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"bounds":{"left":0.0,"top":0.13168396,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.1396648,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"bounds":{"left":0.0,"top":0.15961692,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"bounds":{"left":0.0,"top":0.18754987,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.19553073,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"bounds":{"left":0.0,"top":0.21548285,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.22346368,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"bounds":{"left":0.0,"top":0.2434158,"width":0.011635638,"height":0.02793296},"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"bounds":{"left":0.0033244682,"top":0.25139666,"width":0.004986702,"height":0.011971269},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"bounds":{"left":0.01462766,"top":0.047885075,"width":0.013630319,"height":0.023144454},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"bounds":{"left":0.01462766,"top":0.054269753,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.014960106,"top":0.055067837,"width":0.0019946808,"height":0.008778931}},{"char_start":1,"char_count":7,"bounds":{"left":0.016954787,"top":0.055067837,"width":0.011303191,"height":0.008778931}}],"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"bounds":{"left":0.011635638,"top":0.07102953,"width":0.0831117,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.0726257,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"bounds":{"left":0.016954787,"top":0.07102953,"width":0.035904255,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"bounds":{"left":0.016954787,"top":0.07342378,"width":0.035904255,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.07342378,"width":0.0019946808,"height":0.009577015}},{"char_start":1,"char_count":20,"bounds":{"left":0.018949468,"top":0.07342378,"width":0.034242023,"height":0.009577015}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.08699122,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.08699122,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"bounds":{"left":0.025930852,"top":0.08699122,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.087789305,"width":0.0026595744,"height":0.0103751}},{"char_start":1,"char_count":7,"bounds":{"left":0.02825798,"top":0.087789305,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.10215483,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.10215483,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0063164895,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.10215483,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":2,"bounds":{"left":0.027925532,"top":0.10215483,"width":0.004654255,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.10215483,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.11652035,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.11652035,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"bounds":{"left":0.025930852,"top":0.11652035,"width":0.0076462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.11731844,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":3,"bounds":{"left":0.02825798,"top":0.11731844,"width":0.005319149,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.01462766,"top":0.13088587,"width":0.0043218085,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"bounds":{"left":0.025930852,"top":0.13088587,"width":0.0039893617,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.13168396,"width":0.0009973404,"height":0.0103751}},{"char_start":1,"char_count":2,"bounds":{"left":0.026928192,"top":0.13168396,"width":0.0033244682,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.13168396,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.14604948,"width":0.003656915,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"bounds":{"left":0.027925532,"top":0.14604948,"width":0.039893616,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.14604948,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":20,"bounds":{"left":0.029920213,"top":0.14604948,"width":0.037898935,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.14604948,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.16041501,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"bounds":{"left":0.027925532,"top":0.16041501,"width":0.04255319,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.16121309,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":23,"bounds":{"left":0.029920213,"top":0.16121309,"width":0.04089096,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.16121309,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.021941489,"top":0.17478053,"width":0.003656915,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"bounds":{"left":0.027925532,"top":0.17478053,"width":0.048204787,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.02825798,"top":0.17557861,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.029920213,"top":0.17557861,"width":0.046210106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.17557861,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.18994413,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.18994413,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.006981383,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.18994413,"width":0.0009973404,"height":0.011173184}},{"char_start":1,"char_count":3,"bounds":{"left":0.026928192,"top":0.18994413,"width":0.0063164895,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.08676862,"top":0.18994413,"width":0.0039893617,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"bounds":{"left":0.014295213,"top":0.20430966,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.20430966,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"bounds":{"left":0.025930852,"top":0.20430966,"width":0.00930851,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.20510775,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":4,"bounds":{"left":0.02825798,"top":0.20510775,"width":0.006981383,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.21867518,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"bounds":{"left":0.025930852,"top":0.21867518,"width":0.015957447,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.21947326,"width":0.0013297872,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.026928192,"top":0.21947326,"width":0.014960106,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.23383878,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.029920213,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.23383878,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":16,"bounds":{"left":0.027925532,"top":0.23383878,"width":0.027925532,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.2482043,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"bounds":{"left":0.025930852,"top":0.2482043,"width":0.01761968,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.2490024,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":9,"bounds":{"left":0.027925532,"top":0.2490024,"width":0.015625,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.26256984,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"bounds":{"left":0.025930852,"top":0.26256984,"width":0.025265958,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.26336792,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":13,"bounds":{"left":0.027925532,"top":0.26336792,"width":0.023603724,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.26336792,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.27773345,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.046210106,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.27773345,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":27,"bounds":{"left":0.027925532,"top":0.27773345,"width":0.04454787,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.27773345,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.29209897,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"bounds":{"left":0.025930852,"top":0.29209897,"width":0.01462766,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.29289705,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":8,"bounds":{"left":0.02825798,"top":0.29289705,"width":0.012300532,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3064645,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"bounds":{"left":0.025930852,"top":0.3064645,"width":0.023271276,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.30726257,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.30726257,"width":0.021276595,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3216281,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.021941489,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3216281,"width":0.0023271276,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.02825798,"top":0.3216281,"width":0.019614361,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.33599362,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"bounds":{"left":0.025930852,"top":0.33599362,"width":0.04488032,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.3367917,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":24,"bounds":{"left":0.027925532,"top":0.3367917,"width":0.04288564,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.3367917,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.35035914,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"bounds":{"left":0.025930852,"top":0.35035914,"width":0.042220745,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.35115722,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":22,"bounds":{"left":0.027925532,"top":0.35115722,"width":0.04055851,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.35115722,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.36552274,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.04055851,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.36552274,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":21,"bounds":{"left":0.027925532,"top":0.36552274,"width":0.03856383,"height":0.011173184}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.36552274,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.37988827,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"bounds":{"left":0.025930852,"top":0.37988827,"width":0.04920213,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.38068634,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":25,"bounds":{"left":0.027925532,"top":0.38068634,"width":0.047539894,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"bounds":{"left":0.087765954,"top":0.38068634,"width":0.0026595744,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.3942538,"width":0.0039893617,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"bounds":{"left":0.025930852,"top":0.3942538,"width":0.03357713,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.39505187,"width":0.0019946808,"height":0.0103751}},{"char_start":1,"char_count":17,"bounds":{"left":0.027925532,"top":0.39505187,"width":0.03158245,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"bounds":{"left":0.087101065,"top":0.39505187,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"bounds":{"left":0.019614361,"top":0.4094174,"width":0.0039893617,"height":0.0103751},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.023936171,"height":0.0103751},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.025930852,"top":0.4094174,"width":0.0019946808,"height":0.011173184}},{"char_start":1,"char_count":12,"bounds":{"left":0.027925532,"top":0.4094174,"width":0.022273935,"height":0.011173184}}],"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"bounds":{"left":0.011635638,"top":0.95530725,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.95690346,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"bounds":{"left":0.016954787,"top":0.95530725,"width":0.011635638,"height":0.015163607},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"bounds":{"left":0.016954787,"top":0.9577015,"width":0.011635638,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9584996,"width":0.0026595744,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.019946808,"top":0.9584996,"width":0.008976064,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"bounds":{"left":0.011635638,"top":0.9696728,"width":0.0831117,"height":0.015163607},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.011968086,"top":0.97206706,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"bounds":{"left":0.016954787,"top":0.97047085,"width":0.013630319,"height":0.014365523},"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"bounds":{"left":0.016954787,"top":0.9728651,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.017287234,"top":0.9728651,"width":0.0023271276,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.019281914,"top":0.9728651,"width":0.011635638,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"bounds":{"left":0.0016622341,"top":0.9848364,"width":0.024268618,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.0039893617,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"bounds":{"left":0.00831117,"top":0.98723066,"width":0.015292553,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.008643617,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":7,"bounds":{"left":0.009640957,"top":0.98723066,"width":0.012300532,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"bounds":{"left":0.027260639,"top":0.9848364,"width":0.019281914,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.027925532,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"bounds":{"left":0.032247342,"top":0.98723066,"width":0.013630319,"height":0.009577015},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.032579787,"top":0.98723066,"width":0.0009973404,"height":0.009577015}},{"char_start":1,"char_count":6,"bounds":{"left":0.03357713,"top":0.98723066,"width":0.010970744,"height":0.009577015}}],"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"bounds":{"left":0.04654255,"top":0.9848364,"width":0.0063164895,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"bounds":{"left":0.054853722,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.05618351,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.06050532,"top":0.98723066,"width":0.0043218085,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.064494684,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"bounds":{"left":0.069148935,"top":0.98723066,"width":0.0029920214,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"bounds":{"left":0.07513298,"top":0.9848364,"width":0.010305851,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"bounds":{"left":0.07646277,"top":0.98643255,"width":0.004654255,"height":0.011173184},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"bounds":{"left":0.080784574,"top":0.98723066,"width":0.0033244682,"height":0.009577015},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"bounds":{"left":0.99102396,"top":0.9848364,"width":0.008976042,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"bounds":{"left":0.9567819,"top":0.9848364,"width":0.03357713,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"bounds":{"left":0.9421542,"top":0.9848364,"width":0.012965426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"bounds":{"left":0.91988033,"top":0.9848364,"width":0.020611702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"bounds":{"left":0.9115692,"top":0.9848364,"width":0.0066489363,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"bounds":{"left":0.8969415,"top":0.9848364,"width":0.013297873,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"bounds":{"left":0.87699467,"top":0.9848364,"width":0.01861702,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"bounds":{"left":0.83144945,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":0.7865692,"top":0.9848364,"width":0.044215426,"height":0.014365523},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"bounds":{"left":0.76163566,"top":0.05347167,"width":0.034574468,"height":0.011173184},"on_screen":true,"lines":[{"char_start":0,"char_count":1,"bounds":{"left":0.76163566,"top":0.054269753,"width":0.0023271276,"height":0.0103751}},{"char_start":1,"char_count":19,"bounds":{"left":0.76396275,"top":0.054269753,"width":0.032247342,"height":0.0103751}}],"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"17m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23238032,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.053856384,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.8181516,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"bounds":{"left":0.83410907,"top":0.07102953,"width":0.04654255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"bounds":{"left":0.88164896,"top":0.07102953,"width":0.010970744,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"bounds":{"left":0.89361703,"top":0.07102953,"width":0.046210106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.94082445,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22772606,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.9175532,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"bounds":{"left":0.9331782,"top":0.07102953,"width":0.017952127,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.11303192,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.87732714,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22805852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"bounds":{"left":0.82546544,"top":0.07102953,"width":0.0013297872,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.07945479,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.03158245,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.79587764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.8015292,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"bounds":{"left":0.8071808,"top":0.07102953,"width":0.019614361,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.105053194,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.105053194,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98337764,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"bounds":{"left":0.9857048,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.9886968,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"bounds":{"left":0.99035907,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT OR IGNORE INTO nas.ocr_text","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0625,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.* FROM main.ocr_text o","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.060837764,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.22972074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM main.ocr_text o","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"JOIN main.frames f ON o.frame_id = f.id","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.075465426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.01761968,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.7815825,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT by explicitly listing columns instead of using","depth":21,"bounds":{"left":0.7975399,"top":0.07102953,"width":0.09507979,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.*","depth":22,"bounds":{"left":0.89361703,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", which caused the ambiguous column name error with","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.22606383,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"existing in both","depth":21,"bounds":{"left":0.78856385,"top":0.07102953,"width":0.029587766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.81914896,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":21,"bounds":{"left":0.83477396,"top":0.07102953,"width":0.008976064,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"bounds":{"left":0.84474736,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"bounds":{"left":0.85704786,"top":0.07102953,"width":0.0009973404,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me also check the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.040226065,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements","depth":22,"bounds":{"left":0.80452126,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table INSERT since it also uses a JOIN with frames and might have the same issue:","depth":21,"bounds":{"left":0.82014626,"top":0.07102953,"width":0.14860372,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.106715426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script you're running is","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.049867023,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe_sync.sh","depth":22,"bounds":{"left":0.81416225,"top":0.07102953,"width":0.058843084,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on your Mac, but I've been editing","depth":21,"bounds":{"left":0.87400264,"top":0.07102953,"width":0.062832445,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.9368351,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.9424867,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on the NAS. These are different files.","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.23038563,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You need to either:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.033909574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Copy the fixed script from NAS to Mac, or","depth":22,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.07480053,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Apply the same fix to your Mac's script","depth":22,"bounds":{"left":0.7709442,"top":0.07102953,"width":0.06981383,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix for the","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.026263298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"bounds":{"left":0.79022604,"top":0.07102953,"width":0.014960106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ambiguous column error is to change:","depth":21,"bounds":{"left":0.8061835,"top":0.07102953,"width":0.06881649,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"bounds":{"left":0.77160907,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":23,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":23,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.0043218085,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"*","depth":23,"bounds":{"left":0.7849069,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.7869016,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":23,"bounds":{"left":0.78889626,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.796875,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":23,"bounds":{"left":0.79886967,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.82480055,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":23,"bounds":{"left":0.8267952,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.004654255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"bounds":{"left":0.77160907,"top":0.07102953,"width":0.007978723,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":24,"bounds":{"left":0.76662236,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.frame_id,","depth":24,"bounds":{"left":0.7805851,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80285907,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text,","depth":24,"bounds":{"left":0.80485374,"top":0.07102953,"width":0.013962766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8188165,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_json,","depth":24,"bounds":{"left":0.82081115,"top":0.07102953,"width":0.024268618,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.84474736,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.app_name,","depth":24,"bounds":{"left":0.84674203,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8686835,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.ocr_engine,","depth":24,"bounds":{"left":0.8706782,"top":0.07102953,"width":0.026263298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8969415,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.window_name,","depth":24,"bounds":{"left":0.89893615,"top":0.07102953,"width":0.02825798,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9268617,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.focused,","depth":24,"bounds":{"left":0.9288564,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9488032,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_length,","depth":24,"bounds":{"left":0.95079786,"top":0.07102953,"width":0.02825798,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9790558,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.sync_id,","depth":24,"bounds":{"left":0.98105055,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.synced_at,","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.redacted_at","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Which script are you actually running on your Mac - the one in","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.112034574,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/","depth":22,"bounds":{"left":0.8763298,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"?","depth":21,"bounds":{"left":0.90292555,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"bounds":{"left":0.7742686,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Now add also audio data. CREATE TABLE audio_chunks (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.09607713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.078125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"file_path TEXT NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.046875,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.041888297,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"machine_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.032247342,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"evicted_at TIMESTAMP DEFAULT NULL","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.06815159,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0013297872,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE \"audio_transcriptions\" (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0674867,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.078125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunk_id INTEGER NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.064494684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"offset_index INTEGER NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.058843084,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.061170213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription TEXT NOT NULL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.05319149,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device TEXT NOT NULL DEFAULT '',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0625,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"is_input_device BOOLEAN NOT NULL DEFAULT TRUE,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.0930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id INTEGER,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.03756649,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription_engine TEXT NOT NULL DEFAULT 'Whisper',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.099734046,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"start_time REAL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.03025266,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"end_time REAL,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.028590426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"text_length INTEGER,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.038231384,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.025930852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.038896278,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"redacted_at INTEGER,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.045545213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.109042555,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.10771277,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.024268618,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id,","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.021276595,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.05418883,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.034242023,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.037898935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"bounds":{"left":0.99268615,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.","depth":25,"bounds":{"left":0.7659575,"top":0.07102953,"width":0.203125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"bounds":{"left":0.87333775,"top":0.07102953,"width":0.012300532,"height":0.0007980846},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me first check the current script structure:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.18351063,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.008643617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.03324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.009640957,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me make the necessary changes:","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.16722074,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while editing","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.030585106,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.79488033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.80019945,"top":0.07102953,"width":0.036236703,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98769945,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"bounds":{"left":0.9900266,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_MEETINGS","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.796875,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"bounds":{"left":0.81349736,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.82613033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.828125,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '","depth":24,"bounds":{"left":0.82978725,"top":0.07102953,"width":0.11037234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.94015956,"top":0.07102953,"width":0.021941489,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"bounds":{"left":0.96210104,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"bounds":{"left":0.9674202,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ACHUNKS","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"bounds":{"left":0.7912234,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.79488033,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8078458,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"bounds":{"left":0.81349736,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.82613033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.828125,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"bounds":{"left":0.82978725,"top":0.07102953,"width":0.11037234,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.94015956,"top":0.07102953,"width":0.021941489,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"bounds":{"left":0.96210104,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"bounds":{"left":0.9674202,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ATRANS","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.01861702,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.7875665,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"bounds":{"left":0.78956115,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"bounds":{"left":0.7932181,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.005984043,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"bounds":{"left":0.81349736,"top":0.07102953,"width":0.012965426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.82613033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.828125,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"bounds":{"left":0.82978725,"top":0.07102953,"width":0.16555852,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"bounds":{"left":0.9950133,"top":0.07102953,"width":0.0003324468,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.9830452,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"5","depth":23,"bounds":{"left":0.9850399,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"bounds":{"left":0.98836434,"top":0.07102953,"width":0.0016622341,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"bounds":{"left":0.9896942,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"printf","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.011303191,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\" %-20s %s\\n\"","depth":24,"bounds":{"left":0.78224736,"top":0.07102953,"width":0.04055851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8224734,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions:\"","depth":24,"bounds":{"left":0.8244681,"top":0.07102953,"width":0.042220745,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.86668885,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.86835104,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ATRANS","depth":24,"bounds":{"left":0.8703458,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.8902925,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_FRAMES","depth":24,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.8005319,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8021942,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"bounds":{"left":0.80418885,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.80984044,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"bounds":{"left":0.81150264,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"] && [","depth":24,"bounds":{"left":0.8171542,"top":0.07102953,"width":0.01462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.8317819,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ACHUNKS","depth":24,"bounds":{"left":0.8334442,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.8557181,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.85738033,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"bounds":{"left":0.859375,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.8646942,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"bounds":{"left":0.86668885,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":24,"bounds":{"left":0.87200797,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":24,"bounds":{"left":0.8793218,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"log","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.0056515955,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"No frames or audio chunks found for","depth":24,"bounds":{"left":0.78025264,"top":0.07102953,"width":0.06815159,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.8480718,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"— skipping DB sync\"","depth":24,"bounds":{"left":0.8703458,"top":0.07102953,"width":0.036901597,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DB_ALREADY_SYNCED","depth":24,"bounds":{"left":0.77293885,"top":0.07102953,"width":0.03125,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"bounds":{"left":0.80418885,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"true","depth":24,"bounds":{"left":0.80585104,"top":0.07102953,"width":0.0076462766,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98769945,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"bounds":{"left":0.9900266,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.15990691,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.18916224,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.18916224,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98769945,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"bounds":{"left":0.9896942,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.16156915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.16888298,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.19281915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.18384309,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.014295213,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"bounds":{"left":0.77859044,"top":0.07102953,"width":0.00930851,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98769945,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"bounds":{"left":0.9896942,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.064494684,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.042220745,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.044215426,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":");","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"bounds":{"left":0.765625,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"bounds":{"left":0.77227396,"top":0.07102953,"width":0.03357713,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"bounds":{"left":0.98603725,"top":0.07102953,"width":0.0023271276,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"16","depth":23,"bounds":{"left":0.98836434,"top":0.07102953,"width":0.003656915,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"WHERE date(c.timestamp) = '","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.053523935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"bounds":{"left":0.8188165,"top":0.07102953,"width":0.022273935,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';","depth":24,"bounds":{"left":0.84075797,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.020279255,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0019946808,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"bounds":{"left":0.765625,"top":0.07102953,"width":0.0039893617,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# ─── FTS UPDATE ───────────────────────────────────────────────────────────","depth":24,"bounds":{"left":0.7692819,"top":0.07102953,"width":0.13962767,"height":0.0007980846},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"bounds":{"left":0.76329786,"top":0.07102953,"width":0.015957447,"height":0.0007980846},"on_screen":true,"role_description":"text"}]...
|
2994421881023384349
|
3842203168030582620
|
visual_change
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
17m
1m
1m
Show More
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true
Thoughts
screenpipe_sync.sh
+
2
CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;
DETACH nas;
Thoughts
screenpipe_sync.sh
+
3
CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);
CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);
DETACH nas;
Thought
for 1s
screenpipe_sync.sh
+
8
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
);
DETACH nas;
Thoughts
screenpipe_sync.sh
+
16
WHERE date(c.timestamp) = '
$TARGET_DATE
';
DETACH nas;
"
# ─── FTS UPDATE ───────────────────────────────────────────────────────────
Thoughts...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
31390
|
1229
|
25
|
2026-05-13T08:37:50.481611+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-13/1778 /Users/lukas/.screenpipe/data/data/2026-05-13/1778661470481_m1.jpg...
|
Windsurf
|
screenpipe [SSH: nas] — screenpipe_sync_files.sh — screenpipe [SSH: nas] — screenpipe_sync_files.sh — Untracked...
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
17m
1m
1m
Show More
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true
Thoughts
screenpipe_sync.sh
+
2
CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;
DETACH nas;
Thoughts
screenpipe_sync.sh
+
3
CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);
CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);
DETACH nas;
Thought
for 1s
screenpipe_sync.sh
+
8
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
);
DETACH nas;
Thoughts
screenpipe_sync.sh
+
16
WHERE date(c.timestamp) = '
$TARGET_DATE
';
DETACH nas;
"
# ─── FTS UPDATE ───────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
11
AND t.transcription IS NOT NULL;
DETACH nas;
"
# ─── VERIFY DB ────────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
2
V_MEETINGS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start)= '
$TARGET_DATE
';"
)
V_ACHUNKS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
V_ATRANS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thoughts
screenpipe_sync.sh
+
2
check
"meetings"
"
$V_MEETINGS
"
"
$SRC_MEETINGS
"
check
"audio_chunks"
"
$V_ACHUNKS
"
"
$SRC_ACHUNKS
"
check
"audio_transcriptions"
"
$V_ATRANS
"
"
$SRC_ATRANS
"
Thoughts
screenpipe_sync.sh
+
19
else
printf
" %-36s %s\n"
"rsync logs → NAS"
"skipped (no matching logs)"
fi
# ─── SUMMARY ──────────────────────────────────────────────────────────────────
Thought
for 1s
I've successfully added audio data syncing and log copying to the script. Here's what was added:
Audio Data Syncing:
Added
audio_chunks
and
audio_transcriptions
table creation
Added indexes for audio tables (timestamp, audio_chunk_id)
Added
audio_transcriptions_fts
full-text search table
Added INSERT statements for audio_chunks and audio_transcriptions
Added FTS update for audio_transcriptions
Added verification counts and checks for audio data
Log Copying:
Added section to copy logs from
~/.screenpipe/screenpipe.YYYY-MM-DD.*.log
to
$NAS_MOUNT/logs/screenpipe.YYYY-MM-DD.*.log
Uses rsync to copy log files for the target date
Shows file count and total size
The script now syncs both vision (frames, elements, ocr_text, ui_events, meetings) and audio (audio_chunks, audio_transcriptions) data, plus copies the daily logs to the NAS.
Feedback submitted
Lets think about how to split the script
@
screenpipe_sync.sh
it is big already. How can I split it to multiple smaller script for easier management. I will add more to it and it is already hard to follow
Expand content to scroll
Thoughts
Let me analyze the current script structure to propose a logical split:...
|
[{"role":"AXRadioButton","text [{"role":"AXRadioButton","text":"Explorer (⌥⌘E)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":true,"is_expanded":true},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Search (⇧⌘F)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Source Control (⇧⌘G) - 19 pending changes","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Codemaps","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"DeepWiki","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXRadioButton","text":"Run and Debug","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Remote Explorer","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXRadioButton","text":"Extensions (⇧⌘X)","depth":18,"on_screen":true,"role_description":"tab","subrole":"AXTabButton","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer","depth":17,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Explorer","depth":18,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Explorer Section: screenpipe [SSH: nas]","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":true},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Explorer Section: screenpipe [SSH: nas]","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"screenpipe [SSH: nas]","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#recycle","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"data","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"lib","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_db.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_files.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_helpers.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"logs","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":26,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"pipes","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".gitignore","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_settings.json","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db-bak","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"archive.db.bak-pre-installid","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-shm","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"db.sqlite-wal","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_fts_migrate.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync copy.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_old.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync_updated.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"U","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe.db","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Outline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Outline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Outline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Timeline Section","depth":21,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXHeading","text":"Timeline","depth":22,"on_screen":true,"role_description":"heading"},{"role":"AXStaticText","text":"Timeline","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"remote SSH: nas","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SSH: nas","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - master*, Checkout Branch/Tag...","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"master*","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"screenpipe (Git) - Synchronize Changes","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"No Problems","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"0","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Forwarded Ports: 41257, 36613, 33153, 45375","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"4","depth":17,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Notifications","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Windsurf - Settings","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Teams, Daily: 0% quota used · Weekly: 68% quota used","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Shell Script","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"LF","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"UTF-8","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Spaces: 2","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Ln 7, Col 1 (100 selected)","depth":16,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Screen Reader Optimized","depth":16,"bounds":{"left":1.0,"top":0.0,"width":-0.07847226,"height":0.02},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Info: Setting up SSH Host (details): Creating local forwarding server...","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Clear","depth":12,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Refactor Sync Script","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"15h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"2h","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"17m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"1m","depth":20,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Show More","depth":19,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The error occurs because the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT uses a JOIN with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", and both tables have an","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to select.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script's comment assumes no column name collisions, but","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"exists in both tables. The fix is to qualify all columns in the SELECT with the table alias","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me check the current INSERT statement:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while viewing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"#L320-334","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 2s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT OR IGNORE INTO nas.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.* FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM main.ocr_text o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"JOIN main.frames f ON o.frame_id = f.id","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Fixed the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"INSERT by explicitly listing columns instead of using","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.*","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":", which caused the ambiguous column name error with","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"app_name","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"existing in both","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"frames","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":".","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me also check the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table INSERT since it also uses a JOIN with frames and might have the same issue:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Searched","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script you're running is","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe_sync.sh","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on your Mac, but I've been editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"on the NAS. These are different files.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"You need to either:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Copy the fixed script from NAS to Mac, or","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Apply the same fix to your Mac's script","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The fix for the","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ocr_text","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"ambiguous column error is to change:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"*","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"bash","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SELECT","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.frame_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_json,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.app_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.ocr_engine,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.window_name,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.focused,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.text_length,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.sync_id,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.synced_at,","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o.redacted_at","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FROM","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"main.ocr_text","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"o","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Which script are you actually running on your Mac - the one in","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"?","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Now add also audio data. CREATE TABLE audio_chunks (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"file_path TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"machine_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"evicted_at TIMESTAMP DEFAULT NULL","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE \"audio_transcriptions\" (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"id INTEGER PRIMARY KEY AUTOINCREMENT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunk_id INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"offset_index INTEGER NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"timestamp TIMESTAMP NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription TEXT NOT NULL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device TEXT NOT NULL DEFAULT '',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"is_input_device BOOLEAN NOT NULL DEFAULT TRUE,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription_engine TEXT NOT NULL DEFAULT 'Whisper',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"start_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"end_time REAL,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"text_length INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sync_id TEXT,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"synced_at DATETIME,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"redacted_at INTEGER,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"transcription,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"device,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"speaker_id,","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":") This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me first check the current script structure:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Read","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 3s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I'll add audio data syncing and log copying to the script. Let me make the necessary changes:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Error while editing","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_MEETINGS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"SRC_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$DB_SRC","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"5","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"printf","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\" %-20s %s\\n\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions:\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"if","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"[","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_FRAMES","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"] && [","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"-eq","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"0\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"];","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"then","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"log","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"No frames or audio chunks found for","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"— skipping DB sync\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DB_ALREADY_SYNCED","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"true","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"3","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"8","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content='audio_transcriptions',","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"content_rowid='id',","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"tokenize='unicode61'","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":");","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"16","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"WHERE date(c.timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# ─── FTS UPDATE ───────────────────────────────────────────────────────────","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"11","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"AND t.transcription IS NOT NULL;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"DETACH nas;","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# ─── VERIFY DB ────────────────────────────────────────────────────────────","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"V_MEETINGS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM meetings WHERE date(meeting_start)= '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"V_ACHUNKS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"';\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"V_ATRANS","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"=","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$(","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"sqlite3","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_DB","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$TARGET_DATE","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"');\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":")","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"2","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"check","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"meetings\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$V_MEETINGS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_MEETINGS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"check","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_chunks\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$V_ACHUNKS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ACHUNKS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"check","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"audio_transcriptions\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$V_ATRANS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$SRC_ATRANS","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"+","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"19","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"else","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"printf","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\" %-36s %s\\n\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"rsync logs → NAS\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"\"skipped (no matching logs)\"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"fi","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"# ─── SUMMARY ──────────────────────────────────────────────────────────────────","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Thought","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"for 1s","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"I've successfully added audio data syncing and log copying to the script. Here's what was added:","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Audio Data Syncing:","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Added","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_chunks","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"and","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_transcriptions","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"table creation","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Added indexes for audio tables (timestamp, audio_chunk_id)","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Added","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"audio_transcriptions_fts","depth":23,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"full-text search table","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Added INSERT statements for audio_chunks and audio_transcriptions","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Added FTS update for audio_transcriptions","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Added verification counts and checks for audio data","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Log Copying:","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Added section to copy logs from","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"~/.screenpipe/screenpipe.YYYY-MM-DD.*.log","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"to","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"$NAS_MOUNT/logs/screenpipe.YYYY-MM-DD.*.log","depth":24,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Uses rsync to copy log files for the target date","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Shows file count and total size","depth":22,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"The script now syncs both vision (frames, elements, ocr_text, ui_events, meetings) and audio (audio_chunks, audio_transcriptions) data, plus copies the daily logs to the NAS.","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Feedback submitted","depth":20,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Lets think about how to split the script","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"@","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"screenpipe_sync.sh","depth":27,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"it is big already. How can I split it to multiple smaller script for easier management. I will add more to it and it is already hard to follow","depth":25,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Expand content to scroll","depth":23,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Thoughts","depth":21,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"Let me analyze the current script structure to propose a logical split:","depth":21,"on_screen":true,"role_description":"text"}]...
|
8560029556289098677
|
4023473052497471327
|
idle
|
accessibility
|
NULL
|
Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘ Explorer (⌥⌘E)
Search (⇧⌘F)
Source Control (⇧⌘G) - 19 pending changes
19
Codemaps
DeepWiki
Run and Debug
Remote Explorer
Extensions (⇧⌘X)
Explorer
Explorer
Explorer Section: screenpipe [SSH: nas]
Explorer Section: screenpipe [SSH: nas]
screenpipe [SSH: nas]
#recycle
app
data
lib
screenpipe_sync_db.sh
U
screenpipe_sync_files.sh
U
screenpipe_sync_helpers.sh
U
logs
pipes
.gitignore
app_settings.json
archive.db
archive.db-bak
U
archive.db.bak-pre-installid
U
db.sqlite
db.sqlite-shm
db.sqlite-wal
screenpipe_fts_migrate.sh
U
screenpipe_sync copy.sh
U
screenpipe_sync_old.sh
U
screenpipe_sync_updated.sh
U
screenpipe_sync.sh
M
screenpipe.db
Outline Section
Outline
Outline
Timeline Section
Timeline
Timeline
remote SSH: nas
SSH: nas
screenpipe (Git) - master*, Checkout Branch/Tag...
master*
screenpipe (Git) - Synchronize Changes
No Problems
0
0
Forwarded Ports: 41257, 36613, 33153, 45375
4
Notifications
Windsurf - Settings
Teams, Daily: 0% quota used · Weekly: 68% quota used
Shell Script
LF
UTF-8
Spaces: 2
Ln 7, Col 1 (100 selected)
Screen Reader Optimized
Info: Setting up SSH Host (details): Creating local forwarding server...
Clear
Refactor Sync Script
15h
2h
17m
1m
1m
Show More
Thought
for 3s
The error occurs because the
ocr_text
INSERT uses a JOIN with
frames
, and both tables have an
app_name
column. The script uses unqualified column names, causing SQLite to be ambiguous about which table's
app_name
to select.
The script's comment assumes no column name collisions, but
app_name
exists in both tables. The fix is to qualify all columns in the SELECT with the table alias
o.
.
Let me check the current INSERT statement:
Error while viewing
screenpipe_sync.sh
Thoughts
Read
screenpipe_sync.sh
#L320-334
Thoughts
Searched
ocr_text.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 2s
Searched
INSERT.*ocr_text in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
screenpipe_sync.sh
+
2
-
1
INSERT OR IGNORE INTO nas.ocr_text
SELECT o.* FROM main.ocr_text o
SELECT o.frame_id, o.text, o.text_json, o.app_name, o.ocr_engine, o.window_name, o.focused, o.text_length, o.sync_id, o.synced_at, o.redacted_at
FROM main.ocr_text o
JOIN main.frames f ON o.frame_id = f.id
Thoughts
Fixed the
ocr_text
INSERT by explicitly listing columns instead of using
o.*
, which caused the ambiguous column name error with
app_name
existing in both
ocr_text
and
frames
.
Let me also check the
elements
table INSERT since it also uses a JOIN with frames and might have the same issue:
Searched
elements.*INSERT in /volume1/screenpipe (screenpipe_sync.sh)
Thought
for 1s
The script you're running is
~/.screenpipe/screenpipe_sync.sh
on your Mac, but I've been editing
screenpipe_sync.sh
on the NAS. These are different files.
You need to either:
Copy the fixed script from NAS to Mac, or
Apply the same fix to your Mac's script
The fix for the
ocr_text
ambiguous column error is to change:
bash
SELECT
o.
*
FROM
main.ocr_text
o
to:
bash
SELECT
o.frame_id,
o.text,
o.text_json,
o.app_name,
o.ocr_engine,
o.window_name,
o.focused,
o.text_length,
o.sync_id,
o.synced_at,
o.redacted_at
FROM
main.ocr_text
o
Which script are you actually running on your Mac - the one in
~/.screenpipe/
?
Feedback submitted
Now add also audio data. CREATE TABLE audio_chunks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_path TEXT NOT NULL,
timestamp TIMESTAMP,
sync_id TEXT,
machine_id TEXT,
synced_at DATETIME,
evicted_at TIMESTAMP DEFAULT NULL
)
CREATE TABLE "audio_transcriptions" (
id INTEGER PRIMARY KEY AUTOINCREMENT,
audio_chunk_id INTEGER NOT NULL,
offset_index INTEGER NOT NULL,
timestamp TIMESTAMP NOT NULL,
transcription TEXT NOT NULL,
device TEXT NOT NULL DEFAULT '',
is_input_device BOOLEAN NOT NULL DEFAULT TRUE,
speaker_id INTEGER,
transcription_engine TEXT NOT NULL DEFAULT 'Whisper',
start_time REAL,
end_time REAL,
text_length INTEGER,
sync_id TEXT,
synced_at DATETIME,
redacted_at INTEGER,
FOREIGN KEY (audio_chunk_id) REFERENCES audio_chunks(id)
) CREATE VIRTUAL TABLE audio_transcriptions_fts USING fts5 (
transcription,
device,
speaker_id,
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
) This is still not included in the script (mac to nas) but it exists on original app (mac). Add it to the script. Also move logs (~/.screenpipe/screenpipe.2026-05-09.0.log) to /logs/screenpipe.2026-05-09.0.log on nas.
Expand content to scroll
Thought
for 1s
I'll add audio data syncing and log copying to the script. Let me first check the current script structure:
Read
screenpipe_sync.sh
Thought
for 3s
I'll add audio data syncing and log copying to the script. Let me make the necessary changes:
Error while editing
screenpipe_sync.sh
Thoughts
screenpipe_sync.sh
+
2
SRC_MEETINGS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start) = '
$TARGET_DATE
';"
)
SRC_ACHUNKS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
SRC_ATRANS
=
$(
sqlite3
"
$DB_SRC
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thought
for 1s
screenpipe_sync.sh
+
5
-
3
printf
" %-20s %s\n"
"audio_transcriptions:"
"
$SRC_ATRANS
"
if
[
"
$SRC_FRAMES
"
-eq
"0"
] && [
"
$SRC_ACHUNKS
"
-eq
"0"
];
then
log
"No frames or audio chunks found for
$TARGET_DATE
— skipping DB sync"
DB_ALREADY_SYNCED
=
true
Thoughts
screenpipe_sync.sh
+
2
CREATE TABLE IF NOT EXISTS nas.meetings AS SELECT * FROM main.meetings WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_chunks AS SELECT * FROM main.audio_chunks WHERE 0;
CREATE TABLE IF NOT EXISTS nas.audio_transcriptions AS SELECT * FROM main.audio_transcriptions WHERE 0;
DETACH nas;
Thoughts
screenpipe_sync.sh
+
3
CREATE INDEX IF NOT EXISTS nas.idx_video_chunks_device ON video_chunks(device_name);
CREATE INDEX IF NOT EXISTS nas.idx_audio_chunks_timestamp ON audio_chunks(timestamp);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_chunk_id ON audio_transcriptions(audio_chunk_id);
CREATE INDEX IF NOT EXISTS nas.idx_audio_trans_timestamp ON audio_transcriptions(timestamp);
DETACH nas;
Thought
for 1s
screenpipe_sync.sh
+
8
content='audio_transcriptions',
content_rowid='id',
tokenize='unicode61'
);
DETACH nas;
Thoughts
screenpipe_sync.sh
+
16
WHERE date(c.timestamp) = '
$TARGET_DATE
';
DETACH nas;
"
# ─── FTS UPDATE ───────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
11
AND t.transcription IS NOT NULL;
DETACH nas;
"
# ─── VERIFY DB ────────────────────────────────────────────────────────────
Thoughts
screenpipe_sync.sh
+
2
V_MEETINGS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM meetings WHERE date(meeting_start)= '
$TARGET_DATE
';"
)
V_ACHUNKS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
';"
)
V_ATRANS
=
$(
sqlite3
"
$NAS_DB
"
"SELECT COUNT(*) FROM audio_transcriptions WHERE audio_chunk_id IN (SELECT id FROM audio_chunks WHERE date(timestamp) = '
$TARGET_DATE
');"
)
Thoughts
screenpipe_sync.sh
+
2
check
"meetings"
"
$V_MEETINGS
"
"
$SRC_MEETINGS
"
check
"audio_chunks"
"
$V_ACHUNKS
"
"
$SRC_ACHUNKS
"
check
"audio_transcriptions"
"
$V_ATRANS
"
"
$SRC_ATRANS
"
Thoughts
screenpipe_sync.sh
+
19
else
printf
" %-36s %s\n"
"rsync logs → NAS"
"skipped (no matching logs)"
fi
# ─── SUMMARY ──────────────────────────────────────────────────────────────────
Thought
for 1s
I've successfully added audio data syncing and log copying to the script. Here's what was added:
Audio Data Syncing:
Added
audio_chunks
and
audio_transcriptions
table creation
Added indexes for audio tables (timestamp, audio_chunk_id)
Added
audio_transcriptions_fts
full-text search table
Added INSERT statements for audio_chunks and audio_transcriptions
Added FTS update for audio_transcriptions
Added verification counts and checks for audio data
Log Copying:
Added section to copy logs from
~/.screenpipe/screenpipe.YYYY-MM-DD.*.log
to
$NAS_MOUNT/logs/screenpipe.YYYY-MM-DD.*.log
Uses rsync to copy log files for the target date
Shows file count and total size
The script now syncs both vision (frames, elements, ocr_text, ui_events, meetings) and audio (audio_chunks, audio_transcriptions) data, plus copies the daily logs to the NAS.
Feedback submitted
Lets think about how to split the script
@
screenpipe_sync.sh
it is big already. How can I split it to multiple smaller script for easier management. I will add more to it and it is already hard to follow
Expand content to scroll
Thoughts
Let me analyze the current script structure to propose a logical split:...
|
31388
|
NULL
|
NULL
|
NULL
|