cortico-world-hands 0.20.38 → 0.20.39
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3260,7 +3260,7 @@ ${text.slice(0, 2200)}`;
|
|
|
3260
3260
|
if (/人格|我是谁|人设|设定原文/.test(key)) {
|
|
3261
3261
|
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";
|
|
3262
3262
|
}
|
|
3263
|
-
const trivial = value.length <
|
|
3263
|
+
const trivial = value.length < 8 && !/[0-9]{4}|主人|他|约定|答应|纪念|生日|我们|第一次|以后/.test(key + value);
|
|
3264
3264
|
if (trivial) {
|
|
3265
3265
|
const note = await this.hands.noteAdd(`${key}\uFF1A${value}`, "think");
|
|
3266
3266
|
return note.ok ? `\u8FD9\u6761\u66F4\u50CF\u4FBF\u7B7E\uFF08\u7410\u4E8B\uFF09\uFF0C\u5DF2\u7ECF\u8BB0\u5230\u4FBF\u7B7E\u677F\u4E0A\u4E86\uFF1A\u300C${key}\u300D` : failed(`\u6CA1\u8BB0\u6210\u4FBF\u7B7E\uFF1A${note.detail || "\u6CA1\u54CD\u5E94"}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortico-world-hands",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.39",
|
|
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",
|