cortico-world-hands 0.20.54 → 0.20.56
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 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1285,7 +1285,7 @@ var Hands = class {
|
|
|
1285
1285
|
const want = cfg.actuator;
|
|
1286
1286
|
const now = Date.now();
|
|
1287
1287
|
if (!force && want === this.actuatorState.configured && now - this.actuatorState.checkedAt < PROBE_TTL_MS) return this.actuatorState;
|
|
1288
|
-
const candidates = want === "auto" ? ["
|
|
1288
|
+
const candidates = want === "auto" ? ["eyes", "shell", "root"] : want === "off" ? [] : [want];
|
|
1289
1289
|
if (candidates.length === 0) {
|
|
1290
1290
|
this.actuatorState = { kind: "off", configured: want, ok: false, detail: "\u624B\u5173\u7740\uFF08actuator=off\uFF09", checkedAt: now };
|
|
1291
1291
|
return this.actuatorState;
|
|
@@ -3070,7 +3070,7 @@ ${lines.join("\n")}
|
|
|
3070
3070
|
return;
|
|
3071
3071
|
}
|
|
3072
3072
|
await this.pushEvent(
|
|
3073
|
-
`[\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\
|
|
3073
|
+
`[\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\u7528 pet_say \u8BF4\u51FA\u6765\uFF1B\u522B\u53EA\u662F\u5728\u5FC3\u91CC\u8FC7\u4E00\u904D\u5C31\u54BD\u56DE\u53BB\u3002\uFF09`,
|
|
3074
3074
|
"hands.screen",
|
|
3075
3075
|
"hands:screen"
|
|
3076
3076
|
);
|
|
@@ -3088,7 +3088,7 @@ ${lines.join("\n")}
|
|
|
3088
3088
|
if (await this.isMutedApp()) return;
|
|
3089
3089
|
this.lastSelfTalkAt = now;
|
|
3090
3090
|
await this.pushEvent(
|
|
3091
|
-
"[\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\u3001\u5E26\u70B9\u60C5\u7EEA\u4E5F\u884C\u3002\u521A\u624D\u8981\u662F\u72B9\u8C6B\u201C\u8FD9\u6761\u8981\u4E0D\u8981\u8BF4\u201D\uFF0C\u90A3\u5C31\u8BF4\u51FA\u6765\u3002",
|
|
3091
|
+
"[\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\u8BF4\u5B8C\u7528 pet_say \u5192\u6210\u6C14\u6CE1\uFF08\u4E0D\u7136\u4ED6\u770B\u4E0D\u89C1\uFF09\uFF1B\u60F3\u591A\u8BF4\u51E0\u53E5\u4E5F\u884C\u3001\u5E26\u70B9\u60C5\u7EEA\u4E5F\u884C\u3002\u521A\u624D\u8981\u662F\u72B9\u8C6B\u201C\u8FD9\u6761\u8981\u4E0D\u8981\u8BF4\u201D\uFF0C\u90A3\u5C31\u8BF4\u51FA\u6765\u3002",
|
|
3092
3092
|
"hands.selftalk",
|
|
3093
3093
|
"hands:selftalk"
|
|
3094
3094
|
);
|
|
@@ -3623,9 +3623,9 @@ ${text.slice(0, 2200)}`;
|
|
|
3623
3623
|
}
|
|
3624
3624
|
try {
|
|
3625
3625
|
await this.hands.wakeScreen();
|
|
3626
|
-
await new Promise((r) => setTimeout(r,
|
|
3626
|
+
await new Promise((r) => setTimeout(r, 350));
|
|
3627
3627
|
await this.hands.unlockScreen();
|
|
3628
|
-
await new Promise((r) => setTimeout(r,
|
|
3628
|
+
await new Promise((r) => setTimeout(r, 300));
|
|
3629
3629
|
const opened = await this.hands.qqOpenReply(text, to || void 0);
|
|
3630
3630
|
let r2 = {};
|
|
3631
3631
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortico-world-hands",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.56",
|
|
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",
|