You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,24 @@ Alternatively, set up a default profile interactively by running the command bel
110
110
tdc configure
111
111
```
112
112
113
-
`tdc configure` stores non-sensitive settings in `~/.tdc/config` and API credentials to `~/.tdc/credentials`.
113
+
`tdc configure` stores non-sensitive profile configuration in `~/.tdc/config` and API credentials in `~/.tdc/credentials`.
114
+
115
+
### Global Settings and Operation Logs
116
+
117
+
Process-wide preferences are separate from profiles. The optional, hidden `~/.tdc/.preferences` file applies to every profile and is not created on fresh installs or by `tdc configure`. Local operation logs are enabled by default at `~/.tdc/logs/tdc.jsonl`; they contain redacted command and API summaries, not command values or user data.
118
+
119
+
To disable operation logging persistently, create `~/.tdc/.preferences`:
120
+
121
+
```toml
122
+
schema_version = 1
123
+
124
+
[logging]
125
+
enabled = false
126
+
max_file_mb = 10
127
+
max_files = 5
128
+
```
129
+
130
+
Use `TDC_LOGGING=off` to disable logging for one process. Accepted values are `on`, `true`, `1`, `yes`, `off`, `false`, `0`, and `no`. An existing `[logging]` section in `~/.tdc/config` is migrated automatically to `~/.tdc/.preferences`; profiles and credentials are preserved. `tdc update` does not read or write settings, profiles, credentials, operation logs, or other `~/.tdc/` state.
Copy file name to clipboardExpand all lines: docs/priciples.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,11 +242,16 @@ Logs must never include flag values, SQL text or results, file contents, remote
242
242
Disable local logging for one process with `TDC_LOGGING=off`, or globally:
243
243
244
244
```toml
245
+
# ~/.tdc/.preferences
246
+
schema_version = 1
247
+
245
248
[logging]
246
249
enabled = false
247
250
```
248
251
249
-
Telemetry follows the same data-minimization rule and must be explicitly disclosed after installation. It can collect command/subcommand names, flag names, error codes, duration, region, CLI version, and OS type, but never credentials or user content. Telemetry must have a documented opt-out command before collection is enabled.
252
+
`~/.tdc/.preferences` is optional, hidden from ordinary directory listings, global across profiles, and separate from the profile-only `~/.tdc/config` and `~/.tdc/credentials` files. Missing settings use in-memory defaults without creating the file. Existing legacy `[logging]` configuration in `~/.tdc/config` is migrated atomically. `tdc update` does not read or write any state under `~/.tdc/`, including settings and operation logs.
253
+
254
+
Telemetry follows the same data-minimization rule and must be explicitly disclosed after installation. It can collect command/subcommand names, flag names, error codes, duration, region, CLI version, and OS type, but never credentials or user content. Telemetry must have documented settings-file and process-scoped environment opt-outs before collection is enabled.
0 commit comments