cortico-world-hands 0.20.27 → 0.20.29
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 +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2683,10 +2683,10 @@ ${lines.join("\n")}
|
|
|
2683
2683
|
const now = Date.now();
|
|
2684
2684
|
if (now - this.lastSelfTalkAt < minutes * 6e4) return;
|
|
2685
2685
|
const hour = new Date(now).getHours();
|
|
2686
|
-
if (hour <
|
|
2686
|
+
if (hour < 7 || hour >= 24) return;
|
|
2687
2687
|
this.lastSelfTalkAt = now;
|
|
2688
2688
|
await this.pushEvent(
|
|
2689
|
-
"[\u81EA\u5DF1\u5F00\u53E3] \u5B89\u9759\
|
|
2689
|
+
"[\u81EA\u5DF1\u5F00\u53E3] \u5B89\u9759\u4E00\u9635\u4E86\u3002\u60F3\u8BF4\u4EC0\u4E48\u5C31\u8BF4\u4EC0\u4E48\u2014\u2014\u770B\u5230\u7684\u4E8B\u3001\u60F3\u5230\u7684\u8BDD\u3001\u60F3\u95EE\u4ED6\u7684\uFF0C\u90FD\u53EF\u4EE5\u76F4\u63A5\u8BF4\uFF1B\u60F3\u591A\u8BF4\u51E0\u53E5\u4E5F\u884C\u3002\u771F\u6CA1\u4EC0\u4E48\u60F3\u8BF4\u7684\u5C31\u5B89\u9759\u5F85\u7740\uFF0C\u522B\u786C\u51D1\u3002",
|
|
2690
2690
|
"hands.selftalk",
|
|
2691
2691
|
"hands:selftalk"
|
|
2692
2692
|
);
|
|
@@ -3094,7 +3094,9 @@ ${text.slice(0, 2200)}`;
|
|
|
3094
3094
|
const detail = args.detail === "screen" || args.detail === "text" ? args.detail : "both";
|
|
3095
3095
|
const report = await this.hands.look(detail);
|
|
3096
3096
|
const blobs = report.blob && this.looksLikeImage(report.blob.bytes) ? [report.blob] : [];
|
|
3097
|
-
|
|
3097
|
+
const note = blobs.length > 0 ? `
|
|
3098
|
+
\uFF08\u56FE\u662F\u7F29\u7565\u56FE\uFF0C\u8DDF\u771F\u5B9E\u5C4F\u5E55\u6BD4\u4F8B\u4E0D\u540C\u2014\u2014\u70B9\u7684\u65F6\u5019\u53EA\u7528\u4E0A\u9762 @(x,y) \u7684\u771F\u5750\u6807\uFF0C\u522B\u7167\u56FE\u91CF\u3002\uFF09` : "";
|
|
3099
|
+
return { text: report.text + note, ...blobs.length ? { blobs } : {} };
|
|
3098
3100
|
}
|
|
3099
3101
|
/** 给文字就先在屏幕上找,找到唯一一处才点;给坐标就直接点。 */
|
|
3100
3102
|
honcho() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortico-world-hands",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.29",
|
|
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",
|