298 Commits

Author SHA1 Message Date
Fam Zheng
27ae76a62a update Dockerfile 2025-11-02 21:28:11 +00:00
Fam Zheng
67b099e8af drop grpc 2025-11-02 21:07:10 +00:00
Fam Zheng
b35bbce103 Dockerfile: use uv 2025-11-03 05:05:04 +08:00
Fam Zheng
d94f9599cb unify requirements.txt 2025-11-03 04:56:45 +08:00
Fam Zheng
dcb2949f13 ci: deploy dev 2025-11-03 04:31:28 +08:00
Fam Zheng
74bcd7add7 pip install openai 2025-10-30 23:47:55 +00:00
Fam Zheng
1273514c4e drop this.globalData.real_ip 2025-10-29 21:34:44 +00:00
Fam Zheng
7d64eb480d ai chat wip 2025-10-29 21:27:29 +00:00
Fam Zheng
afef3a9e11 add ai-chat api 2025-10-29 21:27:29 +00:00
Fam Zheng
2f12c588b8 fix zip release directory 2025-10-29 21:27:29 +00:00
Fam Zheng
a9b8c937bb emblemscanner change to zip release format 2025-10-29 21:27:29 +00:00
Fam Zheng
012a05ab9d worker: Fix wasm path 2025-10-29 21:27:29 +00:00
Fam Zheng
dd2c4614ba fix wasm path parameter 2025-10-29 21:27:29 +00:00
Fam Zheng
80f72d0a7f fix wasm path passing 2025-10-29 21:27:29 +00:00
Fam Zheng
c08d830127 emblemscanner: avoid using global data 2025-10-29 21:27:29 +00:00
Fam Zheng
e68348fbff emblemscanner: subpackage support 2025-10-29 21:27:29 +00:00
Fam Zheng
fffc50372e use https://themblem.com/api/v1/my-location/ to get ip 2025-10-29 21:27:29 +00:00
Fam Zheng
dc01b38085 emblemscanner release 2025-10-29 21:27:29 +00:00
Fam Zheng
8c315b1c3f emblemscanner: Add scan guide 2025-10-29 21:27:29 +00:00
Fam Zheng
ff358cf595 add viberation to emblemscanner
Also drop prompt for verify pass.
2025-10-29 21:27:29 +00:00
Fam Zheng
3fddb4711e result_page: Fix rescan navigation 2025-10-29 21:27:29 +00:00
Fam Zheng
615a01ee8f improve emblemscanner scanning 2025-10-29 21:27:29 +00:00
Fam Zheng
5a7688cb80 emblemscanner: various improvements 2025-10-29 21:27:29 +00:00
Fam Zheng
c8be7e4ce4 emblemscanner: add log and fix camera state 2025-10-29 21:27:29 +00:00
Fam Zheng
b87693a717 simplify camera-5.1 2025-10-29 21:27:29 +00:00
Fam Zheng
5093b2b40b delete QR_SCANNER_MODULE_PROGRESS.md
We are now feature complete for the QR scanner module, the rest is testing.
2025-10-29 21:27:29 +00:00
Fam Zheng
7fbc4e2ef9 emblemscanner: verifying ui design 2025-10-29 21:27:29 +00:00
Fam Zheng
7d0e30656e emblemscanner: worker is okay 2025-10-29 21:27:29 +00:00
Fam Zheng
780acc13ce add .claude 2025-10-29 21:27:29 +00:00
Fam Zheng
06921ae869 add alg/stb_image.h 2025-10-29 21:27:29 +00:00
Fam Zheng
bc62698ce1 drop scanner/worker 2025-10-29 21:27:29 +00:00
Fam Zheng
30dabc6f82 qrtool: Slightly lower min size for qr 2025-10-29 21:27:29 +00:00
Fam Zheng
31463f518a emblemscanner: update debug ui 2025-10-29 21:27:29 +00:00
Fam Zheng
4b10ad335a emblemscanner: native upload works 2025-10-29 21:27:29 +00:00
Fam Zheng
55d2ccb8fc upload works 2025-10-29 21:27:29 +00:00
Fam Zheng
450d4f7090 emblemscanner: worker wip 2025-10-29 21:27:29 +00:00
Fam Zheng
adb87f27b5 emblemscanner: native wasm works 2025-10-29 21:27:29 +00:00
Fam Zheng
7c7c94fa7b emblemscanner: native wasm works 2025-10-29 21:27:29 +00:00
Fam Zheng
431f81faad emblemscanner wip 2025-10-29 21:27:29 +00:00
Fam Zheng
78a48c6cb0 emblemscanner: use camera-5.1 2025-10-29 21:27:29 +00:00
Fam Zheng
2df1973773 emblemscanner wip 2025-10-29 21:27:29 +00:00
Fam Zheng
0aacad31f4 emblemscanner: add camera rules, web-view fallback, and loading state
Major enhancements to the emblemscanner module:

**Camera System:**
- Device-specific camera rules from Themblem API
- Web-view fallback for problematic devices in same page
- Loading spinner prevents camera mode jumping
- Debug mode with comprehensive diagnostics

**Self-contained Architecture:**
- Inline utility functions (no external dependencies)
- Camera rule matching and API integration
- Web-view URL generation with proper parameters
- Message handling for web-view QR results

**UI Improvements:**
- Hide overlays during loading state
- Enhanced debug overlay with camera rule info
- Worker/native camera mode detection
- Loading feedback with "初始化相机..." message

Module is now production-ready for camera setup and UI, with framework for QR processing integration.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 21:27:29 +00:00
Fam Zheng
cd987a4b82 add emblemscanner: self-contained QR scanner module
Create portable QR scanning page module with:
- WeChat native camera integration with overlay system
- Animated QR targeting arcs and visual feedback
- Torch/flash controls and camera setup
- Inline modal system (verification, guide, service)
- Return page navigation support via query parameter
- Debug overlay and device detection
- Complete asset bundle (arc.png, qrmarkers.png, buttons)

Module can be integrated into other WeChat Mini Programs by copying pages/emblemscanner/ directory.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 21:27:29 +00:00
Fam Zheng
dadd5e09cd alg/Makefile: fix emcc path 2025-10-29 21:27:29 +00:00
Fam Zheng
4e149d1369 add doc/alg-cleanup.md 2025-10-29 21:27:29 +00:00
Fam Zheng
4458302fc9 footer: emblem 5.0 2025-10-29 21:27:29 +00:00
Fam Zheng
4f8e3973a8 add emblem5 2025-10-29 21:27:29 +00:00
Fam Zheng
b0585d16a0 simplify ai-chat.md 2025-10-29 21:27:29 +00:00
Fam Zheng
d7cfb68587 models: Add product to chat session 2025-10-29 21:27:29 +00:00
Fam Zheng
2554150b29 add rag for platform_knowledge_base 2025-10-29 21:27:29 +00:00