@sprucelabs/sprucebot-llm 12.3.1 → 12.3.3

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.
@@ -18,8 +18,8 @@ class SprucebotLlmSkillImpl extends mercury_event_emitter_1.AbstractEventEmitter
18
18
  : undefined;
19
19
  }
20
20
  async updateState(updates) {
21
- await this.emit('did-update-state');
22
21
  this.state = { ...this.state, ...updates };
22
+ await this.emit('did-update-state');
23
23
  }
24
24
  getState() {
25
25
  return this.state;
@@ -1,4 +1,4 @@
1
- export declare const STATE_BOUNDARY = "*** STATE BOUNDARY ***";
1
+ export declare const STATE_BOUNDARY = "<----->STATE BOUNDARY<----->";
2
2
  export declare const DONE_TOKEN = "DONE_DONE_DONE";
3
3
  export declare const CALLBACK_BOUNDARY = "xxxxx";
4
4
  export declare const PROMPT_TEMPLATE: string;
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PROMPT_TEMPLATE = exports.CALLBACK_BOUNDARY = exports.DONE_TOKEN = exports.STATE_BOUNDARY = void 0;
7
7
  const renderPlaceholder_1 = __importDefault(require("../parsingResponses/renderPlaceholder"));
8
- exports.STATE_BOUNDARY = '*** STATE BOUNDARY ***';
8
+ exports.STATE_BOUNDARY = '<----->STATE BOUNDARY<----->';
9
9
  exports.DONE_TOKEN = `DONE_DONE_DONE`;
10
10
  exports.CALLBACK_BOUNDARY = 'xxxxx';
11
11
  exports.PROMPT_TEMPLATE = `You are <%= it.youAre %>
@@ -34,8 +34,8 @@ export default class SprucebotLlmSkillImpl extends AbstractEventEmitter {
34
34
  }
35
35
  updateState(updates) {
36
36
  return __awaiter(this, void 0, void 0, function* () {
37
- yield this.emit('did-update-state');
38
37
  this.state = Object.assign(Object.assign({}, this.state), updates);
38
+ yield this.emit('did-update-state');
39
39
  });
40
40
  }
41
41
  getState() {
@@ -1,4 +1,4 @@
1
- export declare const STATE_BOUNDARY = "*** STATE BOUNDARY ***";
1
+ export declare const STATE_BOUNDARY = "<----->STATE BOUNDARY<----->";
2
2
  export declare const DONE_TOKEN = "DONE_DONE_DONE";
3
3
  export declare const CALLBACK_BOUNDARY = "xxxxx";
4
4
  export declare const PROMPT_TEMPLATE: string;
@@ -1,5 +1,5 @@
1
1
  import renderPlaceholder from '../parsingResponses/renderPlaceholder.js';
2
- export const STATE_BOUNDARY = '*** STATE BOUNDARY ***';
2
+ export const STATE_BOUNDARY = '<----->STATE BOUNDARY<----->';
3
3
  export const DONE_TOKEN = `DONE_DONE_DONE`;
4
4
  export const CALLBACK_BOUNDARY = 'xxxxx';
5
5
  export const PROMPT_TEMPLATE = `You are <%= it.youAre %>
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "eta"
9
9
  ]
10
10
  },
11
- "version": "12.3.1",
11
+ "version": "12.3.3",
12
12
  "files": [
13
13
  "build"
14
14
  ],