maoda-commander-tt 0.0.61 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -92,6 +92,20 @@ pnpm test
92
92
  pnpm build && pnpm test:dist
93
93
  ```
94
94
 
95
+ ## 读写配置
96
+
97
+ ```bash
98
+ tt tool set-config -k example.key -v 'hello world'
99
+ tt tool set-config -k example.key -v '' --label '标签' --description '说明'
100
+ tt tool get-config example.key
101
+ ```
102
+
103
+ `set-config` 的 key、value 必填,value 原样按字符串保存。label、description 省略时
104
+ 写入空字符串,更新已有配置也一样。共用 `~/.cli_settings/settings.json`,环境变量
105
+ `TT_CROSS_APP_SETTINGS_FILE` 可覆盖路径;文件不存在时安全创建,已有文件只覆盖指定 key,
106
+ 保留其他配置。无效文件或检测到写入冲突时失败并保留原内容。成功返回 key、configured、
107
+ revision,不回显 value。
108
+
95
109
  ## 后台启动 Codex
96
110
 
97
111
  `tt codex`、`tt ai run` 和本地图片 worker 共用可执行文件查找顺序: