@teincfood/core 0.10.24 → 0.10.25

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.
@@ -22,6 +22,7 @@ import { getReferenceData } from "../reference/operations";
22
22
  import { commandQueueService } from "./command-queue.service";
23
23
  import { applyMenuCommandLocal } from "../reference/menu-apply";
24
24
  import { emitReferenceChanged } from "../reference/events";
25
+ import { assertEntitledForCommand } from "../reference/entitlement-guard";
25
26
  import { isOnlineCapable } from "./online-gates";
26
27
  export async function runOfflineCapableMutation(options) {
27
28
  // Per-command capability guard before even attempting direct call
@@ -35,6 +36,9 @@ export async function runOfflineCapableMutation(options) {
35
36
  // replay upload to the cloud/LAN in the background. A slow or absent
36
37
  // network must never hold the form open.
37
38
  if (options.commandType.startsWith("menu:")) {
39
+ // Preserve the entitlement gate that the engine normally applies before
40
+ // queueing: local-first must not weaken subscription enforcement.
41
+ await assertEntitledForCommand(options.businessId, options.commandType);
38
42
  const command = buildCommand({
39
43
  commandType: options.commandType,
40
44
  businessId: options.businessId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teincfood/core",
3
- "version": "0.10.24",
3
+ "version": "0.10.25",
4
4
  "description": "TeincFood shared offline-first core — types, sync engine, local DB, reference data, and repositories for mobile + desktop",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",