ai-sdk-provider-codex-cli 0.7.2 → 0.7.3
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/dist/index.cjs +4 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -590,7 +590,6 @@ var CodexCliLanguageModel = class {
|
|
|
590
590
|
this.logger.warn(`[codex-cli] Failed to write image to temp file: ${String(e)}`);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
args.push(promptText);
|
|
594
593
|
const env = {
|
|
595
594
|
...process.env,
|
|
596
595
|
...settings.env || {},
|
|
@@ -604,6 +603,10 @@ var CodexCliLanguageModel = class {
|
|
|
604
603
|
lastMessageIsTemp = true;
|
|
605
604
|
}
|
|
606
605
|
args.push("--output-last-message", lastMessagePath);
|
|
606
|
+
if (tempImagePaths.length > 0) {
|
|
607
|
+
args.push("--");
|
|
608
|
+
}
|
|
609
|
+
args.push(promptText);
|
|
607
610
|
return {
|
|
608
611
|
cmd: base.cmd,
|
|
609
612
|
args,
|
package/dist/index.js
CHANGED
|
@@ -587,7 +587,6 @@ var CodexCliLanguageModel = class {
|
|
|
587
587
|
this.logger.warn(`[codex-cli] Failed to write image to temp file: ${String(e)}`);
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
args.push(promptText);
|
|
591
590
|
const env = {
|
|
592
591
|
...process.env,
|
|
593
592
|
...settings.env || {},
|
|
@@ -601,6 +600,10 @@ var CodexCliLanguageModel = class {
|
|
|
601
600
|
lastMessageIsTemp = true;
|
|
602
601
|
}
|
|
603
602
|
args.push("--output-last-message", lastMessagePath);
|
|
603
|
+
if (tempImagePaths.length > 0) {
|
|
604
|
+
args.push("--");
|
|
605
|
+
}
|
|
606
|
+
args.push(promptText);
|
|
604
607
|
return {
|
|
605
608
|
cmd: base.cmd,
|
|
606
609
|
args,
|