4 Commits

Author SHA1 Message Date
4a8f52a3f1 chore: remove runtime-generated files from git tracking
Remove build.sh generated symlinks and runtime files from git:
- conf/config.json (runtime config)
- stop.sh, start.sh, sage.service (runtime scripts)
- wwwroot/* symlinks (module links created by build.sh)

These files are already in .gitignore and should not be tracked.
2026-05-29 22:00:12 +08:00
9b710966d2 fix: remove build.sh-managed symlinks from git, clean global_menu
- Remove 55 symlinks/module files from git tracking (build.sh creates them)
- Add .gitignore rules for all build.sh module symlinks
- Remove 7 non-Sage modules from global_menu.ui:
  unified_dashboard, integrated_crm_app, customer_management,
  opportunity_management, contract_management, financial_management,
  workflow_approval
- Keep only Sage modules: dashboard, product_management, supplychain,
  pricing, discount, llmage, rag, cpcc, msp, platformbiz, accounting, rbac
2026-05-28 11:06:35 +08:00
cd2fbfa89a bugfix 2026-05-28 10:31:59 +08:00
3de5a1ce91 feat: multi-process architecture with independent backend processes
- Extract backend_accounting from llmage cleanupctx to independent process
- Add bin/backend_accounting.py for standalone LLM billing loop
- Rewrite start.sh with two-phase startup:
  1. Independent backend programs (run once)
  2. Sage Web workers (SO_REUSEPORT on same port)
- Rewrite stop.sh to handle both workers and backend processes
- Add .gitignore for build artifacts and runtime files

Architecture:
- CPU core detection for worker count
- All workers share port 9180 via SO_REUSEPORT
- Backend processes tracked in sage_backend.pid
- Workers tracked in sage.pid
2026-05-17 00:11:53 +08:00