Wizzas commited on
Commit
ecb2a3f
·
verified ·
1 Parent(s): 2274b3a

Upload source code (part 2)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +12 -0
  2. LICENSE +24 -0
  3. README.md +334 -0
  4. docs/TRAINING_AND_EVALUATION.md +67 -0
  5. docs/WORKFLOW_UPDATES.md +116 -0
  6. docs/WORKFLOW_UPDATE_FILES.txt +39 -0
  7. frontend/index.html +1 -0
  8. frontend/localBuild.mjs +39 -0
  9. frontend/package-lock.json +1333 -0
  10. frontend/package.json +24 -0
  11. frontend/public/assets/email/robot-hello.gif +0 -0
  12. frontend/public/assets/references/candle.json +0 -0
  13. frontend/public/assets/references/capsules.json +0 -0
  14. frontend/public/assets/references/cashew.json +0 -0
  15. frontend/public/assets/references/chewinggum.json +0 -0
  16. frontend/public/assets/references/fryum.json +0 -0
  17. frontend/public/assets/references/macaroni1.json +0 -0
  18. frontend/public/assets/references/macaroni2.json +0 -0
  19. frontend/public/assets/references/pcb1.json +0 -0
  20. frontend/public/assets/references/pcb2.json +0 -0
  21. frontend/public/assets/references/pcb3.json +0 -0
  22. frontend/public/assets/references/pcb4.json +0 -0
  23. frontend/public/assets/references/pipe_fryum.json +0 -0
  24. frontend/public/assets/sample-thumbs/candle_anomalous.jpg +0 -0
  25. frontend/public/assets/sample-thumbs/candle_good.jpg +0 -0
  26. frontend/public/assets/sample-thumbs/capsules_anomalous.jpg +0 -0
  27. frontend/public/assets/sample-thumbs/capsules_good.jpg +0 -0
  28. frontend/public/assets/sample-thumbs/cashew_anomalous.jpg +0 -0
  29. frontend/public/assets/sample-thumbs/cashew_good.jpg +0 -0
  30. frontend/public/assets/sample-thumbs/chewinggum_anomalous.jpg +0 -0
  31. frontend/public/assets/sample-thumbs/chewinggum_good.jpg +0 -0
  32. frontend/public/assets/sample-thumbs/fryum_anomalous.jpg +0 -0
  33. frontend/public/assets/sample-thumbs/fryum_good.jpg +0 -0
  34. frontend/public/assets/sample-thumbs/macaroni1_anomalous.jpg +0 -0
  35. frontend/public/assets/sample-thumbs/macaroni1_good.jpg +0 -0
  36. frontend/public/assets/sample-thumbs/macaroni2_anomalous.jpg +0 -0
  37. frontend/public/assets/sample-thumbs/macaroni2_good.jpg +0 -0
  38. frontend/public/assets/sample-thumbs/pcb1_anomalous.jpg +0 -0
  39. frontend/public/assets/sample-thumbs/pcb1_good.jpg +0 -0
  40. frontend/public/assets/sample-thumbs/pcb2_anomalous.jpg +0 -0
  41. frontend/public/assets/sample-thumbs/pcb2_good.jpg +0 -0
  42. frontend/public/assets/sample-thumbs/pcb3_anomalous.jpg +0 -0
  43. frontend/public/assets/sample-thumbs/pcb3_good.jpg +0 -0
  44. frontend/public/assets/sample-thumbs/pcb4_anomalous.jpg +0 -0
  45. frontend/public/assets/sample-thumbs/pcb4_good.jpg +0 -0
  46. frontend/public/assets/sample-thumbs/pipe_fryum_anomalous.jpg +0 -0
  47. frontend/public/assets/sample-thumbs/pipe_fryum_good.jpg +0 -0
  48. frontend/public/config.js +1 -0
  49. frontend/public/logo.svg +12 -0
  50. frontend/public/showcase/data.json +0 -0
.gitattributes CHANGED
@@ -41,3 +41,15 @@ docs/assets/screenshots/overview-dark.png filter=lfs diff=lfs merge=lfs -text
41
  docs/assets/screenshots/overview-light.png filter=lfs diff=lfs merge=lfs -text
42
  docs/assets/screenshots/result-compare-dark.png filter=lfs diff=lfs merge=lfs -text
43
  docs/assets/screenshots/result-compare.png filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  docs/assets/screenshots/overview-light.png filter=lfs diff=lfs merge=lfs -text
42
  docs/assets/screenshots/result-compare-dark.png filter=lfs diff=lfs merge=lfs -text
43
  docs/assets/screenshots/result-compare.png filter=lfs diff=lfs merge=lfs -text
44
+ frontend/public/showcase/images/1c68ef87cd4b4e10a7efab1b5107d59b.jpg filter=lfs diff=lfs merge=lfs -text
45
+ frontend/public/showcase/images/1c68ef87cd4b4e10a7efab1b5107d59b_heatmap.jpg filter=lfs diff=lfs merge=lfs -text
46
+ frontend/public/showcase/images/24610e481ba14990be2b059b435ec8d1.jpg filter=lfs diff=lfs merge=lfs -text
47
+ frontend/public/showcase/images/6f8af69aa59d40b488d5d864f502224d.jpg filter=lfs diff=lfs merge=lfs -text
48
+ frontend/public/showcase/images/6f8af69aa59d40b488d5d864f502224d_heatmap.jpg filter=lfs diff=lfs merge=lfs -text
49
+ frontend/public/showcase/images/861bd29ac3e34efc89c18aad4befcb0a.jpg filter=lfs diff=lfs merge=lfs -text
50
+ frontend/public/showcase/images/861bd29ac3e34efc89c18aad4befcb0a_heatmap.jpg filter=lfs diff=lfs merge=lfs -text
51
+ frontend/public/showcase/images/ccaaa807f4834da8b402ca8b46073342.jpg filter=lfs diff=lfs merge=lfs -text
52
+ frontend/public/showcase/images/ccaaa807f4834da8b402ca8b46073342_heatmap.jpg filter=lfs diff=lfs merge=lfs -text
53
+ frontend/public/showcase/images/def5b9b862a447ac8c61e168af28c263.jpg filter=lfs diff=lfs merge=lfs -text
54
+ frontend/public/showcase/images/def5b9b862a447ac8c61e168af28c263_heatmap.jpg filter=lfs diff=lfs merge=lfs -text
55
+ frontend/src/practiceAssets/candle-normal.jpg filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DefectRAG contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ This license applies to generated application source only. Third-party model,
24
+ dataset and dependency materials retain their own terms; see docs/THIRD_PARTY_NOTICES.md.
README.md ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - code
4
+ - portfolio
5
+ ---
6
+
7
+ > Source code of **DefectRAG**, also published at https://github.com/WAYTECHG/DefectRAG
8
+
9
+ <div align="center">
10
+ <picture>
11
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/hero-dark.svg" />
12
+ <img src="docs/assets/hero-light.svg" alt="DefectRAG: visual evidence, grounded answers" width="100%" />
13
+ </picture>
14
+
15
+ <p><strong>Industrial visual inspection with a fine-tuned vision model and an evidence-grounded assistant.</strong><br/>
16
+ Take a photo of a product. See if it looks unusual, see where, and ask why.</p>
17
+
18
+ <a href="https://huggingface.co/spaces/Wizzas/DefectRAG"><img src="https://img.shields.io/badge/Live_demo-Hugging_Face-FFD21E?style=for-the-badge&amp;logo=huggingface&amp;logoColor=black" alt="Live demo on Hugging Face" /></a>
19
+ <a href="https://defectrag.duckdns.org"><img src="https://img.shields.io/badge/Live_demo_hosting-AWS_Lightsail-FF9900?style=for-the-badge&amp;logo=amazonaws&amp;logoColor=white" alt="Saved-example showcase hosted on AWS Lightsail with HTTPS" /></a>
20
+ <img src="https://img.shields.io/badge/Python-3.12-3776AB?style=for-the-badge&amp;logo=python&amp;logoColor=white" alt="Cloud Python 3.12" />
21
+ <img src="https://img.shields.io/badge/PyTorch-2.8.0-EE4C2C?style=for-the-badge&amp;logo=pytorch&amp;logoColor=white" alt="PyTorch 2.8.0" />
22
+ <img src="https://img.shields.io/badge/React-19.3.1-149ECA?style=for-the-badge&amp;logo=react&amp;logoColor=white" alt="React 19.3.1" />
23
+ <br/>
24
+ <img src="https://img.shields.io/badge/DINOv2-fine--tuned-171717?style=flat-square&amp;logo=meta&amp;logoColor=white" alt="DINOv2, fine-tuned" />
25
+ <img src="https://img.shields.io/badge/Qwen2.5--3B-QLoRA_fine--tuned-171717?style=flat-square" alt="Qwen2.5-3B fine-tuned with QLoRA" />
26
+ <img src="https://img.shields.io/badge/VisA_AUROC-0.971-171717?style=flat-square" alt="VisA mean image AUROC 0.971" />
27
+ <img src="https://img.shields.io/badge/MVTec_AD_AUROC-0.992-171717?style=flat-square" alt="MVTec AD mean image AUROC 0.992" />
28
+ <img src="https://img.shields.io/badge/tests-510_passing-2ea043?style=flat-square" alt="284 frontend and 226 backend tests passing" />
29
+ <br/>
30
+ <img src="https://img.shields.io/badge/Gradio-6.30.0-F97316?style=flat-square&amp;logo=gradio&amp;logoColor=white" alt="Gradio 6.30.0" />
31
+ <img src="https://img.shields.io/badge/FastAPI-0.142.2-009688?style=flat-square&amp;logo=fastapi&amp;logoColor=white" alt="Cloud FastAPI 0.142.2" />
32
+ <img src="https://img.shields.io/badge/Vite-6.4.5-646CFF?style=flat-square&amp;logo=vite&amp;logoColor=white" alt="Vite 6.4.5" />
33
+ <img src="https://img.shields.io/badge/LangChain-1.6.10-1C3C3C?style=flat-square&amp;logo=langchain&amp;logoColor=white" alt="Cloud LangChain core 1.6.10" />
34
+ <img src="https://img.shields.io/badge/LangGraph-1.2.14-1C3C3C?style=flat-square" alt="Cloud LangGraph 1.2.14" />
35
+ <img src="https://img.shields.io/badge/Supabase-Auth_%2B_RLS_%2B_Storage-3ECF8E?style=flat-square&amp;logo=supabase&amp;logoColor=white" alt="Supabase authentication, row-level security and storage" />
36
+ <img src="https://img.shields.io/badge/MFA-native_TOTP-635BFF?style=flat-square" alt="Native Supabase TOTP MFA" />
37
+ <img src="https://img.shields.io/badge/n8n-case_emails_live-EA4B71?style=flat-square&amp;logo=n8n&amp;logoColor=white" alt="n8n on AWS delivers Corrective Action emails" />
38
+ <img src="https://img.shields.io/badge/License-MIT-7963DF?style=flat-square" alt="MIT application licence" />
39
+ <a href="https://github.com/WAYTECHG/DefectRAG/actions/workflows/ci.yml"><img src="https://github.com/WAYTECHG/DefectRAG/actions/workflows/ci.yml/badge.svg" alt="CI: tests and builds on every push" /></a>
40
+ <a href="https://github.com/WAYTECHG/DefectRAG/actions/workflows/release.yml"><img src="https://github.com/WAYTECHG/DefectRAG/actions/workflows/release.yml/badge.svg" alt="Release: one-click dashboard deployment to Hugging Face" /></a>
41
+
42
+ <p><a href="https://huggingface.co/spaces/Wizzas/DefectRAG">Live demo</a> · <a href="https://defectrag.duckdns.org">AWS-hosted showcase</a> · <a href="#features">Features</a> · <a href="#results">Results</a> · <a href="#how-it-works">How it works</a> · <a href="#quick-start">Quick start</a> · <a href="#documentation">Docs</a> · <a href="docs/STAFF_QUICK_GUIDE.md">Staff guide</a></p>
43
+ </div>
44
+
45
+ <p align="center">
46
+ <picture>
47
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/screenshots/result-compare-dark.png" />
48
+ <img src="docs/assets/screenshots/result-compare.png" alt="Inspection result: the original photo beside the highlighted unusual areas, with the difference score and the review limit" width="49%" />
49
+ </picture>
50
+ <picture>
51
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/screenshots/overview-dark.png" />
52
+ <img src="docs/assets/screenshots/overview-light.png" alt="The dashboard overview: inspection steps, result counts and inspections over time" width="49%" />
53
+ </picture>
54
+ </p>
55
+
56
+ ## Overview
57
+
58
+ DefectRAG checks product photos for unusual appearance and explains its results. A fine-tuned **DINOv2** vision model
59
+ compares each photo with a memory of normal photos of the same product and highlights the areas that do not match. An
60
+ inspection-linked assistant answers questions with sentences quoted from the project's attributed documents, generated
61
+ by a **QLoRA-fine-tuned Qwen2.5-3B** and checked before they are shown. Staff review results, share them with the team
62
+ and turn confirmed defects into Corrective Actions with an owner, a deadline and email notifications.
63
+
64
+ | Visual inspection | Evidence-grounded assistant | Accountable team review |
65
+ |---|---|---|
66
+ | Fine-tuned DINOv2 features across 12 VisA products | BGE retrieval over attributed documents | Supabase authentication, row-level security and TOTP MFA |
67
+ | Nearest-normal difference scores with one threshold rule | LangGraph routing, Qwen generation and citation checks | Private personal history, explicit team sharing |
68
+ | Patch-level heatmaps and a side-by-side compare view | Saved measurements kept separate from document claims | Corrective Actions with live email reminders through n8n |
69
+
70
+ > **Operating scope:** appearance screening on benchmark products. Scores are distances, not defect probabilities. The
71
+ > product category is chosen by the operator, and a person makes the final decision.
72
+
73
+ ## Features
74
+
75
+ | Feature | What it does |
76
+ |---|---|
77
+ | **Image and batch inspection** | Pick a product, upload one photo or a batch, get *Looks normal*, *Needs a closer look* or *Unusual appearance* with the unusual areas highlighted. Zoom, drag and compare the photo with the heatmap. |
78
+ | **Evidence assistant** | Ask about a result. Answers quote the project's documents with sources, and say so when the documents cannot answer. Questions about the score or verdict are answered from the saved measurement, not generated. |
79
+ | **Staff review and team sharing** | Save structured reviews (Accept / Hold / Reject), share a separate copy to the team workspace, acknowledge alerts, mark all as seen. |
80
+ | **Corrective Actions** | Turn a confirmed defect into a case with a person responsible, a supervisor and a due date. Emails go out instantly on each change and as due-soon and overdue reminders. |
81
+ | **Secure accounts** | Email-confirmed registration, developer approval, native TOTP MFA, enforced in the database with row-level security and protected storage. |
82
+ | **Local and cloud** | The same account works in the hosted app and on a laptop, with private history synchronised both ways and explicit handling of conflicts. |
83
+ | **Reports and recovery** | Printable reports, CSV exports, recoverable archiving, and a support-details copy that never includes passwords or photos. |
84
+ | **Accessible interface** | Black-and-white light and dark themes, text-size controls, phone and tablet layouts, and a guided practice that walks through the real screens without saving anything. |
85
+
86
+ ## Results
87
+
88
+ All detector numbers are on the official VisA test split: **12 products, 2,162 test photos (962 normal, 1,200 defective)**. Every product uses the
89
+ **same threshold rule**, the one the app uses: the limit is set so that about 5 in 100 normal reference photos are
90
+ flagged (the 95th percentile of held-out normal scores).
91
+
92
+ | Detector | AUROC | Defects caught | Normal photos flagged |
93
+ |---|---:|---:|---:|
94
+ | Pretrained DINOv2 (frozen) with a random-sample memory | 0.950 | 83.8% | 7.4% |
95
+ | **Fine-tuned DINOv2 with a coreset memory (deployed)** | **0.971** | **90.7%** | **7.0%** |
96
+
97
+ AUROC measures how well the scores separate normal from defective photos (1.0 = perfect, 0.5 = chance), independently of
98
+ the threshold.
99
+
100
+ ### What improved the detector, one change at a time
101
+
102
+ | Step | Change | Mean AUROC | Three weakest products | Macaroni 2 |
103
+ |---|---|---:|---:|---:|
104
+ | 0 | Pretrained DINOv2 (frozen), memory of randomly sampled normal patches | 0.950 | 0.887 | 0.845 |
105
+ | 1 | Memory chosen by greedy farthest-point selection (a coreset), same size | 0.969 | 0.925 | 0.880 |
106
+ | 2 | Last 4 of 12 encoder blocks fine-tuned on synthetic defects (deployed) | **0.971** | **0.934** | **0.897** |
107
+
108
+ The coreset is the main gain and it also holds on a second dataset. The fine-tune adds a small gain that is clear on
109
+ Macaroni 1, Macaroni 2 and PCB 1. Rotated training views, a second backbone, global and position-aware distances, score
110
+ fusions and a simpler fine-tune were also tested and did not help; all of it is documented in
111
+ [the experiments](docs/ENCODER_DIAGNOSTIC.md).
112
+
113
+ ### Generalisation check on MVTec AD
114
+
115
+ The three detector variants were scored **once** on MVTec AD (15 other products, 1,725 test images), with the protocol
116
+ written before any score existed ([protocol and results](docs/MVTEC_EVALUATION.md)). The vision model was never trained
117
+ on MVTec.
118
+
119
+ | MVTec AD, mean over 15 products | Random-sample memory | Coreset memory | Coreset + VisA fine-tuned encoder |
120
+ |---|---:|---:|---:|
121
+ | Image AUROC | 0.986 | **0.992** | **0.992** |
122
+ | Image average precision | 0.995 | 0.997 | 0.998 |
123
+ | Pixel AUROC | 0.886 | 0.888 | 0.881 |
124
+
125
+ The coreset gains clearly on cable, pill and screw with no product clearly worse. The results are also on the dashboard's Official benchmark page. The VisA fine-tune adds nothing
126
+ measurable here (one product clearly better, one clearly worse), so its small VisA gain is not confirmed elsewhere.
127
+
128
+ <details>
129
+ <summary><strong>Per-product results (VisA and MVTec AD)</strong></summary>
130
+
131
+ **VisA, deployed detector, same q95 rule for every product**
132
+
133
+ | Product | Image AUROC (before → now) | Pixel AUROC | Defects caught | Normal flagged |
134
+ |---|---:|---:|---:|---:|
135
+ | PCB 1 | 0.960 → **0.979** | 0.995 | 94% | 9% |
136
+ | Capsules | 0.968 → **0.978** | 0.978 | 96% | 7% |
137
+ | Cashew | 0.961 → **0.974** | 0.997 | 94% | 8% |
138
+ | Candle | 0.941 → **0.960** | 0.992 | 86% | 9% |
139
+ | Chewing gum | 0.989 → **0.992** | 0.996 | 96% | 6% |
140
+ | Fryum | 0.992 → **0.990** | 0.981 | 96% | 4% |
141
+ | Macaroni 1 | 0.909 → **0.947** | 0.996 | 75% | 4% |
142
+ | Macaroni 2 | 0.845 → **0.897** | 0.994 | 73% | 9% |
143
+ | PCB 2 | 0.906 → **0.958** | 0.972 | 87% | 10% |
144
+ | PCB 3 | 0.955 → **0.993** | 0.980 | 98% | 13% |
145
+ | PCB 4 | 0.987 → **0.995** | 0.983 | 95% | 2% |
146
+ | Pipe fryum | 0.989 → **0.991** | 0.993 | 99% | 4% |
147
+
148
+ **MVTec AD, image AUROC** (random memory / coreset / coreset + fine-tune)
149
+
150
+ | Product | AUROC | Product | AUROC | Product | AUROC |
151
+ |---|---|---|---|---|---|
152
+ | Bottle | 1.000 / 1.000 / 1.000 | Hazelnut | 1.000 / 0.999 / 0.999 | Tile | 1.000 / 1.000 / 1.000 |
153
+ | Cable | 0.961 / 0.984 / 0.993 | Leather | 1.000 / 1.000 / 1.000 | Toothbrush | 1.000 / 1.000 / 1.000 |
154
+ | Capsule | 0.958 / 0.966 / 0.967 | Metal nut | 1.000 / 1.000 / 1.000 | Transistor | 0.997 / 1.000 / 1.000 |
155
+ | Carpet | 1.000 / 1.000 / 1.000 | Pill | 0.977 / 0.992 / 0.996 | Wood | 0.980 / 0.986 / 0.974 |
156
+ | Grid | 1.000 / 1.000 / 1.000 | Screw | 0.923 / 0.963 / 0.961 | Zipper | 0.993 / 0.994 / 0.996 |
157
+
158
+ </details>
159
+
160
+ ### Evidence assistant (fine-tuned Qwen2.5-3B)
161
+
162
+ QLoRA fine-tuning (4-bit base, LoRA rank 16, 0.96% of weights trained, 400 examples, 50 minutes on an 8 GB laptop GPU).
163
+ Scored on 100 held-out questions (80 answerable, 20 that the documents cannot answer); an answer counts only if every
164
+ quoted sentence is the expected one. The same Qwen2.5-3B was measured before and after fine-tuning in each place it runs:
165
+
166
+ | Where it runs | Before fine-tuning | After fine-tuning | Seconds per answer (after) |
167
+ |---|---:|---:|---:|
168
+ | Python test server, 4-bit | 42% correct · answered 6 of 20 it should refuse | **89%** correct · **0** of 20 | 11.6 |
169
+ | Ollama on the laptop (output format enforced) | 61% · 8 of 20 | **86%** · **0** of 20 | 1.1 |
170
+ | Hugging Face Space, 16-bit | not measured | **92%** · 2 of 20 | 2.6–2.9 |
171
+
172
+ The "before" scores differ between rows because the runtime differs, not the model: Ollama forces the answer into the
173
+ expected JSON shape, which the plain test server does not. Compare along a row, not down a column.
174
+
175
+ Details, a second question set and caveats: [language-model card](docs/model-cards/QWEN_MODEL_CARD.md).
176
+
177
+ ### Limitations
178
+
179
+ - Only the 12 VisA product types were tested; other products, cameras and lighting are untested.
180
+ - The VisA test photos were seen during development and several variants were scored on them, so those figures are
181
+ descriptive, not independent validation. The MVTec check was one run on a mirror copy of the dataset.
182
+ - **Macaroni is the weak spot:** small edge chips are hard to see, so Macaroni 1 and 2 catch 75% and 73% of defects
183
+ under the one rule, against 86–99% for the other products.
184
+ - Heatmaps are interpolated patch distances, not segmentation; on texture surfaces localisation is weak.
185
+ - The assistant generalises less than its headline suggests: 86–92% on held-out questions phrased like the training
186
+ questions, but 56–65% on a separate set of newcomer-style questions. All were written with AI help; real users may do
187
+ worse.
188
+ - A screening aid, not an approved factory procedure or acceptance specification.
189
+
190
+ ## How it works
191
+
192
+ 1. **Look.** DINOv2 cuts the photo into 14-pixel patches and compares each one with a memory of 32,768 patches taken from
193
+ normal photos of that product. The memory is chosen by farthest-point selection so that rare but normal details are
194
+ kept. Patches with no close match form the heatmap, and the most unusual ones give the difference score.
195
+ 2. **Decide.** Every product has a limit set from held-out normal photos only. Above it is *unusual*, within 5% of it is
196
+ *closer look*.
197
+ 3. **Explain.** BGE retrieves the most relevant sentences, LangGraph checks scope and evidence, the fine-tuned Qwen picks
198
+ and restates the answering sentence, and quotes, citations and numbers are validated before display.
199
+
200
+ <p align="center">
201
+ <picture>
202
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/diagrams/architecture-dark.svg" />
203
+ <img src="docs/assets/diagrams/architecture-light.svg" alt="System architecture: the React dashboard calls a Hugging Face Space (Gradio + FastAPI) that queues ZeroGPU jobs for the DINOv2 vision pipeline and the LangGraph evidence assistant; Supabase holds auth, storage and Postgres with row-level security; an event queue, Edge Function and n8n on AWS send case emails through Resend; GitHub Actions and AWS monitoring cover delivery and operations." width="100%" />
204
+ </picture>
205
+ </p>
206
+
207
+ <p align="center">
208
+ <picture>
209
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/diagrams/pipelines-dark.svg" />
210
+ <img src="docs/assets/diagrams/pipelines-light.svg" alt="Request pipelines. A photo is resized to a 448 px short edge, encoded by fine-tuned DINOv2, masked to the foreground and compared with 32,768 normal patches to give a heatmap, score and verdict. A question about the saved measurement reads stored facts; any other question runs the LangGraph nodes route, retrieve, validate_evidence, generate and validate_answer, ending in a cited answer or an abstention." width="100%" />
211
+ </picture>
212
+ </p>
213
+
214
+ <sub>Diagrams are generated from <a href="docs/assets/diagrams/build_diagrams.py"><code>docs/assets/diagrams/build_diagrams.py</code></a>; edit that file and rerun it to change them.</sub>
215
+
216
+ <details>
217
+ <summary><strong>Accounts, approval and email automation</strong></summary>
218
+
219
+ ```mermaid
220
+ flowchart TD
221
+ Visitor["Visitor"] --> Demo["Public demo / guided practice"]
222
+ Visitor --> Auth["Supabase Auth · email confirmation"]
223
+ Auth --> Pending["Pending Staff access request"]
224
+ Pending --> Approval["Developer approval · TOTP"]
225
+ Approval --> Staff["Approved Staff · required TOTP"]
226
+ Staff --> Personal["Private personal workspace"]
227
+ Local["Laptop cache + pending changes"] <--> Cloud["Supabase · owner-only history"]
228
+ Personal --> Cloud
229
+ Personal -->|Explicit share| Team["Team inspection + Staff review"]
230
+ Team -->|Confirmed defect| Case["Corrective Action"]
231
+ Case --> Queue["Event queue · one-effect ledger"]
232
+ Queue --> Edge["Edge Function · event-scoped lease"]
233
+ Edge --> N8N["n8n on AWS"]
234
+ N8N --> Mail["Email: supervisor + person responsible"]
235
+ ```
236
+
237
+ Access rules, MFA and case ownership are enforced below the frontend. Saving a case never depends on email: if delivery
238
+ fails, the case stays saved and the event waits in the queue. See [Security](docs/SECURITY.md).
239
+ </details>
240
+
241
+ ## Tech stack
242
+
243
+ | Layer | Technology |
244
+ |---|---|
245
+ | Vision | DINOv2 ViT-S/14 (last 4 blocks fine-tuned), PyTorch 2.8, farthest-point coreset memory, 448 px input |
246
+ | Language | Qwen2.5-3B-Instruct, QLoRA (4-bit NF4, LoRA rank 16), merged; Ollama Q8_0 copy for laptops |
247
+ | Retrieval | BGE-small-en-v1.5, LangChain loaders, LangGraph workflow with citation and number validation |
248
+ | Serving | Hugging Face Space, Gradio 6.30 Server mode, FastAPI, ZeroGPU queue; Uvicorn locally |
249
+ | Frontend | React 19, Vite 6, design tokens with light and dark themes |
250
+ | Data and auth | Supabase Postgres, row-level security, storage, Auth with TOTP MFA; SQLite locally |
251
+ | Automation | n8n on AWS Lightsail, Supabase Edge Functions, Resend |
252
+ | Live demo hosting on AWS | Read-only showcase on AWS Lightsail (Ubuntu, nginx, static IP, firewall, Let's Encrypt HTTPS) at [defectrag.duckdns.org](https://defectrag.duckdns.org), a Lambda status function, a Budgets alarm with a Lambda budget guard (SNS, one IAM role per function), and CloudWatch and Lightsail alarms with a CloudWatch dashboard. Live inspection runs on the Hugging Face Space. |
253
+ | Quality | GitHub Actions CI (ruff, mypy, pytest, frontend tests and builds), Dependabot, one-click release with approval |
254
+
255
+ ## Quick start
256
+
257
+ **Online:** open the [live demo](https://huggingface.co/spaces/Wizzas/DefectRAG). It runs on a shared free GPU, so the
258
+ first request can be slow; anonymous history is temporary.
259
+
260
+ **Run locally** (Windows, Python 3.11, Node.js):
261
+
262
+ ```powershell
263
+ git clone https://github.com/WAYTECHG/DefectRAG.git
264
+ cd DefectRAG
265
+ py -3.11 -m venv .venv
266
+ .\.venv\Scripts\python.exe -m pip install -r requirements.txt
267
+ .\.venv\Scripts\python.exe -m scripts.fetch_public_assets # downloads the models and verifies their checksums
268
+ .\Start-DefectRAG.cmd -Port 8767
269
+ ```
270
+
271
+ Then open http://127.0.0.1:8767. A GPU is optional. For local explanations install [Ollama](https://ollama.com) with
272
+ `qwen2.5:3b`. Sign-in, the team workspace and emails need your own Supabase and email setup ([Setup](docs/SETUP.md)).
273
+ This recipe was not re-tested on a completely fresh machine.
274
+
275
+ **Development checks:**
276
+
277
+ ```powershell
278
+ python -m ruff check .
279
+ python -m mypy backend
280
+ python -m pytest tests -q
281
+ npm test --prefix frontend
282
+ ```
283
+
284
+ ## Project structure
285
+
286
+ ```text
287
+ backend/ Visual scoring, RAG workflow, API and persistence
288
+ frontend/ React dashboard and design tokens
289
+ knowledge/ Attributed documents the assistant quotes
290
+ deployment/space/ Hugging Face Space adapter, release and verification tools
291
+ scripts/ Training, evaluation, asset and export tools
292
+ tests/ API, model-profile, calibration, security and answer checks
293
+ docs/ Guides, model cards, experiments and the operations runbook
294
+ results/ Published evaluation summaries
295
+ ```
296
+
297
+ ## Documentation
298
+
299
+ | Document | Contents |
300
+ |---|---|
301
+ | [Detector model card](docs/model-cards/DETECTOR_MODEL_CARD.md) | What the vision model is, how it was trained, per-product results, limits |
302
+ | [Language model card](docs/model-cards/QWEN_MODEL_CARD.md) | The fine-tuned Qwen: method, data, evaluation, known failures, licence |
303
+ | [Detector experiments](docs/ENCODER_DIAGNOSTIC.md) | Every variant tried, including the ones that did not help |
304
+ | [MVTec AD check](docs/MVTEC_EVALUATION.md) | The pre-written protocol and the one-run results |
305
+ | [Qwen fine-tuning](docs/QWEN_FINETUNING_RESULTS.md) | Full tables and how to repeat the training |
306
+ | [Setup](docs/SETUP.md) · [Security](docs/SECURITY.md) · [Operations](docs/OPERATIONS.md) · [Architecture](docs/ARCHITECTURE.md) | Running, securing and maintaining the system |
307
+ | [Staff guide](docs/STAFF_QUICK_GUIDE.md) | How staff use the dashboard |
308
+
309
+ ## Validation
310
+
311
+ - **510 automated tests passing** (284 frontend, 226 backend, 2 skipped), plus an automatic text-contrast audit of 13
312
+ screens in both themes.
313
+ - The deployed detector reproduces the experiment scores exactly through the app's own code path, and the live Space
314
+ matches the local app within 0.0003 on 24 real inspections across all 12 products.
315
+ - Detector releases to the Space are first rebuilt from the live snapshot and booted locally, and every release
316
+ keeps a saved rollback.
317
+ - Corrective Action emails were verified end to end: each recipient received every email once, with a provider receipt.
318
+
319
+ ## Future work
320
+
321
+ - Validation on real production photos instead of benchmark images.
322
+ - Better detection of small structural defects such as macaroni edge chips.
323
+ - Multimodal RAG: today the assistant reads the saved measurements, not the image pixels.
324
+
325
+ ## Credits and licences
326
+
327
+ Application code: [MIT](LICENSE). Models and datasets keep their own licences; see the
328
+ [third-party notices](docs/THIRD_PARTY_NOTICES.md).
329
+
330
+ - [VisA](https://github.com/amazon-science/spot-diff), Zou et al., ECCV 2022: CC BY 4.0.
331
+ - [MVTec AD](https://www.mvtec.com/company/research/datasets/mvtec-ad), Bergmann et al., CVPR 2019 / IJCV 2021: CC BY-NC-SA 4.0, used only for one evaluation.
332
+ - [DINOv2](https://github.com/facebookresearch/dinov2), Meta: Apache-2.0. The deployed weights are a modified copy, not an official Meta release.
333
+ - [Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct): **Improved using Qwen.** Qwen Research License, non-commercial, so the fine-tuned model is not covered by the MIT licence.
334
+ - [BGE-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5) for retrieval. [AnomalyDINO](https://github.com/dammsi/AnomalyDINO) and PatchCore inspired the memory design; this is a custom adaptation, not a reproduction.
docs/TRAINING_AND_EVALUATION.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Model fitting, evaluation and calibration
2
+
3
+ DefectRAG uses pretrained frozen visual encoders and fitted normal-reference banks.
4
+ It is not an encoder fine-tuning project, a supervised defect classifier or a
5
+ Dinomaly reproduction. Changes to thresholds are not changes to model weights.
6
+
7
+ ## Preserved profiles
8
+
9
+ | Area | Original baseline | High-resolution profile |
10
+ | --- | --- | --- |
11
+ | Encoder | Frozen DINOv3 ViT-S/16 | Frozen DINOv2 ViT-S/14 |
12
+ | Input |224×224 |448px short edge, aspect ratio retained and dimensions aligned to patches |
13
+ | Normal reference bank | Up to8,192 sampled patch features | Up to32,768 normal patch features with foreground/background sampling |
14
+ | Foreground | No foreground filtering | PCA-based heuristic with fixed processing rules |
15
+ | Benchmark | Official VisA assignments; seeds42/43/44 | Same test identities/content hashes and fixed seeds |
16
+ | Defect masks | Pixel evaluation only | Pixel evaluation only; not used to build the foreground heuristic |
17
+
18
+ The DINOv2 profile is a custom AnomalyDINO-inspired adaptation, not an exact paper
19
+ reproduction. Earlier test diagnostics informed development decisions, so the
20
+ reported comparison is retrospective development evidence, not an untouched
21
+ external validation. Include every category and seed rather than only the best.
22
+
23
+ ## Reproduce an experiment deliberately
24
+
25
+ Provision the appropriate model assets and the licensed VisA dataset first. The
26
+ official one-class CSV assignments are authoritative. Training uses normal
27
+ reference images; do not replace them with a random all-image70/20/10 split.
28
+
29
+ ```powershell
30
+ python -m scripts.benchmark_official --dataset 'C:/path/to/VisA_20220922'
31
+ python -m scripts.benchmark_highres --dataset 'C:/path/to/VisA_20220922'
32
+ ```
33
+
34
+ These are explicit, potentially expensive experiments, not startup commands.
35
+ Completed receipts/caches allow supported runs to resume. Do not change a protocol
36
+ inside an existing experiment directory; use a separately versioned output for
37
+ new settings. The application never refits from ordinary uploads or on startup.
38
+ Model weights/banks are downloaded separately from the code repository.
39
+
40
+ ## Benchmark metrics versus operating decisions
41
+
42
+ Report mean image AUROC and trapezoidal AU-PR across the12 products. Report pixel
43
+ AUROC/AU-PR separately for localization. Supplementary average precision is not
44
+ bounding-box mAP@IoU. Include preprocessing, normal-bank sampling, seed variability,
45
+ image identities and mask-map resolution. [Measured results](ACCURACY_RESULTS.md)
46
+ and [definitions](ACCURACY_AND_METRICS.md) describe the current comparison.
47
+
48
+ The deployment profile separately holds out content-grouped training normals for
49
+ calibration. Its current policy uses the fixed normal80th percentile for
50
+ Macaroni1/2 and95th percentile for the other10 products. The ±5% review band is a
51
+ heuristic, not statistical confidence. This trade-off increases recall and false
52
+ alarms while leaving the anomaly ranking and AUROC unchanged. Historical records
53
+ retain their original threshold and verdict. See
54
+ [targeted calibration](MACARONI_RECALL_UPDATE.md) and [q95 policy](SENSITIVITY_CALIBRATION.md).
55
+
56
+ Model or threshold decisions made after viewing test diagnostics need fresh,
57
+ independent validation before stronger generalization claims. Normal-only numeric
58
+ calibration does not make retrospective policy selection independent of the test.
59
+ No learning rate, optimizer or epoch count applies to frozen-bank fitting.
60
+
61
+ ## RAG is a separate evaluation problem
62
+
63
+ BGE text retrieval and Qwen generation are not fine-tuning. Evaluate retrieval
64
+ relevance, citation/quote traceability, numerical faithfulness, unsupported-question
65
+ abstention, answer usefulness and latency separately from visual AUROC/recall.
66
+ Current answers use text and saved facts, not image-language reasoning. See
67
+ [Evidence Assistant architecture](ARCHITECTURE.md#evidence-assistant).
docs/WORKFLOW_UPDATES.md ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Personal/team upgrade is now live: see [MULTIUSER_WORKSPACE.md](MULTIUSER_WORKSPACE.md)
2
+ and [the live verification report](MULTIUSER_LIVE_VERIFICATION.md). The owner
3
+ manually executed the reviewed migration and the personal flag is enabled.
4
+ Do not rerun that versioned SQL. The older workflow test results below are retained
5
+ as historical evidence; the linked live report records the current deployment
6
+ and distinguishes actual checks from unperformed multi-account tests.
7
+
8
+ Community gallery follow-up: see [COMMUNITY_GALLERY.md](COMMUNITY_GALLERY.md).
9
+ The allowlisted updater now also includes the opt-in gallery and manual SQL setup.
10
+
11
+ # Inspection workflow update — 19 October 2026
12
+
13
+ ## Changes
14
+
15
+ - Late inspection/chat/message responses are discarded when their inspection or
16
+ account context changes. Opening history synchronizes the product and batch.
17
+ - Sharing and staff changes refresh the main views. Visible workspaces refresh
18
+ every15 seconds, with section-specific failure messages and manual retry.
19
+ - History offers filtered and all-record CSV downloads. A filter miss has a clear
20
+ empty state and a clear-filters button.
21
+ - Reports use an allowlist of useful measurements. Signed artifact links and owner
22
+ IDs are omitted from the visible table. Images remain privately authorized.
23
+ - Batch items checkpoint in IndexedDB, scoped to the current account in that
24
+ browser. Retry submits only failed/pending items. Stable item IDs and content
25
+ fingerprints allow the server to return an existing result after an interrupted
26
+ response instead of repeating inference. Completed image files are removed from
27
+ the browser resume copy; pending files remain for retry.
28
+ - Human review records Needs review / In review / Reviewed, a Pending / Hold /
29
+ Accept / Reject decision, an optional note, reviewer and timestamp. The model
30
+ verdict and measurements remain unchanged. Staff review links to the existing
31
+ inspection/assistant page on the live Space.
32
+ - Invalid-image errors and cloud/local labels are clearer. Active DINOv2 and Qwen
33
+ primary sources are listed. Layout, colors and CSS are preserved.
34
+
35
+ ## Storage and permissions
36
+
37
+ No Supabase migration is required. Staff review events use the existing staff_notes
38
+ table as bounded `DEFECTRAG_REVIEW_V1:` JSON notes. The existing RLS enforces author
39
+ identity and active-record membership. Reviewer identity and time come from the
40
+ database row, not the embedded JSON. Previous plain notes remain readable. Review
41
+ events are append-only; earlier decisions remain in the report audit history.
42
+ Local review uses the existing SQLite audit_events table and identifies its actor
43
+ as a local operator, not an authenticated staff identity.
44
+
45
+ Browser batch recovery is local to the account and browser/device. It is not a
46
+ shared cloud job queue, and clearing browser data removes pending uploads. The most
47
+ recent batch per account is retained. Opening another device does not recover its
48
+ pending files. Supabase continues to hold successful staff inspections.
49
+ The direct app and the embedded Hugging Face app may use separate browser storage;
50
+ resume in the same app context, or select the unfinished files in the other context.
51
+
52
+ ZeroGPU quotas remain in effect. Staff Supabase sign-in is separate from Hugging
53
+ Face GPU allowance. No exact remaining GPU allowance is claimed. An acknowledgement
54
+ still means seen; the new human review decision is the separate auditable action.
55
+ Conversation model provenance is not cryptographically attested by this update.
56
+
57
+ ## Update the existing GitHub repository from PowerShell
58
+
59
+ Run from the complete application folder after this source update has been synced:
60
+
61
+ ```powershell
62
+ Set-Location 'C:\Users\User\Desktop\DefectRAG-v2'
63
+ .\deployment\Update-GitHub.ps1
64
+
65
+ $repo = Join-Path $PWD 'development-support\github-ready\DefectRAG'
66
+ git -C $repo diff --cached --stat
67
+ git -C $repo commit -m "Fix inspection context, add batch recovery and staff reviews"
68
+ git -C $repo push origin HEAD
69
+ ```
70
+
71
+ For a different existing clone:
72
+
73
+ ```powershell
74
+ .\deployment\Update-GitHub.ps1 -RepositoryPath 'C:\path\to\DefectRAG'
75
+ ```
76
+
77
+ The script copies/stages exactly the39 paths in WORKFLOW_UPDATE_FILES.txt. It checks
78
+ the existing origin is WAYTECHG/DefectRAG, preserves conflicting local edits, and
79
+ never commits or pushes automatically. It also refuses an already staged change
80
+ set so unrelated work cannot be included accidentally. Inspect the staged changes
81
+ before the explicit commit/push commands. Do not force push.
82
+
83
+ No models, datasets, virtual environments, node_modules, runtime databases, private
84
+ test receipts, .env files or Supabase config.js are part of this update. Build
85
+ outputs are generated from source. GitHub and Hugging Face deployments are separate;
86
+ pushing this GitHub repository alone does not update the existing Space.
87
+
88
+ ## Validation
89
+
90
+ The checkpoint in DEVELOPMENT_PROGRESS.md records final tests and hosted revision.
91
+ Regression coverage includes delayed cross-inspection answers and record loads,
92
+ quota interruption/resume, stable IDs, filtered exports, review validation/audit,
93
+ report escaping and preserved model measurements. Real inference verification is
94
+ reported separately from software fixtures. No model retraining is part of this update.
95
+
96
+ | Check | Result |
97
+ |---|---|
98
+ | Backend regression | Full84/84; final focused44/44 after retry IDs;85 distinct cases covered across runs |
99
+ | Frontend regression | 11/11, including actual late-answer and out-of-order-open handlers |
100
+ | Local real inference | Two public PCB1 samples; anomaly and normal results with heatmaps |
101
+ | Batch recovery | Partial failure survived reload; retry skipped completed item; same-ID replay reused result |
102
+ | Hosted application | RUNNING revision41b9f9b1433942325cf73110476e0ae0e964a35e;10/10 CPU boundaries passed |
103
+ | Staff review/report | Saved reviewer/time/decision, original note and images verified on the hosted app |
104
+ | Design preservation | Deployed CSS exactly matches existing dashboard CSS |
105
+ | GitHub command | Desktop prepare-only and isolated22-file staging checks passed; no push performed |
106
+
107
+ Free GPU quota limits remain. No fresh hosted GPU run was repeated for this workflow
108
+ update; the genuine inference checks were local. Mobile and independent-account
109
+ permission testing remain outstanding as recorded in the audit.
110
+
111
+ The Space builder preserves its installed public Supabase configuration across
112
+ Vite builds. For an initial build, set DEFECTRAG_PUBLIC_CONFIG_FILE to the existing
113
+ public config.js. Publishing a staff-enabled build rejects blank example settings
114
+ before uploading. No secret key or database password belongs in that file.
115
+
116
+ ![Human review controls within the existing dashboard](assets/workflow-review.png)
docs/WORKFLOW_UPDATE_FILES.txt ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ backend/main.py
2
+ backend/storage.py
3
+ backend/reviews.py
4
+ backend/inspection_requests.py
5
+ deployment/space/app.py
6
+ deployment/space/build_ui.mjs
7
+ deployment/space/publish.py
8
+ deployment/space/sessions.py
9
+ deployment/space/supabase_repository.py
10
+ deployment/space/transport.js
11
+ frontend/src/main.jsx
12
+ frontend/src/cloud.js
13
+ frontend/src/TeamWorkspace.jsx
14
+ frontend/src/ReviewForm.jsx
15
+ frontend/src/batchCheckpoint.js
16
+ frontend/src/workflow.mjs
17
+ frontend/tests/workflow.test.mjs
18
+ tests/test_workflow_fixes.py
19
+ deployment/Update-GitHub.ps1
20
+ docs/WORKFLOW_UPDATE_FILES.txt
21
+ docs/WORKFLOW_UPDATES.md
22
+ docs/assets/workflow-review.png
23
+ backend/gallery.py
24
+ frontend/src/CommunityGallery.jsx
25
+ tests/test_gallery.py
26
+ deployment/supabase_public_gallery.sql
27
+ deployment/Prepare-Gallery.ps1
28
+ docs/COMMUNITY_GALLERY.md
29
+ docs/assets/community-gallery.png
30
+ deployment/space/personal_repository.py
31
+ frontend/src/WorkspaceShare.jsx
32
+ frontend/src/workspace.mjs
33
+ frontend/tests/workspace.test.mjs
34
+ tests/test_personal_workspace.py
35
+ deployment/supabase_personal_workspace.sql
36
+ deployment/supabase_personal_policy_checks.sql
37
+ docs/MULTIUSER_WORKSPACE.md
38
+ frontend/src/ArchiveDialog.jsx
39
+ docs/MULTIUSER_LIVE_VERIFICATION.md
frontend/index.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)"/><meta name="theme-color" content="#0a0a0a" media="(prefers-color-scheme: dark)"/><script>try{var t=localStorage.getItem("defectrag-theme");if(t==="dark"||(t!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches))document.documentElement.classList.add("dark")}catch(e){}</script><meta name="description" content="Local visual anomaly inspection with traceable evidence."/><title>DefectRAG · Inspection intelligence</title><link rel="icon" type="image/svg+xml" href="./logo.svg"><script src="./config.js"></script></head><body><div id="root"></div><script type="module" src="/src/main.jsx"></script></body></html>
frontend/localBuild.mjs ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Receipt for the local FastAPI dashboard only. Cloud builds use configFile:false.
2
+ import fs from 'node:fs/promises';
3
+ import path from 'node:path';
4
+ import {createHash} from 'node:crypto';
5
+ const hash=bytes=>createHash('sha256').update(bytes).digest('hex');
6
+ const textTypes=new Set(['.js','.mjs','.jsx','.ts','.tsx','.css','.svg','.html','.json','.md','.txt']);
7
+ const fixed=['frontend/index.html','frontend/package.json','frontend/package-lock.json','frontend/vite.config.js','frontend/localBuild.mjs'];
8
+ async function inputs(root){
9
+ const names=[...fixed];
10
+ async function walk(folder){
11
+ for(const item of await fs.readdir(path.join(root,folder),{withFileTypes:true})){
12
+ if(item.isSymbolicLink())throw Error('Local UI inputs cannot be symlinks');
13
+ const name=folder+'/'+item.name;
14
+ if(item.isDirectory())await walk(name);
15
+ else if(item.isFile()&&name!=='frontend/public/config.js')names.push(name);
16
+ }
17
+ }
18
+ await walk('frontend/src');await walk('frontend/public');
19
+ const result={};
20
+ for(const name of names.sort()){
21
+ const bytes=await fs.readFile(path.join(root,name));
22
+ result[name]=hash(textTypes.has(path.extname(name))?Buffer.from(bytes.toString('utf8').replaceAll('\r\n','\n')):bytes);
23
+ }
24
+ return result;
25
+ }
26
+ export function localBuildReceipt(){
27
+ let root,output,before,mode;
28
+ return {name:'defectrag-local-build-receipt',apply:'build',enforce:'post',
29
+ configResolved(config){root=path.resolve(config.root,'..');output=path.resolve(config.root,config.build.outDir);mode=config.mode},
30
+ async buildStart(){before=await inputs(root)},
31
+ async writeBundle(options,bundle){
32
+ const after=await inputs(root);
33
+ if(JSON.stringify(before)!==JSON.stringify(after))throw Error('Dashboard sources changed during build; rebuild');
34
+ const files={};
35
+ for(const [name,item] of Object.entries(bundle))files[name]=hash(item.type==='chunk'?item.code:item.source);
36
+ await fs.writeFile(path.join(output,'local-ui-build.json'),JSON.stringify({schema:1,protocol:1,mode,sources:after,files},null,2)+'\n');
37
+ }
38
+ };
39
+ }
frontend/package-lock.json ADDED
@@ -0,0 +1,1333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "defectrag-v2-dashboard",
3
+ "version": "2.1.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "defectrag-v2-dashboard",
9
+ "version": "2.1.0",
10
+ "dependencies": {
11
+ "@fontsource-variable/geist": "5.3.0",
12
+ "@fontsource-variable/geist-mono": "5.3.0",
13
+ "@supabase/supabase-js": "^2.118.0",
14
+ "lucide-react": "0.577.0",
15
+ "react": "19.3.1",
16
+ "react-dom": "19.3.1"
17
+ },
18
+ "devDependencies": {
19
+ "vite": "^6.4.5"
20
+ }
21
+ },
22
+ "node_modules/@esbuild/aix-ppc64": {
23
+ "version": "0.25.12",
24
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",
25
+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",
26
+ "cpu": [
27
+ "ppc64"
28
+ ],
29
+ "dev": true,
30
+ "license": "MIT",
31
+ "optional": true,
32
+ "os": [
33
+ "aix"
34
+ ],
35
+ "engines": {
36
+ "node": ">=18"
37
+ }
38
+ },
39
+ "node_modules/@esbuild/android-arm": {
40
+ "version": "0.25.12",
41
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",
42
+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",
43
+ "cpu": [
44
+ "arm"
45
+ ],
46
+ "dev": true,
47
+ "license": "MIT",
48
+ "optional": true,
49
+ "os": [
50
+ "android"
51
+ ],
52
+ "engines": {
53
+ "node": ">=18"
54
+ }
55
+ },
56
+ "node_modules/@esbuild/android-arm64": {
57
+ "version": "0.25.12",
58
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",
59
+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",
60
+ "cpu": [
61
+ "arm64"
62
+ ],
63
+ "dev": true,
64
+ "license": "MIT",
65
+ "optional": true,
66
+ "os": [
67
+ "android"
68
+ ],
69
+ "engines": {
70
+ "node": ">=18"
71
+ }
72
+ },
73
+ "node_modules/@esbuild/android-x64": {
74
+ "version": "0.25.12",
75
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",
76
+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",
77
+ "cpu": [
78
+ "x64"
79
+ ],
80
+ "dev": true,
81
+ "license": "MIT",
82
+ "optional": true,
83
+ "os": [
84
+ "android"
85
+ ],
86
+ "engines": {
87
+ "node": ">=18"
88
+ }
89
+ },
90
+ "node_modules/@esbuild/darwin-arm64": {
91
+ "version": "0.25.12",
92
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",
93
+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",
94
+ "cpu": [
95
+ "arm64"
96
+ ],
97
+ "dev": true,
98
+ "license": "MIT",
99
+ "optional": true,
100
+ "os": [
101
+ "darwin"
102
+ ],
103
+ "engines": {
104
+ "node": ">=18"
105
+ }
106
+ },
107
+ "node_modules/@esbuild/darwin-x64": {
108
+ "version": "0.25.12",
109
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",
110
+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",
111
+ "cpu": [
112
+ "x64"
113
+ ],
114
+ "dev": true,
115
+ "license": "MIT",
116
+ "optional": true,
117
+ "os": [
118
+ "darwin"
119
+ ],
120
+ "engines": {
121
+ "node": ">=18"
122
+ }
123
+ },
124
+ "node_modules/@esbuild/freebsd-arm64": {
125
+ "version": "0.25.12",
126
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",
127
+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",
128
+ "cpu": [
129
+ "arm64"
130
+ ],
131
+ "dev": true,
132
+ "license": "MIT",
133
+ "optional": true,
134
+ "os": [
135
+ "freebsd"
136
+ ],
137
+ "engines": {
138
+ "node": ">=18"
139
+ }
140
+ },
141
+ "node_modules/@esbuild/freebsd-x64": {
142
+ "version": "0.25.12",
143
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",
144
+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",
145
+ "cpu": [
146
+ "x64"
147
+ ],
148
+ "dev": true,
149
+ "license": "MIT",
150
+ "optional": true,
151
+ "os": [
152
+ "freebsd"
153
+ ],
154
+ "engines": {
155
+ "node": ">=18"
156
+ }
157
+ },
158
+ "node_modules/@esbuild/linux-arm": {
159
+ "version": "0.25.12",
160
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",
161
+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",
162
+ "cpu": [
163
+ "arm"
164
+ ],
165
+ "dev": true,
166
+ "license": "MIT",
167
+ "optional": true,
168
+ "os": [
169
+ "linux"
170
+ ],
171
+ "engines": {
172
+ "node": ">=18"
173
+ }
174
+ },
175
+ "node_modules/@esbuild/linux-arm64": {
176
+ "version": "0.25.12",
177
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",
178
+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",
179
+ "cpu": [
180
+ "arm64"
181
+ ],
182
+ "dev": true,
183
+ "license": "MIT",
184
+ "optional": true,
185
+ "os": [
186
+ "linux"
187
+ ],
188
+ "engines": {
189
+ "node": ">=18"
190
+ }
191
+ },
192
+ "node_modules/@esbuild/linux-ia32": {
193
+ "version": "0.25.12",
194
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",
195
+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",
196
+ "cpu": [
197
+ "ia32"
198
+ ],
199
+ "dev": true,
200
+ "license": "MIT",
201
+ "optional": true,
202
+ "os": [
203
+ "linux"
204
+ ],
205
+ "engines": {
206
+ "node": ">=18"
207
+ }
208
+ },
209
+ "node_modules/@esbuild/linux-loong64": {
210
+ "version": "0.25.12",
211
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",
212
+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",
213
+ "cpu": [
214
+ "loong64"
215
+ ],
216
+ "dev": true,
217
+ "license": "MIT",
218
+ "optional": true,
219
+ "os": [
220
+ "linux"
221
+ ],
222
+ "engines": {
223
+ "node": ">=18"
224
+ }
225
+ },
226
+ "node_modules/@esbuild/linux-mips64el": {
227
+ "version": "0.25.12",
228
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",
229
+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",
230
+ "cpu": [
231
+ "mips64el"
232
+ ],
233
+ "dev": true,
234
+ "license": "MIT",
235
+ "optional": true,
236
+ "os": [
237
+ "linux"
238
+ ],
239
+ "engines": {
240
+ "node": ">=18"
241
+ }
242
+ },
243
+ "node_modules/@esbuild/linux-ppc64": {
244
+ "version": "0.25.12",
245
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",
246
+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",
247
+ "cpu": [
248
+ "ppc64"
249
+ ],
250
+ "dev": true,
251
+ "license": "MIT",
252
+ "optional": true,
253
+ "os": [
254
+ "linux"
255
+ ],
256
+ "engines": {
257
+ "node": ">=18"
258
+ }
259
+ },
260
+ "node_modules/@esbuild/linux-riscv64": {
261
+ "version": "0.25.12",
262
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",
263
+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",
264
+ "cpu": [
265
+ "riscv64"
266
+ ],
267
+ "dev": true,
268
+ "license": "MIT",
269
+ "optional": true,
270
+ "os": [
271
+ "linux"
272
+ ],
273
+ "engines": {
274
+ "node": ">=18"
275
+ }
276
+ },
277
+ "node_modules/@esbuild/linux-s390x": {
278
+ "version": "0.25.12",
279
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",
280
+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",
281
+ "cpu": [
282
+ "s390x"
283
+ ],
284
+ "dev": true,
285
+ "license": "MIT",
286
+ "optional": true,
287
+ "os": [
288
+ "linux"
289
+ ],
290
+ "engines": {
291
+ "node": ">=18"
292
+ }
293
+ },
294
+ "node_modules/@esbuild/linux-x64": {
295
+ "version": "0.25.12",
296
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",
297
+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",
298
+ "cpu": [
299
+ "x64"
300
+ ],
301
+ "dev": true,
302
+ "license": "MIT",
303
+ "optional": true,
304
+ "os": [
305
+ "linux"
306
+ ],
307
+ "engines": {
308
+ "node": ">=18"
309
+ }
310
+ },
311
+ "node_modules/@esbuild/netbsd-arm64": {
312
+ "version": "0.25.12",
313
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",
314
+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",
315
+ "cpu": [
316
+ "arm64"
317
+ ],
318
+ "dev": true,
319
+ "license": "MIT",
320
+ "optional": true,
321
+ "os": [
322
+ "netbsd"
323
+ ],
324
+ "engines": {
325
+ "node": ">=18"
326
+ }
327
+ },
328
+ "node_modules/@esbuild/netbsd-x64": {
329
+ "version": "0.25.12",
330
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",
331
+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",
332
+ "cpu": [
333
+ "x64"
334
+ ],
335
+ "dev": true,
336
+ "license": "MIT",
337
+ "optional": true,
338
+ "os": [
339
+ "netbsd"
340
+ ],
341
+ "engines": {
342
+ "node": ">=18"
343
+ }
344
+ },
345
+ "node_modules/@esbuild/openbsd-arm64": {
346
+ "version": "0.25.12",
347
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",
348
+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",
349
+ "cpu": [
350
+ "arm64"
351
+ ],
352
+ "dev": true,
353
+ "license": "MIT",
354
+ "optional": true,
355
+ "os": [
356
+ "openbsd"
357
+ ],
358
+ "engines": {
359
+ "node": ">=18"
360
+ }
361
+ },
362
+ "node_modules/@esbuild/openbsd-x64": {
363
+ "version": "0.25.12",
364
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",
365
+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",
366
+ "cpu": [
367
+ "x64"
368
+ ],
369
+ "dev": true,
370
+ "license": "MIT",
371
+ "optional": true,
372
+ "os": [
373
+ "openbsd"
374
+ ],
375
+ "engines": {
376
+ "node": ">=18"
377
+ }
378
+ },
379
+ "node_modules/@esbuild/openharmony-arm64": {
380
+ "version": "0.25.12",
381
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",
382
+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",
383
+ "cpu": [
384
+ "arm64"
385
+ ],
386
+ "dev": true,
387
+ "license": "MIT",
388
+ "optional": true,
389
+ "os": [
390
+ "openharmony"
391
+ ],
392
+ "engines": {
393
+ "node": ">=18"
394
+ }
395
+ },
396
+ "node_modules/@esbuild/sunos-x64": {
397
+ "version": "0.25.12",
398
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",
399
+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",
400
+ "cpu": [
401
+ "x64"
402
+ ],
403
+ "dev": true,
404
+ "license": "MIT",
405
+ "optional": true,
406
+ "os": [
407
+ "sunos"
408
+ ],
409
+ "engines": {
410
+ "node": ">=18"
411
+ }
412
+ },
413
+ "node_modules/@esbuild/win32-arm64": {
414
+ "version": "0.25.12",
415
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",
416
+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",
417
+ "cpu": [
418
+ "arm64"
419
+ ],
420
+ "dev": true,
421
+ "license": "MIT",
422
+ "optional": true,
423
+ "os": [
424
+ "win32"
425
+ ],
426
+ "engines": {
427
+ "node": ">=18"
428
+ }
429
+ },
430
+ "node_modules/@esbuild/win32-ia32": {
431
+ "version": "0.25.12",
432
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",
433
+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",
434
+ "cpu": [
435
+ "ia32"
436
+ ],
437
+ "dev": true,
438
+ "license": "MIT",
439
+ "optional": true,
440
+ "os": [
441
+ "win32"
442
+ ],
443
+ "engines": {
444
+ "node": ">=18"
445
+ }
446
+ },
447
+ "node_modules/@esbuild/win32-x64": {
448
+ "version": "0.25.12",
449
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",
450
+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",
451
+ "cpu": [
452
+ "x64"
453
+ ],
454
+ "dev": true,
455
+ "license": "MIT",
456
+ "optional": true,
457
+ "os": [
458
+ "win32"
459
+ ],
460
+ "engines": {
461
+ "node": ">=18"
462
+ }
463
+ },
464
+ "node_modules/@fontsource-variable/geist": {
465
+ "version": "5.3.0",
466
+ "resolved": "https://registry.npmjs.org/@fontsource-variable/geist/-/geist-5.3.0.tgz",
467
+ "integrity": "sha512-j0m+vLQuG5XAYoHtGCVu0spvlGreR3EzpECUVzkFmI1mTVnAO38l/NEPDCFgZ177JxzYJCLSmTQibIiYPilGrA==",
468
+ "license": "OFL-1.1",
469
+ "funding": {
470
+ "url": "https://github.com/sponsors/ayuhito"
471
+ }
472
+ },
473
+ "node_modules/@fontsource-variable/geist-mono": {
474
+ "version": "5.3.0",
475
+ "resolved": "https://registry.npmjs.org/@fontsource-variable/geist-mono/-/geist-mono-5.3.0.tgz",
476
+ "integrity": "sha512-vBbuwDEo9AkrqADMXOrlAR3DFcJi4/JxeuU43FoiQERnNwsfXNnvxvReZG02cQKmyk4DZkZdBZX3oTDvy2zBAw==",
477
+ "license": "OFL-1.1",
478
+ "funding": {
479
+ "url": "https://github.com/sponsors/ayuhito"
480
+ }
481
+ },
482
+ "node_modules/@napi-rs/lzma-linux-x64-gnu": {
483
+ "version": "1.5.1",
484
+ "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz",
485
+ "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==",
486
+ "cpu": [
487
+ "x64"
488
+ ],
489
+ "dev": true,
490
+ "libc": [
491
+ "glibc"
492
+ ],
493
+ "license": "MIT",
494
+ "optional": true,
495
+ "os": [
496
+ "linux"
497
+ ],
498
+ "engines": {
499
+ "node": "^22.20 || ^24.12 || >=25"
500
+ }
501
+ },
502
+ "node_modules/@rollup/rollup-android-arm-eabi": {
503
+ "version": "4.64.7",
504
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.64.7.tgz",
505
+ "integrity": "sha512-GFF2tHk0NqYVObrK0+/ps/LEXsV/v2q6Lyiy7mZr+Ej24fpQScvqK2ziz9NHeEQYnKWKym38Ml7dZbPtC9tuAw==",
506
+ "cpu": [
507
+ "arm"
508
+ ],
509
+ "dev": true,
510
+ "license": "MIT",
511
+ "optional": true,
512
+ "os": [
513
+ "android"
514
+ ]
515
+ },
516
+ "node_modules/@rollup/rollup-android-arm64": {
517
+ "version": "4.64.7",
518
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.64.7.tgz",
519
+ "integrity": "sha512-BOymcXJFYYXqluDidj6sLelNjXruC3u1BqVxLn2OPCXH9xaPSOTH+MS4uychsGI1NU7tJoiv9KvqijDHFe+hhQ==",
520
+ "cpu": [
521
+ "arm64"
522
+ ],
523
+ "dev": true,
524
+ "license": "MIT",
525
+ "optional": true,
526
+ "os": [
527
+ "android"
528
+ ]
529
+ },
530
+ "node_modules/@rollup/rollup-darwin-arm64": {
531
+ "version": "4.64.7",
532
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.64.7.tgz",
533
+ "integrity": "sha512-jgVpGweIbls2H5jfBB70tnX52abMd5pJr3xmtoDILx6JdmGl+Un+tMb9R+MbHPVB46tTBpY8emtn7M71SnQhEQ==",
534
+ "cpu": [
535
+ "arm64"
536
+ ],
537
+ "dev": true,
538
+ "license": "MIT",
539
+ "optional": true,
540
+ "os": [
541
+ "darwin"
542
+ ]
543
+ },
544
+ "node_modules/@rollup/rollup-darwin-x64": {
545
+ "version": "4.64.7",
546
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.64.7.tgz",
547
+ "integrity": "sha512-AVMpt94mrXH7WjyWKmd9nT4RC5yM0AN3Lt6A89xVIsuLDi3dDX6dxMytLbW36FlppY9JsoqUoS3LUUpUrYxiMQ==",
548
+ "cpu": [
549
+ "x64"
550
+ ],
551
+ "dev": true,
552
+ "license": "MIT",
553
+ "optional": true,
554
+ "os": [
555
+ "darwin"
556
+ ]
557
+ },
558
+ "node_modules/@rollup/rollup-freebsd-arm64": {
559
+ "version": "4.64.7",
560
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.64.7.tgz",
561
+ "integrity": "sha512-Nje29c/MyajxRNFGU05oyeTDS6SWdMg/wWMSlZSBTBju5BKz2NVc0kFiFSQGzRELNiB+CBk/ZvAVsWsENgjGag==",
562
+ "cpu": [
563
+ "arm64"
564
+ ],
565
+ "dev": true,
566
+ "license": "MIT",
567
+ "optional": true,
568
+ "os": [
569
+ "freebsd"
570
+ ]
571
+ },
572
+ "node_modules/@rollup/rollup-freebsd-x64": {
573
+ "version": "4.64.7",
574
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.64.7.tgz",
575
+ "integrity": "sha512-xxgN5/kMzCNz/NYJ4t49B0/WS6InNlWv6xvgwUQqNnWM9WJMMwMUGWrAxdNEgYWdHL0sMnuh8I87StGrIMTA+w==",
576
+ "cpu": [
577
+ "x64"
578
+ ],
579
+ "dev": true,
580
+ "license": "MIT",
581
+ "optional": true,
582
+ "os": [
583
+ "freebsd"
584
+ ]
585
+ },
586
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
587
+ "version": "4.64.7",
588
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.64.7.tgz",
589
+ "integrity": "sha512-5U/9gVn/X657I8+NHoHO9Wnfyd0lEXwqbslobRoB9TC8SwYzOitcIr6TLE7531Q/NWs3L4mb+YOGzlf3vHIeYw==",
590
+ "cpu": [
591
+ "arm"
592
+ ],
593
+ "dev": true,
594
+ "libc": [
595
+ "glibc"
596
+ ],
597
+ "license": "MIT",
598
+ "optional": true,
599
+ "os": [
600
+ "linux"
601
+ ]
602
+ },
603
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
604
+ "version": "4.64.7",
605
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.64.7.tgz",
606
+ "integrity": "sha512-hcDS0a/Y8ggM3dcOfzH7UpSaogCViWTtNDSl0EXpWIj8g8/r86ITqptjil2hayTXS0Umzb+Yt3mjgpQVFVf2+A==",
607
+ "cpu": [
608
+ "arm"
609
+ ],
610
+ "dev": true,
611
+ "libc": [
612
+ "musl"
613
+ ],
614
+ "license": "MIT",
615
+ "optional": true,
616
+ "os": [
617
+ "linux"
618
+ ]
619
+ },
620
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
621
+ "version": "4.64.7",
622
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.64.7.tgz",
623
+ "integrity": "sha512-awbAr4N7Qd/yjZAQBEEPzgcPveYG2Gi5L6gq1/Bp+3SMRjn5F68Wv1zKsntzvvoioBR6yKvhLtWqu11am1TsxA==",
624
+ "cpu": [
625
+ "arm64"
626
+ ],
627
+ "dev": true,
628
+ "libc": [
629
+ "glibc"
630
+ ],
631
+ "license": "MIT",
632
+ "optional": true,
633
+ "os": [
634
+ "linux"
635
+ ]
636
+ },
637
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
638
+ "version": "4.64.7",
639
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.64.7.tgz",
640
+ "integrity": "sha512-Ut7xQJfeLhzu2yN3rHzVvL9ccyPJvN4aCdP1V7hJ5lGxX/eCzgB9SiMk/Md3J+rWWZgvoYsDW4BUFggJr32pBA==",
641
+ "cpu": [
642
+ "arm64"
643
+ ],
644
+ "dev": true,
645
+ "libc": [
646
+ "musl"
647
+ ],
648
+ "license": "MIT",
649
+ "optional": true,
650
+ "os": [
651
+ "linux"
652
+ ]
653
+ },
654
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
655
+ "version": "4.64.7",
656
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.64.7.tgz",
657
+ "integrity": "sha512-trqoni/vHkuM5oo5iQhoKPh6fjjD7E80pMgCXWgGxU8vSRPUlwvG8GeYvEEcB6eJAxNa99WH9iVHPHelgtKiHA==",
658
+ "cpu": [
659
+ "loong64"
660
+ ],
661
+ "dev": true,
662
+ "libc": [
663
+ "glibc"
664
+ ],
665
+ "license": "MIT",
666
+ "optional": true,
667
+ "os": [
668
+ "linux"
669
+ ]
670
+ },
671
+ "node_modules/@rollup/rollup-linux-loong64-musl": {
672
+ "version": "4.64.7",
673
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.64.7.tgz",
674
+ "integrity": "sha512-gvlUy0XFIwtUWiQmhc+4GT2Knm3KosinpUVhr7CtTFA78gFDnE5NWwMPzHrJsYpKkh2LlY7yvBIboN1FAV6Xeg==",
675
+ "cpu": [
676
+ "loong64"
677
+ ],
678
+ "dev": true,
679
+ "libc": [
680
+ "musl"
681
+ ],
682
+ "license": "MIT",
683
+ "optional": true,
684
+ "os": [
685
+ "linux"
686
+ ]
687
+ },
688
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
689
+ "version": "4.64.7",
690
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.64.7.tgz",
691
+ "integrity": "sha512-8yS/kSXTJ/47Z62JW+C2AJ3vd/8zZw016vFjtNpZwmZlwJumLua4s1i78dkYuSSqQ+0aIMxJcBp/4uIwp2ehjA==",
692
+ "cpu": [
693
+ "ppc64"
694
+ ],
695
+ "dev": true,
696
+ "libc": [
697
+ "glibc"
698
+ ],
699
+ "license": "MIT",
700
+ "optional": true,
701
+ "os": [
702
+ "linux"
703
+ ]
704
+ },
705
+ "node_modules/@rollup/rollup-linux-ppc64-musl": {
706
+ "version": "4.64.7",
707
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.64.7.tgz",
708
+ "integrity": "sha512-mxVSKvvty0hOP1AFo/l4Kpv3i3HK0zx4rYUrirZDToYlWhS3xzmIkq3vUJ7rtrM2cPyXveDyDT6M1FfXZ9hTRA==",
709
+ "cpu": [
710
+ "ppc64"
711
+ ],
712
+ "dev": true,
713
+ "libc": [
714
+ "musl"
715
+ ],
716
+ "license": "MIT",
717
+ "optional": true,
718
+ "os": [
719
+ "linux"
720
+ ]
721
+ },
722
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
723
+ "version": "4.64.7",
724
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.64.7.tgz",
725
+ "integrity": "sha512-lEse1zra1CagM+uHH2bl28GInDsZZ45NJzHei2OMaXQFzZWKBO1hFo07rS0xB6ayV4WU360UrSmPDSyCMpYsUQ==",
726
+ "cpu": [
727
+ "riscv64"
728
+ ],
729
+ "dev": true,
730
+ "libc": [
731
+ "glibc"
732
+ ],
733
+ "license": "MIT",
734
+ "optional": true,
735
+ "os": [
736
+ "linux"
737
+ ]
738
+ },
739
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
740
+ "version": "4.64.7",
741
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.64.7.tgz",
742
+ "integrity": "sha512-d/cqCoiG9WMZ5VuJZ5Qdlv9g97QyoGwnmvHccvGhKSacTy7xFrAS+jMcJSBdMNOw1oacSkl6p7K6O/DRYTKL3g==",
743
+ "cpu": [
744
+ "riscv64"
745
+ ],
746
+ "dev": true,
747
+ "libc": [
748
+ "musl"
749
+ ],
750
+ "license": "MIT",
751
+ "optional": true,
752
+ "os": [
753
+ "linux"
754
+ ]
755
+ },
756
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
757
+ "version": "4.64.7",
758
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.64.7.tgz",
759
+ "integrity": "sha512-kVEA//CeDOZZP1XCH2JBgqXb9+ALlwuA/4civaazMVdgzaSQC9WM38w65zG/LLk0lA7F9Od19CSBZW7J9mCbNg==",
760
+ "cpu": [
761
+ "s390x"
762
+ ],
763
+ "dev": true,
764
+ "libc": [
765
+ "glibc"
766
+ ],
767
+ "license": "MIT",
768
+ "optional": true,
769
+ "os": [
770
+ "linux"
771
+ ]
772
+ },
773
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
774
+ "version": "4.64.7",
775
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.64.7.tgz",
776
+ "integrity": "sha512-14oLfDsOSr0TSntT/34jRg/V8B2XW/Jomh9zX9CjIM9gwwNlI1OCymS/GVn0DV32h67eRf7U0GGem0rvfXgNwQ==",
777
+ "cpu": [
778
+ "x64"
779
+ ],
780
+ "dev": true,
781
+ "libc": [
782
+ "glibc"
783
+ ],
784
+ "license": "MIT",
785
+ "optional": true,
786
+ "os": [
787
+ "linux"
788
+ ]
789
+ },
790
+ "node_modules/@rollup/rollup-linux-x64-musl": {
791
+ "version": "4.64.7",
792
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.64.7.tgz",
793
+ "integrity": "sha512-dFVtPfjZqAnUPpPY4Bfg+87yo1IBW9HiY8iCFtg49Pn46MfZTebSHZh8PL6SOsgyt9LQP8Nj/sE6jm3aWpySmQ==",
794
+ "cpu": [
795
+ "x64"
796
+ ],
797
+ "dev": true,
798
+ "libc": [
799
+ "musl"
800
+ ],
801
+ "license": "MIT",
802
+ "optional": true,
803
+ "os": [
804
+ "linux"
805
+ ]
806
+ },
807
+ "node_modules/@rollup/rollup-openbsd-x64": {
808
+ "version": "4.64.7",
809
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.64.7.tgz",
810
+ "integrity": "sha512-Dm9CZ2SM3u2NgvBj4awW/gGqkOwzH8f6MSYIJE6+bKcKLI+T0+LhpD6vtetTfrIIx+rLXDf5RJqBP6v7V5O+wg==",
811
+ "cpu": [
812
+ "x64"
813
+ ],
814
+ "dev": true,
815
+ "license": "MIT",
816
+ "optional": true,
817
+ "os": [
818
+ "openbsd"
819
+ ]
820
+ },
821
+ "node_modules/@rollup/rollup-openharmony-arm64": {
822
+ "version": "4.64.7",
823
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.64.7.tgz",
824
+ "integrity": "sha512-oaxsvS2mL6+78741CT2HCORBvy1USg3Wqpt5qvZwy3aMXRMl4zxyDo8maeFRWJkF3dp0Wbi71fKH5Gr9YI3vYA==",
825
+ "cpu": [
826
+ "arm64"
827
+ ],
828
+ "dev": true,
829
+ "license": "MIT",
830
+ "optional": true,
831
+ "os": [
832
+ "openharmony"
833
+ ]
834
+ },
835
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
836
+ "version": "4.64.7",
837
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.64.7.tgz",
838
+ "integrity": "sha512-UKZz1Y4mxUqkWh60uH7B1aZn6UcAimPk4ipRktpb3wfZq7JrzZYyAXTwiafkb3T+kd5P3Sf+vzcRdsDks4WtjQ==",
839
+ "cpu": [
840
+ "arm64"
841
+ ],
842
+ "dev": true,
843
+ "license": "MIT",
844
+ "optional": true,
845
+ "os": [
846
+ "win32"
847
+ ]
848
+ },
849
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
850
+ "version": "4.64.7",
851
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.64.7.tgz",
852
+ "integrity": "sha512-WWkSuC1J+mZJnsDh0mRaCAFSWfQdl6y3fDjZeWElI6zHo8CcOSG5lY3yurKJjEq+FrX0WD60sFrVVpbHqzMmrw==",
853
+ "cpu": [
854
+ "ia32"
855
+ ],
856
+ "dev": true,
857
+ "license": "MIT",
858
+ "optional": true,
859
+ "os": [
860
+ "win32"
861
+ ]
862
+ },
863
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
864
+ "version": "4.64.7",
865
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.64.7.tgz",
866
+ "integrity": "sha512-u9bp2yXCI3/BUjUxY6uWknAY32pfvvDCPysyUTySotx0dj3ydlFHrRQYfn/b/kZgnfjyEwySMtI7Ga054uiysQ==",
867
+ "cpu": [
868
+ "x64"
869
+ ],
870
+ "dev": true,
871
+ "license": "MIT",
872
+ "optional": true,
873
+ "os": [
874
+ "win32"
875
+ ]
876
+ },
877
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
878
+ "version": "4.64.7",
879
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.64.7.tgz",
880
+ "integrity": "sha512-EhX6N3XPMEnVU5cRfNgzPOKcSucsbu3nNNWuoAaEuKIqmddBKHN5b9d4rPe65T1I+FaOT176JKiZNsUBp3rqbA==",
881
+ "cpu": [
882
+ "x64"
883
+ ],
884
+ "dev": true,
885
+ "license": "MIT",
886
+ "optional": true,
887
+ "os": [
888
+ "win32"
889
+ ]
890
+ },
891
+ "node_modules/@supabase/auth-js": {
892
+ "version": "2.118.0",
893
+ "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.118.0.tgz",
894
+ "integrity": "sha512-xWfPXyhS2KDSfAneMtI6p/tBnbdiz/5vaRKXEqUfzfC9WCniKr2Ds5o5G7RIGig0bom4z6wUY9zaV07WDVTfnQ==",
895
+ "license": "MIT",
896
+ "dependencies": {
897
+ "tslib": "2.8.1"
898
+ },
899
+ "engines": {
900
+ "node": ">=22.0.0"
901
+ }
902
+ },
903
+ "node_modules/@supabase/functions-js": {
904
+ "version": "2.118.0",
905
+ "resolved": "https://registry.npmjs.org/@supabase/functions-js/-/functions-js-2.118.0.tgz",
906
+ "integrity": "sha512-4ofletPa/noKAU6KHeqsd3FztGzRPUEJRey1MKY0o+PIHaVePqRPShIXtl37gcVyIWaFM+zNg6r9zh0uUSFOSA==",
907
+ "license": "MIT",
908
+ "dependencies": {
909
+ "tslib": "2.8.1"
910
+ },
911
+ "engines": {
912
+ "node": ">=22.0.0"
913
+ }
914
+ },
915
+ "node_modules/@supabase/phoenix": {
916
+ "version": "0.4.5",
917
+ "resolved": "https://registry.npmjs.org/@supabase/phoenix/-/phoenix-0.4.5.tgz",
918
+ "integrity": "sha512-aAn9H9ovVyeApKy11OWOrrOGq8DV68yWeH4ud2lN9fzn4aO8Zb5GLL9m1pUg9nLqIcT+ZDfAcsZe0E/nqdv2lw==",
919
+ "license": "MIT"
920
+ },
921
+ "node_modules/@supabase/postgrest-js": {
922
+ "version": "2.118.0",
923
+ "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-2.118.0.tgz",
924
+ "integrity": "sha512-JXy+37KPApHsyotaQACovv/Jy9E22rfiWLRuT+2UjoEAcAIelDFIrsF/FY47Dy19mO7lI0Tq+zDCX8oJ2Ozfiw==",
925
+ "license": "MIT",
926
+ "dependencies": {
927
+ "tslib": "2.8.1"
928
+ },
929
+ "engines": {
930
+ "node": ">=22.0.0"
931
+ }
932
+ },
933
+ "node_modules/@supabase/realtime-js": {
934
+ "version": "2.118.0",
935
+ "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.118.0.tgz",
936
+ "integrity": "sha512-pzCIEWjqD5/xqEZQerpt+q9rsgYkcrkgCJgf0W2ULqC4fYUeB/p9CFa3t9vn+IVh6dMN9r4ZCE262lZvUC+Bfw==",
937
+ "license": "MIT",
938
+ "dependencies": {
939
+ "@supabase/phoenix": "0.4.5",
940
+ "tslib": "2.8.1"
941
+ },
942
+ "engines": {
943
+ "node": ">=22.0.0"
944
+ }
945
+ },
946
+ "node_modules/@supabase/storage-js": {
947
+ "version": "2.118.0",
948
+ "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.118.0.tgz",
949
+ "integrity": "sha512-5MNkKt2Moy7Jud/sPX7/28BwdDxZMCVHGJT00b8op3KRa9LKSjOAYU5IcfGWIstaasAqY8GkbA6oI3IRDgB1YQ==",
950
+ "license": "MIT",
951
+ "dependencies": {
952
+ "iceberg-js": "^0.8.1",
953
+ "tslib": "2.8.1"
954
+ },
955
+ "engines": {
956
+ "node": ">=22.0.0"
957
+ }
958
+ },
959
+ "node_modules/@supabase/supabase-js": {
960
+ "version": "2.118.0",
961
+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.118.0.tgz",
962
+ "integrity": "sha512-FxI8UXMVC2UG7IkeiI8fuQZqq2oI3JeSuN8MPIC2RLVaoEAxKS0nqE6kii9Ewpq8f9gNPM6git1Y8f0vN/QLFw==",
963
+ "license": "MIT",
964
+ "dependencies": {
965
+ "@supabase/auth-js": "2.118.0",
966
+ "@supabase/functions-js": "2.118.0",
967
+ "@supabase/postgrest-js": "2.118.0",
968
+ "@supabase/realtime-js": "2.118.0",
969
+ "@supabase/storage-js": "2.118.0"
970
+ },
971
+ "engines": {
972
+ "node": ">=22.0.0"
973
+ },
974
+ "peerDependencies": {
975
+ "@opentelemetry/api": ">=1.0.0"
976
+ },
977
+ "peerDependenciesMeta": {
978
+ "@opentelemetry/api": {
979
+ "optional": true
980
+ }
981
+ }
982
+ },
983
+ "node_modules/@types/estree": {
984
+ "version": "1.0.9",
985
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
986
+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
987
+ "dev": true,
988
+ "license": "MIT"
989
+ },
990
+ "node_modules/esbuild": {
991
+ "version": "0.25.12",
992
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",
993
+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",
994
+ "dev": true,
995
+ "hasInstallScript": true,
996
+ "license": "MIT",
997
+ "bin": {
998
+ "esbuild": "bin/esbuild"
999
+ },
1000
+ "engines": {
1001
+ "node": ">=18"
1002
+ },
1003
+ "optionalDependencies": {
1004
+ "@esbuild/aix-ppc64": "0.25.12",
1005
+ "@esbuild/android-arm": "0.25.12",
1006
+ "@esbuild/android-arm64": "0.25.12",
1007
+ "@esbuild/android-x64": "0.25.12",
1008
+ "@esbuild/darwin-arm64": "0.25.12",
1009
+ "@esbuild/darwin-x64": "0.25.12",
1010
+ "@esbuild/freebsd-arm64": "0.25.12",
1011
+ "@esbuild/freebsd-x64": "0.25.12",
1012
+ "@esbuild/linux-arm": "0.25.12",
1013
+ "@esbuild/linux-arm64": "0.25.12",
1014
+ "@esbuild/linux-ia32": "0.25.12",
1015
+ "@esbuild/linux-loong64": "0.25.12",
1016
+ "@esbuild/linux-mips64el": "0.25.12",
1017
+ "@esbuild/linux-ppc64": "0.25.12",
1018
+ "@esbuild/linux-riscv64": "0.25.12",
1019
+ "@esbuild/linux-s390x": "0.25.12",
1020
+ "@esbuild/linux-x64": "0.25.12",
1021
+ "@esbuild/netbsd-arm64": "0.25.12",
1022
+ "@esbuild/netbsd-x64": "0.25.12",
1023
+ "@esbuild/openbsd-arm64": "0.25.12",
1024
+ "@esbuild/openbsd-x64": "0.25.12",
1025
+ "@esbuild/openharmony-arm64": "0.25.12",
1026
+ "@esbuild/sunos-x64": "0.25.12",
1027
+ "@esbuild/win32-arm64": "0.25.12",
1028
+ "@esbuild/win32-ia32": "0.25.12",
1029
+ "@esbuild/win32-x64": "0.25.12"
1030
+ }
1031
+ },
1032
+ "node_modules/fdir": {
1033
+ "version": "6.5.0",
1034
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
1035
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
1036
+ "dev": true,
1037
+ "license": "MIT",
1038
+ "engines": {
1039
+ "node": ">=12.0.0"
1040
+ },
1041
+ "peerDependencies": {
1042
+ "picomatch": "^3 || ^4"
1043
+ },
1044
+ "peerDependenciesMeta": {
1045
+ "picomatch": {
1046
+ "optional": true
1047
+ }
1048
+ }
1049
+ },
1050
+ "node_modules/fsevents": {
1051
+ "version": "2.3.3",
1052
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
1053
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
1054
+ "dev": true,
1055
+ "hasInstallScript": true,
1056
+ "license": "MIT",
1057
+ "optional": true,
1058
+ "os": [
1059
+ "darwin"
1060
+ ],
1061
+ "engines": {
1062
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
1063
+ }
1064
+ },
1065
+ "node_modules/iceberg-js": {
1066
+ "version": "0.8.1",
1067
+ "resolved": "https://registry.npmjs.org/iceberg-js/-/iceberg-js-0.8.1.tgz",
1068
+ "integrity": "sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA==",
1069
+ "license": "MIT",
1070
+ "engines": {
1071
+ "node": ">=20.0.0"
1072
+ }
1073
+ },
1074
+ "node_modules/lucide-react": {
1075
+ "version": "0.577.0",
1076
+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.577.0.tgz",
1077
+ "integrity": "sha512-4LjoFv2eEPwYDPg/CUdBJQSDfPyzXCRrVW1X7jrx/trgxnxkHFjnVZINbzvzxjN70dxychOfg+FTYwBiS3pQ5A==",
1078
+ "license": "ISC",
1079
+ "peerDependencies": {
1080
+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
1081
+ }
1082
+ },
1083
+ "node_modules/nanoid": {
1084
+ "version": "3.3.20",
1085
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",
1086
+ "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==",
1087
+ "dev": true,
1088
+ "funding": [
1089
+ {
1090
+ "type": "github",
1091
+ "url": "https://github.com/sponsors/ai"
1092
+ }
1093
+ ],
1094
+ "license": "MIT",
1095
+ "bin": {
1096
+ "nanoid": "bin/nanoid.cjs"
1097
+ },
1098
+ "engines": {
1099
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
1100
+ }
1101
+ },
1102
+ "node_modules/picocolors": {
1103
+ "version": "1.1.1",
1104
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
1105
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
1106
+ "dev": true,
1107
+ "license": "ISC"
1108
+ },
1109
+ "node_modules/picomatch": {
1110
+ "version": "4.0.7",
1111
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
1112
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
1113
+ "dev": true,
1114
+ "license": "MIT",
1115
+ "engines": {
1116
+ "node": ">=12"
1117
+ },
1118
+ "funding": {
1119
+ "url": "https://github.com/sponsors/jonschlinkert"
1120
+ }
1121
+ },
1122
+ "node_modules/postcss": {
1123
+ "version": "8.5.30",
1124
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.30.tgz",
1125
+ "integrity": "sha512-zkd+e9S1AQHhmaBKye9zlFHWjOwVgqXl1q3ECYy8561K7qxR2cREf/STLskulBFd78k6AOFeA+ff1TtEzk9bAA==",
1126
+ "dev": true,
1127
+ "funding": [
1128
+ {
1129
+ "type": "opencollective",
1130
+ "url": "https://opencollective.com/postcss/"
1131
+ },
1132
+ {
1133
+ "type": "tidelift",
1134
+ "url": "https://tidelift.com/funding/github/npm/postcss"
1135
+ },
1136
+ {
1137
+ "type": "github",
1138
+ "url": "https://github.com/sponsors/ai"
1139
+ }
1140
+ ],
1141
+ "license": "MIT",
1142
+ "dependencies": {
1143
+ "nanoid": "^3.3.20",
1144
+ "picocolors": "^1.1.1",
1145
+ "source-map-js": "^1.2.2"
1146
+ },
1147
+ "engines": {
1148
+ "node": "^10 || ^12 || >=14"
1149
+ }
1150
+ },
1151
+ "node_modules/react": {
1152
+ "version": "19.3.1",
1153
+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
1154
+ "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
1155
+ "license": "MIT",
1156
+ "engines": {
1157
+ "node": ">=0.10.0"
1158
+ }
1159
+ },
1160
+ "node_modules/react-dom": {
1161
+ "version": "19.3.1",
1162
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz",
1163
+ "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==",
1164
+ "license": "MIT",
1165
+ "dependencies": {
1166
+ "scheduler": "^0.28.0"
1167
+ },
1168
+ "peerDependencies": {
1169
+ "react": "^19.3.1"
1170
+ }
1171
+ },
1172
+ "node_modules/rollup": {
1173
+ "version": "4.64.7",
1174
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.64.7.tgz",
1175
+ "integrity": "sha512-aCiJONoZp0lNGJ6sYqspLkh6UXaWEey/7Ko2TZyXQ4kgzAhDUxAgbt/oulXKmD+zFHXw1k+RF6ZZWOrjp7DZnQ==",
1176
+ "dev": true,
1177
+ "license": "MIT",
1178
+ "dependencies": {
1179
+ "@types/estree": "1.0.9"
1180
+ },
1181
+ "bin": {
1182
+ "rollup": "dist/bin/rollup"
1183
+ },
1184
+ "engines": {
1185
+ "node": ">=18.0.0",
1186
+ "npm": ">=8.0.0"
1187
+ },
1188
+ "optionalDependencies": {
1189
+ "@napi-rs/lzma-linux-x64-gnu": "1.5.1",
1190
+ "@rollup/rollup-android-arm-eabi": "4.64.7",
1191
+ "@rollup/rollup-android-arm64": "4.64.7",
1192
+ "@rollup/rollup-darwin-arm64": "4.64.7",
1193
+ "@rollup/rollup-darwin-x64": "4.64.7",
1194
+ "@rollup/rollup-freebsd-arm64": "4.64.7",
1195
+ "@rollup/rollup-freebsd-x64": "4.64.7",
1196
+ "@rollup/rollup-linux-arm-gnueabihf": "4.64.7",
1197
+ "@rollup/rollup-linux-arm-musleabihf": "4.64.7",
1198
+ "@rollup/rollup-linux-arm64-gnu": "4.64.7",
1199
+ "@rollup/rollup-linux-arm64-musl": "4.64.7",
1200
+ "@rollup/rollup-linux-loong64-gnu": "4.64.7",
1201
+ "@rollup/rollup-linux-loong64-musl": "4.64.7",
1202
+ "@rollup/rollup-linux-ppc64-gnu": "4.64.7",
1203
+ "@rollup/rollup-linux-ppc64-musl": "4.64.7",
1204
+ "@rollup/rollup-linux-riscv64-gnu": "4.64.7",
1205
+ "@rollup/rollup-linux-riscv64-musl": "4.64.7",
1206
+ "@rollup/rollup-linux-s390x-gnu": "4.64.7",
1207
+ "@rollup/rollup-linux-x64-gnu": "4.64.7",
1208
+ "@rollup/rollup-linux-x64-musl": "4.64.7",
1209
+ "@rollup/rollup-openbsd-x64": "4.64.7",
1210
+ "@rollup/rollup-openharmony-arm64": "4.64.7",
1211
+ "@rollup/rollup-win32-arm64-msvc": "4.64.7",
1212
+ "@rollup/rollup-win32-ia32-msvc": "4.64.7",
1213
+ "@rollup/rollup-win32-x64-gnu": "4.64.7",
1214
+ "@rollup/rollup-win32-x64-msvc": "4.64.7",
1215
+ "fsevents": "~2.3.2"
1216
+ }
1217
+ },
1218
+ "node_modules/scheduler": {
1219
+ "version": "0.28.0",
1220
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",
1221
+ "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",
1222
+ "license": "MIT"
1223
+ },
1224
+ "node_modules/source-map-js": {
1225
+ "version": "1.2.2",
1226
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
1227
+ "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
1228
+ "dev": true,
1229
+ "license": "BSD-3-Clause",
1230
+ "engines": {
1231
+ "node": ">=0.10.0"
1232
+ }
1233
+ },
1234
+ "node_modules/tinyglobby": {
1235
+ "version": "0.2.17",
1236
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
1237
+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",
1238
+ "dev": true,
1239
+ "license": "MIT",
1240
+ "dependencies": {
1241
+ "fdir": "^6.5.0",
1242
+ "picomatch": "^4.0.4"
1243
+ },
1244
+ "engines": {
1245
+ "node": ">=12.0.0"
1246
+ },
1247
+ "funding": {
1248
+ "url": "https://github.com/sponsors/SuperchupuDev"
1249
+ }
1250
+ },
1251
+ "node_modules/tslib": {
1252
+ "version": "2.8.1",
1253
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
1254
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
1255
+ "license": "0BSD"
1256
+ },
1257
+ "node_modules/vite": {
1258
+ "version": "6.4.5",
1259
+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.5.tgz",
1260
+ "integrity": "sha512-4enwjFfi4IwtEh0w+jPzpLVOFQiPHmmzPxcHXQOyEur47o6u0jE573DmGpjA+7irXoMLYRZD5ZaFUEneS3abPg==",
1261
+ "dev": true,
1262
+ "license": "MIT",
1263
+ "dependencies": {
1264
+ "esbuild": "^0.25.0",
1265
+ "fdir": "^6.4.4",
1266
+ "picomatch": "^4.0.2",
1267
+ "postcss": "^8.5.3",
1268
+ "rollup": "^4.34.9",
1269
+ "tinyglobby": "^0.2.13"
1270
+ },
1271
+ "bin": {
1272
+ "vite": "bin/vite.js"
1273
+ },
1274
+ "engines": {
1275
+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
1276
+ },
1277
+ "funding": {
1278
+ "url": "https://github.com/vitejs/vite?sponsor=1"
1279
+ },
1280
+ "optionalDependencies": {
1281
+ "fsevents": "~2.3.3"
1282
+ },
1283
+ "peerDependencies": {
1284
+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
1285
+ "jiti": ">=1.21.0",
1286
+ "less": "*",
1287
+ "lightningcss": "^1.21.0",
1288
+ "sass": "*",
1289
+ "sass-embedded": "*",
1290
+ "stylus": "*",
1291
+ "sugarss": "*",
1292
+ "terser": "^5.16.0",
1293
+ "tsx": "^4.8.1",
1294
+ "yaml": "^2.4.2"
1295
+ },
1296
+ "peerDependenciesMeta": {
1297
+ "@types/node": {
1298
+ "optional": true
1299
+ },
1300
+ "jiti": {
1301
+ "optional": true
1302
+ },
1303
+ "less": {
1304
+ "optional": true
1305
+ },
1306
+ "lightningcss": {
1307
+ "optional": true
1308
+ },
1309
+ "sass": {
1310
+ "optional": true
1311
+ },
1312
+ "sass-embedded": {
1313
+ "optional": true
1314
+ },
1315
+ "stylus": {
1316
+ "optional": true
1317
+ },
1318
+ "sugarss": {
1319
+ "optional": true
1320
+ },
1321
+ "terser": {
1322
+ "optional": true
1323
+ },
1324
+ "tsx": {
1325
+ "optional": true
1326
+ },
1327
+ "yaml": {
1328
+ "optional": true
1329
+ }
1330
+ }
1331
+ }
1332
+ }
1333
+ }
frontend/package.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "defectrag-v2-dashboard",
3
+ "version": "2.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite --host 127.0.0.1",
8
+ "build": "vite build",
9
+ "preview": "vite preview --host 127.0.0.1",
10
+ "test": "node --test tests/*.test.mjs",
11
+ "build:showcase": "vite build --mode showcase --outDir dist-static"
12
+ },
13
+ "dependencies": {
14
+ "@fontsource-variable/geist": "5.3.0",
15
+ "@fontsource-variable/geist-mono": "5.3.0",
16
+ "@supabase/supabase-js": "^2.118.0",
17
+ "lucide-react": "0.577.0",
18
+ "react": "19.3.1",
19
+ "react-dom": "19.3.1"
20
+ },
21
+ "devDependencies": {
22
+ "vite": "^6.4.5"
23
+ }
24
+ }
frontend/public/assets/email/robot-hello.gif ADDED
frontend/public/assets/references/candle.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/capsules.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/cashew.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/chewinggum.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/fryum.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/macaroni1.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/macaroni2.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/pcb1.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/pcb2.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/pcb3.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/pcb4.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/references/pipe_fryum.json ADDED
The diff for this file is too large to render. See raw diff
 
frontend/public/assets/sample-thumbs/candle_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/candle_good.jpg ADDED
frontend/public/assets/sample-thumbs/capsules_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/capsules_good.jpg ADDED
frontend/public/assets/sample-thumbs/cashew_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/cashew_good.jpg ADDED
frontend/public/assets/sample-thumbs/chewinggum_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/chewinggum_good.jpg ADDED
frontend/public/assets/sample-thumbs/fryum_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/fryum_good.jpg ADDED
frontend/public/assets/sample-thumbs/macaroni1_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/macaroni1_good.jpg ADDED
frontend/public/assets/sample-thumbs/macaroni2_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/macaroni2_good.jpg ADDED
frontend/public/assets/sample-thumbs/pcb1_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/pcb1_good.jpg ADDED
frontend/public/assets/sample-thumbs/pcb2_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/pcb2_good.jpg ADDED
frontend/public/assets/sample-thumbs/pcb3_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/pcb3_good.jpg ADDED
frontend/public/assets/sample-thumbs/pcb4_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/pcb4_good.jpg ADDED
frontend/public/assets/sample-thumbs/pipe_fryum_anomalous.jpg ADDED
frontend/public/assets/sample-thumbs/pipe_fryum_good.jpg ADDED
frontend/public/config.js ADDED
@@ -0,0 +1 @@
 
 
1
+ window.DEFECTRAG_PUBLIC_CONFIG = {supabaseUrl:"",supabasePublishableKey:""};
frontend/public/logo.svg ADDED
frontend/public/showcase/data.json ADDED
The diff for this file is too large to render. See raw diff