@open-mercato/cli 0.11.1-develop.8503.1.82b9ad791d → 0.11.1-develop.8510.1.99665775e2
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/.turbo/turbo-build.log +1 -1
- package/dist/agentic/guides/module-facts.json +222 -172
- package/dist/agentic/guides/module-facts.v2.json +424 -174
- package/dist/agentic/guides/modules/agent_orchestrator/exact-override-targets.md +1 -1
- package/dist/agentic/guides/modules/agent_orchestrator/index.md +1 -1
- package/dist/agentic/guides/modules/agent_orchestrator/workers.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/active-extension-bindings.md +1 -0
- package/dist/agentic/guides/modules/dictionaries/incoming-installed-contributions.md +11 -0
- package/dist/agentic/guides/modules/dictionaries/index.md +4 -3
- package/dist/agentic/guides/modules/dictionaries/umes-hosts.md +1 -0
- 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/active-extension-bindings.md +1 -0
- package/dist/agentic/guides/modules/entities/incoming-installed-contributions.md +11 -0
- package/dist/agentic/guides/modules/entities/index.md +3 -2
- package/dist/agentic/guides/modules/entities/umes-hosts.md +1 -0
- package/dist/agentic/guides/modules/eudr/index.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/di-registrations-rich.md +2 -2
- package/dist/agentic/guides/modules/record_locks/di-service-tokens.md +2 -2
- package/dist/agentic/guides/modules/record_locks/exact-override-targets.md +2 -2
- 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/exact-override-targets.md +1 -1
- package/dist/agentic/guides/modules/scheduler/index.md +1 -1
- package/dist/agentic/guides/modules/scheduler/workers.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/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/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/contribution-resolutions.md +2 -0
- package/dist/agentic/guides/modules/translations/exact-override-targets.md +2 -0
- package/dist/agentic/guides/modules/translations/index.md +2 -2
- package/dist/agentic/guides/modules/translations/umes-contributions.md +2 -0
- 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/exact-override-targets.md +1 -1
- package/dist/agentic/guides/modules/workflows/index.md +1 -1
- package/dist/agentic/guides/modules/workflows/workers.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/web-research-adapters.js +6 -1
- package/dist/lib/generators/web-research-adapters.js.map +2 -2
- package/dist/mercato.js +5 -3
- package/dist/mercato.js.map +2 -2
- package/package.json +7 -7
- package/src/__tests__/mercato.test.ts +10 -4
- package/src/lib/generators/__tests__/web-research-adapters.test.ts +7 -0
- package/src/lib/generators/web-research-adapters.ts +6 -1
- package/src/mercato.ts +5 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# portal — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/portal
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# progress — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/progress
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# promotions — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/promotions
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# push_notifications — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/push_notifications
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# query_index — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/query_index
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
| Token | Kind | Lifetime | Injection | Provider | Source |
|
|
8
8
|
|---|---|---|---|---|---|
|
|
9
|
-
| commandOptimisticLockGuardService | function | scoped | proxy | — | [di.ts:
|
|
10
|
-
| crudMutationGuardService | function | scoped | proxy | — | [di.ts:
|
|
9
|
+
| commandOptimisticLockGuardService | function | scoped | proxy | — | [di.ts:61](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/di.ts#L61) |
|
|
10
|
+
| crudMutationGuardService | function | scoped | proxy | — | [di.ts:45](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/di.ts#L45) |
|
|
11
11
|
| recordLockService | function | scoped | proxy | — | [di.ts:17](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/di.ts#L17) |
|
|
12
12
|
|
|
13
13
|
<!-- end module facts section: record_locks/di-registrations-rich -->
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| Token | Source |
|
|
8
8
|
|---|---|
|
|
9
9
|
| recordLockService | [di.ts:17](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/di.ts#L17) |
|
|
10
|
-
| crudMutationGuardService | [di.ts:
|
|
11
|
-
| commandOptimisticLockGuardService | [di.ts:
|
|
10
|
+
| crudMutationGuardService | [di.ts:45](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/di.ts#L45) |
|
|
11
|
+
| commandOptimisticLockGuardService | [di.ts:61](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/di.ts#L61) |
|
|
12
12
|
|
|
13
13
|
<!-- end module facts section: record_locks/di-service-tokens -->
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
| acl | `overrides.acl.features["record_locks.manage"]` | disable-replace | aclFeatures:record_locks.manage | [acl.ts](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/acl.ts) |
|
|
11
11
|
| acl | `overrides.acl.features["record_locks.override_incoming"]` | disable-replace | aclFeatures:record_locks.override_incoming | [acl.ts](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/acl.ts) |
|
|
12
12
|
| acl | `overrides.acl.features["record_locks.view"]` | disable-replace | aclFeatures:record_locks.view | [acl.ts](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/acl.ts) |
|
|
13
|
-
| di | `overrides.di["commandOptimisticLockGuardService"]` | disable-replace | ownedContracts.di-registration:commandOptimisticLockGuardService | [di.ts:
|
|
14
|
-
| di | `overrides.di["crudMutationGuardService"]` | disable-replace | ownedContracts.di-registration:crudMutationGuardService | [di.ts:
|
|
13
|
+
| di | `overrides.di["commandOptimisticLockGuardService"]` | disable-replace | ownedContracts.di-registration:commandOptimisticLockGuardService | [di.ts:61](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/di.ts#L61) |
|
|
14
|
+
| di | `overrides.di["crudMutationGuardService"]` | disable-replace | ownedContracts.di-registration:crudMutationGuardService | [di.ts:45](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/di.ts#L45) |
|
|
15
15
|
| di | `overrides.di["recordLockService"]` | disable-replace | ownedContracts.di-registration:recordLockService | [di.ts:17](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/di.ts#L17) |
|
|
16
16
|
| events | `overrides.events.subscribers["record_locks:conflict-detected-notification"]` | disable-replace | extensionSurfaces.contributions:record_locks:conflict-detected-notification | [subscribers/conflict-detected-notification.ts](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/subscribers/conflict-detected-notification.ts) |
|
|
17
17
|
| events | `overrides.events.subscribers["record_locks:conflict-resolved-notification"]` | disable-replace | extensionSurfaces.contributions:record_locks:conflict-resolved-notification | [subscribers/conflict-resolved-notification.ts](../../../../node_modules/@open-mercato/enterprise/src/modules/record_locks/subscribers/conflict-resolved-notification.ts) |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# record_locks — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/enterprise 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/enterprise/src/modules/record_locks
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# resources — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/resources
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# sales — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/sales
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
| routes | `overrides.routes.pages["backend:/backend/config/scheduled-jobs/new"]` | disable-replace | backendPages:/backend/config/scheduled-jobs/new | [backend/config/scheduled-jobs/new/page.tsx](../../../../node_modules/@open-mercato/scheduler/src/modules/scheduler/backend/config/scheduled-jobs/new/page.tsx) |
|
|
24
24
|
| setup | `overrides.setup.defaultRoleFeatures` | replace | ownedContracts.setup:scheduler:setup | [setup.ts:3](../../../../node_modules/@open-mercato/scheduler/src/modules/scheduler/setup.ts#L3) |
|
|
25
25
|
| workers | `overrides.workers["scheduler:test-echo-queue"]` | disable-replace | ownedContracts.worker:scheduler:test-echo-queue | [workers/test-echo-queue.worker.ts:6](../../../../node_modules/@open-mercato/scheduler/src/modules/scheduler/workers/test-echo-queue.worker.ts#L6) |
|
|
26
|
-
| workers | `overrides.workers["scheduler:workers:execute-schedule.worker"]` | disable-replace | ownedContracts.worker:scheduler:workers:execute-schedule.worker | [workers/execute-schedule.worker.ts:
|
|
26
|
+
| workers | `overrides.workers["scheduler:workers:execute-schedule.worker"]` | disable-replace | ownedContracts.worker:scheduler:workers:execute-schedule.worker | [workers/execute-schedule.worker.ts:28](../../../../node_modules/@open-mercato/scheduler/src/modules/scheduler/workers/execute-schedule.worker.ts#L28) |
|
|
27
27
|
|
|
28
28
|
<!-- end module facts section: scheduler/exact-override-targets -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# scheduler — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/scheduler 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/scheduler 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/scheduler/src/modules/scheduler
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
| ID | Metadata | Source |
|
|
8
8
|
|---|---|---|
|
|
9
9
|
| scheduler:test-echo-queue | concurrency=1; queue=scheduler-test | [workers/test-echo-queue.worker.ts:6](../../../../node_modules/@open-mercato/scheduler/src/modules/scheduler/workers/test-echo-queue.worker.ts#L6) |
|
|
10
|
-
| scheduler:workers:execute-schedule.worker | concurrency=5; queue=scheduler-execution | [workers/execute-schedule.worker.ts:
|
|
10
|
+
| scheduler:workers:execute-schedule.worker | concurrency=5; queue=scheduler-execution | [workers/execute-schedule.worker.ts:28](../../../../node_modules/@open-mercato/scheduler/src/modules/scheduler/workers/execute-schedule.worker.ts#L28) |
|
|
11
11
|
|
|
12
12
|
<!-- end module facts section: scheduler/workers -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# search — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/search 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/search 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/search/src/modules/search
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# security — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/enterprise 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/enterprise/src/modules/security
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# seeds — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/seeds
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# shipping_carriers — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/shipping_carriers
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# sso — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/enterprise 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/enterprise/src/modules/sso
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# staff — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/storage-s3 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/sync-akeneo 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/sync_excel
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# system_status_overlays — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/enterprise 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/telemetry 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/tillio 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/tillio/src/modules/tillio
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -9,5 +9,7 @@
|
|
|
9
9
|
| translations-reindex-entity-on-delete | event:translations.translation.deleted @translations | capability-only | — | [subscribers/reindex-on-delete.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/subscribers/reindex-on-delete.ts) |
|
|
10
10
|
| translations-reindex-entity | event:translations.translation.updated @translations | capability-only | — | [subscribers/reindex.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/subscribers/reindex.ts) |
|
|
11
11
|
| translations:cleanup | event:query_index.delete_one @query_index | capability-only | — | [subscribers/cleanup.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/subscribers/cleanup.ts) |
|
|
12
|
+
| translations.injection.dictionary-entry-translation@dictionaries:entry:actions | widget-spot:dictionaries:entry:actions @dictionaries | bound | widget-spot:dictionaries:entry:actions:widget-injection-consumer | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/widgets/injection-table.ts) |
|
|
13
|
+
| translations.injection.field-definition-translation@entities:field-definition:actions | widget-spot:entities:field-definition:actions @entities | bound | widget-spot:entities:field-definition:actions:widget-injection-consumer | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/widgets/injection-table.ts) |
|
|
12
14
|
|
|
13
15
|
<!-- end module facts section: translations/contribution-resolutions -->
|
|
@@ -14,5 +14,7 @@
|
|
|
14
14
|
| events | `overrides.events.subscribers["translations:cleanup"]` | disable-replace | extensionSurfaces.contributions:translations:cleanup | [subscribers/cleanup.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/subscribers/cleanup.ts) |
|
|
15
15
|
| routes | `overrides.routes.pages["backend:/backend/config/translations"]` | disable-replace | backendPages:/backend/config/translations | [backend/config/translations/page.tsx](../../../../node_modules/@open-mercato/core/src/modules/translations/backend/config/translations/page.tsx) |
|
|
16
16
|
| setup | `overrides.setup.defaultRoleFeatures` | replace | ownedContracts.setup:translations:setup | [setup.ts:3](../../../../node_modules/@open-mercato/core/src/modules/translations/setup.ts#L3) |
|
|
17
|
+
| widgets | `overrides.widgets.injection["translations.injection.dictionary-entry-translation"]` | disable-replace | extensionSurfaces.contributions:translations.injection.dictionary-entry-translation@dictionaries:entry:actions | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/widgets/injection-table.ts) |
|
|
18
|
+
| widgets | `overrides.widgets.injection["translations.injection.field-definition-translation"]` | disable-replace | extensionSurfaces.contributions:translations.injection.field-definition-translation@entities:field-definition:actions | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/widgets/injection-table.ts) |
|
|
17
19
|
|
|
18
20
|
<!-- end module facts section: translations/exact-override-targets -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# translations — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/translations
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -11,7 +11,7 @@ Source root: node_modules/@open-mercato/core/src/modules/translations
|
|
|
11
11
|
- [UMES hosts](umes-hosts.md) — ~2 KB — Generated umes hosts facts for translations.
|
|
12
12
|
- [UMES contributions](umes-contributions.md) — ~2 KB — Generated umes contributions facts for translations.
|
|
13
13
|
- [Active extension bindings](active-extension-bindings.md) — ~1 KB — Generated active extension bindings facts for translations.
|
|
14
|
-
- [Contribution resolutions](contribution-resolutions.md) — ~
|
|
14
|
+
- [Contribution resolutions](contribution-resolutions.md) — ~2 KB — Generated contribution resolutions facts for translations.
|
|
15
15
|
- [Exact override targets](exact-override-targets.md) — ~3 KB — Generated exact override targets facts for translations.
|
|
16
16
|
- [Owned contract — module metadata](owned-contract-module-metadata.md) — ~1 KB — Generated owned contract — module metadata facts for translations.
|
|
17
17
|
- [Domain commands](domain-commands.md) — ~1 KB — Generated domain commands facts for translations.
|
|
@@ -9,5 +9,7 @@
|
|
|
9
9
|
| translations-reindex-entity | subscriber | translations.translation.updated | async-delivery | event=translations.translation.updated; persistent=true; subscriberId=translations-reindex-entity; sync=false | fact-ref | [subscribers/reindex.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/subscribers/reindex.ts) |
|
|
10
10
|
| translations-reindex-entity-on-delete | subscriber | translations.translation.deleted | async-delivery | event=translations.translation.deleted; persistent=true; subscriberId=translations-reindex-entity-on-delete; sync=false | fact-ref | [subscribers/reindex-on-delete.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/subscribers/reindex-on-delete.ts) |
|
|
11
11
|
| translations:cleanup | subscriber | query_index.delete_one | before-or-after | event=query_index.delete_one; persistent=false; subscriberId=translations:cleanup; sync=true | fact-ref | [subscribers/cleanup.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/subscribers/cleanup.ts) |
|
|
12
|
+
| translations.injection.dictionary-entry-translation@dictionaries:entry:actions | widget | dictionaries:entry:actions | — | executionGuard=host; payload=render; registryKey=translations.injection.dictionary-entry-translation | exact | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/widgets/injection-table.ts) |
|
|
13
|
+
| translations.injection.field-definition-translation@entities:field-definition:actions | widget | entities:field-definition:actions | — | executionGuard=host; payload=render; registryKey=translations.injection.field-definition-translation | exact | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/core/src/modules/translations/widgets/injection-table.ts) |
|
|
12
14
|
|
|
13
15
|
<!-- end module facts section: translations/umes-contributions -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# warranty_claims — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/webhooks 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/wms
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
| widgets | `overrides.widgets.injection["workflows.injection.order-approval"]` | disable-replace | extensionSurfaces.contributions:workflows.injection.order-approval@sales.document.detail.order:details | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/widgets/injection-table.ts) |
|
|
90
90
|
| widgets | `overrides.widgets.injection["workflows.injection.pending-work"]` | disable-replace | extensionSurfaces.contributions:workflows.injection.pending-work@detail:customers.company:tabs | [widgets/injection-table.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/widgets/injection-table.ts) |
|
|
91
91
|
| workers | `overrides.workers["workflows:definition-metric-rollup"]` | disable-replace | ownedContracts.worker:workflows:definition-metric-rollup | [workers/workflow-definition-metric-rollup.worker.ts:16](../../../../node_modules/@open-mercato/core/src/modules/workflows/workers/workflow-definition-metric-rollup.worker.ts#L16) |
|
|
92
|
-
| workers | `overrides.workers["workflows:instance-bulk-replay"]` | disable-replace | ownedContracts.worker:workflows:instance-bulk-replay | [workers/workflow-instance-bulk-replay.ts:
|
|
92
|
+
| workers | `overrides.workers["workflows:instance-bulk-replay"]` | disable-replace | ownedContracts.worker:workflows:instance-bulk-replay | [workers/workflow-instance-bulk-replay.ts:15](../../../../node_modules/@open-mercato/core/src/modules/workflows/workers/workflow-instance-bulk-replay.ts#L15) |
|
|
93
93
|
| workers | `overrides.workers["workflows:workflow-activities"]` | disable-replace | ownedContracts.worker:workflows:workflow-activities | [workers/workflow-activities.worker.ts:34](../../../../node_modules/@open-mercato/core/src/modules/workflows/workers/workflow-activities.worker.ts#L34) |
|
|
94
94
|
| workers | `overrides.workers["workflows:workflow-invoke-agent"]` | disable-replace | ownedContracts.worker:workflows:workflow-invoke-agent | [workers/workflow-invoke-agent.worker.ts:32](../../../../node_modules/@open-mercato/core/src/modules/workflows/workers/workflow-invoke-agent.worker.ts#L32) |
|
|
95
95
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# workflows — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8510.1.99665775e2; core 0.11.1-develop.8510.1.99665775e2 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/workflows
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| ID | Metadata | Source |
|
|
8
8
|
|---|---|---|
|
|
9
9
|
| workflows:definition-metric-rollup | concurrency=1; queue=workflow-definition-metric-rollup | [workers/workflow-definition-metric-rollup.worker.ts:16](../../../../node_modules/@open-mercato/core/src/modules/workflows/workers/workflow-definition-metric-rollup.worker.ts#L16) |
|
|
10
|
-
| workflows:instance-bulk-replay | concurrency=1; queue=workflow-instance-bulk-replay | [workers/workflow-instance-bulk-replay.ts:
|
|
10
|
+
| workflows:instance-bulk-replay | concurrency=1; queue=workflow-instance-bulk-replay | [workers/workflow-instance-bulk-replay.ts:15](../../../../node_modules/@open-mercato/core/src/modules/workflows/workers/workflow-instance-bulk-replay.ts#L15) |
|
|
11
11
|
| workflows:workflow-activities | queue=workflow-activities | [workers/workflow-activities.worker.ts:34](../../../../node_modules/@open-mercato/core/src/modules/workflows/workers/workflow-activities.worker.ts#L34) |
|
|
12
12
|
| workflows:workflow-invoke-agent | queue=workflow-invoke-agent | [workers/workflow-invoke-agent.worker.ts:32](../../../../node_modules/@open-mercato/core/src/modules/workflows/workers/workflow-invoke-agent.worker.ts#L32) |
|
|
13
13
|
|
|
@@ -1185,7 +1185,7 @@
|
|
|
1185
1185
|
"facts": {
|
|
1186
1186
|
"title": "Example Module",
|
|
1187
1187
|
"description": "Demonstrates pages, APIs, entities and DI.",
|
|
1188
|
-
"coreVersion": "0.11.1-develop.
|
|
1188
|
+
"coreVersion": "0.11.1-develop.8510.1.99665775e2",
|
|
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.11.1-develop.
|
|
3
|
+
"generator": "@open-mercato/cli@0.11.1-develop.8510.1.99665775e2",
|
|
4
4
|
"files": {
|
|
5
5
|
"AGENTS.md": "35c948a32e06ca64b4706970c55ec60946412b410938b22478233a2c5c43df56",
|
|
6
6
|
"BACKWARD_COMPATIBILITY.md": "aea1d1d36fcaf0446e7b4db7f07897f64f3e25e4ff61251170103c44d036173d"
|
|
@@ -97,7 +97,12 @@ async function generateWebResearchAdapters(options) {
|
|
|
97
97
|
// Source: packages declaring \`${MANIFEST_NAMESPACE}.${ADAPTER_MANIFEST_KEY}\` in package.json.
|
|
98
98
|
// Regenerate with: yarn generate
|
|
99
99
|
// Adapter packages that are not installed where this registry runs are skipped.
|
|
100
|
-
|
|
100
|
+
// Structurally identical to \`AdapterRegistryEntry\` in @open-mercato/web-research, declared
|
|
101
|
+
// inline so apps that do not install that package still typecheck.
|
|
102
|
+
type AdapterRegistryEntry = {
|
|
103
|
+
readonly packageName: string
|
|
104
|
+
readonly module: unknown
|
|
105
|
+
}
|
|
101
106
|
|
|
102
107
|
${renderEntries(adapters)}`;
|
|
103
108
|
writeGeneratedFile({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/lib/generators/web-research-adapters.ts"],
|
|
4
|
-
"sourcesContent": ["import fs from 'node:fs'\nimport path from 'node:path'\nimport type { PackageResolver } from '../resolver'\nimport { calculateStructureChecksum, createGeneratorResult, type GeneratorResult, writeGeneratedFile } from '../utils'\n\nexport interface WebResearchAdaptersOptions {\n resolver: PackageResolver\n quiet?: boolean\n}\n\n/**\n * Mirrors `openMercato.webResearchAdapter` in `@open-mercato/web-research`. It is\n * duplicated rather than imported because the CLI must not depend on the engine\n * package to run its generators.\n */\nconst MANIFEST_NAMESPACE = 'openMercato'\nconst ADAPTER_MANIFEST_KEY = 'webResearchAdapter'\n\ntype DiscoveredAdapter = {\n packageName: string\n adapterId: string\n sourceRoot: string\n}\n\nfunction readJson(file: string): unknown {\n try {\n return JSON.parse(fs.readFileSync(file, 'utf8'))\n } catch {\n return null\n }\n}\n\nfunction readManifest(packageJsonPath: string): DiscoveredAdapter | null {\n const parsed = readJson(packageJsonPath)\n if (typeof parsed !== 'object' || parsed === null) return null\n const pkg = parsed as Record<string, unknown>\n const namespace = pkg[MANIFEST_NAMESPACE]\n if (typeof namespace !== 'object' || namespace === null) return null\n const manifest = (namespace as Record<string, unknown>)[ADAPTER_MANIFEST_KEY]\n if (typeof manifest !== 'object' || manifest === null) return null\n const adapterId = (manifest as Record<string, unknown>).id\n const packageName = pkg.name\n if (typeof packageName !== 'string' || packageName.length === 0) return null\n if (typeof adapterId !== 'string' || adapterId.length === 0) return null\n return { packageName, adapterId, sourceRoot: path.dirname(packageJsonPath) }\n}\n\nfunction scanDirectory(root: string, results: Map<string, DiscoveredAdapter>): void {\n if (!fs.existsSync(root)) return\n let entries: fs.Dirent[]\n try {\n entries = fs.readdirSync(root, { withFileTypes: true })\n } catch {\n return\n }\n for (const entry of entries) {\n if (!entry.isDirectory() && !entry.isSymbolicLink()) continue\n if (entry.name === '.bin' || entry.name === '.cache') continue\n const child = path.join(root, entry.name)\n // Scoped packages nest one level deeper (`@scope/name`).\n if (entry.name.startsWith('@')) {\n scanDirectory(child, results)\n continue\n }\n const discovered = readManifest(path.join(child, 'package.json'))\n if (discovered && !results.has(discovered.packageName)) results.set(discovered.packageName, discovered)\n }\n}\n\nfunction renderEntries(adapters: readonly DiscoveredAdapter[]): string {\n if (adapters.length === 0) return 'export const webResearchAdapterEntries: AdapterRegistryEntry[] = []\\n'\n const loaders = adapters\n .map(\n (adapter) =>\n ` loadAdapterEntry('${adapter.packageName}', () => import('${adapter.packageName}')),`,\n )\n .join('\\n')\n return `const MISSING_MODULE_CODES = new Set(['ERR_MODULE_NOT_FOUND', 'MODULE_NOT_FOUND'])\n\nasync function loadAdapterEntry(\n packageName: string,\n load: () => Promise<unknown>,\n): Promise<AdapterRegistryEntry | null> {\n try {\n return { packageName, module: await load() }\n } catch (error) {\n const { code, message } = (error ?? {}) as { code?: unknown; message?: unknown }\n const isMissingCode = typeof code === 'string' && MISSING_MODULE_CODES.has(code)\n const namesThisPackage = typeof message === 'string' && message.includes(\\`'\\${packageName}'\\`)\n if (isMissingCode && namesThisPackage) return null\n throw error\n }\n}\n\nconst loadedEntries = await Promise.all([\n${loaders}\n])\n\nexport const webResearchAdapterEntries: AdapterRegistryEntry[] = loadedEntries.filter(\n (entry): entry is AdapterRegistryEntry => entry !== null,\n)\n`\n}\n\n/**\n * Emits the adapter registry. Discovery happens here, at build time, because a\n * bundler cannot follow `import()` with a runtime-computed specifier \u2014 a dynamic\n * registry would resolve to nothing under Turbopack. Each adapter is imported\n * with a literal specifier and a package that is not installed where the\n * registry runs is skipped: discovery scans the whole workspace, but a process\n * such as a worker in a production image only has the app's own dependencies.\n */\nexport async function generateWebResearchAdapters(\n options: WebResearchAdaptersOptions,\n): Promise<GeneratorResult> {\n const { resolver, quiet } = options\n const result = createGeneratorResult()\n const outputDir = resolver.getOutputDir()\n const outFile = path.join(outputDir, 'web-research-adapters.generated.ts')\n const checksumFile = path.join(outputDir, 'web-research-adapters.checksum')\n\n const appDir = resolver.getAppDir()\n const repoRoot = path.resolve(appDir, '..', '..')\n const discovered = new Map<string, DiscoveredAdapter>()\n const scanRoots = [\n path.join(repoRoot, 'packages'),\n path.join(repoRoot, 'node_modules'),\n path.join(appDir, 'node_modules'),\n ]\n for (const root of scanRoots) scanDirectory(root, discovered)\n\n const adapters = [...discovered.values()].sort((left, right) =>\n left.packageName.localeCompare(right.packageName),\n )\n\n const content = `// AUTO-GENERATED \u2014 do not edit by hand.\n// Source: packages declaring \\`${MANIFEST_NAMESPACE}.${ADAPTER_MANIFEST_KEY}\\` in package.json.\n// Regenerate with: yarn generate\n// Adapter packages that are not installed where this registry runs are skipped.\
|
|
5
|
-
"mappings": "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
|
|
4
|
+
"sourcesContent": ["import fs from 'node:fs'\nimport path from 'node:path'\nimport type { PackageResolver } from '../resolver'\nimport { calculateStructureChecksum, createGeneratorResult, type GeneratorResult, writeGeneratedFile } from '../utils'\n\nexport interface WebResearchAdaptersOptions {\n resolver: PackageResolver\n quiet?: boolean\n}\n\n/**\n * Mirrors `openMercato.webResearchAdapter` in `@open-mercato/web-research`. It is\n * duplicated rather than imported because the CLI must not depend on the engine\n * package to run its generators.\n */\nconst MANIFEST_NAMESPACE = 'openMercato'\nconst ADAPTER_MANIFEST_KEY = 'webResearchAdapter'\n\ntype DiscoveredAdapter = {\n packageName: string\n adapterId: string\n sourceRoot: string\n}\n\nfunction readJson(file: string): unknown {\n try {\n return JSON.parse(fs.readFileSync(file, 'utf8'))\n } catch {\n return null\n }\n}\n\nfunction readManifest(packageJsonPath: string): DiscoveredAdapter | null {\n const parsed = readJson(packageJsonPath)\n if (typeof parsed !== 'object' || parsed === null) return null\n const pkg = parsed as Record<string, unknown>\n const namespace = pkg[MANIFEST_NAMESPACE]\n if (typeof namespace !== 'object' || namespace === null) return null\n const manifest = (namespace as Record<string, unknown>)[ADAPTER_MANIFEST_KEY]\n if (typeof manifest !== 'object' || manifest === null) return null\n const adapterId = (manifest as Record<string, unknown>).id\n const packageName = pkg.name\n if (typeof packageName !== 'string' || packageName.length === 0) return null\n if (typeof adapterId !== 'string' || adapterId.length === 0) return null\n return { packageName, adapterId, sourceRoot: path.dirname(packageJsonPath) }\n}\n\nfunction scanDirectory(root: string, results: Map<string, DiscoveredAdapter>): void {\n if (!fs.existsSync(root)) return\n let entries: fs.Dirent[]\n try {\n entries = fs.readdirSync(root, { withFileTypes: true })\n } catch {\n return\n }\n for (const entry of entries) {\n if (!entry.isDirectory() && !entry.isSymbolicLink()) continue\n if (entry.name === '.bin' || entry.name === '.cache') continue\n const child = path.join(root, entry.name)\n // Scoped packages nest one level deeper (`@scope/name`).\n if (entry.name.startsWith('@')) {\n scanDirectory(child, results)\n continue\n }\n const discovered = readManifest(path.join(child, 'package.json'))\n if (discovered && !results.has(discovered.packageName)) results.set(discovered.packageName, discovered)\n }\n}\n\nfunction renderEntries(adapters: readonly DiscoveredAdapter[]): string {\n if (adapters.length === 0) return 'export const webResearchAdapterEntries: AdapterRegistryEntry[] = []\\n'\n const loaders = adapters\n .map(\n (adapter) =>\n ` loadAdapterEntry('${adapter.packageName}', () => import('${adapter.packageName}')),`,\n )\n .join('\\n')\n return `const MISSING_MODULE_CODES = new Set(['ERR_MODULE_NOT_FOUND', 'MODULE_NOT_FOUND'])\n\nasync function loadAdapterEntry(\n packageName: string,\n load: () => Promise<unknown>,\n): Promise<AdapterRegistryEntry | null> {\n try {\n return { packageName, module: await load() }\n } catch (error) {\n const { code, message } = (error ?? {}) as { code?: unknown; message?: unknown }\n const isMissingCode = typeof code === 'string' && MISSING_MODULE_CODES.has(code)\n const namesThisPackage = typeof message === 'string' && message.includes(\\`'\\${packageName}'\\`)\n if (isMissingCode && namesThisPackage) return null\n throw error\n }\n}\n\nconst loadedEntries = await Promise.all([\n${loaders}\n])\n\nexport const webResearchAdapterEntries: AdapterRegistryEntry[] = loadedEntries.filter(\n (entry): entry is AdapterRegistryEntry => entry !== null,\n)\n`\n}\n\n/**\n * Emits the adapter registry. Discovery happens here, at build time, because a\n * bundler cannot follow `import()` with a runtime-computed specifier \u2014 a dynamic\n * registry would resolve to nothing under Turbopack. Each adapter is imported\n * with a literal specifier and a package that is not installed where the\n * registry runs is skipped: discovery scans the whole workspace, but a process\n * such as a worker in a production image only has the app's own dependencies.\n */\nexport async function generateWebResearchAdapters(\n options: WebResearchAdaptersOptions,\n): Promise<GeneratorResult> {\n const { resolver, quiet } = options\n const result = createGeneratorResult()\n const outputDir = resolver.getOutputDir()\n const outFile = path.join(outputDir, 'web-research-adapters.generated.ts')\n const checksumFile = path.join(outputDir, 'web-research-adapters.checksum')\n\n const appDir = resolver.getAppDir()\n const repoRoot = path.resolve(appDir, '..', '..')\n const discovered = new Map<string, DiscoveredAdapter>()\n const scanRoots = [\n path.join(repoRoot, 'packages'),\n path.join(repoRoot, 'node_modules'),\n path.join(appDir, 'node_modules'),\n ]\n for (const root of scanRoots) scanDirectory(root, discovered)\n\n const adapters = [...discovered.values()].sort((left, right) =>\n left.packageName.localeCompare(right.packageName),\n )\n\n const content = `// AUTO-GENERATED \u2014 do not edit by hand.\n// Source: packages declaring \\`${MANIFEST_NAMESPACE}.${ADAPTER_MANIFEST_KEY}\\` in package.json.\n// Regenerate with: yarn generate\n// Adapter packages that are not installed where this registry runs are skipped.\n// Structurally identical to \\`AdapterRegistryEntry\\` in @open-mercato/web-research, declared\n// inline so apps that do not install that package still typecheck.\ntype AdapterRegistryEntry = {\n readonly packageName: string\n readonly module: unknown\n}\n\n${renderEntries(adapters)}`\n\n writeGeneratedFile({\n outFile,\n checksumFile,\n content,\n structureChecksum: calculateStructureChecksum(adapters.map((adapter) => adapter.sourceRoot)),\n result,\n quiet,\n })\n\n return result\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/mercato.js
CHANGED
|
@@ -981,9 +981,11 @@ async function run(argv = process.argv) {
|
|
|
981
981
|
registerCliModules(bootstrapData.modules);
|
|
982
982
|
console.log("\u2705 Bootstrap complete\n");
|
|
983
983
|
const allModules = await buildAllModules();
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
984
|
+
if (allModules.some((module) => module.id === "configs")) {
|
|
985
|
+
console.log("\u2699\uFE0F Restoring module defaults...");
|
|
986
|
+
await runModuleCommand(allModules, "configs", "restore-defaults", []);
|
|
987
|
+
console.log("\u2705 Module defaults restored\n");
|
|
988
|
+
}
|
|
987
989
|
const findArgValue = (names, fallback) => {
|
|
988
990
|
for (const name of names) {
|
|
989
991
|
const match = initArgs.find((arg) => arg.startsWith(name));
|