agent-swarm-kit 1.1.2 → 1.1.4

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/build/index.cjs CHANGED
@@ -3078,6 +3078,10 @@ const CC_DEFAULT_CONNECT_OPERATOR = (clientId, agentName) => OperatorAdapter.con
3078
3078
  * Flag to enable operator timeout, used in `ClientOperator` for message processing.
3079
3079
  */
3080
3080
  const CC_ENABLE_OPERATOR_TIMEOUT = false;
3081
+ /**
3082
+ * Disable fetch of data from all storages. Quite usefull for unit tests
3083
+ */
3084
+ const CC_STORAGE_DISABLE_GET_DATA = false;
3081
3085
  const GLOBAL_CONFIG = {
3082
3086
  CC_TOOL_CALL_EXCEPTION_FLUSH_PROMPT,
3083
3087
  CC_TOOL_CALL_EXCEPTION_RECOMPLETE_PROMPT,
@@ -3128,6 +3132,7 @@ const GLOBAL_CONFIG = {
3128
3132
  CC_THROW_WHEN_NAVIGATION_RECURSION,
3129
3133
  CC_DEFAULT_CONNECT_OPERATOR,
3130
3134
  CC_ENABLE_OPERATOR_TIMEOUT,
3135
+ CC_STORAGE_DISABLE_GET_DATA,
3131
3136
  };
3132
3137
  GLOBAL_CONFIG.CC_RESQUE_STRATEGY = "flush";
3133
3138
  /**
@@ -9532,6 +9537,9 @@ const CREATE_EMBEDDING_FN = async (item, self) => {
9532
9537
  const WAIT_FOR_INIT_FN$1 = async (self) => {
9533
9538
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
9534
9539
  self.params.logger.debug(`ClientStorage storageName=${self.params.storageName} clientId=${self.params.clientId} shared=${self.params.shared} waitForInit`);
9540
+ if (GLOBAL_CONFIG.CC_STORAGE_DISABLE_GET_DATA) {
9541
+ return;
9542
+ }
9535
9543
  if (!self.params.getData) {
9536
9544
  return;
9537
9545
  }
package/build/index.mjs CHANGED
@@ -3076,6 +3076,10 @@ const CC_DEFAULT_CONNECT_OPERATOR = (clientId, agentName) => OperatorAdapter.con
3076
3076
  * Flag to enable operator timeout, used in `ClientOperator` for message processing.
3077
3077
  */
3078
3078
  const CC_ENABLE_OPERATOR_TIMEOUT = false;
3079
+ /**
3080
+ * Disable fetch of data from all storages. Quite usefull for unit tests
3081
+ */
3082
+ const CC_STORAGE_DISABLE_GET_DATA = false;
3079
3083
  const GLOBAL_CONFIG = {
3080
3084
  CC_TOOL_CALL_EXCEPTION_FLUSH_PROMPT,
3081
3085
  CC_TOOL_CALL_EXCEPTION_RECOMPLETE_PROMPT,
@@ -3126,6 +3130,7 @@ const GLOBAL_CONFIG = {
3126
3130
  CC_THROW_WHEN_NAVIGATION_RECURSION,
3127
3131
  CC_DEFAULT_CONNECT_OPERATOR,
3128
3132
  CC_ENABLE_OPERATOR_TIMEOUT,
3133
+ CC_STORAGE_DISABLE_GET_DATA,
3129
3134
  };
3130
3135
  GLOBAL_CONFIG.CC_RESQUE_STRATEGY = "flush";
3131
3136
  /**
@@ -9530,6 +9535,9 @@ const CREATE_EMBEDDING_FN = async (item, self) => {
9530
9535
  const WAIT_FOR_INIT_FN$1 = async (self) => {
9531
9536
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
9532
9537
  self.params.logger.debug(`ClientStorage storageName=${self.params.storageName} clientId=${self.params.clientId} shared=${self.params.shared} waitForInit`);
9538
+ if (GLOBAL_CONFIG.CC_STORAGE_DISABLE_GET_DATA) {
9539
+ return;
9540
+ }
9533
9541
  if (!self.params.getData) {
9534
9542
  return;
9535
9543
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
package/types.d.ts CHANGED
@@ -11347,6 +11347,10 @@ interface IGlobalConfig {
11347
11347
  * Flag to enable operator timeout, used in `ClientOperator` for message processing.
11348
11348
  */
11349
11349
  CC_ENABLE_OPERATOR_TIMEOUT: boolean;
11350
+ /**
11351
+ * Disable fetch of data from all storages. Quite usefull for unit tests
11352
+ */
11353
+ CC_STORAGE_DISABLE_GET_DATA: boolean;
11350
11354
  }
11351
11355
 
11352
11356
  declare const GLOBAL_CONFIG: IGlobalConfig;