@7365admin1/layer-common 4.32.1-staging.365 → 4.32.1-staging.366

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/README.md +19 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -71,3 +71,22 @@ pnpm preview
71
71
  ```
72
72
 
73
73
  Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
74
+
75
+ ## HERO robot rules for the mobile apps
76
+
77
+ `utils/robot-display.ts` is the canonical home of the HERO robot display rules.
78
+ The React Native apps (iClean365, iMA365, iSecure365) cannot consume this layer
79
+ and no separate npm package is published for them, so
80
+ `scripts/sync-robot-rules.mjs` writes a dependency-free copy into each app
81
+ (`src/shared/robot-rules/robot-rules.ts`, GENERATED, with a sha256 header) plus
82
+ `robot-rules.vectors.json` - this repo's own answers for every case. Each app's
83
+ test re-hashes the copy and runs the vectors, so a hand edit fails there.
84
+
85
+ After changing `utils/robot-display.ts` (or the lift-queue section of
86
+ `utils/robot-building.ts`, or `HERO_PALETTE` in `utils/theme.ts`):
87
+
88
+ node scripts/sync-robot-rules.mjs ../iservice365-hygiene-mobile-app ../iservice365-ma-mobile-app ../isecure365-mobile-app
89
+ node scripts/sync-robot-rules.mjs --check ../iservice365-hygiene-mobile-app ../iservice365-ma-mobile-app ../isecure365-mobile-app
90
+
91
+ and open a PR in each app with the two regenerated files. `test/robot-rules-sync.test.mjs`
92
+ checks the generator here. The script is not part of the published package.
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.32.1-staging.365",
5
+ "version": "4.32.1-staging.366",
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.",