maoda-commander-tt 0.0.58 → 0.0.60
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 +6 -1
- package/dist/{chunk-PEHEATMJ.js → chunk-53HK5CGI.js} +15 -10
- package/dist/chunk-53HK5CGI.js.map +1 -0
- package/dist/chunk-ZLB4RQD2.js +21 -0
- package/dist/chunk-ZLB4RQD2.js.map +1 -0
- package/dist/codex-worker-main.js +4 -1
- package/dist/codex-worker-main.js.map +1 -1
- package/dist/image-worker-main.js +4 -1
- package/dist/image-worker-main.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/main.js +2 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-PEHEATMJ.js.map +0 -1
package/README.md
CHANGED
|
@@ -94,6 +94,11 @@ pnpm build && pnpm test:dist
|
|
|
94
94
|
|
|
95
95
|
## 后台启动 Codex
|
|
96
96
|
|
|
97
|
+
`tt codex`、`tt ai run` 和本地图片 worker 共用可执行文件查找顺序:
|
|
98
|
+
`/Applications/ChatGPT.app/Contents/Resources/codex` →
|
|
99
|
+
`/Applications/Codex.app/Contents/Resources/codex` → PATH 中的 `codex`。
|
|
100
|
+
App 内路径不存在、不是文件或不可执行时跳到下一项;启动后的执行失败不重试下一项。
|
|
101
|
+
|
|
97
102
|
```bash
|
|
98
103
|
tt codex "我的具体 prompt"
|
|
99
104
|
tt codex -C /path/to/repo -m gpt-5.6-sol -r ultra "我的具体 prompt"
|
|
@@ -442,7 +447,7 @@ tt ai audio status --task-id 'xyq:<threadId>'
|
|
|
442
447
|
tt ai audio wait --task-id 'xyq:<threadId>' --timeout-seconds 600 --output ./result.mp3
|
|
443
448
|
```
|
|
444
449
|
|
|
445
|
-
命令固定使用 `seedaudio_1.
|
|
450
|
+
命令固定使用 `seedaudio_1.5`、MP3 和 44.1 kHz;等待默认 60 秒,可通过
|
|
446
451
|
`--timeout-seconds` 设为 1–600 秒。参考音频直接上传,不进入持久素材缓存。
|
|
447
452
|
云端产物字段统一为 `outputs[].downloadUrl`,本地产物为 `outputs[].localPath`;
|
|
448
453
|
旧同步调用需增加 `--wait`,旧 `remoteUrl` 读取需迁移到 `downloadUrl`。
|
|
@@ -4,6 +4,9 @@ import {
|
|
|
4
4
|
isImageWorkerAlive,
|
|
5
5
|
validateImageArtifact
|
|
6
6
|
} from "./chunk-W4TSQEWE.js";
|
|
7
|
+
import {
|
|
8
|
+
resolveCodexCommand
|
|
9
|
+
} from "./chunk-ZLB4RQD2.js";
|
|
7
10
|
import {
|
|
8
11
|
captureProcess,
|
|
9
12
|
openUrl,
|
|
@@ -2190,10 +2193,9 @@ function buildImageRunExtra(clientRunId, messageId) {
|
|
|
2190
2193
|
function buildSubmitAudioBody(input) {
|
|
2191
2194
|
const contentData = {
|
|
2192
2195
|
prompt: input.prompt,
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
format: "mp3",
|
|
2196
|
+
model: "seedaudio_1.5",
|
|
2197
|
+
output_format: "mp3",
|
|
2198
|
+
audio_config_v2: {
|
|
2197
2199
|
sample_rate: 44100,
|
|
2198
2200
|
speech_rate: 0,
|
|
2199
2201
|
loudness_rate: 0,
|
|
@@ -2236,8 +2238,11 @@ function buildSubmitAudioBody(input) {
|
|
|
2236
2238
|
content: [
|
|
2237
2239
|
{
|
|
2238
2240
|
type: "data",
|
|
2239
|
-
data: JSON.stringify(
|
|
2240
|
-
|
|
2241
|
+
data: JSON.stringify({
|
|
2242
|
+
tool_name: "biz/x_tool_name_audio_part",
|
|
2243
|
+
param: JSON.stringify(contentData)
|
|
2244
|
+
}),
|
|
2245
|
+
sub_type: "biz/x_data_direct_tool_call_req"
|
|
2241
2246
|
}
|
|
2242
2247
|
],
|
|
2243
2248
|
role: "user",
|
|
@@ -2252,8 +2257,8 @@ function buildSubmitAudioBody(input) {
|
|
|
2252
2257
|
space_id: input.context.spaceId ?? "",
|
|
2253
2258
|
app_id: "795647"
|
|
2254
2259
|
},
|
|
2255
|
-
agent_name: "
|
|
2256
|
-
entrance_from: "
|
|
2260
|
+
agent_name: "pippit_audio_part_agent",
|
|
2261
|
+
entrance_from: "web_audio_direct",
|
|
2257
2262
|
run_extra: JSON.stringify(runExtra),
|
|
2258
2263
|
request_id: input.requestId
|
|
2259
2264
|
};
|
|
@@ -4310,7 +4315,7 @@ var AiRunCommand = class extends BaseCommand {
|
|
|
4310
4315
|
if (!enhancedPrompt.ok) {
|
|
4311
4316
|
return enhancedPrompt;
|
|
4312
4317
|
}
|
|
4313
|
-
return runProcess(
|
|
4318
|
+
return runProcess(resolveCodexCommand(), [
|
|
4314
4319
|
"exec",
|
|
4315
4320
|
"-m",
|
|
4316
4321
|
"gpt-5.4",
|
|
@@ -8799,4 +8804,4 @@ export {
|
|
|
8799
8804
|
ToolCommand,
|
|
8800
8805
|
createRootCommands
|
|
8801
8806
|
};
|
|
8802
|
-
//# sourceMappingURL=chunk-
|
|
8807
|
+
//# sourceMappingURL=chunk-53HK5CGI.js.map
|