photostructure 0.6.0-alpha.2 → 2026.4.8-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) hide show
  1. package/LICENSE.md +31 -29
  2. package/README.md +20 -8
  3. package/SECURITY.md +29 -0
  4. package/VERSION.json +12 -0
  5. package/bin/bootstrap.js +9 -0
  6. package/bin/fix.js +9 -0
  7. package/bin/info.js +9 -0
  8. package/bin/list.js +9 -0
  9. package/bin/logcat.js +9 -0
  10. package/bin/logtail.js +9 -0
  11. package/bin/main.js +9 -0
  12. package/bin/photostructure.js +9 -0
  13. package/bin/sync.js +9 -0
  14. package/bin/web.js +9 -0
  15. package/bin/worker.js +9 -0
  16. package/data/cuss.txt.br +0 -0
  17. package/data/icc/AdobeCompat-v2.icc +0 -0
  18. package/data/icc/AppleCompat-v2.icc +0 -0
  19. package/data/icc/ColorMatchCompat-v2.icc +0 -0
  20. package/data/icc/DisplayP3-v2-magic.icc +0 -0
  21. package/data/icc/DisplayP3-v2-micro.icc +0 -0
  22. package/data/icc/DisplayP3-v4.icc +0 -0
  23. package/data/icc/DisplayP3Compat-v2-magic.icc +0 -0
  24. package/data/icc/DisplayP3Compat-v2-micro.icc +0 -0
  25. package/data/icc/DisplayP3Compat-v4.icc +0 -0
  26. package/data/icc/ProPhoto-v2-magic.icc +0 -0
  27. package/data/icc/ProPhoto-v2-micro.icc +0 -0
  28. package/data/icc/ProPhoto-v4.icc +0 -0
  29. package/data/icc/Rec2020-v2-magic.icc +0 -0
  30. package/data/icc/Rec2020-v2-micro.icc +0 -0
  31. package/data/icc/Rec2020-v4.icc +0 -0
  32. package/data/icc/Rec2020Compat-v2-magic.icc +0 -0
  33. package/data/icc/Rec2020Compat-v2-micro.icc +0 -0
  34. package/data/icc/Rec2020Compat-v4.icc +0 -0
  35. package/data/icc/Rec709-v2-magic.icc +0 -0
  36. package/data/icc/Rec709-v2-micro.icc +0 -0
  37. package/data/icc/Rec709-v4.icc +0 -0
  38. package/data/icc/WideGamutCompat-v2.icc +0 -0
  39. package/data/icc/_info.md +49 -0
  40. package/data/icc/license +116 -0
  41. package/data/icc/readme.md +142 -0
  42. package/data/icc/sGrey-v2-magic.icc +0 -0
  43. package/data/icc/sGrey-v2-micro.icc +0 -0
  44. package/data/icc/sGrey-v2-nano.icc +0 -0
  45. package/data/icc/sGrey-v4.icc +0 -0
  46. package/data/icc/sRGB-v2-magic.icc +0 -0
  47. package/data/icc/sRGB-v2-micro.icc +0 -0
  48. package/data/icc/sRGB-v2-nano.icc +0 -0
  49. package/data/icc/sRGB-v4.icc +0 -0
  50. package/data/icc/scRGB-v2.icc +0 -0
  51. package/data/migrations/models/20181030_models.sql +151 -0
  52. package/data/migrations/models/20190417_rotation.sql +2 -0
  53. package/data/migrations/models/20190425_merged_assets.sql +11 -0
  54. package/{migrations → data/migrations}/models/20190426_clean_sha.sql +4 -4
  55. package/data/migrations/models/20190426_lowercase_psnet_hostname.sql +1 -0
  56. package/{migrations → data/migrations}/models/20190727_find_by_ca_and_geo.sql +3 -1
  57. package/data/migrations/models/20190730_session.sql +7 -0
  58. package/data/migrations/models/20190922_numeric_captured_at.sql +1 -0
  59. package/data/migrations/models/20190923_asset_file_v2_nofk.sql +107 -0
  60. package/data/migrations/models/20191013_asset_v2_nofk.sql +81 -0
  61. package/data/migrations/models/20200104_video_duration.sql +9 -0
  62. package/data/migrations/models/20200116_heartbeat.sql +9 -0
  63. package/data/migrations/models/20200127_spread_modes.sql +1 -0
  64. package/data/migrations/models/20200128_asset_file_v3_nofk.sql +143 -0
  65. package/data/migrations/models/20200130_advisory_lock.sql +21 -0
  66. package/data/migrations/models/20200211_updateCount.sql +2 -0
  67. package/data/migrations/models/20200512_asset_file_v4_nofk.sql +145 -0
  68. package/data/migrations/models/20200515_drop_merged_asset.sql +1 -0
  69. package/data/migrations/models/20200816_normalize_asset_file_uris.sql +1 -0
  70. package/data/migrations/models/20200823_add_asset_excluded.sql +11 -0
  71. package/data/migrations/models/20200825_fix_root_tags.sql +1 -0
  72. package/data/migrations/models/20200826_dedupe_tag_paths.sql +1 -0
  73. package/data/migrations/models/20200827_tag_v2_nofk.sql +35 -0
  74. package/data/migrations/models/20200923_suffix_tag_paths.sql +1 -0
  75. package/data/migrations/models/20200927_progress_v2.sql +23 -0
  76. package/data/migrations/models/20201006_progress_meta.sql +16 -0
  77. package/data/migrations/models/20201007_operation.sql +12 -0
  78. package/data/migrations/models/20201023_dedupe_tag_paths.sql +1 -0
  79. package/data/migrations/models/20201026_normalize_asset_file_uris.sql +1 -0
  80. package/data/migrations/models/20201030_add_tag_counts.sql +5 -0
  81. package/data/migrations/models/20201106_normalize_tag_paths.sql +1 -0
  82. package/data/migrations/models/20201112_tag_display_name.sql +2 -0
  83. package/data/migrations/models/20201113_drop_tc_tables.sql +1 -0
  84. package/data/migrations/models/20201211_tag_description.sql +5 -0
  85. package/data/migrations/models/20210322_sha_blocklist.sql +6 -0
  86. package/data/migrations/models/20210323_create_tag_fts.sql +1 -0
  87. package/data/migrations/models/20210324_asset_fave_delete.sql +20 -0
  88. package/data/migrations/models/20210531_asset_duration.sql +20 -0
  89. package/data/migrations/models/20210604_changed_tag.sql +7 -0
  90. package/data/migrations/models/20210627_changed_tag_updated_at.sql +2 -0
  91. package/data/migrations/models/20210827_asset_excluded_at.sql +19 -0
  92. package/data/migrations/models/20210930_asset_file_rating.sql +2 -0
  93. package/data/migrations/models/20210930_asset_revision.sql +16 -0
  94. package/data/migrations/models/20211025_ts_cleanup.sql +11 -0
  95. package/data/migrations/models/20220222_rebuild_rotated_heic.sql +2 -0
  96. package/data/migrations/models/20220922_rebuild_videos.sql +3 -0
  97. package/data/migrations/models/20220923_add_asset_file_mode_pct.sql +63 -0
  98. package/data/migrations/models/20221031_add_asset_file_hashes.sql +5 -0
  99. package/data/migrations/models/20231105_copy_asset_duration.sql +3 -0
  100. package/data/migrations/models/20231115_strict_nofk.sql +674 -0
  101. package/data/migrations/models/20231116_rebuild_tag_asset_counts.sql +1 -0
  102. package/data/migrations/models/20240115_task.sql +18 -0
  103. package/data/migrations/models/20240131_drop_operation_version.sql +35 -0
  104. package/data/migrations/models/20240201_create_tag_fts.sql +1 -0
  105. package/data/migrations/models/20240307_rebuild_progress_nofk.sql +59 -0
  106. package/data/migrations/models/20240313_rebuild_null_island.sql +3 -0
  107. package/data/migrations/models/20240723_add_asset_file_image_data_hash.sql +2 -0
  108. package/data/migrations/models/20240920_drop_task.sql +1 -0
  109. package/data/migrations/models/20240929_metadata_local.sql +3 -0
  110. package/data/migrations/models/20250421_asset_tag_fk_indexes.sql +21 -0
  111. package/data/migrations/models/20250421_tag_hierarchy.sql +13 -0
  112. package/data/migrations/models/20250422_schema_v3.sql +170 -0
  113. package/data/migrations/models/20250423_schema_v3_backfill_nofk.sql +1 -0
  114. package/data/migrations/models/20250929_indexes.sql +80 -0
  115. package/data/migrations/models/20260117_scan_generation.sql +31 -0
  116. package/data/migrations/models/20260122_fix_scan_generation_idx.sql +5 -0
  117. package/data/migrations/models/20260204_vec0_captured_at_local.sql +10 -0
  118. package/data/migrations/models/20260217_reaggregate_to_validate_siblings.sql +8 -0
  119. package/data/migrations/models/20260321_captured_at_src_detail.sql +3 -0
  120. package/data/migrations/models/20260322_captured_at_src_backfill.sql +2 -0
  121. package/data/migrations/models/20260403_drop_tag_fts.sql +5 -0
  122. package/data/migrations/models/20260425_volume_label.sql +5 -0
  123. package/data/migrations/models/20260426_vec0_bname.sql +6 -0
  124. package/data/models-schema.json +907 -0
  125. package/data/models-schema.sql +268 -0
  126. package/data/words.txt.br +0 -0
  127. package/defaults.env +6376 -0
  128. package/package.json +47 -25
  129. package/photostructure +26 -27
  130. package/public/192.png.gz +0 -0
  131. package/public/3rd-party-licenses.html.gz +0 -0
  132. package/public/3rd-party-licenses.txt.gz +0 -0
  133. package/public/512.png.gz +0 -0
  134. package/public/app/Array.js +8 -0
  135. package/public/app/Array.js.gz +0 -0
  136. package/public/app/BabyMarkdown.js +14 -0
  137. package/public/app/BabyMarkdown.js.gz +0 -0
  138. package/public/app/DropDown.vue_vue_type_script_setup_true_lang.js +12 -0
  139. package/public/app/DropDown.vue_vue_type_script_setup_true_lang.js.gz +0 -0
  140. package/public/app/HealthChecks.js +8 -0
  141. package/public/app/HealthChecks.js.gz +0 -0
  142. package/public/app/Lazy.js +8 -0
  143. package/public/app/Lazy.js.gz +0 -0
  144. package/public/app/PageActionsMenu.vue_vue_type_script_setup_true_lang.js +8 -0
  145. package/public/app/PageActionsMenu.vue_vue_type_script_setup_true_lang.js.gz +0 -0
  146. package/public/app/ProgressState.js +8 -0
  147. package/public/app/Random.js +8 -0
  148. package/public/app/SSEChannels.js +8 -0
  149. package/public/app/SSEChannels.js.gz +0 -0
  150. package/public/app/Search.js +8 -0
  151. package/public/app/Search.js.gz +0 -0
  152. package/public/app/StickyHeader.js +8 -0
  153. package/public/app/StickyHeader.js.gz +0 -0
  154. package/public/app/Tag.js +8 -0
  155. package/public/app/Tag.js.gz +0 -0
  156. package/public/app/_plugin-vue_export-helper.js +8 -0
  157. package/public/app/_plugin-vue_export-helper.js.gz +0 -0
  158. package/public/app/about.css +8 -0
  159. package/public/app/about.css.gz +0 -0
  160. package/public/app/about.js +8 -0
  161. package/public/app/about.js.gz +0 -0
  162. package/public/app/app.css +8 -0
  163. package/public/app/app.css.gz +0 -0
  164. package/public/app/app.js +12 -0
  165. package/public/app/app.js.gz +0 -0
  166. package/public/app/health.css +8 -0
  167. package/public/app/health.css.gz +0 -0
  168. package/public/app/health.js +9 -0
  169. package/public/app/health.js.gz +0 -0
  170. package/public/app/logs.css +8 -0
  171. package/public/app/logs.css.gz +0 -0
  172. package/public/app/logs.js +8 -0
  173. package/public/app/logs.js.gz +0 -0
  174. package/public/app/onReady.js +8 -0
  175. package/public/app/platform.js +8 -0
  176. package/public/app/roboto-mono-v22-latin-700.woff2.gz +0 -0
  177. package/public/app/roboto-mono-v22-latin-regular.woff2.gz +0 -0
  178. package/public/app/roboto-v30-latin-700.woff2.gz +0 -0
  179. package/public/app/roboto-v30-latin-700italic.woff2.gz +0 -0
  180. package/public/app/roboto-v30-latin-italic.woff2.gz +0 -0
  181. package/public/app/roboto-v30-latin-regular.woff2.gz +0 -0
  182. package/public/app/settings.css +8 -0
  183. package/public/app/settings.css.gz +0 -0
  184. package/public/app/settings.js +8 -0
  185. package/public/app/settings.js.gz +0 -0
  186. package/public/app/splash.css +8 -0
  187. package/public/app/splash.css.gz +0 -0
  188. package/public/app/splash.js +8 -0
  189. package/public/app/splash.js.gz +0 -0
  190. package/public/app/sse-worker.js +8 -0
  191. package/public/app/sse-worker.js.gz +0 -0
  192. package/public/app/sync.css +8 -0
  193. package/public/app/sync.css.gz +0 -0
  194. package/public/app/sync.js +12 -0
  195. package/public/app/sync.js.gz +0 -0
  196. package/public/app/toast.js +9 -0
  197. package/public/app/toast.js.gz +0 -0
  198. package/public/app/useAnchorHighlight.js +8 -0
  199. package/public/app/useSectionPersistence.js +8 -0
  200. package/public/app/useSectionPersistence.js.gz +0 -0
  201. package/public/apple-touch-icon.png.gz +0 -0
  202. package/public/browserconfig.xml +9 -0
  203. package/public/eula.html +25 -26
  204. package/public/favicon-16x16.png.gz +0 -0
  205. package/public/favicon-32x32.png.gz +0 -0
  206. package/public/favicon.ico +0 -0
  207. package/public/fonts/roboto-mono-v22-latin-700.woff2.gz +0 -0
  208. package/public/fonts/roboto-mono-v22-latin-regular.woff2.gz +0 -0
  209. package/public/fonts/roboto-v30-latin-700.woff2.gz +0 -0
  210. package/public/fonts/roboto-v30-latin-700italic.woff2.gz +0 -0
  211. package/public/fonts/roboto-v30-latin-italic.woff2.gz +0 -0
  212. package/public/fonts/roboto-v30-latin-regular.woff2.gz +0 -0
  213. package/public/icon.svg.gz +0 -0
  214. package/public/images/1.png.gz +0 -0
  215. package/public/images/128.png +0 -0
  216. package/public/images/22-Template.png.gz +0 -0
  217. package/public/images/22-Template@2x.png.gz +0 -0
  218. package/public/images/22-Template@3x.png.gz +0 -0
  219. package/public/images/22-blue.png.gz +0 -0
  220. package/public/images/22-blue@2x.png.gz +0 -0
  221. package/public/images/22-blue@3x.png.gz +0 -0
  222. package/public/images/22-dark.png +0 -0
  223. package/public/images/22-dark@2x.png +0 -0
  224. package/public/images/22-dark@3x.png +0 -0
  225. package/public/images/22-gradient.png.gz +0 -0
  226. package/public/images/22-gradient@2x.png.gz +0 -0
  227. package/public/images/22-gradient@3x.png.gz +0 -0
  228. package/public/images/22-light.png +0 -0
  229. package/public/images/22-light@2x.png +0 -0
  230. package/public/images/22-light@3x.png +0 -0
  231. package/public/images/256.png +0 -0
  232. package/public/images/512.png.gz +0 -0
  233. package/public/images/64.png +0 -0
  234. package/public/images/antenna.svg.gz +0 -0
  235. package/public/images/article.svg.gz +0 -0
  236. package/public/images/baby.svg.gz +0 -0
  237. package/public/images/ballot-box.svg.gz +0 -0
  238. package/public/images/bank.svg.gz +0 -0
  239. package/public/images/bar-chart.svg.gz +0 -0
  240. package/public/images/beetle.svg.gz +0 -0
  241. package/public/images/birthday.svg.gz +0 -0
  242. package/public/images/bookmark-tabs.svg.gz +0 -0
  243. package/public/images/books-desat.svg.gz +0 -0
  244. package/public/images/books.svg.gz +0 -0
  245. package/public/images/busy-circle.svg.gz +0 -0
  246. package/public/images/busy-circles.svg.gz +0 -0
  247. package/public/images/busy-dots.svg.gz +0 -0
  248. package/public/images/busy.svg.gz +0 -0
  249. package/public/images/calendar.svg.gz +0 -0
  250. package/public/images/camera.svg.gz +0 -0
  251. package/public/images/card-box.svg.gz +0 -0
  252. package/public/images/card-index-dividers.svg.gz +0 -0
  253. package/public/images/cd.svg.gz +0 -0
  254. package/public/images/chart.svg.gz +0 -0
  255. package/public/images/check.svg.gz +0 -0
  256. package/public/images/checkered-flag.svg.gz +0 -0
  257. package/public/images/clear-256.png.gz +0 -0
  258. package/public/images/clear-64.png.gz +0 -0
  259. package/public/images/clock.svg.gz +0 -0
  260. package/public/images/computer.svg.gz +0 -0
  261. package/public/images/cpu.svg.gz +0 -0
  262. package/public/images/crane.svg.gz +0 -0
  263. package/public/images/cross-mark.svg.gz +0 -0
  264. package/public/images/disabled.svg.gz +0 -0
  265. package/public/images/dvd.svg.gz +0 -0
  266. package/public/images/emergency-light.svg.gz +0 -0
  267. package/public/images/error.svg.gz +0 -0
  268. package/public/images/expressionless-desat.svg.gz +0 -0
  269. package/public/images/expressionless.svg.gz +0 -0
  270. package/public/images/file-cabinet.svg.gz +0 -0
  271. package/public/images/fill.svg.gz +0 -0
  272. package/public/images/floppy.svg.gz +0 -0
  273. package/public/images/gift.svg.gz +0 -0
  274. package/public/images/green-check.svg.gz +0 -0
  275. package/public/images/green-radio.svg.gz +0 -0
  276. package/public/images/handshake.svg.gz +0 -0
  277. package/public/images/health.svg.gz +0 -0
  278. package/public/images/heart.svg.gz +0 -0
  279. package/public/images/home.svg.gz +0 -0
  280. package/public/images/info.svg.gz +0 -0
  281. package/public/images/library.svg.gz +0 -0
  282. package/public/images/logo-blue.svg.gz +0 -0
  283. package/public/images/logo-circle.svg.gz +0 -0
  284. package/public/images/logo-dark-700pt.svg.gz +0 -0
  285. package/public/images/logo-dark.svg.gz +0 -0
  286. package/public/images/logo-gradient-gloss-512w.png.gz +0 -0
  287. package/public/images/logo-gradient-gloss.svg.gz +0 -0
  288. package/public/images/logo-gradient-square-512w.png.gz +0 -0
  289. package/public/images/logo-gradient.svg.gz +0 -0
  290. package/public/images/logo-horizontal-600w.png.gz +0 -0
  291. package/public/images/logo-horizontal-white.svg.gz +0 -0
  292. package/public/images/logo-horizontal.svg.gz +0 -0
  293. package/public/images/logo-lite.svg.gz +0 -0
  294. package/public/images/logo-plus-512w.png.gz +0 -0
  295. package/public/images/logo-plus-horizontal.svg.gz +0 -0
  296. package/public/images/logo-plus.svg.gz +0 -0
  297. package/public/images/logo-square.svg.gz +0 -0
  298. package/public/images/logo-white.svg.gz +0 -0
  299. package/public/images/logo.ico +0 -0
  300. package/public/images/logo.png +0 -0
  301. package/public/images/logo@2x.png.gz +0 -0
  302. package/public/images/logo@3x.png.gz +0 -0
  303. package/public/images/logo@4x.png.gz +0 -0
  304. package/public/images/logo@5x.png +0 -0
  305. package/public/images/maximize.svg.gz +0 -0
  306. package/public/images/microscope.svg.gz +0 -0
  307. package/public/images/minidisc.svg.gz +0 -0
  308. package/public/images/movie-camera.svg.gz +0 -0
  309. package/public/images/navigate_next.svg.gz +0 -0
  310. package/public/images/new-yellow.svg.gz +0 -0
  311. package/public/images/new.svg.gz +0 -0
  312. package/public/images/open-book.svg.gz +0 -0
  313. package/public/images/open-folder.svg.gz +0 -0
  314. package/public/images/pause.svg.gz +0 -0
  315. package/public/images/photostructure-black.svg.gz +0 -0
  316. package/public/images/photostructure-white.svg.gz +0 -0
  317. package/public/images/refresh.svg.gz +0 -0
  318. package/public/images/rocket.svg.gz +0 -0
  319. package/public/images/sad-cat.svg.gz +0 -0
  320. package/public/images/safe.svg.gz +0 -0
  321. package/public/images/scales.svg.gz +0 -0
  322. package/public/images/seedling.svg.gz +0 -0
  323. package/public/images/shield.svg.gz +0 -0
  324. package/public/images/sleeping-face-desat.svg.gz +0 -0
  325. package/public/images/sleeping-face.svg.gz +0 -0
  326. package/public/images/sparkles.svg.gz +0 -0
  327. package/public/images/speed.svg.gz +0 -0
  328. package/public/images/splash.svg +1 -1
  329. package/public/images/splashbg1-1024w.jpg +0 -0
  330. package/public/images/splashbg2-1024w.jpg +0 -0
  331. package/public/images/splashbg3-1024w.jpg +0 -0
  332. package/public/images/splashbg4-1024w.jpg +0 -0
  333. package/public/images/splashbg5-1024w.jpg +0 -0
  334. package/public/images/splashbg6-1024w.jpg +0 -0
  335. package/public/images/star2.svg.gz +0 -0
  336. package/public/images/starry-night.svg.gz +0 -0
  337. package/public/images/stethoscope.svg.gz +0 -0
  338. package/public/images/stop.svg.gz +0 -0
  339. package/public/images/surf.svg.gz +0 -0
  340. package/public/images/sync.svg.gz +0 -0
  341. package/public/images/tada.svg.gz +0 -0
  342. package/public/images/terminal.svg.gz +0 -0
  343. package/public/images/thinking.svg.gz +0 -0
  344. package/public/images/thumbs-down.svg.gz +0 -0
  345. package/public/images/thumbs-up.svg.gz +0 -0
  346. package/public/images/toolbox.svg.gz +0 -0
  347. package/public/images/tools.svg.gz +0 -0
  348. package/public/images/umbrella.svg.gz +0 -0
  349. package/public/images/warning.svg.gz +0 -0
  350. package/public/images/wave.svg.gz +0 -0
  351. package/public/images/wrench.svg.gz +0 -0
  352. package/public/images/xray.svg.gz +0 -0
  353. package/public/images/zzz.svg.gz +0 -0
  354. package/public/mstile-144x144.png.gz +0 -0
  355. package/public/mstile-150x150.png.gz +0 -0
  356. package/public/mstile-310x150.png.gz +0 -0
  357. package/public/mstile-310x310.png.gz +0 -0
  358. package/public/mstile-70x70.png.gz +0 -0
  359. package/public/safari-pinned-tab.svg.gz +0 -0
  360. package/public/sw.js +5 -0
  361. package/server/bin/install-codec-tools.sh +48 -0
  362. package/server/sudoers.d/photostructure-codec-install +18 -0
  363. package/tools/README.md +23 -0
  364. package/tools/build.sh +30 -0
  365. package/tools/download-rg.sh +61 -0
  366. package/tools/license-overrides/photostructure-sqlite-vec-MIT.txt +21 -0
  367. package/tools/licenses/d3-color-difference/LICENSE.txt +29 -0
  368. package/tools/licenses/deep-eql/LICENSE.txt +21 -0
  369. package/tools/licenses/exiftool/{license.txt → LICENSE.txt} +140 -140
  370. package/tools/licenses/fft.js/LICENSE.txt +9 -0
  371. package/tools/licenses/libjpeg-turbo/LICENSE.md +7 -16
  372. package/tools/licenses/libraw/COPYRIGHT.txt +27 -0
  373. package/tools/licenses/moveable-type/LICENSE.txt +6 -0
  374. package/tools/licenses/noto-emoji/LICENSE.txt +201 -0
  375. package/tools/licenses/sharp-phash/LICENSE.txt +21 -0
  376. package/tools/licenses/{twemoji → type-detect}/LICENSE.txt +1 -1
  377. package/tools/linux-arm64/dcraw_emu +0 -0
  378. package/tools/linux-arm64/jpegtran +0 -0
  379. package/tools/linux-arm64/raw-identify +0 -0
  380. package/tools/linux-arm64/rg +0 -0
  381. package/tools/linux-arm64/sqlite3 +0 -0
  382. package/tools/linux-x64/dcraw_emu +0 -0
  383. package/tools/linux-x64/jpegtran +0 -0
  384. package/tools/linux-x64/raw-identify +0 -0
  385. package/tools/linux-x64/rg +0 -0
  386. package/tools/linux-x64/sqlite3 +0 -0
  387. package/tools/mac-arm64/dcraw_emu +0 -0
  388. package/tools/mac-arm64/jpegtran +0 -0
  389. package/tools/mac-arm64/jpegtran-README.md +31 -0
  390. package/tools/mac-arm64/libraw-README.md +42 -0
  391. package/tools/mac-arm64/raw-identify +0 -0
  392. package/tools/mac-arm64/rg +0 -0
  393. package/tools/mac-arm64/sqlite3 +0 -0
  394. package/tools/mac-arm64/sqlite3-README.md +35 -0
  395. package/tools/mac-x64/dcraw_emu +0 -0
  396. package/tools/mac-x64/jpegtran +0 -0
  397. package/tools/mac-x64/jpegtran-README.md +30 -0
  398. package/tools/mac-x64/libraw-README.md +52 -0
  399. package/tools/mac-x64/raw-identify +0 -0
  400. package/tools/mac-x64/rg +0 -0
  401. package/tools/mac-x64/sqlite3 +0 -0
  402. package/tools/mac-x64/sqlite3-README.md +6 -0
  403. package/tools/win-x64/dcraw_emu.exe +0 -0
  404. package/tools/{win-ia32/jpegtran → win-x64}/jpegtran.exe +0 -0
  405. package/tools/{win-ia32/jpegtran → win-x64}/libjpeg-62.dll +0 -0
  406. package/tools/win-x64/libraw-README.md +6 -0
  407. package/tools/win-x64/libraw.dll +0 -0
  408. package/tools/win-x64/raw-identify.exe +0 -0
  409. package/tools/win-x64/recycle-bin-README.md +3 -0
  410. package/tools/win-x64/recycle-bin.exe +0 -0
  411. package/tools/win-x64/rg.exe +0 -0
  412. package/tools/win-x64/sqlite3-README.md +4 -0
  413. package/tools/win-x64/sqlite3.exe +0 -0
  414. package/views/_fouc-prevention.ejs +13 -0
  415. package/views/error.ejs +64 -0
  416. package/views/eula.html +57 -0
  417. package/views/settings.ejs +958 -0
  418. package/views/spa.ejs +54 -0
  419. package/views/splash.ejs +30 -0
  420. package/views/welcome-tools.ejs +201 -0
  421. package/views/welcome.ejs +89 -0
  422. package/app/info.js +0 -3
  423. package/app/logtail.js +0 -3
  424. package/app/main.js +0 -3
  425. package/app/sync-file.js +0 -3
  426. package/app/sync.js +0 -3
  427. package/app/web.js +0 -3
  428. package/migrations/models/20181030_models.sql +0 -145
  429. package/migrations/models/20190417_rotation.sql +0 -1
  430. package/migrations/models/20190425_merged_assets.sql +0 -10
  431. package/migrations/models/20190426_lowercase_psnet_hostname.sql +0 -1
  432. package/migrations/models/20190522_on_new_exif_uid.sql +0 -1
  433. package/migrations/models/20190729_on_new_exif_uid.sql +0 -1
  434. package/migrations/models/20190730_session.sql +0 -6
  435. package/migrations/stats/20181030_stats.sql +0 -16
  436. package/migrations/stats/20190312_files_not_bytes.sql +0 -23
  437. package/migrations/stats/20190515_rebuild_queue.sql +0 -21
  438. package/public/app/latest.js.gz +0 -0
  439. package/public/fonts/roboto-mono-v5-latin-regular.woff.gz +0 -0
  440. package/public/fonts/roboto-mono-v5-latin-regular.woff2.gz +0 -0
  441. package/public/fonts/roboto-v18-latin-300.woff.gz +0 -0
  442. package/public/fonts/roboto-v18-latin-300.woff2.gz +0 -0
  443. package/public/fonts/roboto-v18-latin-500.woff.gz +0 -0
  444. package/public/fonts/roboto-v18-latin-500.woff2.gz +0 -0
  445. package/public/fonts/roboto-v18-latin-700.woff.gz +0 -0
  446. package/public/fonts/roboto-v18-latin-700.woff2.gz +0 -0
  447. package/public/fonts/roboto-v18-latin-900.woff.gz +0 -0
  448. package/public/fonts/roboto-v18-latin-900.woff2.gz +0 -0
  449. package/public/fonts/roboto-v18-latin-italic.woff.gz +0 -0
  450. package/public/fonts/roboto-v18-latin-italic.woff2.gz +0 -0
  451. package/public/fonts/roboto-v18-latin-regular.woff.gz +0 -0
  452. package/public/fonts/roboto-v18-latin-regular.woff2.gz +0 -0
  453. package/public/images/128.png.gz +0 -0
  454. package/public/images/256-gradient.png +0 -0
  455. package/public/images/256-gradient.png.gz +0 -0
  456. package/public/images/256.png.gz +0 -0
  457. package/public/images/64.png.gz +0 -0
  458. package/public/images/bg.svg.gz +0 -0
  459. package/public/images/bg10.jpg.gz +0 -0
  460. package/public/images/blue-splash-1024w.png.gz +0 -0
  461. package/public/images/blue-tri-bg.svg.gz +0 -0
  462. package/public/images/boom.svg.gz +0 -0
  463. package/public/images/dark-cyan-fuschia-bg.svg.gz +0 -0
  464. package/public/images/fit.svg.gz +0 -0
  465. package/public/images/light-cyan-fuschia-bg.svg.gz +0 -0
  466. package/public/images/line-logo-top-cuts-filled.svg.gz +0 -0
  467. package/public/images/line-logo-top-cuts.svg.gz +0 -0
  468. package/public/images/link.svg.gz +0 -0
  469. package/public/images/logo-gradient-gloss-sq.svg.gz +0 -0
  470. package/public/images/logo-gradient.svg +0 -1
  471. package/public/images/logo-icon-path.svg.gz +0 -0
  472. package/public/images/logo-text-path.svg.gz +0 -0
  473. package/public/images/logo-text-white.svg.gz +0 -0
  474. package/public/images/navigate_prev.svg.gz +0 -0
  475. package/public/images/no-entry.svg.gz +0 -0
  476. package/public/images/phone.svg.gz +0 -0
  477. package/public/images/private.svg.gz +0 -0
  478. package/public/images/profile.svg.gz +0 -0
  479. package/public/images/public.svg.gz +0 -0
  480. package/public/images/show-in-folder-black.svg.gz +0 -0
  481. package/public/images/show-in-folder.svg.gz +0 -0
  482. package/public/images/shrug.svg.gz +0 -0
  483. package/public/images/splash-1024w.png +0 -0
  484. package/public/images/splash-1024w.png.gz +0 -0
  485. package/public/images/splash-512w.png +0 -0
  486. package/public/images/splash-512w.png.gz +0 -0
  487. package/public/images/splash-blue.svg +0 -1
  488. package/public/images/splashbg01-1024w.jpg +0 -0
  489. package/public/images/splashbg01-1024w.jpg.gz +0 -0
  490. package/public/images/splashbg02-1024w.jpg +0 -0
  491. package/public/images/splashbg02-1024w.jpg.gz +0 -0
  492. package/public/images/text-logo-blue.svg.gz +0 -0
  493. package/public/images/transparent-white.svg.gz +0 -0
  494. package/public/images/trash.svg.gz +0 -0
  495. package/public/release-notes.html +0 -581
  496. package/public/splash.html +0 -360
  497. package/tools/licenses/dcraw/dcraw.txt +0 -24
  498. package/tools/licenses/vue-my-dropdown/LICENSE.txt +0 -19
  499. package/tools/linux-arm/dcraw/dcraw +0 -0
  500. package/tools/linux-arm/dcraw/install.sh +0 -5
  501. package/tools/linux-arm/jpegtran/README.md +0 -11
  502. package/tools/linux-arm/jpegtran/jpegtran +0 -0
  503. package/tools/linux-arm/sqlite3/sqlite3 +0 -0
  504. package/tools/linux-ia32/sqlite3/sqlite3 +0 -0
  505. package/tools/linux-x64/dcraw/dcraw +0 -0
  506. package/tools/linux-x64/jpegtran/jpegtran +0 -0
  507. package/tools/mac-x64/dcraw/dcraw +0 -0
  508. package/tools/mac-x64/dcraw/install.sh +0 -8
  509. package/tools/mac-x64/jpegtran/jpegtran +0 -0
  510. package/tools/mac-x64/sqlite3/README.md +0 -33
  511. package/tools/mac-x64/sqlite3/sqlite3 +0 -0
  512. package/tools/win-ia32/dcraw/README.md +0 -30
  513. package/tools/win-ia32/dcraw/dcraw.exe +0 -0
  514. package/tools/win-ia32/sqlite3/sqlite3.exe +0 -0
package/LICENSE.md CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  ### PLEASE READ CAREFULLY BEFORE USING THIS PRODUCT
2
3
 
3
4
  This End-User License Agreement ("EULA") is a legal agreement between (a) You
@@ -5,25 +6,25 @@ This End-User License Agreement ("EULA") is a legal agreement between (a) You
5
6
  authors and copyright holders) that governs your use of the Product (any
6
7
  software or hardware installed or made available by PhotoStructure, Inc.).
7
8
 
8
- **If you do not agree to the following terms of this license, please uninstall
9
- all software and return any hardware within 30 days of your purchase for a
10
- proportionate refund.**
9
+ **If you do not agree to the following terms of this license, please <a
10
+ href="/guide/uninstall/" target="_blank">uninstall</a>
11
+ the Product.**
11
12
 
12
13
  ### Copyright
13
14
 
14
15
  The Product is protected by copyright and other intellectual property laws and
15
- treaties. Photostructure, Inc. retains the title, copyright, and all
16
+ treaties. PhotoStructure, Inc. retains the title, copyright, and all
16
17
  intellectual property rights in the Product.
17
18
 
18
19
  ### License
19
20
 
20
21
  You may not separately publish, sell, market, distribute, lend, lease, rent, or
21
- sublicense the software code, including license keys. The Product is licensed,
22
+ sublicense the Product, software code, or license keys. The Product is licensed,
22
23
  not sold.
23
24
 
24
25
  ### Limitation of liability
25
26
 
26
- **In no event and under no legal theory, whether in tort (including negligence),
27
+ In no event and under no legal theory, whether in tort (including negligence),
27
28
  contract, or otherwise, unless required by applicable law (such as deliberate
28
29
  and grossly negligent acts) or agreed to in writing, shall any authors or
29
30
  copyright holders be liable to you for damages, including any direct, indirect,
@@ -31,48 +32,49 @@ special, incidental, or consequential damages of any character arising as a
31
32
  result of this license or out of the use or inability to use the Product
32
33
  (including but not limited to damages for loss of goodwill, work stoppage,
33
34
  computer failure or malfunction, or any and all other commercial damages or
34
- losses).**
35
+ losses).
35
36
 
36
37
  ### Disclaimer of warranty
37
38
 
38
- **The Product is provided "as is," without warranty of any kind, express or
39
+ The Product is provided "as is," without warranty of any kind, express or
39
40
  implied, including but not limited to the warranties of merchantability, fitness
40
41
  for a particular purpose and noninfringement. In no event shall the authors or
41
42
  copyright holders be liable for any claim, damages or other liability, whether
42
43
  in an action of contract, tort or otherwise, arising from, out of or in
43
- connection with the Product or the use or other dealings in the Product.**
44
+ connection with the Product or the use or other dealings in the Product.
44
45
 
45
- ### Limitation on reverse engineering and derivative works
46
+ ### Limitation on derivative works
46
47
 
47
48
  Except to the extent that such restriction is not permitted under applicable
48
- law, you are not permitted (and you agree not to) reverse engineer, decompile,
49
- disassemble or create derivative works of or modify the Product.
49
+ law, you are not permitted (and you agree not to) create or redistribute
50
+ derivative works of the Product.
50
51
 
51
52
  ### Privacy and consent to use data
52
53
 
53
- **The Product will not share your photos and videos to any outside entity
54
- without your explicit consent.**
55
-
56
- PhotoStructure Customer Support may request access to problematic images or
57
- videos, but will only access those assets that you explicitly consent to
58
- sharing.
54
+ **The Product does not send your photos or videos to PhotoStructure, Inc.**
59
55
 
60
- The Product will periodically and automatically download and install updates.
61
- These updates may include bug fixes, security updates, and new features.
56
+ The Product may periodically download and install updates. These updates may
57
+ include bug fixes, security updates, and new features. Automatic updates may be
58
+ disabled by the user via <a
59
+ href="/getting-started/advanced-settings/"
60
+ target="_blank">settings</a>.
62
61
 
63
- The Product may send crash reports and usage telemetry to us via a third party
64
- (such as sentry.io). These may contain your PhotoStructure account, system
65
- metadata, and recent product log messages.
66
-
67
- ### Termination of use
62
+ The Product may send error reports that contain limited file metadata via a
63
+ third party (such as Sentry). Error reports may be <a
64
+ href="/guide/error-reports/#how-to-opt-out-of-sending-error-reports"
65
+ target="_blank">disabled by the user</a>.
68
66
 
69
- Your rights under this EULA will terminate automatically if you fail to comply
70
- with any of its terms, in which case you must destroy all copies of the Product
71
- and return any component parts.
67
+ [//]: # "The URL above must be fully-qualified, as the EULA is included in the welcome page."
72
68
 
73
69
  ### Amendments to this Agreement
74
70
 
75
- Photostructure, Inc. reserves the right, at its sole discretion, to modify or
71
+ PhotoStructure, Inc. reserves the right, at its sole discretion, to modify or
76
72
  replace this Agreement at any time. If a revision is material we will provide at
77
73
  least 30 days' notice prior to any new terms taking effect. What constitutes a
78
74
  material change will be determined at our sole discretion.
75
+
76
+ ### Termination of use
77
+
78
+ Your rights under this EULA will terminate automatically if you fail to comply
79
+ with any of its terms, in which case you must destroy all copies of the Product
80
+ and return any component parts.
package/README.md CHANGED
@@ -1,12 +1,24 @@
1
- # PhotoStructure for Servers
1
+ <img alt="PhotoStructure" src="https://photostructure.com/img/logo-horizontal-black-on-white-800w.png" width=400>
2
2
 
3
- <img width="300" src="public/images/logo-gradient.svg" alt="PhotoStructure">
3
+ Welcome to your new home for all your photos and videos!
4
4
 
5
- The `photostructure` npm package is made available to simplify running
6
- PhotoStructure on headless x64 and ARMHF linux platforms.
5
+ ## Prerequisites
7
6
 
8
- PhotoStructure is not open source. **By running this software, you agree to the
9
- [End User License Agreement](./LICENSE.md).**
7
+ PhotoStructure for Servers requires:
10
8
 
11
- Please see <https://support.photostructure.com/> for instructions on
12
- installation and running this software.
9
+ - a 64-bit Intel or AMD CPU
10
+ - At least Ubuntu LTS 22.04, macOS Sequoia (15), or Windows 10
11
+
12
+ ## Instructions
13
+
14
+ 1. Read and accept the [end-user license agreement](https://photostructure.com/eula), then
15
+
16
+ 2. Follow the instructions for [Docker](https://photostructure.com/server/photostructure-for-docker/) or [Node.js](https://photostructure.com/server/photostructure-for-node/).
17
+
18
+ 3. Check out the [user guide](https://photostructure.com/user-guide/) for tips on how to use PhotoStructure and get the most out of it.
19
+
20
+ 4. Check out the [release notes](https://photostructure.com/release-notes/) to see what's new in each version.
21
+
22
+ ## Join us!
23
+
24
+ Visit the [PhotoStructure forum](https://forum.photostructure.com) and [Discord](https://photostructure.com/go/discord) for product support, release announcements, and discuss new features.
package/SECURITY.md ADDED
@@ -0,0 +1,29 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ Only the latest released version of PhotoStructure is supported.
6
+
7
+ ## Responsible disclosure security policy
8
+
9
+ We consider the security of our users a top priority. But no matter how much effort we put into security, there may still be vulnerabilities present.
10
+
11
+ ## Reporting a security issue
12
+
13
+ If you find a vulnerability in PhotoStructure, _or even think you have_, please contact us via a **private channel**.
14
+
15
+ Please use whatever channel is most convenient for you:
16
+
17
+ - send an email to [security@photostructure.com](mailto:security@photostructure.com), or
18
+ - send a direct forum message to [@mrm](https://forum.photostructure.com/u/mrm/summary), or
19
+ - send a direct message to @photostructure on [discord](https://photostructure/go/discord)
20
+
21
+ Expect a reply in under 36 hours. Please try an alternative contact method if you don't get a response.
22
+
23
+ **Please do not open a public GitHub issue to report vulnerabilities.**
24
+
25
+ We kindly ask you to refrain from malicious acts that put our users, the project, or any of the project’s team members at risk.
26
+
27
+ ## Thank you!
28
+
29
+ Your efforts to responsibly disclose your findings are sincerely appreciated and will be taken into account to acknowledge your contributions.
package/VERSION.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": "2026.4.8-beta",
3
+ "versionMajor": 2026,
4
+ "versionMinor": 4,
5
+ "versionPatch": 8,
6
+ "versionPrerelease": [
7
+ "beta"
8
+ ],
9
+ "release": "2026.4.8-beta+20260427235655",
10
+ "gitSha": "70b4ff4764b0a863740dbe1cf47f6075a3f4154e",
11
+ "gitDate": "2026-04-28T06:56:55.000Z"
12
+ }
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Copyright © 2026, PhotoStructure Inc. All rights reserved.
4
+
5
+ // BY USING THIS SOFTWARE, YOU ACCEPT ALL OF THE TERMS IN
6
+ // https://photostructure.com/eula
7
+ // IF YOU DO NOT ACCEPT THESE TERMS, DO NOT USE THIS SOFTWARE
8
+
9
+ (()=>{"use strict";var e={92778(e,t,r){var o,n=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),s=0;s<r.length;s++)"default"!==r[s]&&n(t,e,r[s]);return i(t,e),t}),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configDir=t.HOME=t.ROOT=t.isBrew=t.isMac=t.isWin=t.isNetworkDisabled=t.dbg=void 0,t.defer=h,t.toS=v,t.die=function(e,t){for(const r of[v(e),`Please refer to ${t??"https://photostructure.com/server/photostructure-for-node/"}`,"You can also visit https://forum.photostructure.com for help.",""])console.error(r);p.default.exit(1)},t.toNotBlank=m,t.isTrue=g,t.setDnsLookup=function(e){b=e,t.isNetworkDisabled.reset()},t.run=function(e,r,o){const n=performance.now();t.isWin&&e.includes(" ")&&(e='"'+e+'"');const i=(0,l.spawnSync)(e,r,{cwd:t.ROOT,timeout:1e4,...o,encoding:"utf8",shell:t.isWin});if(0!==i.status||null!=i.error)throw new Error(`"${e} ${r.join(" ")}" failed: ${v(i.error)} ${i.stderr}`);return(0,t.dbg)("run("+e+")",{args:r,result:i,elapsedMs:(s=performance.now()-n,Math.round(10*s)/10)}),i;var s},t.readPackageVersion=function(){return JSON.parse((0,c.readFileSync)((0,f.join)(t.ROOT,"package.json"),"utf8")).version},t.priorVersionFile=function(){return(0,f.join)((0,t.configDir)(),"prior-version.json")};const l=r(31421),a=r(71553),c=r(73024),d=r(48161),f=s(r(76760)),p=u(r(1708));function h(e){let t,r,o=!1;const n=function(){if(o){if(null!=r)throw r;return t}try{return o=!0,t=e()}catch(e){throw r=e,r}};return n.reset=()=>{t=void 0,r=void 0,o=!1},n}function v(e){return null==e?"":String(e)}function _(e){return null==e||0===v(e).trim().length}function m(e){return _(e)?void 0:v(e)}function g(e){if("boolean"==typeof e)return e;if(null==e)return!1;if(1===e)return!0;{const t=String(e).toLowerCase().trim();return["true","1"].includes(t)}}t.dbg=/\bdebug\b/.test(p.default.env.PS_LOG_LEVEL??"")||p.default.argv.includes("--debug")?console.log:()=>{};let b=a.lookup;t.isNetworkDisabled=h(async()=>{if(!_(p.default.env.PS_NO_NETWORK))return g(p.default.env.PS_NO_NETWORK);try{return await Promise.race([b("account.photostructure.com",{family:4}),new Promise((e,t)=>setTimeout(()=>t(new Error("Network timeout")),7e3))]),!1}catch(e){return(0,t.dbg)("Network disabled: "+e),!0}}),t.isWin="win32"===p.default.platform,t.isMac="darwin"===p.default.platform,t.isBrew=t.isMac&&!g(p.default.env.NOBREW)&&(0,c.existsSync)("/usr/local/bin/brew"),t.ROOT=f.default.resolve(f.default.join(__dirname,"..")),t.HOME=p.default.env.HOME??(0,d.homedir)(),t.configDir=h(()=>{const e=t.isWin?m(p.default.env.PS_CONFIG_DIR)??(0,f.join)(p.default.env.APPDATA,"PhotoStructure"):m(p.default.env.PS_CONFIG_DIR)??(0,f.join)(t.HOME,".config","PhotoStructure");return(0,c.mkdirSync)(e,{recursive:!0,mode:448}),e})},11610(e,t,r){e=r.nmd(e);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isNpmInstall=void 0,t.bootstrapMain=d;const n=r(73024),i=r(76760),s=o(r(1708)),u=r(92778),l=r(93249),a=r(69071),c=r(69772);async function d(){if((0,a.assertNodeVersion)(),!t.isNpmInstall)if(await(0,u.isNetworkDisabled)()){(0,n.existsSync)((0,u.priorVersionFile)())||(0,u.die)("Network access is disabled.\nPlease enable your WAN during your first run to download PhotoStructure's dependencies.","https://photostructure.com/server/photostructure-for-node/#troubleshooting-network");const e=(0,c.readJsonMaybe)((0,u.priorVersionFile)());(e?.node!==s.default.versions.node||(0,c.needsNpmInstall)())&&(0,c.npmInstall)()}else(0,l.gitPullAndMaybeBounce)().bounced||(0,c.prepAndInstall)()}t.isNpmInstall=!(0,n.existsSync)((0,i.join)(u.ROOT,".git")),r.c[r.s]===e&&(s.default.on("unhandledRejection",e=>{(0,u.die)("Unexpected rejection: "+e,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-unexpected")}),s.default.on("uncaughtException",e=>{(0,u.die)("Unexpected error: "+e,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-unexpected")}),d())},93249(e,t,r){var o,n=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),s=0;s<r.length;s++)"default"!==r[s]&&n(t,e,r[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.gitPullAndMaybeBounce=t.EnvOnBounce=void 0;const u=s(r(1708)),l=r(92778),a=r(14325);t.EnvOnBounce={PS_BOUNCED:"1",PS_REINSTALL:"1"},t.gitPullAndMaybeBounce=(0,l.defer)(()=>{const e=(0,l.readPackageVersion)();(0,l.dbg)({version_before_pull:e});const r=(0,l.isTrue)(u.default.env.NOGIT),o=(0,l.isTrue)(u.default.env.PS_NO_GIT);if(!r&&!o&&"none"!==u.default.env.PS_CHECK_UPDATES){try{(0,l.run)((0,a.git)(),["stash","--include-untracked"])}catch(e){console.warn("warn: git stash failed: "+e)}try{(0,l.run)((0,a.git)(),["pull"],{timeout:3e4})}catch(e){console.warn("warn: git failed: "+e)}}const n=(0,l.readPackageVersion)();return(0,l.dbg)({version_after_pull:n}),(0,l.isTrue)(u.default.env.PS_BOUNCED)||!(0,l.isTrue)(u.default.env.PS_DEV_FORCE_BOUNCE)&&e===n?{bounced:!1,version_before_pull:e,version_after_pull:n}:((0,l.run)(u.execPath,u.execArgv,{env:{...u.default.env,...t.EnvOnBounce},stdio:"inherit",timeout:void 0}),{bounced:!0,version_before_pull:e,version_after_pull:n})})},69071(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OldNodeError=void 0,t.assertNodeVersion=function(){const[e,r]=n.default.versions.node.split(".").map(e=>parseInt(e));(0,i.dbg)({node_version:n.default.versions.node,major:e,minor:r}),e<22||22===e&&r<3?(0,i.die)(t.OldNodeError,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-node-version"):(0,i.dbg)("Node.js version: "+n.default.versions.node)};const n=o(r(1708)),i=r(92778);t.OldNodeError="PhotoStructure v2026.2+ requires Node.js v22.3 or later (v25 recommended)"},69772(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.npmCacheClean=c,t.readJsonMaybe=d,t.needsNpmInstall=f,t.prepAndInstall=function(){const e=(0,s.gitPullAndMaybeBounce)(),t={node:process.versions.node,photostructure:e.version_after_pull},r=process.argv.includes("--reinstall")||(0,i.isTrue)(process.env.PS_REINSTALL),n=d((0,i.priorVersionFile)()),l=n?.photostructure!==t.photostructure||n?.node!==t.node,a=e.version_before_pull!==e.version_after_pull,h=f();(0,i.dbg)("cleanup?",{reinstall:r,mismatchedInstalledVersion:l,mismatchedRunningVersions:a,missingNodeModules:h,priorInstalledJson:n,expectedVersionJson:t,configDir:(0,i.configDir)()}),(r||l||a||h)&&(console.log("Cleaning up any prior builds..."),c(),(0,o.writeFileSync)((0,i.priorVersionFile)(),JSON.stringify(t)),(0,u.assertPythonSetuptools)(),p())},t.npmInstall=p;const o=r(73024),n=r(76760),i=r(92778),s=r(93249),u=r(58789),l=r(14325);function a(...e){if(0===e.length)throw new Error("rm(): no args");const t=(0,n.join)(...e);try{(0,i.dbg)("rm("+t+")"),(0,o.rmSync)(t,{recursive:!0,force:!0,maxRetries:5,retryDelay:500})}catch(e){console.warn("warn: failed to rm "+t+": "+e)}}function c(){a(i.ROOT,"node_modules"),i.isWin?(a(process.env.APPDATA,"npm-cache","_libvips"),a(process.env.LOCALAPPDATA,"node-gyp")):(a(i.HOME,".npm","_libvips"),a(i.HOME,".node-gyp"))}function d(e){try{return JSON.parse((0,o.readFileSync)(e,{encoding:"utf8"}))}catch{return}}function f(){return!(0,o.existsSync)((0,n.join)(i.ROOT,"node_modules"))}function p(e){(0,i.run)((0,l.npm)(),["install"],{timeout:e})}},58789(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.assertPythonSetuptools=function(){try{(0,i.dbg)("Checking python..."),(0,i.run)((0,s.python)(),["-c",'"import distutils"'])}catch(e){if(!(0,i.toS)(e).includes("No module named 'distutils'"))throw e;(0,i.dbg)("Installing setuptools...");try{i.isBrew?(0,i.run)("brew",["install","-q","python","python-setuptools"]):i.isWin?(0,i.run)((0,s.pathToTool_)((0,i.toNotBlank)(n.default.env.PIP)??"pip.exe"),["install","setuptools"]):(0,i.run)((0,s.python)(),["-m","pip","install","setuptools"])}catch(e){(0,i.die)(`Failed to install Python setuptools: ${(0,i.toS)(e)}`,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-python")}}};const n=o(r(1708)),i=r(92778),s=r(14325)},14325(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.python=t.npm=t.git=void 0,t.pathToTool_=function(e){const t=l(e);return null==t&&(0,u.die)(`Please install ${e}`,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-prerequisites"),t};const n=r(73024),i=o(r(76760)),s=o(r(1708)),u=r(92778);function l(e){if(null!=e&&0!==(0,u.toS)(e).trim().length){if(i.default.isAbsolute(e)&&t(e))return e;for(const r of(0,u.toS)(s.default.env.PATH).split(i.default.delimiter)){const o=i.default.join(r,e);if(t(o))return(0,u.dbg)("pathToTool("+e+"): "+o),o}(0,u.dbg)("pathToTool("+e+"): not found")}function t(e){try{return(0,n.accessSync)(e,n.constants.R_OK|(u.isWin?0:n.constants.X_OK)),!0}catch{return!1}}}function a({envName:e,posixName:t,winName:r,desc:o}){return(0,u.defer)(()=>{const n=(0,u.toNotBlank)(s.default.env[e])??(u.isWin?r:t),i=l(n);if(null!=i)return i;(0,u.die)(`Please reinstall ${o} (missing ${n})`,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-prerequisites")})}t.git=a({desc:"Git",envName:"GIT",posixName:"git",winName:"git.exe"}),t.npm=a({desc:"Node.js",envName:"NPM",posixName:"npm",winName:"npm.cmd"}),t.python=a({desc:"Python",envName:"PYTHON",posixName:"python3",winName:"py.exe"})},31421(e){e.exports=require("node:child_process")},71553(e){e.exports=require("node:dns/promises")},73024(e){e.exports=require("node:fs")},48161(e){e.exports=require("node:os")},76760(e){e.exports=require("node:path")},1708(e){e.exports=require("node:process")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.c=t,r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o=r(r.s=11610);module.exports=o})();