From 35cca6965a116d9a1b2d64dc0f4f987206214f8c Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sun, 17 May 2026 00:31:07 +0800 Subject: [PATCH] auto-sync: 2026-05-17 00:31:07 --- config/default.yaml | 24 ++++++++++++++++++++++++ ecosystem.config.cjs | 18 ++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 config/default.yaml create mode 100644 ecosystem.config.cjs diff --git a/config/default.yaml b/config/default.yaml new file mode 100644 index 0000000..82f7dfe --- /dev/null +++ b/config/default.yaml @@ -0,0 +1,24 @@ +daemon: + tick_interval: 30 + task_timeout: 600 + max_global_agents: 5 + max_per_agent: 1 + zombie_threshold: 20 + +inbox: + path: "inbox/daemon.jsonl" + watch_interval: 1 + max_size_bytes: 1048576 + +review: + default_max_rounds: 3 + debate_max_rounds: 5 + confidence_threshold: 0.7 + +experience: + distill_threshold: 5 + expire_days: 30 + +logging: + level: INFO + max_file_size: 10MB diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs new file mode 100644 index 0000000..d9a8649 --- /dev/null +++ b/ecosystem.config.cjs @@ -0,0 +1,18 @@ +module.exports = { + apps: [{ + name: 'sanguo-moziplus-v2', + script: require('path').resolve(__dirname, '.venv/bin/uvicorn'), + args: 'src.main:app --host 0.0.0.0 --port 8083', + cwd: __dirname, + interpreter: 'none', + autorestart: true, + max_restarts: 10, + restart_delay: 3000, + watch: false, + env: { + PYTHONPATH: __dirname, + }, + out_file: './logs/daemon.out.log', + error_file: './logs/daemon.err.log', + }] +}