maoda-commander-tt 0.0.68 → 0.0.70

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
@@ -115,7 +115,7 @@ revision,不回显 value。
115
115
  ## 后台启动 Codex
116
116
 
117
117
  `tt codex`、`tt codex-exec` 和本地图片 worker 共用可执行文件查找顺序:
118
- `/Applications/ChatGPT.app/Contents/Resources/codex` →
118
+ `/Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex` →
119
119
  `/Applications/Codex.app/Contents/Resources/codex` → PATH 中的 `codex`。
120
120
  App 内路径不存在、不是文件或不可执行时跳到下一项;启动后的执行失败不重试下一项。
121
121
 
@@ -125,8 +125,8 @@ tt codex -C /path/to/repo -m gpt-6-astra -r high "我的具体 prompt"
125
125
  tt codex --help
126
126
  ```
127
127
 
128
- 默认工作目录 `/Users/bytedance/work/autogen`,默认模型 `gpt-6-sol`,默认推理强度
129
- `ultra`。模型可选 `gpt-6-sol`、`gpt-6-astra`、`gpt-5.6-sol`;推理强度可选
128
+ 默认工作目录 `/Users/bytedance/work/autogen`,默认模型 `gpt-6.1-sol`,默认推理强度
129
+ `max`。模型可选 `gpt-6.1-sol`、`gpt-6-sol`、`gpt-6-astra`、`gpt-5.6-sol`;推理强度可选
130
130
  `low`、`medium`、`high`、`xhigh`、`max`、`ultra`。
131
131
 
132
132
  macOS/Linux 下通过 `nohup` 启动后台 worker,由 worker 运行 `codex app-server`,
@@ -155,7 +155,7 @@ tt codex-exec --help
155
155
  ```
156
156
 
157
157
  `tt codex-exec` 直接运行 `codex exec`,等待本轮完成后返回。参数与 `tt codex` 对齐:
158
- 完整非空提示词必填,`-m/--model` 默认 `gpt-6-sol`,`-r/--reasoning` 默认 `ultra`,
158
+ 完整非空提示词必填,`-m/--model` 默认 `gpt-6.1-sol`,`-r/--reasoning` 默认 `max`,
159
159
  模型与推理强度使用相同枚举。未传 `-C/--cd` 时,每次在系统临时目录下新建独立空目录作为工作目录,
160
160
  成功、失败或 Ctrl-C 结束后删除目录及其中全部文件产物。需要保留文件必须指定 `-C`,
161
161
  显式指定的目录及产物保留;路径必须非空且已存在,可指定空目录,无需 Git 仓库。
@@ -2,7 +2,7 @@
2
2
  import fs from "node:fs";
3
3
  function resolveCodexCommand() {
4
4
  for (const command of [
5
- "/Applications/ChatGPT.app/Contents/Resources/codex",
5
+ "/Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex",
6
6
  "/Applications/Codex.app/Contents/Resources/codex"
7
7
  ]) {
8
8
  try {
@@ -18,4 +18,4 @@ function resolveCodexCommand() {
18
18
  export {
19
19
  resolveCodexCommand
20
20
  };
21
- //# sourceMappingURL=chunk-ZLB4RQD2.js.map
21
+ //# sourceMappingURL=chunk-EDR7HB5A.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/modules/codex/resolve-codex-command.ts"],"sourcesContent":["import fs from \"node:fs\";\n\n/** Prefer an executable bundled with the desktop apps, then let PATH resolve codex. */\nexport function resolveCodexCommand(): string {\n for (const command of [\n \"/Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex\",\n \"/Applications/Codex.app/Contents/Resources/codex\",\n ]) {\n try {\n if (!fs.statSync(command).isFile()) continue;\n fs.accessSync(command, fs.constants.X_OK);\n return command;\n } catch { /* Missing or non-executable bundles fall through to the next candidate. */ }\n }\n return \"codex\";\n}\n"],"mappings":";AAAA,OAAO,QAAQ;AAGR,SAAS,sBAA8B;AAC5C,aAAW,WAAW;AAAA,IACpB;AAAA,IACA;AAAA,EACF,GAAG;AACD,QAAI;AACF,UAAI,CAAC,GAAG,SAAS,OAAO,EAAE,OAAO,EAAG;AACpC,SAAG,WAAW,SAAS,GAAG,UAAU,IAAI;AACxC,aAAO;AAAA,IACT,QAAQ;AAAA,IAA8E;AAAA,EACxF;AACA,SAAO;AACT;","names":[]}