cortico-world-hands 0.20.28 → 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 +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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",
|