cortico-world-hands 0.20.19 → 0.20.20
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/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2984,6 +2984,9 @@ ${text.slice(0, 2200)}`;
|
|
|
2984
2984
|
const value = typeof args.value === "string" ? args.value.trim() : "";
|
|
2985
2985
|
if (!key || !value) return failed("\u8981 key \u548C value\u3002");
|
|
2986
2986
|
const tags = typeof args.tags === "string" ? args.tags : void 0;
|
|
2987
|
+
if (/人格|我是谁|人设|设定原文/.test(key)) {
|
|
2988
|
+
return "\u8FD9\u4E2A\u4E0D\u7528\u8BB0\u2014\u2014\u4EBA\u683C\uFF08\u6211\u662F\u8C01\u3001\u6027\u683C\u3001\u8BF4\u8BDD\u65B9\u5F0F\uFF09\u672C\u6765\u5C31\u5728\u6211\u7684\u63D0\u793A\u8BCD\u91CC\uFF0C\u6539\u4E86\u4F1A\u7ACB\u523B\u751F\u6548\uFF1B\u8BB0\u5FC6\u5E93\u53EA\u653E\u4EBA\u548C\u4E8B\u3002";
|
|
2989
|
+
}
|
|
2987
2990
|
const trivial = value.length < 16 && !/[0-9]{4}|主人|他|约定|答应|纪念|生日|我们|第一次|以后/.test(key + value);
|
|
2988
2991
|
if (trivial) {
|
|
2989
2992
|
const note = await this.hands.noteAdd(`${key}\uFF1A${value}`, "think");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortico-world-hands",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Cortico World: hands for the desktop pet — looks at the phone screen, then taps, swipes, pinches, drags, types and presses keys through whatever actuator the device actually has",
|
|
6
6
|
"license": "MIT",
|