@7365admin1/core 3.136.0 → 3.136.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@7365admin1/core",
3
3
  "license": "MIT",
4
- "version": "3.136.0",
4
+ "version": "3.136.1",
5
5
  "author": "7365admin1",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",
@@ -647,7 +647,7 @@ test("records: the ten slow reads - status log, app actions, settings (no Wi-Fi)
647
647
  assert.deepEqual(r.statusLog.items.map((x) => x.status), ["Charged", "Charging (mid-job)", "Cleaning"]);
648
648
  assert.equal(r.statusLog.items[0].at, "2025-10-22T09:48:39.000Z");
649
649
  const log = seen.find((x) => x.path === ROBOT_CLOUD_PATHS.robotLog).body;
650
- assert.deepEqual([log.robotId, log.sceneId, log.pageSize], ["424", "438", 50], "robot log takes ids as strings (document)");
650
+ assert.deepEqual([log.robotId, log.sceneId, log.pageSize], [424, 438, 50], "robot log ids as numbers (the portal refuses strings)");
651
651
  assert.deepEqual(r.appActions.items, [
652
652
  { at: "2025-10-20T06:22:32.000Z", action: "Stopped in place", by: "梁家茂" },
653
653
  { at: "2025-10-20T06:22:07.000Z", action: "Started a cleaning job", by: "梁家茂" },
@@ -676,6 +676,12 @@ test("the ten reads, pure mapping from the document's replies", () => {
676
676
  assert.equal(ounitechStatusLog({ typeFlag: "77", typeName: "x" }).status, "x");
677
677
  assert.equal(ounitechAppAction({ actionName: "示教路径控制" }).action, "Controlled a taught route");
678
678
  assert.equal(ounitechAppAction({ actionName: "新动作" }).action, "App action: 新动作", "untranslated text is labelled, never bare Chinese");
679
+ // Robot 424's own log on prod (2026-09-30).
680
+ assert.equal(ounitechAppAction({ actionName: "设置当前楼层: 6" }).action, "Set the current floor: 6");
681
+ assert.equal(ounitechAppAction({ actionName: "编辑机器人保存成功,名称: F8FCA9A1B1C4C" }).action, "Changed the robot's name: F8FCA9A1B1C4C");
682
+ assert.equal(ounitechAppAction({ actionName: "编辑机器人保存成功,别名:" }).action, "Changed the robot's nickname");
683
+ for (const [zh, en] of [["调试模式", "Debug mode"], ["清扫", "Started cleaning"], ["定时任务设置", "Changed the schedule"], ["暂停清扫", "Paused cleaning"], ["开始回充", "Sent back to charge"]])
684
+ assert.equal(ounitechAppAction({ actionName: zh }).action, en);
679
685
  assert.deepEqual(ounitechSettings({ wifiName: "a", wifiPwd: "b", ok: true, msg: null, enableWorkSound: true }), [
680
686
  { key: "enableWorkSound", group: "Sound", label: "Sounds while working", value: "On", attention: false },
681
687
  ]);