Skip to content

Commit b0ba776

Browse files
committed
📖 docs: update configuration manager documentation for data directory resolution
1 parent b536ec6 commit b0ba776

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/config/src/manager.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
* storage for Tiny Claw. Configuration is stored as a SQLite database
66
* at ~/.tinyclaw/data/config.db by default.
77
*
8+
* Data directory resolution:
9+
* 1. An explicit `cwd` passed via ConfigManagerConfig takes priority.
10+
* 2. Otherwise, `dataDir` is resolved from the TINYCLAW_DATA_DIR
11+
* environment variable (e.g. `/data` in Docker) or falls back
12+
* to `~/.tinyclaw`.
13+
* 3. The final `cwd` defaults to `<dataDir>/data`, so the database
14+
* path becomes `<dataDir>/data/config.db`.
15+
*
816
* Non-sensitive settings only — API keys and tokens belong in
917
* secrets-engine via the SecretsManager.
1018
*

0 commit comments

Comments
 (0)