@open-mercato/cli 0.10.1-develop.7836.1.0ef0f453c6 → 0.10.1-develop.7841.1.af87ac614d
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.
- package/dist/agentic/guides/module-facts.json +172 -163
- package/dist/agentic/guides/module-facts.v2.json +172 -163
- package/dist/agentic/guides/modules/agent_orchestrator/index.md +1 -1
- package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
- package/dist/agentic/guides/modules/api_docs/index.md +1 -1
- package/dist/agentic/guides/modules/api_keys/index.md +1 -1
- package/dist/agentic/guides/modules/attachments/index.md +1 -1
- package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
- package/dist/agentic/guides/modules/auth/index.md +1 -1
- package/dist/agentic/guides/modules/availability/index.md +1 -1
- package/dist/agentic/guides/modules/business_rules/index.md +1 -1
- package/dist/agentic/guides/modules/carrier_inpost/index.md +1 -1
- package/dist/agentic/guides/modules/cart/index.md +1 -1
- package/dist/agentic/guides/modules/catalog/index.md +1 -1
- package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
- package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
- package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
- package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
- package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
- package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
- package/dist/agentic/guides/modules/channel_resend/index.md +1 -1
- package/dist/agentic/guides/modules/channel_ses/index.md +1 -1
- package/dist/agentic/guides/modules/channel_smtp/index.md +1 -1
- package/dist/agentic/guides/modules/checkout/index.md +1 -1
- package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
- package/dist/agentic/guides/modules/configs/index.md +1 -1
- package/dist/agentic/guides/modules/content/index.md +1 -1
- package/dist/agentic/guides/modules/currencies/index.md +1 -1
- package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
- package/dist/agentic/guides/modules/customer_groups/index.md +1 -1
- package/dist/agentic/guides/modules/customers/index.md +1 -1
- package/dist/agentic/guides/modules/dashboards/index.md +1 -1
- package/dist/agentic/guides/modules/data_sync/index.md +1 -1
- package/dist/agentic/guides/modules/design_system/index.md +1 -1
- package/dist/agentic/guides/modules/devices/index.md +1 -1
- package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
- package/dist/agentic/guides/modules/directory/index.md +1 -1
- package/dist/agentic/guides/modules/documents/index.md +1 -1
- package/dist/agentic/guides/modules/ecommerce/index.md +1 -1
- package/dist/agentic/guides/modules/entities/index.md +1 -1
- package/dist/agentic/guides/modules/eudr/index.md +1 -1
- package/dist/agentic/guides/modules/eudr/owned-contract-module-metadata.md +1 -1
- package/dist/agentic/guides/modules/events/index.md +1 -1
- package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
- package/dist/agentic/guides/modules/forms/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_autopay/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_tpay/index.md +1 -1
- package/dist/agentic/guides/modules/generators/index.md +1 -1
- package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
- package/dist/agentic/guides/modules/integrations/index.md +1 -1
- package/dist/agentic/guides/modules/messages/index.md +1 -1
- package/dist/agentic/guides/modules/notifications/index.md +1 -1
- package/dist/agentic/guides/modules/onboarding/index.md +1 -1
- package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
- package/dist/agentic/guides/modules/perspectives/index.md +1 -1
- package/dist/agentic/guides/modules/phone_calls/index.md +1 -1
- package/dist/agentic/guides/modules/planner/index.md +1 -1
- package/dist/agentic/guides/modules/portal/index.md +1 -1
- package/dist/agentic/guides/modules/progress/index.md +1 -1
- package/dist/agentic/guides/modules/promotions/index.md +1 -1
- package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
- package/dist/agentic/guides/modules/query_index/index.md +1 -1
- package/dist/agentic/guides/modules/record_locks/index.md +1 -1
- package/dist/agentic/guides/modules/resources/index.md +1 -1
- package/dist/agentic/guides/modules/sales/index.md +1 -1
- package/dist/agentic/guides/modules/scheduler/index.md +1 -1
- package/dist/agentic/guides/modules/search/index.md +1 -1
- package/dist/agentic/guides/modules/security/index.md +1 -1
- package/dist/agentic/guides/modules/seeds/index.md +1 -1
- package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
- package/dist/agentic/guides/modules/sso/index.md +1 -1
- package/dist/agentic/guides/modules/staff/active-extension-bindings.md +1 -1
- package/dist/agentic/guides/modules/staff/index.md +1 -1
- package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
- package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
- package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
- package/dist/agentic/guides/modules/sync_excel/owned-contract-module-metadata.md +1 -1
- package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
- package/dist/agentic/guides/modules/telemetry/index.md +1 -1
- package/dist/agentic/guides/modules/tillio/index.md +1 -1
- package/dist/agentic/guides/modules/translations/index.md +1 -1
- package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
- package/dist/agentic/guides/modules/webhooks/index.md +1 -1
- package/dist/agentic/guides/modules/wms/index.md +1 -1
- package/dist/agentic/guides/modules/workflows/index.md +1 -1
- package/dist/agentic/guides/reference-module-facts.json +1 -1
- package/dist/agentic/guides/upstream/manifest.json +1 -1
- package/dist/lib/generators/module-registry.js +18 -18
- package/dist/lib/generators/module-registry.js.map +2 -2
- package/package.json +7 -7
- package/src/lib/generators/__tests__/module-registry-requires-enforcement.test.ts +130 -0
- package/src/lib/generators/module-registry.ts +20 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# sso — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/enterprise 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/enterprise/src/modules/sso
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|---|---|---|---|---|---|---|
|
|
9
9
|
| api-route:staff/timesheets/time-entries:GET:api-interceptor-bridge | api-interceptor-bridge | api-route:staff/timesheets/time-entries GET @staff | api-interceptor | before | apiRoutes:/staff/timesheets/time-entries | [api/timesheets/time-entries/route.ts](../../../../node_modules/@open-mercato/core/src/modules/staff/api/timesheets/time-entries/route.ts) |
|
|
10
10
|
| entity:staff:staff_time_entry:crud-response-enricher | crud-response-enricher | entity:staff:staff_time_entry @staff | response-enricher | — | — | [api/timesheets/time-entries/route.ts:411](../../../../node_modules/@open-mercato/core/src/modules/staff/api/timesheets/time-entries/route.ts#L411) |
|
|
11
|
-
| entity:staff:staff_time_project:crud-response-enricher | crud-response-enricher | entity:staff:staff_time_project @staff | response-enricher | — | — | [api/timesheets/time-projects/route.ts:
|
|
11
|
+
| entity:staff:staff_time_project:crud-response-enricher | crud-response-enricher | entity:staff:staff_time_project @staff | response-enricher | — | — | [api/timesheets/time-projects/route.ts:359](../../../../node_modules/@open-mercato/core/src/modules/staff/api/timesheets/time-projects/route.ts#L359) |
|
|
12
12
|
| entity:staff:staff_time_report:crud-response-enricher | crud-response-enricher | entity:staff:staff_time_report @staff | response-enricher | — | — | [api/timesheets/reports/route.ts:277](../../../../node_modules/@open-mercato/core/src/modules/staff/api/timesheets/reports/route.ts#L277) |
|
|
13
13
|
| entity:staff:staff_time_task:crud-response-enricher | crud-response-enricher | entity:staff:staff_time_task @staff | response-enricher | — | — | [api/timesheets/tasks/route.ts:404](../../../../node_modules/@open-mercato/core/src/modules/staff/api/timesheets/tasks/route.ts#L404) |
|
|
14
14
|
| widget-spot:dashboard:staff.timesheets.hoursByProject:dashboard-host-consumer | dashboard-host-consumer | widget-spot:dashboard:staff.timesheets.hoursByProject @framework | widget | — | hosts:framework.dashboard | packages/ui/src |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# staff — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/staff
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# storage_s3 — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/storage-s3 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/storage-s3 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/storage-s3/src/modules/storage_s3
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# sync_akeneo — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/sync-akeneo 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/sync-akeneo 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/sync-akeneo/src/modules/sync_akeneo
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# sync_excel — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/sync_excel
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
| ID | Metadata | Source |
|
|
8
8
|
|---|---|---|
|
|
9
|
-
| sync_excel |
|
|
9
|
+
| sync_excel | requires=customers, data_sync | [index.ts:1](../../../../node_modules/@open-mercato/core/src/modules/sync_excel/index.ts#L1) |
|
|
10
10
|
|
|
11
11
|
<!-- end module facts section: sync_excel/owned-contract-module-metadata -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# system_status_overlays — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/enterprise 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/enterprise/src/modules/system_status_overlays
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# telemetry — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/telemetry 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/telemetry 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/telemetry/src/modules/telemetry
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# tillio — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/tillio 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/tillio 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/tillio/src/modules/tillio
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# translations — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/translations
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# warranty_claims — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/warranty_claims
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# webhooks — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/webhooks 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/webhooks 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/webhooks/src/modules/webhooks
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# wms — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/wms
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# workflows — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7841.1.af87ac614d; core 0.10.1-develop.7841.1.af87ac614d — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/workflows
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1185,7 +1185,7 @@
|
|
|
1185
1185
|
"facts": {
|
|
1186
1186
|
"title": "Example Module",
|
|
1187
1187
|
"description": "Demonstrates pages, APIs, entities and DI.",
|
|
1188
|
-
"coreVersion": "0.10.1-develop.
|
|
1188
|
+
"coreVersion": "0.10.1-develop.7841.1.af87ac614d",
|
|
1189
1189
|
"sourcePackage": null,
|
|
1190
1190
|
"sourceVersion": null,
|
|
1191
1191
|
"sourceRoot": "src/modules/example",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"generator": "@open-mercato/cli@0.10.1-develop.
|
|
3
|
+
"generator": "@open-mercato/cli@0.10.1-develop.7841.1.af87ac614d",
|
|
4
4
|
"files": {
|
|
5
5
|
"AGENTS.md": "b27342ee5f61e805ba52703fdb7ec822b030490f734b4d80f48dfd1e05fa4cf5",
|
|
6
6
|
"BACKWARD_COMPATIBILITY.md": "d47c2fbbf55f4363511576ac9ad009895afb5f4433c5b1527342e2ea1037b701"
|
|
@@ -1159,6 +1159,18 @@ function resolveApiPathFromMetadata(metadata, fallbackPath) {
|
|
|
1159
1159
|
const candidate = metadata.path;
|
|
1160
1160
|
return typeof candidate === "string" && candidate.length > 0 ? candidate : fallbackPath;
|
|
1161
1161
|
}
|
|
1162
|
+
function resolveModuleRequiresFromMetadata(metadata) {
|
|
1163
|
+
if (!metadata || typeof metadata !== "object") return void 0;
|
|
1164
|
+
const requires = metadata.requires;
|
|
1165
|
+
if (!Array.isArray(requires)) return void 0;
|
|
1166
|
+
const resolved = requires.filter((value) => typeof value === "string");
|
|
1167
|
+
return resolved.length > 0 ? resolved : void 0;
|
|
1168
|
+
}
|
|
1169
|
+
async function resolveModuleRequiresFromIndexFile(indexFileAbsolutePath) {
|
|
1170
|
+
const loadedModule = await loadModuleExportsFromSource(indexFileAbsolutePath);
|
|
1171
|
+
const metadata = loadedModule?.metadata ?? extractNamedObjectLiteralExport(indexFileAbsolutePath, "metadata");
|
|
1172
|
+
return resolveModuleRequiresFromMetadata(metadata);
|
|
1173
|
+
}
|
|
1162
1174
|
function detectExportedHttpMethods(sourceFile) {
|
|
1163
1175
|
let source = "";
|
|
1164
1176
|
try {
|
|
@@ -2790,12 +2802,8 @@ async function generateModuleRegistryFromDiscovery(options) {
|
|
|
2790
2802
|
const importPath = sanitizeGeneratedModuleSpecifier(indexResolved.importPath);
|
|
2791
2803
|
imports.push(buildImportStatement(`* as ${infoImportName}`, importPath));
|
|
2792
2804
|
runtimeImports.push(buildImportStatement(`* as ${infoImportName}`, importPath));
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
const reqs = mod?.metadata && Array.isArray(mod.metadata.requires) ? mod.metadata.requires : void 0;
|
|
2796
|
-
if (reqs && reqs.length) requiresByModule.set(modId, reqs);
|
|
2797
|
-
} catch {
|
|
2798
|
-
}
|
|
2805
|
+
const reqs = await resolveModuleRequiresFromIndexFile(indexResolved.absolutePath);
|
|
2806
|
+
if (reqs && reqs.length) requiresByModule.set(modId, reqs);
|
|
2799
2807
|
}
|
|
2800
2808
|
{
|
|
2801
2809
|
const feApp = path.join(roots.appBase, "frontend");
|
|
@@ -3436,12 +3444,8 @@ async function generateModuleRegistryAppFromDiscovery(options) {
|
|
|
3436
3444
|
const importPath = sanitizeGeneratedModuleSpecifier(indexResolved.importPath);
|
|
3437
3445
|
imports.push(buildImportStatement(`* as ${infoImportName}`, importPath));
|
|
3438
3446
|
bootstrapImports.push(buildImportStatement(`* as ${infoImportName}`, importPath));
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
const reqs = mod?.metadata && Array.isArray(mod.metadata.requires) ? mod.metadata.requires : void 0;
|
|
3442
|
-
if (reqs && reqs.length) requiresByModule.set(modId, reqs);
|
|
3443
|
-
} catch {
|
|
3444
|
-
}
|
|
3447
|
+
const reqs = await resolveModuleRequiresFromIndexFile(indexResolved.absolutePath);
|
|
3448
|
+
if (reqs && reqs.length) requiresByModule.set(modId, reqs);
|
|
3445
3449
|
}
|
|
3446
3450
|
{
|
|
3447
3451
|
const setup = resolveConventionFile(discovered.resolve("setup.ts"), "SETUP", modId, importIdRef, imports);
|
|
@@ -3826,12 +3830,8 @@ async function generateModuleRegistryCliFromDiscovery(options) {
|
|
|
3826
3830
|
infoImportName = `I${importIdRef.value++}_${toVar(modId)}`;
|
|
3827
3831
|
const importPath = sanitizeGeneratedModuleSpecifier(indexResolved.importPath);
|
|
3828
3832
|
imports.push(buildImportStatement(`* as ${infoImportName}`, importPath));
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
const reqs = mod?.metadata && Array.isArray(mod.metadata.requires) ? mod.metadata.requires : void 0;
|
|
3832
|
-
if (reqs && reqs.length) requiresByModule.set(modId, reqs);
|
|
3833
|
-
} catch {
|
|
3834
|
-
}
|
|
3833
|
+
const reqs = await resolveModuleRequiresFromIndexFile(indexResolved.absolutePath);
|
|
3834
|
+
if (reqs && reqs.length) requiresByModule.set(modId, reqs);
|
|
3835
3835
|
}
|
|
3836
3836
|
{
|
|
3837
3837
|
const setup = resolveConventionFile(discovered.resolve("setup.ts"), "SETUP", modId, importIdRef, imports);
|