@agentforge/tools 0.16.64 → 0.16.65

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 CHANGED
@@ -5701,15 +5701,15 @@ function resolveTotalRowsLimit(input, options) {
5701
5701
  return Math.min(inputLimit, maxRows);
5702
5702
  }
5703
5703
 
5704
- // src/data/relational/query/stream-executor-runtime.ts
5704
+ // src/data/relational/query/row-extraction.ts
5705
5705
  function extractRows(result) {
5706
5706
  if (Array.isArray(result)) {
5707
5707
  return result;
5708
5708
  }
5709
- return result.rows ?? [];
5710
- }
5711
- function isCancelledError(error) {
5712
- return error instanceof Error && error.message.includes("Stream cancelled by caller");
5709
+ if (result && typeof result === "object" && Array.isArray(result.rows)) {
5710
+ return result.rows;
5711
+ }
5712
+ return [];
5713
5713
  }
5714
5714
 
5715
5715
  // src/data/relational/query/stream-executor-chunks.ts
@@ -5758,6 +5758,11 @@ function createSelectReadableStream(executor, input, options = {}) {
5758
5758
  });
5759
5759
  }
5760
5760
 
5761
+ // src/data/relational/query/stream-executor-runtime.ts
5762
+ function isCancelledError(error) {
5763
+ return error instanceof Error && error.message.includes("Stream cancelled by caller");
5764
+ }
5765
+
5761
5766
  // src/data/relational/query/stream-executor-execution.ts
5762
5767
  async function executeStreamingSelect(executor, input, options = {}) {
5763
5768
  const startTime = Date.now();