@agentforge/tools 0.16.43 → 0.16.44

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
@@ -5020,63 +5020,23 @@ declare class ConnectionManager extends EventEmitter implements DatabaseConnecti
5020
5020
  isHealthy(): Promise<boolean>;
5021
5021
  }
5022
5022
 
5023
- /**
5024
- * Transaction helpers for relational databases.
5025
- * @module query/transaction
5026
- */
5027
-
5028
- /**
5029
- * SQL transaction isolation level.
5030
- *
5031
- * Determines the visibility of changes made by concurrent transactions.
5032
- * Supported by PostgreSQL and MySQL. SQLite supports `'read uncommitted'`
5033
- * via `PRAGMA read_uncommitted = 1`; other levels are silently ignored
5034
- * (SQLite uses serializable semantics by default).
5035
- */
5036
5023
  type TransactionIsolationLevel = 'read uncommitted' | 'read committed' | 'repeatable read' | 'serializable';
5037
- /**
5038
- * Options for configuring a database transaction.
5039
- *
5040
- * @property isolationLevel - SQL isolation level for the transaction
5041
- * @property timeoutMs - Maximum duration in milliseconds before the transaction is rolled back
5042
- */
5043
5024
  interface TransactionOptions {
5044
5025
  isolationLevel?: TransactionIsolationLevel;
5045
5026
  timeoutMs?: number;
5046
5027
  }
5047
- /**
5048
- * Active transaction handle with savepoint support.
5049
- *
5050
- * Extends {@link SqlExecutor} so queries can be executed within the transaction.
5051
- * The transaction is automatically rolled back if an error occurs and is not
5052
- * explicitly committed.
5053
- *
5054
- * @property id - Unique identifier for this transaction
5055
- * @property vendor - Database vendor this transaction belongs to
5056
- */
5057
5028
  interface TransactionContext extends SqlExecutor {
5058
5029
  id: string;
5059
5030
  vendor: DatabaseVendor;
5060
- /** Whether the transaction is still active (not committed or rolled back). */
5061
5031
  isActive(): boolean;
5062
- /** Commit all changes made within this transaction. */
5063
5032
  commit(): Promise<void>;
5064
- /** Roll back all changes made within this transaction. */
5065
5033
  rollback(): Promise<void>;
5066
- /** Create a savepoint within this transaction. Returns the savepoint name. */
5067
5034
  createSavepoint(name?: string): Promise<string>;
5068
- /** Roll back to a previously created savepoint. */
5069
5035
  rollbackToSavepoint(name: string): Promise<void>;
5070
- /** Release a savepoint, making its changes permanent within the transaction. */
5071
5036
  releaseSavepoint(name: string): Promise<void>;
5072
- /** Execute an operation within a nested savepoint, with automatic rollback on failure. */
5073
5037
  withSavepoint<T>(operation: (transaction: TransactionContext) => Promise<T>, name?: string): Promise<T>;
5074
5038
  }
5075
- /**
5076
- * Execute a callback inside a database transaction.
5077
- *
5078
- * Automatically commits on success and rolls back on failure.
5079
- */
5039
+
5080
5040
  declare function withTransaction<T>(manager: ConnectionManager, operation: (transaction: TransactionContext) => Promise<T>, options?: TransactionOptions): Promise<T>;
5081
5041
 
5082
5042
  /**
package/dist/index.d.ts CHANGED
@@ -5020,63 +5020,23 @@ declare class ConnectionManager extends EventEmitter implements DatabaseConnecti
5020
5020
  isHealthy(): Promise<boolean>;
5021
5021
  }
5022
5022
 
5023
- /**
5024
- * Transaction helpers for relational databases.
5025
- * @module query/transaction
5026
- */
5027
-
5028
- /**
5029
- * SQL transaction isolation level.
5030
- *
5031
- * Determines the visibility of changes made by concurrent transactions.
5032
- * Supported by PostgreSQL and MySQL. SQLite supports `'read uncommitted'`
5033
- * via `PRAGMA read_uncommitted = 1`; other levels are silently ignored
5034
- * (SQLite uses serializable semantics by default).
5035
- */
5036
5023
  type TransactionIsolationLevel = 'read uncommitted' | 'read committed' | 'repeatable read' | 'serializable';
5037
- /**
5038
- * Options for configuring a database transaction.
5039
- *
5040
- * @property isolationLevel - SQL isolation level for the transaction
5041
- * @property timeoutMs - Maximum duration in milliseconds before the transaction is rolled back
5042
- */
5043
5024
  interface TransactionOptions {
5044
5025
  isolationLevel?: TransactionIsolationLevel;
5045
5026
  timeoutMs?: number;
5046
5027
  }
5047
- /**
5048
- * Active transaction handle with savepoint support.
5049
- *
5050
- * Extends {@link SqlExecutor} so queries can be executed within the transaction.
5051
- * The transaction is automatically rolled back if an error occurs and is not
5052
- * explicitly committed.
5053
- *
5054
- * @property id - Unique identifier for this transaction
5055
- * @property vendor - Database vendor this transaction belongs to
5056
- */
5057
5028
  interface TransactionContext extends SqlExecutor {
5058
5029
  id: string;
5059
5030
  vendor: DatabaseVendor;
5060
- /** Whether the transaction is still active (not committed or rolled back). */
5061
5031
  isActive(): boolean;
5062
- /** Commit all changes made within this transaction. */
5063
5032
  commit(): Promise<void>;
5064
- /** Roll back all changes made within this transaction. */
5065
5033
  rollback(): Promise<void>;
5066
- /** Create a savepoint within this transaction. Returns the savepoint name. */
5067
5034
  createSavepoint(name?: string): Promise<string>;
5068
- /** Roll back to a previously created savepoint. */
5069
5035
  rollbackToSavepoint(name: string): Promise<void>;
5070
- /** Release a savepoint, making its changes permanent within the transaction. */
5071
5036
  releaseSavepoint(name: string): Promise<void>;
5072
- /** Execute an operation within a nested savepoint, with automatic rollback on failure. */
5073
5037
  withSavepoint<T>(operation: (transaction: TransactionContext) => Promise<T>, name?: string): Promise<T>;
5074
5038
  }
5075
- /**
5076
- * Execute a callback inside a database transaction.
5077
- *
5078
- * Automatically commits on success and rolls back on failure.
5079
- */
5039
+
5080
5040
  declare function withTransaction<T>(manager: ConnectionManager, operation: (transaction: TransactionContext) => Promise<T>, options?: TransactionOptions): Promise<T>;
5081
5041
 
5082
5042
  /**