There was an error while loading. Please reload this page.
1 parent b536ec6 commit b0ba776Copy full SHA for b0ba776
1 file changed
packages/config/src/manager.ts
@@ -5,6 +5,14 @@
5
* storage for Tiny Claw. Configuration is stored as a SQLite database
6
* at ~/.tinyclaw/data/config.db by default.
7
*
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
+ *
16
* Non-sensitive settings only — API keys and tokens belong in
17
* secrets-engine via the SecretsManager.
18
0 commit comments