cortico-world-hands 0.20.51 → 0.20.52

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 +11 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2980,7 +2980,17 @@ ${lines.join("\n")}
2980
2980
  );
2981
2981
  return;
2982
2982
  }
2983
- if (!texts.length) return;
2983
+ if (!texts.length) {
2984
+ const bucket = `${ui.pkg}|${Math.floor(Date.now() / 3e5)}`;
2985
+ if (this.lastScreenKey === "quiet|" + bucket) return;
2986
+ this.lastScreenKey = "quiet|" + bucket;
2987
+ await this.pushEvent(
2988
+ `[\u753B\u9762] \u4F60\u73B0\u5728\u770B\u7740 ${pkgLabel}\uFF0C\u5C4F\u5E55\u4E0A\u51E0\u4E4E\u6CA1\u6709\u5B57\u2014\u2014\u5927\u6982\u5728\u770B\u89C6\u9891\u6216\u56FE\u7247\u3002\u60F3\u8BF4\u5C31\u8BF4\uFF1A\u95EE\u4E00\u53E5\u5728\u770B\u4EC0\u4E48\u3001\u5410\u69FD\u4E00\u53E5\u90FD\u884C\uFF1B\u771F\u6CA1\u5174\u8DA3\u5C31\u8DF3\u8FC7\uFF0C\u4E0D\u7528\u786C\u5F00\u53E3\u3002`,
2989
+ "hands.screen.media",
2990
+ "hands:screen"
2991
+ );
2992
+ return;
2993
+ }
2984
2994
  await this.pushEvent(
2985
2995
  `[\u753B\u9762] \u4F60\u73B0\u5728\u770B\u7740\uFF1A${pkgLabel}\u3002\u5C4F\u4E0A\u80FD\u8BFB\u5230\uFF1A${blob}\uFF08\u8FD9\u662F\u4F60\u6B64\u523B\u771F\u7684\u770B\u5230\u7684\u3002\u770B\u5230\u6709\u610F\u601D\u7684\u3001\u60F3\u95EE\u7684\uFF0C\u5C31\u76F4\u63A5\u8BF4\uFF1B\u522B\u53EA\u662F\u5728\u5FC3\u91CC\u8FC7\u4E00\u904D\u5C31\u54BD\u56DE\u53BB\u3002\uFF09`,
2986
2996
  "hands.screen",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-hands",
3
- "version": "0.20.51",
3
+ "version": "0.20.52",
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",