@agentforge/tools 0.16.64 → 0.16.66

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
@@ -5674,15 +5674,15 @@ function resolveTotalRowsLimit(input, options) {
5674
5674
  return Math.min(inputLimit, maxRows);
5675
5675
  }
5676
5676
 
5677
- // src/data/relational/query/stream-executor-runtime.ts
5677
+ // src/data/relational/query/row-extraction.ts
5678
5678
  function extractRows(result) {
5679
5679
  if (Array.isArray(result)) {
5680
5680
  return result;
5681
5681
  }
5682
- return result.rows ?? [];
5683
- }
5684
- function isCancelledError(error) {
5685
- return error instanceof Error && error.message.includes("Stream cancelled by caller");
5682
+ if (result && typeof result === "object" && Array.isArray(result.rows)) {
5683
+ return result.rows;
5684
+ }
5685
+ return [];
5686
5686
  }
5687
5687
 
5688
5688
  // src/data/relational/query/stream-executor-chunks.ts
@@ -5731,6 +5731,11 @@ function createSelectReadableStream(executor, input, options = {}) {
5731
5731
  });
5732
5732
  }
5733
5733
 
5734
+ // src/data/relational/query/stream-executor-runtime.ts
5735
+ function isCancelledError(error) {
5736
+ return error instanceof Error && error.message.includes("Stream cancelled by caller");
5737
+ }
5738
+
5734
5739
  // src/data/relational/query/stream-executor-execution.ts
5735
5740
  async function executeStreamingSelect(executor, input, options = {}) {
5736
5741
  const startTime = Date.now();