@wichayutdew/pi-workflows 2.5.0 → 2.5.1

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.js CHANGED
@@ -1565,7 +1565,7 @@ var parseFailureTranscript = (transcript) => {
1565
1565
  tool: item.name,
1566
1566
  argumentsValue: item.arguments
1567
1567
  });
1568
- const isExclusiveCompletion = toolCalls.length === 1 && message.content.every((contentItem) => isDiagnosticRecord(contentItem) && (contentItem.type === "thinking" || contentItem.type === "toolCall"));
1568
+ const isExclusiveCompletion = toolCalls.length === 1 && message.content.every((contentItem) => isDiagnosticRecord(contentItem) && (contentItem.type === "thinking" || contentItem.type === "text" || contentItem.type === "toolCall"));
1569
1569
  const completionValue = item.name === "structured_output" && isExclusiveCompletion ? structuredCompletionValue(item.arguments) : undefined;
1570
1570
  const recordedCall = {
1571
1571
  id: item.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wichayutdew/pi-workflows",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "A declarative, pauseable workflow harness for Pi",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -155,6 +155,7 @@ export const parseFailureTranscript = (
155
155
  (contentItem) =>
156
156
  isDiagnosticRecord(contentItem) &&
157
157
  (contentItem.type === 'thinking' ||
158
+ contentItem.type === 'text' ||
158
159
  contentItem.type === 'toolCall'),
159
160
  );
160
161
  const completionValue =