Commit Graph

5 Commits

Author SHA1 Message Date
Accusys 1c7e7481f6 fix: final docs.rs L11 path cleanup
Issue: Previous edit missed L11 hardcoded path

Solution: Use same env var + current_exe() pattern as L24

Verification: strings shows 0 dev paths in binary

D-4: ✅ Complete
2026-10-04 20:42:03 +08:00
Accusys 7ffb45c137 fix: remove final 3 hardcoded paths for D-4 compliance
Final cleanup:
1. main.rs:35 - Remove hardcoded .env fallback
   - Rationale: L30-34 already provide correct current_exe() resolution
   - Removes dev path, aligns with A-14.3 "禁止读取 dev 设定"

2. docs.rs:11,24 - Use current_exe() resolution
   - Replace hardcoded doc_wasm paths
   - Add MOMENTRY_DOCS_DIR env var support
   - Fallback to relative path

Result:
- All hardcoded dev paths removed from release binary
- D-4 Gate satisfied
- Zero momentry_core/nextorageai paths in source

Impact:
- Binary fully portable
- No dev environment assumptions
- All paths runtime-resolved
2026-10-04 20:40:27 +08:00
Accusys e1572907ae feat: ASRX hybrid pipeline, identity history, worker fixes, checkpoint system 2026-06-02 07:13:23 +08:00
Accusys 7805eaa3cb fix: doc-wasm hardcoded path momentry_core_0.1 -> momentry_core 2026-05-22 09:33:33 +08:00
M5Max128 3a33d00449 refactor: modularize server.rs into separate route modules
- Extract scan.rs, files.rs, types.rs, processing.rs, visual_chunk_search.rs
- Move AppState and AppConfig to types.rs
- Each module exposes pub fn xxx_routes() -> Router<AppState>
- server.rs reduced from 5005 to 118 lines (orchestrator only)
- All stubs filled with real implementations from git history
- Verify: cargo check, clippy, tests all pass
2026-05-21 16:38:49 +08:00