Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
152 lines (152 loc) · 7.74 KB
/
Copy pathpackage.json
File metadata and controls
152 lines (152 loc) · 7.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"name": "scm",
"version": "0.2.13",
"private": true,
"license": "MIT",
"description": "SCM: local-first photo & video search (vision, scenes, OCR, dialogue)",
"author": "Allen Lee",
"main": "dist-main/main.js",
"packageManager": "bun@1.3.14",
"engines": {
"node": ">=20.9.0"
},
"overrides": {
"sharp": "0.35.5"
},
"scripts": {
"postinstall": "node scripts/ensure-electron.js",
"build": "vite build && bun run build:main",
"build:main": "tsc -p tsconfig.main.json && node scripts/copy-main-assets.js",
"watch:main": "tsc -p tsconfig.main.json --watch",
"dev": "bun run build && electron .",
"start": "bun run build:main && electron .",
"smoke:indexer": "node dist-main/indexer/indexer.js --smoke",
"bench:inference": "node scripts/bench-inference.js",
"bench:gates": "node scripts/bench-embeddinggemma-gates.js",
"bench:enrich": "node scripts/bench-enrich.js",
"bench:detect": "node scripts/bench-detect.js",
"test:detect-options": "bun run test/detect-options.test.js",
"test:detect-deep": "bun run test/detect-deep.test.js",
"gen:text-mean": "node scripts/gen-text-mean.js",
"test:text-mean": "bun run test/text-mean-constant.test.js",
"test:planning": "bun run scripts/test-scene-planning.js",
"test:pump-enrichment": "bun run test/pump-enrichment.test.js",
"test:pump-transcription": "bun run test/pump-transcription.test.js",
"test:transcript-fusion": "bun run test/transcript-fusion.test.js",
"test:transcript-deep": "bun run test/transcript-deep.test.js",
"test:transcript-dialogue-rank": "bun run test/transcript-dialogue-rank.test.js",
"test:transcribe-audio-probe": "bun run test/transcribe-audio-probe.test.js",
"test:whisper-model": "bun run test/whisper-model.test.js && bun test test/whisper-model.test.ts",
"test:dialogue-exact": "bun run test/dialogue-exact.test.js",
"test:youtube": "bun run test/youtube.test.js",
"test:child-registry": "bun run test/child-registry.test.js",
"test:ask": "bun test test/ask-models.test.js && bun run test/ask-retrieve.test.js && bun test test/ask-server.test.js && bun test test/ask-scope.test.ts",
"test:import-order": "bun run test/import-order.test.js",
"test:ocr-tab-ready": "bun run test/ocr-tab-ready.test.js",
"test:mime-sniff": "bun run test/mime-sniff.test.js",
"test:packaged-files": "bun run test/packaged-files.test.js",
"test:packaged-size": "node scripts/check-package-size.js",
"test:audit-runtime": "bun scripts/audit-runtime.js",
"test:main-load": "node test/main-load.test.js",
"test:ipc-bridge": "node test/ipc-bridge.test.js",
"test:token-parity": "bun test test/token-parity.test.ts",
"test:ipc-error": "bun test test/ipc-error.test.ts",
"test:media-order": "bun test test/media-order.test.ts",
"test:all": "bash scripts/smoke-all.sh",
"typecheck": "tsc --noEmit",
"lint": "eslint .",
"format:check": "prettier --check .",
"format": "prettier --write .",
"smoke:ask": "bun run build:main && bash -c 'TMP=$(mktemp -d /tmp/scm-ask-XXXX) && ln -s \"$HOME/Library/Application Support/scm/models\" \"$TMP/models\" 2>/dev/null || true; ELECTRON_SMOKE_ASK=1 MEMORIES_DATA_DIR=$TMP electron .'",
"smoke:cto": "bun run build:main && bash -c 'TMP=$(mktemp -d /tmp/scm-cto-XXXX) && ln -s \"$HOME/Library/Application Support/scm/models\" \"$TMP/models\" 2>/dev/null || true; mkdir -p \"$TMP/ocr-data\"; for f in \"$HOME/Library/Application Support/scm/ocr-data\"/*.traineddata; do [ -e \"$f\" ] || continue; ln -s \"$f\" \"$TMP/ocr-data/\"; done; MEMORIES_DATA_DIR=$TMP ELECTRON_SMOKE=1 ELECTRON_SMOKE_CTO=1 electron .'",
"test:cto": "bun run build:main && bash -c 'TMP=$(mktemp -d /tmp/scm-cto-XXXX) && ln -s \"$HOME/Library/Application Support/scm/models\" \"$TMP/models\" 2>/dev/null || true; MEMORIES_DATA_DIR=$TMP ELECTRON_SMOKE=1 ELECTRON_SMOKE_CTO=1 electron .'",
"smoke:phase4": "bun run build:main && bash -c 'TMP=$(mktemp -d /tmp/scm-phase4-XXXX) && ln -s \"$HOME/Library/Application Support/scm/models\" \"$TMP/models\" && mkdir -p \"$TMP/ocr-data\" && for f in \"$HOME/Library/Application Support/scm/ocr-data\"/*.traineddata; do [ -e \"$f\" ] || continue; ln -s \"$f\" \"$TMP/ocr-data/\"; done; MEMORIES_DATA_DIR=$TMP ELECTRON_SMOKE=1 ELECTRON_SMOKE_PHASE4=1 electron .'",
"smoke:deep": "bun run build:main && bash -c 'TMP=$(mktemp -d /tmp/scm-deep-XXXX) && ln -s \"$HOME/Library/Application Support/scm/models\" \"$TMP/models\" && mkdir -p \"$TMP/ocr-data\" && for f in \"$HOME/Library/Application Support/scm/ocr-data\"/*.traineddata; do [ -e \"$f\" ] || continue; ln -s \"$f\" \"$TMP/ocr-data/\"; done; MEMORIES_DATA_DIR=$TMP ELECTRON_SMOKE=1 ELECTRON_SMOKE_DEEP=1 electron .'",
"smoke:perf": "bun run build:main && bash -c 'TMP=$(mktemp -d /tmp/scm-perf-XXXX) && ln -s \"$HOME/Library/Application Support/scm/models\" \"$TMP/models\" && mkdir -p \"$TMP/ocr-data\" && for f in \"$HOME/Library/Application Support/scm/ocr-data\"/*.traineddata; do [ -e \"$f\" ] || continue; ln -s \"$f\" \"$TMP/ocr-data/\"; done; MEMORIES_DATA_DIR=$TMP ELECTRON_SMOKE=1 ELECTRON_SMOKE_PERF=1 electron .'",
"smoke:grid": "bun run build && bash -c 'TMP=$(mktemp -d /tmp/scm-grid-XXXX) && ln -s \"$HOME/Library/Application Support/scm/models\" \"$TMP/models\" 2>/dev/null || true; mkdir -p \"$TMP/ocr-data\"; for f in \"$HOME/Library/Application Support/scm/ocr-data\"/*.traineddata; do [ -e \"$f\" ] || continue; ln -s \"$f\" \"$TMP/ocr-data/\"; done; MEMORIES_DATA_DIR=$TMP node scripts/perf-grid-fixture.js && MEMORIES_DATA_DIR=$TMP ELECTRON_SMOKE=1 ELECTRON_SMOKE_GRID=1 electron .'",
"smoke:ui-review": "bun run build && bash -c 'TMP=$(mktemp -d /tmp/scm-ui-XXXX) && ln -s \"$HOME/Library/Application Support/scm/models\" \"$TMP/models\" 2>/dev/null || true; MEMORIES_DATA_DIR=$TMP ELECTRON_SMOKE_UI_REVIEW=1 electron .'",
"dist": "bun run build && electron-builder --mac",
"dist:unsigned": "bun run build && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac",
"test:decode-ahead": "bun run test/decode-ahead.test.js",
"test:raw-frame-parity": "bun run test/raw-frame-parity.test.js"
},
"dependencies": {
"@huggingface/transformers": "4.3.1",
"@tabler/icons-react": "3.10.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sharp": "0.35.5",
"tesseract.js": "7.0.0",
"zustand": "^5.0.15"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.19",
"electron": "^43.8.1",
"electron-builder": "^26.15.3",
"eslint": "^10.10.0",
"eslint-plugin-react-hooks": "^7.1.1",
"ffmpeg-static": "^5.3.0",
"globals": "^17.12.0",
"postcss": "^8.4.39",
"prettier": "^3.9.6",
"tailwindcss": "^3.4.4",
"typescript": "^5.5.3",
"typescript-eslint": "^8.70.0",
"vite": "^6.0.0"
},
"build": {
"appId": "com.allenv0.scm",
"productName": "SCM",
"compression": "maximum",
"electronDist": "node_modules/electron/dist",
"electronLanguages": [
"en"
],
"files": [
"dist/**",
"dist-main/**",
"package.json",
"!node_modules/@huggingface/transformers/.cache/**",
"!node_modules/onnxruntime-web/**",
"!node_modules/@huggingface/transformers/dist/**/*.map"
],
"afterPack": "scripts/after-pack.js",
"asarUnpack": [
"node_modules/sharp/**",
"node_modules/@img/**",
"node_modules/onnxruntime-node/**",
"node_modules/tesseract.js/**",
"node_modules/tesseract.js-core/**"
],
"extraResources": [
{
"from": "node_modules/ffmpeg-static/ffmpeg",
"to": "ffmpeg"
}
],
"directories": {
"output": "dist-app"
},
"mac": {
"target": [
"dmg",
"zip"
],
"category": "public.app-category.photography",
"icon": "public/images/icns/SCM.icns",
"extendInfo": {
"NSAppTransportSecurity": {
"NSAllowsArbitraryLoads": false,
"NSAllowsLocalNetworking": true
}
}
},
"dmg": {
"title": "SCM"
}
}
}