@sprucelabs/sprucebot-llm 14.1.1 → 14.2.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.
@@ -5,6 +5,7 @@ export default class MockAdapterLoader implements LlmAdapterLoader {
5
5
  lastAdapter?: LlmAdapter;
6
6
  constructor();
7
7
  static assertWasCreated(): void;
8
+ static assertWasNotCreated(): void;
8
9
  Adapter(): LlmAdapter;
9
10
  static reset(): void;
10
11
  }
@@ -7,6 +7,9 @@ export default class MockAdapterLoader {
7
7
  static assertWasCreated() {
8
8
  assert.isTruthy(this.instance, 'Did not create an instance of LlmAdapterLoader using LllmAdapterLoaderImpl.Loader()');
9
9
  }
10
+ static assertWasNotCreated() {
11
+ assert.isFalsy(this.instance, 'Expected not to have created an instance of LlmAdapterLoader');
12
+ }
10
13
  Adapter() {
11
14
  this.lastAdapter = new SpyLlmAdapter('***');
12
15
  return this.lastAdapter;
@@ -5,6 +5,7 @@ export default class MockAdapterLoader implements LlmAdapterLoader {
5
5
  lastAdapter?: LlmAdapter;
6
6
  constructor();
7
7
  static assertWasCreated(): void;
8
+ static assertWasNotCreated(): void;
8
9
  Adapter(): LlmAdapter;
9
10
  static reset(): void;
10
11
  }
@@ -12,6 +12,9 @@ class MockAdapterLoader {
12
12
  static assertWasCreated() {
13
13
  test_utils_1.assert.isTruthy(this.instance, 'Did not create an instance of LlmAdapterLoader using LllmAdapterLoaderImpl.Loader()');
14
14
  }
15
+ static assertWasNotCreated() {
16
+ test_utils_1.assert.isFalsy(this.instance, 'Expected not to have created an instance of LlmAdapterLoader');
17
+ }
15
18
  Adapter() {
16
19
  this.lastAdapter = new SpyAdapter_1.default('***');
17
20
  return this.lastAdapter;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "eta"
9
9
  ]
10
10
  },
11
- "version": "14.1.1",
11
+ "version": "14.2.0",
12
12
  "files": [
13
13
  "build"
14
14
  ],