@open-mercato/cli 0.10.1-develop.7758.1.fb3a60392f → 0.10.1-develop.7759.1.416727583e

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 (108) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/agentic/guides/module-facts.json +162 -162
  3. package/dist/agentic/guides/module-facts.v2.json +162 -162
  4. package/dist/agentic/guides/modules/agent_orchestrator/index.md +1 -1
  5. package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
  6. package/dist/agentic/guides/modules/api_docs/index.md +1 -1
  7. package/dist/agentic/guides/modules/api_keys/index.md +1 -1
  8. package/dist/agentic/guides/modules/attachments/index.md +1 -1
  9. package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
  10. package/dist/agentic/guides/modules/auth/index.md +1 -1
  11. package/dist/agentic/guides/modules/availability/index.md +1 -1
  12. package/dist/agentic/guides/modules/business_rules/index.md +1 -1
  13. package/dist/agentic/guides/modules/carrier_inpost/index.md +1 -1
  14. package/dist/agentic/guides/modules/cart/index.md +1 -1
  15. package/dist/agentic/guides/modules/catalog/index.md +1 -1
  16. package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
  17. package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
  18. package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
  19. package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
  20. package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
  21. package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
  22. package/dist/agentic/guides/modules/channel_resend/index.md +1 -1
  23. package/dist/agentic/guides/modules/channel_ses/index.md +1 -1
  24. package/dist/agentic/guides/modules/channel_smtp/index.md +1 -1
  25. package/dist/agentic/guides/modules/checkout/index.md +1 -1
  26. package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
  27. package/dist/agentic/guides/modules/configs/index.md +1 -1
  28. package/dist/agentic/guides/modules/content/index.md +1 -1
  29. package/dist/agentic/guides/modules/currencies/index.md +1 -1
  30. package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
  31. package/dist/agentic/guides/modules/customer_groups/index.md +1 -1
  32. package/dist/agentic/guides/modules/customers/index.md +1 -1
  33. package/dist/agentic/guides/modules/dashboards/index.md +1 -1
  34. package/dist/agentic/guides/modules/data_sync/index.md +1 -1
  35. package/dist/agentic/guides/modules/design_system/index.md +1 -1
  36. package/dist/agentic/guides/modules/devices/index.md +1 -1
  37. package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
  38. package/dist/agentic/guides/modules/directory/index.md +1 -1
  39. package/dist/agentic/guides/modules/documents/index.md +1 -1
  40. package/dist/agentic/guides/modules/ecommerce/index.md +1 -1
  41. package/dist/agentic/guides/modules/entities/index.md +1 -1
  42. package/dist/agentic/guides/modules/eudr/index.md +1 -1
  43. package/dist/agentic/guides/modules/events/index.md +1 -1
  44. package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
  45. package/dist/agentic/guides/modules/forms/index.md +1 -1
  46. package/dist/agentic/guides/modules/gateway_autopay/index.md +1 -1
  47. package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
  48. package/dist/agentic/guides/modules/gateway_tpay/index.md +1 -1
  49. package/dist/agentic/guides/modules/generators/index.md +1 -1
  50. package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
  51. package/dist/agentic/guides/modules/integrations/index.md +1 -1
  52. package/dist/agentic/guides/modules/messages/index.md +1 -1
  53. package/dist/agentic/guides/modules/notifications/index.md +1 -1
  54. package/dist/agentic/guides/modules/onboarding/index.md +1 -1
  55. package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
  56. package/dist/agentic/guides/modules/perspectives/index.md +1 -1
  57. package/dist/agentic/guides/modules/phone_calls/index.md +1 -1
  58. package/dist/agentic/guides/modules/planner/index.md +1 -1
  59. package/dist/agentic/guides/modules/portal/index.md +1 -1
  60. package/dist/agentic/guides/modules/progress/index.md +1 -1
  61. package/dist/agentic/guides/modules/promotions/index.md +1 -1
  62. package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
  63. package/dist/agentic/guides/modules/query_index/index.md +1 -1
  64. package/dist/agentic/guides/modules/record_locks/index.md +1 -1
  65. package/dist/agentic/guides/modules/resources/index.md +1 -1
  66. package/dist/agentic/guides/modules/sales/index.md +1 -1
  67. package/dist/agentic/guides/modules/scheduler/index.md +1 -1
  68. package/dist/agentic/guides/modules/search/index.md +1 -1
  69. package/dist/agentic/guides/modules/security/index.md +1 -1
  70. package/dist/agentic/guides/modules/seeds/index.md +1 -1
  71. package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
  72. package/dist/agentic/guides/modules/sso/index.md +1 -1
  73. package/dist/agentic/guides/modules/staff/index.md +1 -1
  74. package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
  75. package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
  76. package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
  77. package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
  78. package/dist/agentic/guides/modules/telemetry/index.md +1 -1
  79. package/dist/agentic/guides/modules/tillio/index.md +1 -1
  80. package/dist/agentic/guides/modules/translations/index.md +1 -1
  81. package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
  82. package/dist/agentic/guides/modules/webhooks/index.md +1 -1
  83. package/dist/agentic/guides/modules/wms/index.md +1 -1
  84. package/dist/agentic/guides/modules/workflows/index.md +1 -1
  85. package/dist/agentic/guides/reference-module-facts.json +1 -1
  86. package/dist/agentic/guides/upstream/manifest.json +1 -1
  87. package/dist/lib/module-search-args.js +97 -0
  88. package/dist/lib/module-search-args.js.map +7 -0
  89. package/dist/lib/module-search-index.js +677 -0
  90. package/dist/lib/module-search-index.js.map +7 -0
  91. package/dist/lib/module-search.js +668 -0
  92. package/dist/lib/module-search.js.map +7 -0
  93. package/dist/lib/modules-config.js +5 -0
  94. package/dist/lib/modules-config.js.map +2 -2
  95. package/dist/mercato.js +13 -3
  96. package/dist/mercato.js.map +2 -2
  97. package/package.json +8 -7
  98. package/src/__tests__/mercato.test.ts +57 -0
  99. package/src/lib/__fixtures__/module-search/README.md +97 -0
  100. package/src/lib/__fixtures__/module-search/built-in.json +235 -0
  101. package/src/lib/__fixtures__/module-search/catalog-parity.json +4076 -0
  102. package/src/lib/__fixtures__/module-search/modules-index.json +1980 -0
  103. package/src/lib/__tests__/module-search.test.ts +929 -0
  104. package/src/lib/module-search-args.ts +116 -0
  105. package/src/lib/module-search-index.ts +1033 -0
  106. package/src/lib/module-search.ts +952 -0
  107. package/src/lib/modules-config.ts +8 -0
  108. package/src/mercato.ts +17 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/cli",
3
- "version": "0.10.1-develop.7758.1.fb3a60392f",
3
+ "version": "0.10.1-develop.7759.1.416727583e",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -60,11 +60,12 @@
60
60
  "@mikro-orm/decorators": "^7.1.14",
61
61
  "@mikro-orm/migrations": "^7.1.14",
62
62
  "@mikro-orm/postgresql": "^7.1.14",
63
- "@open-mercato/events": "0.10.1-develop.7758.1.fb3a60392f",
64
- "@open-mercato/queue": "0.10.1-develop.7758.1.fb3a60392f",
65
- "@open-mercato/shared": "0.10.1-develop.7758.1.fb3a60392f",
66
- "@open-mercato/telemetry": "0.10.1-develop.7758.1.fb3a60392f",
63
+ "@open-mercato/events": "0.10.1-develop.7759.1.416727583e",
64
+ "@open-mercato/queue": "0.10.1-develop.7759.1.416727583e",
65
+ "@open-mercato/shared": "0.10.1-develop.7759.1.416727583e",
66
+ "@open-mercato/telemetry": "0.10.1-develop.7759.1.416727583e",
67
67
  "cross-spawn": "^7.0.6",
68
+ "minisearch": "7.2.0",
68
69
  "pg": "8.23.0",
69
70
  "semver": "^7.8.5",
70
71
  "testcontainers": "^12.0.4",
@@ -74,10 +75,10 @@
74
75
  "typescript-js": "npm:typescript@6.0.3"
75
76
  },
76
77
  "peerDependencies": {
77
- "@open-mercato/shared": "0.10.1-develop.7758.1.fb3a60392f"
78
+ "@open-mercato/shared": "0.10.1-develop.7759.1.416727583e"
78
79
  },
79
80
  "devDependencies": {
80
- "@open-mercato/shared": "0.10.1-develop.7758.1.fb3a60392f",
81
+ "@open-mercato/shared": "0.10.1-develop.7759.1.416727583e",
81
82
  "@types/jest": "^30.0.0",
82
83
  "jest": "^30.4.2",
83
84
  "ts-jest": "^29.4.12"
@@ -224,6 +224,33 @@ describe('--help never triggers side effects (issue #5581)', () => {
224
224
  })
225
225
  })
226
226
 
227
+ it('keeps module search and module info read-only and quiet, so --json output parses', () => {
228
+ expect(resolveEnvBootstrapOptions(['module', 'search', 'ksef', '--json'])).toEqual({
229
+ createIfMissing: false,
230
+ quiet: true,
231
+ })
232
+ expect(resolveEnvBootstrapOptions(['module', 'search', 'ksef'])).toEqual({
233
+ createIfMissing: false,
234
+ quiet: true,
235
+ })
236
+ expect(resolveEnvBootstrapOptions(['module', 'info', '@open-mercato/webhooks'])).toEqual({
237
+ createIfMissing: false,
238
+ quiet: true,
239
+ })
240
+ // module add changes the app: it may still create .env, and prints as before
241
+ expect(resolveEnvBootstrapOptions(['module', 'add', '@open-mercato/webhooks'])).toEqual({
242
+ createIfMissing: true,
243
+ quiet: false,
244
+ })
245
+ })
246
+
247
+ it('silences the dotenv line for any --json invocation', () => {
248
+ expect(resolveEnvBootstrapOptions(['db', 'status', '--json'])).toEqual({
249
+ createIfMissing: true,
250
+ quiet: true,
251
+ })
252
+ })
253
+
227
254
  it('keeps the pre-existing deploy and telemetry opt-outs', () => {
228
255
  expect(resolveEnvBootstrapOptions(['deploy', 'railway'])).toEqual({
229
256
  createIfMissing: false,
@@ -324,6 +351,36 @@ describe('--help never triggers side effects (issue #5581)', () => {
324
351
  consoleErrorSpy.mockRestore()
325
352
  })
326
353
 
354
+ it('lists module search and info in the module command help', async () => {
355
+ const consoleLogSpy = jest.spyOn(console, 'log').mockImplementation()
356
+
357
+ const exitCode = await run(['node', 'mercato', 'module', '--help'])
358
+
359
+ expect(exitCode).toBe(0)
360
+ const printed = consoleLogSpy.mock.calls.map((call) => String(call[0])).join('\n')
361
+ expect(printed).toContain('yarn mercato module search [<query>]')
362
+ expect(printed).toContain('yarn mercato module info <package-or-module-id> [--json]')
363
+
364
+ consoleLogSpy.mockRestore()
365
+ })
366
+
367
+ it('routes module search without a query to its usage, before any network call', async () => {
368
+ const consoleLogSpy = jest.spyOn(console, 'log').mockImplementation()
369
+ const consoleErrorSpy = jest.spyOn(console, 'error').mockImplementation()
370
+
371
+ const searchExit = await run(['node', 'mercato', 'module', 'search'])
372
+ const infoExit = await run(['node', 'mercato', 'module', 'info'])
373
+
374
+ expect(searchExit).toBe(1)
375
+ expect(infoExit).toBe(1)
376
+ const printed = consoleErrorSpy.mock.calls.map((call) => String(call[0])).join('\n')
377
+ expect(printed).toContain('Usage: yarn mercato module search [<query>]')
378
+ expect(printed).toContain('Usage: yarn mercato module info <package-or-module-id> [--json]')
379
+
380
+ consoleLogSpy.mockRestore()
381
+ consoleErrorSpy.mockRestore()
382
+ })
383
+
327
384
  it('lists the module commands when the help flag sits in the command slot', async () => {
328
385
  const consoleLogSpy = jest.spyOn(console, 'log').mockImplementation()
329
386
  const consoleErrorSpy = jest.spyOn(console, 'error').mockImplementation()
@@ -0,0 +1,97 @@
1
+ # module search fixtures
2
+
3
+ Generated from the test fixture of the Open Mercato Modules catalog (8 real entries and 3 core modules, data read on
4
+ 2026-10-23), with the catalog's own emitter and MCP handlers and the site set to `https://modules.openmercato.com`.
5
+
6
+ - `modules-index.json`: the published `/modules.json`.
7
+ - `built-in.json`: the published `/built-in.json`.
8
+ - `catalog-parity.json`: what the catalog's `search_modules` and `get_module` tools (contract `tools@1`) answer on
9
+ the same data. `search` and `info` hold the golden queries of the catalog spec (Appendix B), filter cases and
10
+ cases for the search of 25 Oct (stop words, filters without a query, the typo retry). `variants` holds the same
11
+ tools on a patched copy of the data: `patch` adds `dataAsOf.source`, preset lists, `ships` and `isolation` to
12
+ some entries, which the plain fixture does not have; `addEntries` appends whole entries (a library, an adapter that
13
+ peers on it and a tool, written by hand from the catalog descriptors). `module-search.test.ts` applies the same patch and checks that
14
+ `yarn mercato module search|info` produce the same ranking, cards and lookups.
15
+
16
+ The data predates the catalog's move of partner modules to `community`, so `@fastwhitecat/integration-ksef-direct` is
17
+ `3rd-party` here while the live catalog lists it as `community`; the tests keep it to cover the third-party label.
18
+
19
+ ## How the goldens were produced
20
+
21
+ Outputs of `catalog-parity.json` come from open-mercato/modules at commit
22
+ `2c182e6` (2026-10-28), `mcp/handlers.ts` `runTool` with `now` from the file. Inputs (`input`, `ref`, `patch`) are
23
+ written by hand; the script below rewrites every output. Do not edit outputs by hand.
24
+
25
+ 1. Clone open-mercato/modules, check out the commit above, run `yarn install` (Node 24). The script imports only the
26
+ catalog's `lib` and `mcp` code, which needs `zod`, `yaml`, `minisearch`, `semver`, `fastest-levenshtein` and
27
+ `p-limit`; installing just those is enough.
28
+ 2. Save the script below as `gen-parity.ts` in the clone and run `node gen-parity.ts <this directory>`.
29
+ 3. Run `yarn jest --config jest.config.cjs src/lib/__tests__/module-search.test.ts` in `packages/cli`.
30
+
31
+ ```ts
32
+ import fs from 'node:fs'
33
+ import path from 'node:path'
34
+ import { runTool } from './mcp/handlers.ts'
35
+ import { createCatalogSource } from './mcp/index-cache.ts'
36
+
37
+ type Patch = {
38
+ dataAsOf?: Record<string, unknown>
39
+ addEntries?: Record<string, unknown>[]
40
+ entries?: Record<string, { compat?: Record<string, unknown> }>
41
+ builtIn?: Record<string, Record<string, unknown>>
42
+ }
43
+ type Cases = { search: { input: unknown }[]; info: { ref: string }[] }
44
+
45
+ const dir = process.argv[2] as string
46
+ const file = path.join(dir, 'catalog-parity.json')
47
+ const read = (name: string) => JSON.parse(fs.readFileSync(path.join(dir, name), 'utf8'))
48
+ const parity = JSON.parse(fs.readFileSync(file, 'utf8'))
49
+ const SITE = 'https://modules.openmercato.com'
50
+
51
+ function applyPatch(index: any, builtIn: any, patch: Patch) {
52
+ if (patch.dataAsOf) index.dataAsOf = { ...index.dataAsOf, ...patch.dataAsOf }
53
+ for (const entry of index.entries) {
54
+ const compat = patch.entries?.[entry.locator]?.compat
55
+ if (compat) entry.compat = { ...entry.compat, ...compat }
56
+ }
57
+ if (patch.addEntries) index.entries.push(...structuredClone(patch.addEntries))
58
+ builtIn.modules = builtIn.modules.map((m: any) => ({ ...m, ...(patch.builtIn?.[m.id] ?? {}) }))
59
+ }
60
+
61
+ async function run(cases: Cases, patch: Patch | null) {
62
+ const index = read('modules-index.json')
63
+ const builtIn = read('built-in.json')
64
+ if (patch) applyPatch(index, builtIn, patch)
65
+ const files: Record<string, string> = { 'modules.json': JSON.stringify(index), 'built-in.json': JSON.stringify(builtIn) }
66
+ const fetch = async (input: string) => {
67
+ const body = files[decodeURIComponent(input.slice(SITE.length + 1))]
68
+ return body === undefined ? new Response('not found', { status: 404 }) : new Response(body, { status: 200 })
69
+ }
70
+ const src = createCatalogSource({ indexUrl: `${SITE}/modules.json`, fetch })
71
+ const search = []
72
+ for (const { input } of cases.search) {
73
+ const r = await runTool('search_modules', input, src, parity.now)
74
+ if (!r.ok) throw new Error(`${JSON.stringify(input)}: ${r.error}`)
75
+ search.push({ input, output: r.value })
76
+ }
77
+ const info = []
78
+ for (const { ref } of cases.info) {
79
+ const r = await runTool('get_module', { ref }, src, parity.now)
80
+ if (!r.ok) info.push({ ref, ok: false, error: r.error, candidates: r.candidates })
81
+ else {
82
+ const v = r.value
83
+ info.push({ ref, ok: true, locator: v.entry?.locator ?? null, candidates: v.candidates, warnings: v.warnings, card: v.card })
84
+ }
85
+ }
86
+ return { search, info }
87
+ }
88
+
89
+ const out: Record<string, unknown> = { now: parity.now, ...(await run(parity, null)) }
90
+ if (parity.variants) {
91
+ out.variants = []
92
+ for (const variant of parity.variants) {
93
+ ;(out.variants as unknown[]).push({ name: variant.name, patch: variant.patch, ...(await run(variant, variant.patch)) })
94
+ }
95
+ }
96
+ fs.writeFileSync(file, `${JSON.stringify(out, null, 2)}\n`)
97
+ ```
@@ -0,0 +1,235 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "coreVersion": "0.9.0",
4
+ "generatedAt": "2026-10-23T03:05:00Z",
5
+ "modules": [
6
+ {
7
+ "id": "currencies",
8
+ "title": "Currencies",
9
+ "description": "Currencies and Exchange rate management",
10
+ "category": "payments-finance",
11
+ "wedge": "money",
12
+ "requires": [],
13
+ "inPresets": [],
14
+ "anatomy": {
15
+ "version": "0.9.0",
16
+ "coverage": "partial",
17
+ "counts": {
18
+ "entities": 3,
19
+ "tables": 3,
20
+ "migrations": 0,
21
+ "routes": null,
22
+ "publicRoutes": null,
23
+ "aclFeatures": 6,
24
+ "eventsEmitted": 6,
25
+ "eventsConsumed": 0,
26
+ "backendPages": 7,
27
+ "frontendPages": 0,
28
+ "widgets": 0,
29
+ "workers": 0,
30
+ "cli": 3,
31
+ "aiTools": 0,
32
+ "aiAgents": 0,
33
+ "extends": 0
34
+ },
35
+ "lists": {
36
+ "aclFeatures": [
37
+ "currencies.view",
38
+ "currencies.manage",
39
+ "currencies.rates.view",
40
+ "currencies.rates.manage",
41
+ "currencies.fetch.view",
42
+ "currencies.fetch.manage"
43
+ ],
44
+ "eventsEmitted": [
45
+ "currencies.currency.created",
46
+ "currencies.currency.updated",
47
+ "currencies.currency.deleted",
48
+ "currencies.exchange_rate.created",
49
+ "currencies.exchange_rate.updated",
50
+ "currencies.exchange_rate.deleted"
51
+ ],
52
+ "eventsConsumed": [],
53
+ "env": [],
54
+ "hosts": [],
55
+ "tables": [
56
+ "currencies",
57
+ "exchange_rates",
58
+ "currency_fetch_configs"
59
+ ],
60
+ "publicRoutes": [],
61
+ "credentials": []
62
+ },
63
+ "callout": "ADDS 3 TABLES · 6 PERMISSIONS · EMITS 6 EVENTS",
64
+ "diff": null
65
+ },
66
+ "install": "yarn mercato module enable @open-mercato/core --module currencies",
67
+ "page": "/built-in/currencies"
68
+ },
69
+ {
70
+ "id": "data_sync",
71
+ "title": "Data Sync",
72
+ "description": "Streaming data sync hub for import/export integrations.",
73
+ "category": "integrations-sync",
74
+ "wedge": "connect",
75
+ "requires": [],
76
+ "inPresets": [],
77
+ "anatomy": {
78
+ "version": "0.9.0",
79
+ "coverage": "partial",
80
+ "counts": {
81
+ "entities": 4,
82
+ "tables": 4,
83
+ "migrations": 0,
84
+ "routes": null,
85
+ "publicRoutes": null,
86
+ "aclFeatures": 3,
87
+ "eventsEmitted": 4,
88
+ "eventsConsumed": 0,
89
+ "backendPages": 2,
90
+ "frontendPages": 0,
91
+ "widgets": 0,
92
+ "workers": 0,
93
+ "cli": 0,
94
+ "aiTools": 0,
95
+ "aiAgents": 0,
96
+ "extends": 0
97
+ },
98
+ "lists": {
99
+ "aclFeatures": [
100
+ "data_sync.view",
101
+ "data_sync.run",
102
+ "data_sync.configure"
103
+ ],
104
+ "eventsEmitted": [
105
+ "data_sync.run.started",
106
+ "data_sync.run.completed",
107
+ "data_sync.run.failed",
108
+ "data_sync.run.cancelled"
109
+ ],
110
+ "eventsConsumed": [],
111
+ "env": [],
112
+ "hosts": [],
113
+ "tables": [
114
+ "sync_runs",
115
+ "sync_cursors",
116
+ "sync_mappings",
117
+ "sync_schedules"
118
+ ],
119
+ "publicRoutes": [],
120
+ "credentials": []
121
+ },
122
+ "callout": "ADDS 4 TABLES · 3 PERMISSIONS · EMITS 4 EVENTS",
123
+ "diff": null
124
+ },
125
+ "install": "yarn mercato module enable @open-mercato/core --module data_sync",
126
+ "page": "/built-in/data_sync"
127
+ },
128
+ {
129
+ "id": "wms",
130
+ "title": "Warehouse Management System",
131
+ "description": "Warehouse topology, inventory balances, reservations, and movement ledger.",
132
+ "category": "warehouse-shipping",
133
+ "wedge": "operate",
134
+ "requires": [
135
+ "catalog",
136
+ "sales",
137
+ "feature_toggles"
138
+ ],
139
+ "inPresets": [],
140
+ "anatomy": {
141
+ "version": "0.9.0",
142
+ "coverage": "partial",
143
+ "counts": {
144
+ "entities": 9,
145
+ "tables": 9,
146
+ "migrations": 0,
147
+ "routes": null,
148
+ "publicRoutes": null,
149
+ "aclFeatures": 10,
150
+ "eventsEmitted": 27,
151
+ "eventsConsumed": 14,
152
+ "backendPages": 12,
153
+ "frontendPages": 0,
154
+ "widgets": 0,
155
+ "workers": 0,
156
+ "cli": 1,
157
+ "aiTools": 0,
158
+ "aiAgents": 0,
159
+ "extends": 15
160
+ },
161
+ "lists": {
162
+ "aclFeatures": [
163
+ "wms.view",
164
+ "wms.manage_warehouses",
165
+ "wms.manage_zones",
166
+ "wms.manage_locations",
167
+ "wms.manage_inventory",
168
+ "wms.manage_reservations",
169
+ "wms.adjust_inventory",
170
+ "wms.receive_inventory",
171
+ "wms.cycle_count",
172
+ "wms.import"
173
+ ],
174
+ "eventsEmitted": [
175
+ "wms.warehouse.created",
176
+ "wms.warehouse.updated",
177
+ "wms.zone.created",
178
+ "wms.zone.updated",
179
+ "wms.location.created",
180
+ "wms.location.updated",
181
+ "wms.inventory_profile.created",
182
+ "wms.inventory_profile.updated",
183
+ "wms.inventory_balance.created",
184
+ "wms.inventory_balance.updated",
185
+ "wms.inventory_balance.deleted",
186
+ "wms.inventory_reservation.created",
187
+ "wms.inventory_reservation.updated",
188
+ "wms.inventory_reservation.deleted",
189
+ "wms.inventory_movement.created",
190
+ "wms.inventory_movement.updated",
191
+ "wms.inventory_movement.deleted",
192
+ "wms.inventory.received",
193
+ "wms.inventory.adjusted",
194
+ "wms.inventory.reserved"
195
+ ],
196
+ "eventsConsumed": [
197
+ "wms.inventory_balance.*",
198
+ "availability.policy.*",
199
+ "wms.inventory_profile.*",
200
+ "wms.inventory.*",
201
+ "wms.inventory_movement.*",
202
+ "wms.inventory_reservation.*",
203
+ "sales.line.*",
204
+ "sales.order.*",
205
+ "catalog.variant.*",
206
+ "wms.warehouse.*",
207
+ "wms.inventory.low_stock",
208
+ "wms.inventory.reservation_shortfall",
209
+ "sales.order.cancelled",
210
+ "sales.order.confirmed"
211
+ ],
212
+ "env": [],
213
+ "hosts": [],
214
+ "tables": [
215
+ "wms_warehouses",
216
+ "wms_warehouse_zones",
217
+ "wms_warehouse_locations",
218
+ "wms_product_inventory_profiles",
219
+ "wms_inventory_lots",
220
+ "wms_inventory_balances",
221
+ "wms_inventory_reservations",
222
+ "wms_sales_order_warehouse_assignments",
223
+ "wms_inventory_movements"
224
+ ],
225
+ "publicRoutes": [],
226
+ "credentials": []
227
+ },
228
+ "callout": "ADDS 9 TABLES · 10 PERMISSIONS · EMITS 27 EVENTS",
229
+ "diff": null
230
+ },
231
+ "install": "yarn mercato module enable @open-mercato/core --module wms",
232
+ "page": "/built-in/wms"
233
+ }
234
+ ]
235
+ }