Commit Graph

2 Commits

Author SHA1 Message Date
Accusys 3d441a1c76 release: v1.3.2 - Cross-Machine Deployment Support
Major Changes:
- Removed all hardcoded paths for cross-machine deployment
- Added unified path management module (path_utils.rs)
- Supports arbitrary user home directories
- Environment variable configuration for all paths

New Features:
- path_utils module with 15+ path resolution functions
- Dynamic user home directory detection
- Environment variable overrides for all paths
- Default paths using $HOME/momentry and $HOME/momentry_core

Fixed Files:
- Rust code: 8 core files (release.rs, service.rs, markbase_compat.rs, etc.)
- Python scripts: 10 files (ASR, ASRX, Face, Identity, VLM, Migration)
- Configuration: production.env (removed hardcoded paths)

Environment Variables Supported:
- HOME - User home directory
- MOMENTRY_ROOT - Momentry root directory
- MOMENTRY_CORE_DIR - Momentry_core directory
- MOMENTRY_OUTPUT_DIR - Output directory
- MOMENTRY_BACKUP_DIR - Backup directory
- MOMENTRY_STORAGE_ROOT - Storage root directory
- MOMENTRY_SCRIPTS_DIR - Scripts directory
- MOMENTRY_CLI_DIR - CLI tools directory

Breaking Changes:
- None (backward compatible with environment variables)

Deployment:
- Can now deploy to any machine with any username
- No hardcoded /Users/accusys paths in core functionality
- Ready for M4ProMini deployment (/Users/nextorageai)
2026-10-12 13:20:45 +08:00
Accusys ed95c447a9 feat: 三段式实体文件持久化设计文档和迁移工具
设计文档 (2458 行):
- 01_overview.md: 架构总览
- 02_file_profile_model.md: File Profile 数据模型
- 03_identity_profile_model.md: Identity Profile 数据模型
- 04_trace_profile_model.md: Trace Profile 数据模型
- 05_face_filter_model.md: Face Filter 统一模型
- 06_implementation_plan.md: 实施计划
- 07_progress_report.md: 进度报告

基础设施:
- 目录: config/global/, ~/momentry/identities/
- 迁移脚本:
  - generate_profiles.py (403 行)
  - generate_identities.py (210 行)
  - migrate_all.py (118 行)

测试验证:
- ✅ Dry-run 测试通过
- ✅ 找到 176 个文件
- ✅ 找到 117 个 Identity

关键改进:
- FaceFilterSettings 统一(前后端字段一致)
- 三段式架构(系统层/档案层/Identity层)
- 实体文件优先存储策略

状态: Phase 1 完成,Phase 2 开始
2026-10-09 13:26:36 +08:00