maoda-commander-tt 0.0.53 → 0.0.55

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,25 @@ pnpm test
92
92
  pnpm build && pnpm test:dist
93
93
  ```
94
94
 
95
+ ## 后台启动 Codex
96
+
97
+ ```bash
98
+ tt codex "我的具体 prompt"
99
+ tt codex -C /path/to/repo -m gpt-5.6-sol -r ultra "我的具体 prompt"
100
+ tt codex --help
101
+ ```
102
+
103
+ 默认工作目录 `/Users/bytedance/work/autogen`,默认模型 `gpt-6-astra`,默认推理强度
104
+ `high`。模型可选 `gpt-6-astra`、`gpt-5.6-sol`;推理强度可选
105
+ `low`、`medium`、`high`、`xhigh`、`max`、`ultra`。
106
+
107
+ macOS/Linux 下通过 `nohup` 后台运行 `codex exec --json`,固定配置
108
+ `sandbox_mode="danger-full-access"`、`approval_policy="never"`,无沙箱且不请求审批。
109
+ stdin/stdout/stderr 均接到 `/dev/null`;tt 不生成日志、不跟踪任务,保留 Codex 默认
110
+ 会话持久化与本机登录态。返回一行 JSON,`data` 包含 `status: "launched"`、`pid`、
111
+ `cwd`、`model`、`reasoning`。成功仅表示已提交后台启动,不保证 Codex 初始化或任务
112
+ 执行成功;启动后的错误和输出不会由 tt 返回。
113
+
95
114
  ## 发布到 npm
96
115
 
97
116
  发布采用 GitHub Actions + npm Trusted Publishing(OIDC)。本地 `pnpm pub` 负责
@@ -319,9 +338,9 @@ tt sc w2
319
338
  `wait` 等待已有任务,`--output` 隐含 `--wait`。生成是否成功以 `data.state` 为准,
320
339
  不能只看查询命令的 `code=0`;超时返回 `data.timedOut=true`,不会取消生成。
321
340
 
322
- `ai image` 根据 cross-app settings 的 `imagegen.source` 选择实现:值精确为 `xyq`
323
- (忽略大小写和首尾空格)时,通过 XYQ HTTP 提交;未配置、其他值或读取失败时继续
324
- 使用原来的本地 Codex 后台任务。两种实现都返回 `taskId`、当前 `state` 和
341
+ `ai image` 根据 cross-app settings 的 `imagegen.source` 选择实现:未配置、为空或值为
342
+ `xyq`(忽略大小写和首尾空格)时,通过 XYQ HTTP 提交;显式配置其他值时使用
343
+ 原来的本地 Codex 后台任务。两种实现都返回 `taskId`、当前 `state` 和
325
344
  `nextCommand`。图片 ID 分别为 `xyq-image:<threadId>` 和 `local-image:<uuid>`;
326
345
  后续 `status` / `wait` 根据 ID 前缀回到原 provider,不受配置后来切换影响。
327
346
 
@@ -346,7 +365,8 @@ tt ai image list
346
365
  ```
347
366
 
348
367
  等待默认 360 秒,上限 600 秒。本地实现完成时会返回 `outputs[].localPath`;
349
- XYQ 的 `status` / `--wait` 会在 `outputs[]` 返回
368
+ XYQ 优先使用 artifact 的 `image.url` 无水印原图,缺失时才回退到 `scene_urls`。
369
+ `status` / `--wait` 会在 `outputs[]` 返回
350
370
  `downloadUrl`、`assetId`、`pippitAssetId` 和尺寸等槽位元数据。
351
371
  使用 `--output` 会把 XYQ 产物下载到本地,并用 `localPath` 取代 `downloadUrl`;再次
352
372
  `wait --output` 只下载或复制已有产物。