agent-swarm-kit 2.5.1 → 2.6.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/types.d.ts +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
@@ -81,7 +81,7 @@
81
81
  "dependencies": {
82
82
  "di-kit": "^1.1.1",
83
83
  "di-scoped": "^1.0.21",
84
- "functools-kit": "^2.2.0",
84
+ "functools-kit": "^2.3.0",
85
85
  "get-moment-stamp": "^1.1.1",
86
86
  "lodash-es": "4.17.21",
87
87
  "xml2js": "0.6.2"
package/types.d.ts CHANGED
@@ -1518,7 +1518,7 @@ declare class PersistBase<EntityName extends string = string> implements IPersis
1518
1518
  * Uses `singleshot` to prevent redundant initialization calls, critical for swarm setup efficiency.
1519
1519
  * @private
1520
1520
  */
1521
- [BASE_WAIT_FOR_INIT_SYMBOL]: (() => Promise<void>) & functools_kit.ISingleshotClearable;
1521
+ [BASE_WAIT_FOR_INIT_SYMBOL]: (() => Promise<void>) & functools_kit.ISingleshotClearable<() => Promise<void>>;
1522
1522
  /**
1523
1523
  * Initializes the storage directory, creating it if it doesn’t exist, and validates existing entities.
1524
1524
  * Removes invalid JSON files during initialization to ensure data integrity (e.g., for `SwarmName`-based alive status).
@@ -2264,7 +2264,7 @@ declare class HistoryPersistInstance implements IHistoryInstance {
2264
2264
  * Memoized initialization function to ensure it runs only once per agent.
2265
2265
  * @private
2266
2266
  */
2267
- [HISTORY_PERSIST_INSTANCE_WAIT_FOR_INIT]: ((agentName: AgentName) => Promise<void>) & functools_kit.ISingleshotClearable;
2267
+ [HISTORY_PERSIST_INSTANCE_WAIT_FOR_INIT]: ((agentName: AgentName) => Promise<void>) & functools_kit.ISingleshotClearable<(agentName: AgentName) => Promise<void>>;
2268
2268
  /**
2269
2269
  * Initializes the history for an agent, loading data from persistent storage if needed.
2270
2270
  */
@@ -2312,7 +2312,7 @@ declare class HistoryMemoryInstance implements IHistoryInstance {
2312
2312
  * Memoized initialization function to ensure it runs only once per agent.
2313
2313
  * @private
2314
2314
  */
2315
- [HISTORY_MEMORY_INSTANCE_WAIT_FOR_INIT]: ((agentName: AgentName) => Promise<void>) & functools_kit.ISingleshotClearable;
2315
+ [HISTORY_MEMORY_INSTANCE_WAIT_FOR_INIT]: ((agentName: AgentName) => Promise<void>) & functools_kit.ISingleshotClearable<(agentName: AgentName) => Promise<void>>;
2316
2316
  /**
2317
2317
  * Initializes the history for an agent, loading initial data if needed.
2318
2318
  */
@@ -6095,7 +6095,7 @@ declare class ClientStorage<T extends IStorageData = IStorageData> implements IS
6095
6095
  * Waits for the initialization of the storage, loading initial data and creating embeddings via WAIT_FOR_INIT_FN.
6096
6096
  * Ensures initialization happens only once using singleshot, supporting StorageConnectionService’s lifecycle.
6097
6097
  */
6098
- waitForInit: (() => Promise<void>) & functools_kit.ISingleshotClearable;
6098
+ waitForInit: (() => Promise<void>) & functools_kit.ISingleshotClearable<() => Promise<void>>;
6099
6099
  /**
6100
6100
  * Retrieves a specified number of items based on similarity to a search string, using embeddings and SortedArray.
6101
6101
  * Executes similarity calculations concurrently via execpool, respecting GLOBAL_CONFIG.CC_STORAGE_SEARCH_POOL, and filters by score.
@@ -6444,7 +6444,7 @@ declare class ClientState<State extends IStateData = IStateData> implements ISta
6444
6444
  * Waits for the state to initialize via WAIT_FOR_INIT_FN, ensuring it’s only called once using singleshot.
6445
6445
  * Loads the initial state into _state, supporting StateConnectionService’s lifecycle management.
6446
6446
  */
6447
- waitForInit: (() => Promise<void>) & functools_kit.ISingleshotClearable;
6447
+ waitForInit: (() => Promise<void>) & functools_kit.ISingleshotClearable<() => Promise<void>>;
6448
6448
  /**
6449
6449
  * Sets the state using the provided dispatch function, applying middlewares and persisting via params.setState.
6450
6450
  * Invokes the onWrite callback and emits an event via BusService, supporting ClientAgent’s state updates.
@@ -12501,7 +12501,7 @@ declare class LoggerInstance implements ILoggerInstance {
12501
12501
  * Invokes LOGGER_INSTANCE_WAIT_FOR_FN to handle onInit callback execution.
12502
12502
  * @private
12503
12503
  */
12504
- [LOGGER_INSTANCE_WAIT_FOR_INIT]: (() => Promise<void>) & functools_kit.ISingleshotClearable;
12504
+ [LOGGER_INSTANCE_WAIT_FOR_INIT]: (() => Promise<void>) & functools_kit.ISingleshotClearable<() => Promise<void>>;
12505
12505
  /**
12506
12506
  * Initializes the logger instance, invoking the onInit callback if provided.
12507
12507
  * Ensures initialization is performed only once, memoized via singleshot.
@@ -13341,7 +13341,7 @@ declare class ChatInstance<Payload extends unknown = any> implements IChatInstan
13341
13341
  /**
13342
13342
  * Begins a chat session
13343
13343
  */
13344
- beginChat: (() => Promise<void>) & functools_kit.ISingleshotClearable;
13344
+ beginChat: (() => Promise<void>) & functools_kit.ISingleshotClearable<() => Promise<void>>;
13345
13345
  /**
13346
13346
  * Sends a message in the chat
13347
13347
  */