@open-mercato/cli 0.6.6-develop.6480.1.309f47ca1c → 0.6.6-develop.6482.1.6441fffca2

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 (58) hide show
  1. package/dist/agentic/guides/module-facts.json +53 -53
  2. package/dist/agentic/guides/modules/ai_assistant.md +1 -1
  3. package/dist/agentic/guides/modules/api_docs.md +1 -1
  4. package/dist/agentic/guides/modules/api_keys.md +1 -1
  5. package/dist/agentic/guides/modules/attachments.md +1 -1
  6. package/dist/agentic/guides/modules/audit_logs.md +1 -1
  7. package/dist/agentic/guides/modules/auth.md +1 -1
  8. package/dist/agentic/guides/modules/business_rules.md +1 -1
  9. package/dist/agentic/guides/modules/catalog.md +1 -1
  10. package/dist/agentic/guides/modules/channel_gmail.md +1 -1
  11. package/dist/agentic/guides/modules/channel_imap.md +1 -1
  12. package/dist/agentic/guides/modules/checkout.md +1 -1
  13. package/dist/agentic/guides/modules/communication_channels.md +1 -1
  14. package/dist/agentic/guides/modules/configs.md +1 -1
  15. package/dist/agentic/guides/modules/content.md +1 -1
  16. package/dist/agentic/guides/modules/currencies.md +1 -1
  17. package/dist/agentic/guides/modules/customer_accounts.md +1 -1
  18. package/dist/agentic/guides/modules/customers.md +1 -1
  19. package/dist/agentic/guides/modules/dashboards.md +1 -1
  20. package/dist/agentic/guides/modules/data_sync.md +1 -1
  21. package/dist/agentic/guides/modules/dictionaries.md +1 -1
  22. package/dist/agentic/guides/modules/directory.md +1 -1
  23. package/dist/agentic/guides/modules/entities.md +1 -1
  24. package/dist/agentic/guides/modules/events.md +1 -1
  25. package/dist/agentic/guides/modules/feature_toggles.md +1 -1
  26. package/dist/agentic/guides/modules/gateway_stripe.md +1 -1
  27. package/dist/agentic/guides/modules/generators.md +1 -1
  28. package/dist/agentic/guides/modules/inbox_ops.md +1 -1
  29. package/dist/agentic/guides/modules/integrations.md +1 -1
  30. package/dist/agentic/guides/modules/messages.md +1 -1
  31. package/dist/agentic/guides/modules/notifications.md +1 -1
  32. package/dist/agentic/guides/modules/onboarding.md +1 -1
  33. package/dist/agentic/guides/modules/payment_gateways.md +1 -1
  34. package/dist/agentic/guides/modules/perspectives.md +1 -1
  35. package/dist/agentic/guides/modules/planner.md +1 -1
  36. package/dist/agentic/guides/modules/portal.md +1 -1
  37. package/dist/agentic/guides/modules/progress.md +1 -1
  38. package/dist/agentic/guides/modules/query_index.md +1 -1
  39. package/dist/agentic/guides/modules/record_locks.md +1 -1
  40. package/dist/agentic/guides/modules/resources.md +1 -1
  41. package/dist/agentic/guides/modules/sales.md +1 -1
  42. package/dist/agentic/guides/modules/scheduler.md +1 -1
  43. package/dist/agentic/guides/modules/search.md +1 -1
  44. package/dist/agentic/guides/modules/security.md +1 -1
  45. package/dist/agentic/guides/modules/shipping_carriers.md +1 -1
  46. package/dist/agentic/guides/modules/sso.md +1 -1
  47. package/dist/agentic/guides/modules/staff.md +1 -1
  48. package/dist/agentic/guides/modules/storage_s3.md +1 -1
  49. package/dist/agentic/guides/modules/sync_akeneo.md +1 -1
  50. package/dist/agentic/guides/modules/sync_excel.md +1 -1
  51. package/dist/agentic/guides/modules/system_status_overlays.md +1 -1
  52. package/dist/agentic/guides/modules/translations.md +1 -1
  53. package/dist/agentic/guides/modules/webhooks.md +1 -1
  54. package/dist/agentic/guides/modules/workflows.md +1 -1
  55. package/dist/lib/testing/integration.js +16 -0
  56. package/dist/lib/testing/integration.js.map +2 -2
  57. package/package.json +5 -5
  58. package/src/lib/testing/integration.ts +21 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/cli",
3
- "version": "0.6.6-develop.6480.1.309f47ca1c",
3
+ "version": "0.6.6-develop.6482.1.6441fffca2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -60,8 +60,8 @@
60
60
  "@mikro-orm/decorators": "^7.1.5",
61
61
  "@mikro-orm/migrations": "^7.1.5",
62
62
  "@mikro-orm/postgresql": "^7.1.5",
63
- "@open-mercato/queue": "0.6.6-develop.6480.1.309f47ca1c",
64
- "@open-mercato/shared": "0.6.6-develop.6480.1.309f47ca1c",
63
+ "@open-mercato/queue": "0.6.6-develop.6482.1.6441fffca2",
64
+ "@open-mercato/shared": "0.6.6-develop.6482.1.6441fffca2",
65
65
  "cross-spawn": "^7.0.6",
66
66
  "pg": "8.22.0",
67
67
  "semver": "^7.8.5",
@@ -71,10 +71,10 @@
71
71
  "typescript": "^6.0.3"
72
72
  },
73
73
  "peerDependencies": {
74
- "@open-mercato/shared": "0.6.6-develop.6480.1.309f47ca1c"
74
+ "@open-mercato/shared": "0.6.6-develop.6482.1.6441fffca2"
75
75
  },
76
76
  "devDependencies": {
77
- "@open-mercato/shared": "0.6.6-develop.6480.1.309f47ca1c",
77
+ "@open-mercato/shared": "0.6.6-develop.6482.1.6441fffca2",
78
78
  "@types/jest": "^30.0.0",
79
79
  "jest": "^30.4.2",
80
80
  "ts-jest": "^29.4.11"
@@ -1944,6 +1944,14 @@ function buildReusableEnvironment(
1944
1944
  APP_URL: baseUrl,
1945
1945
  NEXT_PUBLIC_APP_URL: baseUrl,
1946
1946
  NODE_ENV: 'production',
1947
+ // Share the app server's cache backend with the test process and the
1948
+ // queue-drain runners it spawns (drainIntegrationQueue children inherit
1949
+ // this env). Without it those processes default to the in-memory cache
1950
+ // strategy, their invalidateCrudCache calls never reach the app's sqlite
1951
+ // cache, and any test whose drain-runner wins the job race then polls a
1952
+ // stale CRUD response until the TTL (TC-CRM-028/079, TC-SX-001).
1953
+ CACHE_STRATEGY: 'sqlite',
1954
+ CACHE_SQLITE_PATH: EPHEMERAL_CACHE_DB_PATH,
1947
1955
  JWT_SECRET: process.env.JWT_SECRET ?? 'om-ephemeral-integration-jwt-secret',
1948
1956
  OM_SECURITY_MFA_SETUP_SECRET: process.env.OM_SECURITY_MFA_SETUP_SECRET ?? 'om-ephemeral-integration-mfa-setup-secret',
1949
1957
  // Integration probe + tests expect `admin@acme.com / secret` and
@@ -3268,7 +3276,14 @@ export async function startEphemeralEnvironment(options: EphemeralRuntimeOptions
3268
3276
  const databaseHost = databaseContainer.getHost()
3269
3277
  const databasePort = databaseContainer.getMappedPort(5432)
3270
3278
  const databaseUrl = `postgres://${databaseUser}:${databasePassword}@${databaseHost}:${databasePort}/${databaseName}`
3279
+ // Remove the WAL/SHM sidecars together with the main DB file: a fresh
3280
+ // sqlite database paired with a stale -shm/-wal from a previous run fails
3281
+ // to initialize, and the cache service silently falls back to per-process
3282
+ // memory — the app then serves stale CRUD reads that queue workers can no
3283
+ // longer invalidate cross-process (TC-CRM-028/079, TC-SX-001 staleness).
3271
3284
  await rm(EPHEMERAL_CACHE_DB_PATH, { force: true }).catch(() => undefined)
3285
+ await rm(`${EPHEMERAL_CACHE_DB_PATH}-wal`, { force: true }).catch(() => undefined)
3286
+ await rm(`${EPHEMERAL_CACHE_DB_PATH}-shm`, { force: true }).catch(() => undefined)
3272
3287
  await rm(EPHEMERAL_QUEUE_BASE_DIR, { recursive: true, force: true }).catch(() => undefined)
3273
3288
  const enterpriseModulesFlag = process.env.OM_ENABLE_ENTERPRISE_MODULES ?? 'false'
3274
3289
  const commandEnvironment = buildEnvironment({
@@ -3312,6 +3327,12 @@ export async function startEphemeralEnvironment(options: EphemeralRuntimeOptions
3312
3327
  ENABLE_CRUD_API_CACHE: 'true',
3313
3328
  MOCK_GATEWAY_WEBHOOK_SECRET: 'open-mercato-mock-dev-webhook-secret',
3314
3329
  MOCK_CARRIER_WEBHOOK_SECRET: 'open-mercato-mock-dev-carrier-webhook-secret',
3330
+ // The mock inbound adapter refuses the dev-secret fallback under
3331
+ // NODE_ENV=production; without this the app 400s every mock_inbound
3332
+ // verification and the TC-WEBHOOK suite fails locally (CI exports the
3333
+ // var at the workflow level, masking the gap). Keep in sync with the
3334
+ // Playwright-process env block above.
3335
+ MOCK_INBOUND_WEBHOOK_SECRET: 'open-mercato-mock-dev-inbound-webhook-secret',
3315
3336
  NEXT_PUBLIC_OM_EXAMPLE_INJECTION_WIDGETS_ENABLED: 'true',
3316
3337
  NEXT_PUBLIC_UMES_DEVTOOLS: 'true',
3317
3338
  CI: 'true',