From 4cee90cc2fed139d08dc1a3b2f4acfe19da0e1a1 Mon Sep 17 00:00:00 2001 From: appleshu Date: Sat, 25 Apr 2026 16:50:32 +0800 Subject: [PATCH] docs: fix product guide storage paths --- src/data/product-guide.ts | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/data/product-guide.ts b/src/data/product-guide.ts index 943b5b3d..d8928ef9 100644 --- a/src/data/product-guide.ts +++ b/src/data/product-guide.ts @@ -314,7 +314,7 @@ Example: after starting a dev server on port 3000, run \`openacp tunnel add 3000 ## Configuration -Config file: \`~/.openacp/config.json\` +Config file: \`/.openacp/config.json\` (default: \`~/openacp-workspace/.openacp/config.json\`) ### Channels - **channels.telegram.botToken** — Your Telegram bot token @@ -325,7 +325,7 @@ Config file: \`~/.openacp/config.json\` ### Agents - **defaultAgent** — Which agent to use by default - Agents are managed via \`/agents\` (Telegram) or \`openacp agents\` (CLI) -- Installed agents are stored in \`~/.openacp/agents.json\` +- Installed agent definitions are stored in \`/agents.json\`; downloaded agent binaries live in \`~/.openacp/agents/\` - Agent list is fetched from the ACP Registry CDN and cached locally (24h) ### Workspace @@ -346,7 +346,7 @@ Config file: \`~/.openacp/config.json\` ### Logging - **logging.level** — Log level: silent, debug, info, warn, error, fatal (default: info) -- **logging.logDir** — Log directory (default: \`~/.openacp/logs\`) +- **logging.logDir** — Log directory (default: \`/logs\`) - **logging.maxFileSize** — Max log file size before rotation - **logging.maxFiles** — Max number of rotated log files - **logging.sessionLogRetentionDays** — Auto-delete old session logs (default: 30) @@ -404,7 +404,7 @@ Override config with env vars: - If you see messages appearing in the Assistant topic instead of the session topic, try creating a new session ### Viewing logs -- Session-specific logs: \`~/.openacp/logs/sessions/\` +- Session-specific logs: \`/logs/sessions/\` - System logs: \`openacp logs\` to tail live - Set \`OPENACP_DEBUG=true\` for verbose output @@ -412,16 +412,17 @@ Override config with env vars: ## Data & Storage -All data is stored in \`~/.openacp/\`: -- \`config.json\` — Configuration -- \`agents.json\` — Installed agents (managed by AgentCatalog) -- \`registry-cache.json\` — Cached ACP Registry data (refreshes every 24h) -- \`agents/\` — Downloaded binary agents -- \`sessions/\` — Session records and state -- \`topics/\` — Topic-to-session mappings -- \`logs/\` — System and session logs -- \`plugins/\` — Installed adapter plugins -- \`openacp.pid\` — Daemon PID file +OpenACP stores per-instance state in \`/.openacp/\` (the instance root), with shared downloads and caches under \`~/.openacp/\`: +- \`/config.json\` — Configuration +- \`/agents.json\` — Installed agent definitions (managed by AgentCatalog) +- \`/sessions.json\` — Session records and state +- \`/usage.json\` — Token and cost tracking +- \`/history/\` — Per-session conversation history +- \`/logs/\` — System and session logs +- \`/plugins/\` — Installed adapter plugins and plugin data +- \`/openacp.pid\` — Daemon PID file +- \`~/.openacp/cache/registry-cache.json\` — Cached ACP Registry data (refreshes every 24h) +- \`~/.openacp/agents/\` — Downloaded binary agents Session records auto-cleanup: 30 days (configurable via \`sessionStore.ttlDays\`). Session logs auto-cleanup: 30 days (configurable via \`logging.sessionLogRetentionDays\`).