@agentforge/tools 0.16.53 → 0.16.54

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.d.cts CHANGED
@@ -5221,13 +5221,8 @@ declare function buildDeleteQuery(input: DeleteQueryInput): BuiltDeleteQuery;
5221
5221
  declare function buildSelectQuery(input: SelectQueryInput): SQL;
5222
5222
 
5223
5223
  /**
5224
- * Generic batch execution helpers for relational operations.
5225
- * @module query/batch-executor
5224
+ * Shared types for relational batch execution helpers.
5226
5225
  */
5227
- /** Default number of items processed per batch chunk. */
5228
- declare const DEFAULT_BATCH_SIZE = 100;
5229
- /** Maximum allowed batch size to prevent memory exhaustion. */
5230
- declare const MAX_BATCH_SIZE = 5000;
5231
5226
  /**
5232
5227
  * Progress payload emitted after each processed batch.
5233
5228
  */
@@ -5299,21 +5294,41 @@ interface BatchBenchmarkResult {
5299
5294
  speedupRatio: number;
5300
5295
  speedupPercent: number;
5301
5296
  }
5297
+
5302
5298
  /**
5303
- * Execute operation items in batches with retry and progress callbacks.
5299
+ * Shared option validation and chunking helpers for batch execution.
5304
5300
  */
5305
- declare function executeBatchedTask<TItem, TResult>(task: BatchExecutionTask<TItem, TResult>, options?: BatchExecutionOptions): Promise<BatchExecutionResult<TResult>>;
5301
+
5302
+ /** Default number of items processed per batch chunk. */
5303
+ declare const DEFAULT_BATCH_SIZE = 100;
5304
+ /** Maximum allowed batch size to prevent memory exhaustion. */
5305
+ declare const MAX_BATCH_SIZE = 5000;
5306
+
5306
5307
  /**
5307
- * Benchmark individual vs batched execution.
5308
- *
5309
- * Note: callers should run this only for idempotent or isolated workloads.
5308
+ * Benchmark helpers for relational batch execution.
5310
5309
  */
5311
- declare function benchmarkBatchExecution<TItem, TIndividualResult, TBatchResult>(params: {
5310
+
5311
+ interface BatchBenchmarkParams<TItem, TIndividualResult, TBatchResult> {
5312
5312
  items: TItem[];
5313
5313
  batchSize?: number;
5314
5314
  runIndividual: (item: TItem, index: number) => Promise<TIndividualResult>;
5315
5315
  runBatch: (batchItems: TItem[], batchIndex: number) => Promise<TBatchResult>;
5316
- }): Promise<BatchBenchmarkResult>;
5316
+ }
5317
+ /**
5318
+ * Benchmark individual vs batched execution.
5319
+ *
5320
+ * Note: callers should run this only for idempotent or isolated workloads.
5321
+ */
5322
+ declare function benchmarkBatchExecution<TItem, TIndividualResult, TBatchResult>(params: BatchBenchmarkParams<TItem, TIndividualResult, TBatchResult>): Promise<BatchBenchmarkResult>;
5323
+
5324
+ /**
5325
+ * Batched execution flow with retry, failure tracking, and progress callbacks.
5326
+ */
5327
+
5328
+ /**
5329
+ * Execute operation items in batches with retry and progress callbacks.
5330
+ */
5331
+ declare function executeBatchedTask<TItem, TResult>(task: BatchExecutionTask<TItem, TResult>, options?: BatchExecutionOptions): Promise<BatchExecutionResult<TResult>>;
5317
5332
 
5318
5333
  /**
5319
5334
  * Streaming SELECT executor for large result sets.
package/dist/index.d.ts CHANGED
@@ -5221,13 +5221,8 @@ declare function buildDeleteQuery(input: DeleteQueryInput): BuiltDeleteQuery;
5221
5221
  declare function buildSelectQuery(input: SelectQueryInput): SQL;
5222
5222
 
5223
5223
  /**
5224
- * Generic batch execution helpers for relational operations.
5225
- * @module query/batch-executor
5224
+ * Shared types for relational batch execution helpers.
5226
5225
  */
5227
- /** Default number of items processed per batch chunk. */
5228
- declare const DEFAULT_BATCH_SIZE = 100;
5229
- /** Maximum allowed batch size to prevent memory exhaustion. */
5230
- declare const MAX_BATCH_SIZE = 5000;
5231
5226
  /**
5232
5227
  * Progress payload emitted after each processed batch.
5233
5228
  */
@@ -5299,21 +5294,41 @@ interface BatchBenchmarkResult {
5299
5294
  speedupRatio: number;
5300
5295
  speedupPercent: number;
5301
5296
  }
5297
+
5302
5298
  /**
5303
- * Execute operation items in batches with retry and progress callbacks.
5299
+ * Shared option validation and chunking helpers for batch execution.
5304
5300
  */
5305
- declare function executeBatchedTask<TItem, TResult>(task: BatchExecutionTask<TItem, TResult>, options?: BatchExecutionOptions): Promise<BatchExecutionResult<TResult>>;
5301
+
5302
+ /** Default number of items processed per batch chunk. */
5303
+ declare const DEFAULT_BATCH_SIZE = 100;
5304
+ /** Maximum allowed batch size to prevent memory exhaustion. */
5305
+ declare const MAX_BATCH_SIZE = 5000;
5306
+
5306
5307
  /**
5307
- * Benchmark individual vs batched execution.
5308
- *
5309
- * Note: callers should run this only for idempotent or isolated workloads.
5308
+ * Benchmark helpers for relational batch execution.
5310
5309
  */
5311
- declare function benchmarkBatchExecution<TItem, TIndividualResult, TBatchResult>(params: {
5310
+
5311
+ interface BatchBenchmarkParams<TItem, TIndividualResult, TBatchResult> {
5312
5312
  items: TItem[];
5313
5313
  batchSize?: number;
5314
5314
  runIndividual: (item: TItem, index: number) => Promise<TIndividualResult>;
5315
5315
  runBatch: (batchItems: TItem[], batchIndex: number) => Promise<TBatchResult>;
5316
- }): Promise<BatchBenchmarkResult>;
5316
+ }
5317
+ /**
5318
+ * Benchmark individual vs batched execution.
5319
+ *
5320
+ * Note: callers should run this only for idempotent or isolated workloads.
5321
+ */
5322
+ declare function benchmarkBatchExecution<TItem, TIndividualResult, TBatchResult>(params: BatchBenchmarkParams<TItem, TIndividualResult, TBatchResult>): Promise<BatchBenchmarkResult>;
5323
+
5324
+ /**
5325
+ * Batched execution flow with retry, failure tracking, and progress callbacks.
5326
+ */
5327
+
5328
+ /**
5329
+ * Execute operation items in batches with retry and progress callbacks.
5330
+ */
5331
+ declare function executeBatchedTask<TItem, TResult>(task: BatchExecutionTask<TItem, TResult>, options?: BatchExecutionOptions): Promise<BatchExecutionResult<TResult>>;
5317
5332
 
5318
5333
  /**
5319
5334
  * Streaming SELECT executor for large result sets.