@elizaos/core 2.0.0-alpha.113 → 2.0.0-alpha.114

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.
@@ -4,4 +4,5 @@
4
4
  * Re-exports all validation utilities from submodules.
5
5
  */
6
6
  export * from "./secrets";
7
+ export * from "./keywords";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validation/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validation/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { Memory } from "../types";
2
+ /**
3
+ * Validates if any of the given keywords are present in the recent message history.
4
+ *
5
+ * This function checks the current message content and the last 5 messages in the provided
6
+ * list for the presence of any of the provided keywords. The check is case-insensitive.
7
+ *
8
+ * @param message The current message memory
9
+ * @param recentMessages List of recent memories
10
+ * @param keywords List of keywords to check for
11
+ * @returns true if any keyword matches, false otherwise
12
+ */
13
+ export declare function validateActionKeywords(message: Memory, recentMessages: Memory[], keywords: string[]): boolean;
14
+ /**
15
+ * Validates if any of the recent message history matches the given regex.
16
+ *
17
+ * This function checks the current message content and the last 5 messages in the provided
18
+ * list against the provided regex pattern.
19
+ *
20
+ * @param message The current message memory
21
+ * @param recentMessages List of recent memories
22
+ * @param regex The regular expression to check against
23
+ * @returns true if the regex matches any message content, false otherwise
24
+ */
25
+ export declare function validateActionRegex(message: Memory, recentMessages: Memory[], regex: RegExp): boolean;
26
+ //# sourceMappingURL=keywords.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../src/validation/keywords.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EAAE,EACxB,QAAQ,EAAE,MAAM,EAAE,GAChB,OAAO,CAsCT;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EAAE,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CA8BT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/core",
3
- "version": "2.0.0-alpha.113",
3
+ "version": "2.0.0-alpha.114",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -67,7 +67,7 @@
67
67
  "author": "elizaOS",
68
68
  "license": "MIT",
69
69
  "devDependencies": {
70
- "@elizaos/schemas": "2.0.0-alpha.113",
70
+ "@elizaos/schemas": "2.0.0-alpha.114",
71
71
  "@playwright/test": "^1.52.0",
72
72
  "@types/bun": "^1.3.5",
73
73
  "@types/fast-redact": "^3.0.4",
@@ -107,5 +107,5 @@
107
107
  "publishConfig": {
108
108
  "access": "public"
109
109
  },
110
- "gitHead": "f25d3c0a39bca7c2e39d5c5f7a56cb24f7e65917"
110
+ "gitHead": "20cede696f8e6ae6112670b9acd3c9633934cac7"
111
111
  }