@7365admin1/layer-common 4.97.1-staging.554 → 4.97.1-staging.555

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.
@@ -245,6 +245,8 @@
245
245
  <div class="hero-dialog__body">{{ confirming.text.body }}</div>
246
246
  <div class="hero-dialog__actions">
247
247
  <v-btn variant="outlined" @click="confirmOpen = false">Don't send</v-btn>
248
+ <!-- Cancel sends the robot home (core 2026-10-15); this keeps it where it stops. -->
249
+ <v-btn v-if="confirming.kind === 'cancel'" variant="outlined" @click="confirmSend(true)">Stop here</v-btn>
248
250
  <v-btn color="primary" variant="flat" :disabled="!!confirming.zones && !confirming.zoneNames?.length" @click="confirmSend">{{ confirming.text.action }}</v-btn>
249
251
  </div>
250
252
  </div>
@@ -796,10 +798,10 @@ function pickRoute(id: unknown) {
796
798
  c.what = /^patrol/i.test(name) ? name : `patrolling ${name}`;
797
799
  c.text = commandConfirm("area", { type: "security", name: record.value?.name, route: { name, stops }, map });
798
800
  }
799
- function confirmSend() {
801
+ function confirmSend(stayHere = false) {
800
802
  const c = confirming.value;
801
803
  confirmOpen.value = false;
802
- if (c) run(c.kind, c.body, c.what);
804
+ if (c) run(c.kind, stayHere === true ? { ...c.body, stayHere: true } : c.body, c.what);
803
805
  }
804
806
 
805
807
  /** The robot's plan image size for its floor, for turning plan clicks into pixels. */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "4.97.1-staging.554",
5
+ "version": "4.97.1-staging.555",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
@@ -1767,7 +1767,7 @@ export function commandConfirm(
1767
1767
  return: `${who} stops what it is doing and drives back to its charger.`,
1768
1768
  pause: `${who} stops where it is and waits. Press Resume to carry on.`,
1769
1769
  resume: `${who} carries on with the job it paused.`,
1770
- cancel: `${who} stops the current job and stays where it is. It will not carry on by itself.`,
1770
+ cancel: `${who} stops the current job and drives back to its charger. Choose "Stop here" to leave it where it stops instead.`,
1771
1771
  navigate: at ? `${who} drives to ${at}.` : `${who} drives to the point you pick.`,
1772
1772
  relocalize: at
1773
1773
  ? `${who} is told it is standing at ${at}. Only do this if it really is there - a wrong position gets it lost.`