@oh-my-pi/pi-agent-core 15.1.5 → 15.1.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-agent-core",
4
- "version": "15.1.5",
4
+ "version": "15.1.7",
5
5
  "description": "General-purpose agent with transport abstraction, state management, and attachment support",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -35,9 +35,9 @@
35
35
  "fmt": "biome format --write ."
36
36
  },
37
37
  "dependencies": {
38
- "@oh-my-pi/pi-ai": "15.1.5",
39
- "@oh-my-pi/pi-natives": "15.1.5",
40
- "@oh-my-pi/pi-utils": "15.1.5",
38
+ "@oh-my-pi/pi-ai": "15.1.7",
39
+ "@oh-my-pi/pi-natives": "15.1.7",
40
+ "@oh-my-pi/pi-utils": "15.1.7",
41
41
  "@opentelemetry/api": "^1.9.0"
42
42
  },
43
43
  "devDependencies": {
@@ -412,10 +412,11 @@ export function buildOpenAiNativeHistory(
412
412
  .map(block => block.text)
413
413
  .join("\n");
414
414
  const hasImages = message.content.some(block => block.type === "image");
415
+ const outputText = textOutput.length > 0 ? textOutput : hasImages ? "(see attached image)" : "";
415
416
  input.push({
416
417
  type: customCallIds.has(normalized.callId) ? "custom_tool_call_output" : "function_call_output",
417
418
  call_id: normalized.callId,
418
- output: (textOutput.length > 0 ? textOutput : "(see attached image)").toWellFormed(),
419
+ output: outputText.toWellFormed(),
419
420
  });
420
421
 
421
422
  if (hasImages && model.input.includes("image")) {