cortico-world-hands 0.20.28 → 0.20.30

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2683,7 +2683,6 @@ ${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 < 7 || hour >= 24) return;
2687
2686
  this.lastSelfTalkAt = now;
2688
2687
  await this.pushEvent(
2689
2688
  "[\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",
@@ -3094,7 +3093,9 @@ ${text.slice(0, 2200)}`;
3094
3093
  const detail = args.detail === "screen" || args.detail === "text" ? args.detail : "both";
3095
3094
  const report = await this.hands.look(detail);
3096
3095
  const blobs = report.blob && this.looksLikeImage(report.blob.bytes) ? [report.blob] : [];
3097
- return { text: report.text, ...blobs.length ? { blobs } : {} };
3096
+ const note = blobs.length > 0 ? `
3097
+ \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` : "";
3098
+ return { text: report.text + note, ...blobs.length ? { blobs } : {} };
3098
3099
  }
3099
3100
  /** 给文字就先在屏幕上找,找到唯一一处才点;给坐标就直接点。 */
3100
3101
  honcho() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-hands",
3
- "version": "0.20.28",
3
+ "version": "0.20.30",
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",