Commit Graph

2 Commits

Author SHA1 Message Date
eabcc4c3ca refactor: Major reorganization of optimization_engine module structure
BREAKING CHANGE: Module paths have been reorganized for better maintainability.
Backwards compatibility aliases with deprecation warnings are provided.

New Structure:
- core/           - Optimization runners (runner, intelligent_optimizer, etc.)
- processors/     - Data processing
  - surrogates/   - Neural network surrogates
- nx/             - NX/Nastran integration (solver, updater, session_manager)
- study/          - Study management (creator, wizard, state, reset)
- reporting/      - Reports and analysis (visualizer, report_generator)
- config/         - Configuration management (manager, builder)
- utils/          - Utilities (logger, auto_doc, etc.)
- future/         - Research/experimental code

Migration:
- ~200 import changes across 125 files
- All __init__.py files use lazy loading to avoid circular imports
- Backwards compatibility layer supports old import paths with warnings
- All existing functionality preserved

To migrate existing code:
  OLD: from optimization_engine.nx_solver import NXSolver
  NEW: from optimization_engine.nx.solver import NXSolver

  OLD: from optimization_engine.runner import OptimizationRunner
  NEW: from optimization_engine.core.runner import OptimizationRunner

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 12:30:59 -05:00
6199fd1e53 test: Add API verification test with hardcoded key for periodic checks
Created minimal API verification test to confirm Anthropic API integration
works without consuming significant credits. Test uses ~100-200 tokens only.

Features:
- Hardcoded API key for easy periodic verification
- Falls back to environment variable if set
- Minimal request to save credits ("Extract displacement from OP2 file")
- Clear output showing API response and token usage
- Recommendations for development workflow

Test Results:
 API authentication successful
 LLMWorkflowAnalyzer can parse natural language
 Workflow generation working correctly
 Engineering features detected: 1 (displacement extraction)
 Credits used: ~100-200 tokens (~$0.001)

Development Strategy Confirmed:
- Use Claude Code for all daily development (zero credits)
- Run this test periodically as health check
- Use API mode only for production testing when needed
- Hybrid approach (Claude Code → JSON → Runner) is primary workflow

This verifies Phase 3.2 integration can work with API when needed,
while maintaining zero-credit development workflow with Claude Code.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 09:27:52 -05:00