cortico-world-hands 0.20.35 → 0.20.37

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 +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2720,13 +2720,15 @@ ${lines.join("\n")}
2720
2720
  return;
2721
2721
  }
2722
2722
  if (!ui || !ui.ok) return;
2723
- const pkg = (ui.pkg || "").toLowerCase();
2724
- const sensitivePkg = /bank|pay|alipay|wallet|icbc|cmb|spdb|ccb|boc|abc|unionpay|passport|keystore|password|vault|authenticator|com\.eg\.android|com\.tencent\.mm|com\.tencent\.mobileqq|com\.icbc|com\.chinamworld/.test(pkg);
2723
+ const pkgText = (ui.pkg || "").trim();
2724
+ const pkgLabel = pkgText || "\u8FD9\u4E2A\u754C\u9762\uFF08\u8BFB\u4E0D\u5230\u5E94\u7528\u540D\uFF09";
2725
+ const pkg = pkgText.toLowerCase();
2726
+ const sensitivePkg = /bank|pay|alipay|wallet|icbc|cmb|spdb|ccb|boc|abc|unionpay|passport|keystore|password|vault|authenticator|com\.eg\.android|com\.tencent\.mm|com\.icbc|com\.chinamworld/.test(pkg);
2725
2727
  if (sensitivePkg) {
2726
2728
  if (this.lastScreenKey === "private|" + pkg) return;
2727
2729
  this.lastScreenKey = "private|" + pkg;
2728
2730
  await this.pushEvent(
2729
- `[\u9690\u79C1] \u73B0\u5728\u524D\u53F0\u662F ${ui.pkg}\u3002\u8FD9\u79CD\u753B\u9762\u6211\u4E0D\u770B\u3001\u4E5F\u4E0D\u8BB0\u2014\u2014\u4E3B\u4EBA\u7EE7\u7EED\u5C31\u884C\u3002`,
2731
+ `[\u9690\u79C1] \u73B0\u5728\u524D\u53F0\u662F ${pkgLabel}\u3002\u8FD9\u79CD\u753B\u9762\u6211\u4E0D\u770B\u3001\u4E5F\u4E0D\u8BB0\u2014\u2014\u4E3B\u4EBA\u7EE7\u7EED\u5C31\u884C\u3002`,
2730
2732
  "hands.screen.privacy",
2731
2733
  "hands:screen"
2732
2734
  );
@@ -2748,7 +2750,7 @@ ${lines.join("\n")}
2748
2750
  }
2749
2751
  if (!texts.length) return;
2750
2752
  await this.pushEvent(
2751
- `[\u753B\u9762] \u4F60\u73B0\u5728\u770B\u7740\uFF1A${ui.pkg}\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`,
2753
+ `[\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`,
2752
2754
  "hands.screen",
2753
2755
  "hands:screen"
2754
2756
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-hands",
3
- "version": "0.20.35",
3
+ "version": "0.20.37",
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",