@open-mercato/cli 0.7.1-develop.7193.1.910a5b0a1e → 0.7.1-develop.7194.1.ab4fc81f82
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 +6 -2
- package/dist/agentic/github-copilot/copilot-instructions.md.template +37 -0
- package/dist/agentic/github-copilot/instructions/entity-guard.instructions.md +27 -0
- package/dist/agentic/github-copilot/instructions/generated-guard.instructions.md +10 -0
- package/dist/agentic/github-copilot/mcp.json.example +13 -0
- package/dist/agentic/guides/module-facts.json +11527 -283
- package/dist/agentic/guides/module-facts.v2.json +11527 -283
- package/dist/agentic/guides/modules/agent_orchestrator/acl-features.md +31 -0
- package/dist/agentic/guides/modules/agent_orchestrator/active-extension-bindings.md +12 -0
- package/dist/agentic/guides/modules/agent_orchestrator/ai-agents.md +12 -0
- package/dist/agentic/guides/modules/agent_orchestrator/ai-tools-mcp-capabilities.md +13 -0
- package/dist/agentic/guides/modules/agent_orchestrator/backend-pages.md +28 -0
- package/dist/agentic/guides/modules/agent_orchestrator/cli-commands.md +14 -0
- package/dist/agentic/guides/modules/agent_orchestrator/contribution-resolutions.md +49 -0
- package/dist/agentic/guides/modules/agent_orchestrator/di-registrations-rich.md +42 -0
- package/dist/agentic/guides/modules/agent_orchestrator/di-service-tokens.md +24 -0
- package/dist/agentic/guides/modules/agent_orchestrator/domain-commands.md +28 -0
- package/dist/agentic/guides/modules/agent_orchestrator/encryption.md +20 -0
- package/dist/agentic/guides/modules/agent_orchestrator/entities.md +31 -0
- package/dist/agentic/guides/modules/agent_orchestrator/events.md +38 -0
- package/dist/agentic/guides/modules/agent_orchestrator/exact-override-targets.md +122 -0
- package/dist/agentic/guides/modules/agent_orchestrator/host-extension-points.md +10 -0
- package/dist/agentic/guides/modules/agent_orchestrator/index.md +31 -0
- package/dist/agentic/guides/modules/agent_orchestrator/owned-contract-module-metadata.md +11 -0
- package/dist/agentic/guides/modules/agent_orchestrator/setup.md +11 -0
- package/dist/agentic/guides/modules/agent_orchestrator/umes-contributions.md +49 -0
- package/dist/agentic/guides/modules/agent_orchestrator/umes-hosts.md +61 -0
- package/dist/agentic/guides/modules/agent_orchestrator/workers.md +14 -0
- package/dist/agentic/guides/modules/ai_assistant/di-registrations-rich.md +3 -2
- package/dist/agentic/guides/modules/ai_assistant/di-service-tokens.md +2 -1
- package/dist/agentic/guides/modules/ai_assistant/exact-override-targets.md +3 -2
- 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/business_rules/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/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/cli-commands.md +11 -0
- package/dist/agentic/guides/modules/customer_accounts/exact-override-targets.md +5 -4
- package/dist/agentic/guides/modules/customer_accounts/index.md +3 -2
- package/dist/agentic/guides/modules/customer_accounts/setup.md +1 -1
- package/dist/agentic/guides/modules/customers/contribution-resolutions.md +1 -0
- package/dist/agentic/guides/modules/customers/exact-override-targets.md +1 -0
- package/dist/agentic/guides/modules/customers/incoming-installed-contributions.md +3 -0
- package/dist/agentic/guides/modules/customers/index.md +2 -2
- package/dist/agentic/guides/modules/customers/umes-contributions.md +1 -0
- 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/entities/index.md +1 -1
- 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/gateway_stripe/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/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/cli-commands.md +14 -0
- package/dist/agentic/guides/modules/seeds/exact-override-targets.md +14 -0
- package/dist/agentic/guides/modules/seeds/index.md +14 -0
- package/dist/agentic/guides/modules/seeds/owned-contract-module-metadata.md +11 -0
- 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/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/acl-features.md +11 -1
- package/dist/agentic/guides/modules/workflows/active-extension-bindings.md +4 -1
- package/dist/agentic/guides/modules/workflows/ai-tools-mcp-capabilities.md +17 -0
- package/dist/agentic/guides/modules/workflows/backend-pages.md +3 -0
- package/dist/agentic/guides/modules/workflows/contribution-resolutions.md +24 -0
- package/dist/agentic/guides/modules/workflows/di-registrations-rich.md +11 -7
- package/dist/agentic/guides/modules/workflows/di-service-tokens.md +11 -7
- package/dist/agentic/guides/modules/workflows/domain-commands.md +11 -0
- package/dist/agentic/guides/modules/workflows/entities.md +2 -0
- package/dist/agentic/guides/modules/workflows/events.md +14 -8
- package/dist/agentic/guides/modules/workflows/exact-override-targets.md +45 -10
- package/dist/agentic/guides/modules/workflows/frontend-pages.md +2 -0
- package/dist/agentic/guides/modules/workflows/incoming-installed-contributions.md +17 -0
- package/dist/agentic/guides/modules/workflows/index.md +15 -12
- package/dist/agentic/guides/modules/workflows/notifications.md +2 -0
- package/dist/agentic/guides/modules/workflows/setup.md +1 -1
- package/dist/agentic/guides/modules/workflows/umes-contributions.md +24 -0
- package/dist/agentic/guides/modules/workflows/umes-hosts.md +14 -6
- package/dist/agentic/guides/modules/workflows/workers.md +4 -1
- package/dist/agentic/guides/reference-module-facts.json +2 -2
- package/dist/agentic/guides/reference-modules/example/index.md +1 -1
- package/dist/agentic/guides/upstream/AGENTS.md +3 -1
- package/dist/agentic/guides/upstream/manifest.json +2 -2
- package/dist/agentic/shared/ai/harness/design-system-inventory.json +118 -106
- package/dist/agentic/shared/ai/harness/source-link-inventory.json +8 -8
- package/dist/lib/agentic-init.js +4 -0
- package/dist/lib/agentic-init.js.map +2 -2
- package/dist/lib/agentic-setup.js +19 -5
- package/dist/lib/agentic-setup.js.map +2 -2
- package/dist/lib/generators/extensions/agent-files.js +913 -0
- package/dist/lib/generators/extensions/agent-files.js.map +7 -0
- package/dist/lib/generators/extensions/index.js +2 -0
- package/dist/lib/generators/extensions/index.js.map +2 -2
- package/dist/lib/generators/index.js +3 -1
- package/dist/lib/generators/index.js.map +2 -2
- package/dist/lib/generators/module-registry.js +40 -11
- package/dist/lib/generators/module-registry.js.map +2 -2
- package/dist/lib/generators/route-collisions.js +35 -0
- package/dist/lib/generators/route-collisions.js.map +7 -0
- package/dist/lib/generators/web-research-adapters.js +95 -0
- package/dist/lib/generators/web-research-adapters.js.map +7 -0
- package/dist/mercato.js +5 -2
- package/dist/mercato.js.map +2 -2
- package/package.json +6 -6
- package/src/__tests__/agent-files.test.ts +199 -0
- package/src/__tests__/mercato.test.ts +14 -0
- package/src/lib/__tests__/agentic-init.test.ts +11 -0
- package/src/lib/__tests__/agentic-setup.ownership.test.ts +5 -0
- package/src/lib/agentic-init.ts +4 -0
- package/src/lib/agentic-setup.ts +30 -5
- package/src/lib/generators/__tests__/agent-files-extension.test.ts +477 -0
- package/src/lib/generators/__tests__/module-facts.bc-guard.test.ts +25 -8
- package/src/lib/generators/__tests__/route-collisions.test.ts +155 -0
- package/src/lib/generators/extensions/agent-files.ts +1332 -0
- package/src/lib/generators/extensions/index.ts +2 -0
- package/src/lib/generators/index.ts +1 -0
- package/src/lib/generators/module-registry.ts +66 -17
- package/src/lib/generators/route-collisions.ts +57 -0
- package/src/lib/generators/web-research-adapters.ts +133 -0
- package/src/mercato.ts +4 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[build:cli] found
|
|
1
|
+
[build:cli] found 111 entry points
|
|
2
2
|
Copied create-app/agentic/ → dist/agentic.staging/
|
|
3
3
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for ai_assistant
|
|
4
4
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for channel_apns
|
|
@@ -49,6 +49,7 @@ Copied create-app/agentic/ → dist/agentic.staging/
|
|
|
49
49
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for query_index
|
|
50
50
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for resources
|
|
51
51
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for sales
|
|
52
|
+
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for seeds
|
|
52
53
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for shipping_carriers
|
|
53
54
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for staff
|
|
54
55
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for sync_excel
|
|
@@ -58,6 +59,7 @@ Copied create-app/agentic/ → dist/agentic.staging/
|
|
|
58
59
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for workflows
|
|
59
60
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for documents
|
|
60
61
|
[module-facts] searchConfig entityId is not statically resolvable: /home/runner/work/open-mercato/open-mercato/packages/documents/src/modules/documents/search.ts:93
|
|
62
|
+
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for agent_orchestrator
|
|
61
63
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for record_locks
|
|
62
64
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for security
|
|
63
65
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for sso
|
|
@@ -72,7 +74,7 @@ Copied create-app/agentic/ → dist/agentic.staging/
|
|
|
72
74
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for sync_akeneo
|
|
73
75
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for tillio
|
|
74
76
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for webhooks
|
|
75
|
-
Generated
|
|
77
|
+
Generated 70 module fact-sheets → dist/agentic.staging/guides/modules/
|
|
76
78
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for ai_assistant
|
|
77
79
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for channel_apns
|
|
78
80
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for channel_discord
|
|
@@ -122,6 +124,7 @@ Generated 68 module fact-sheets → dist/agentic.staging/guides/modules/
|
|
|
122
124
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for query_index
|
|
123
125
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for resources
|
|
124
126
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for sales
|
|
127
|
+
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for seeds
|
|
125
128
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for shipping_carriers
|
|
126
129
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for staff
|
|
127
130
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for sync_excel
|
|
@@ -131,6 +134,7 @@ Generated 68 module fact-sheets → dist/agentic.staging/guides/modules/
|
|
|
131
134
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for workflows
|
|
132
135
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for documents
|
|
133
136
|
[module-facts] searchConfig entityId is not statically resolvable: /home/runner/work/open-mercato/open-mercato/packages/documents/src/modules/documents/search.ts:93
|
|
137
|
+
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for agent_orchestrator
|
|
134
138
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for record_locks
|
|
135
139
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for security
|
|
136
140
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for sso
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# {{PROJECT_NAME}} — GitHub Copilot Instructions
|
|
2
|
+
|
|
3
|
+
These are repository-wide custom instructions for GitHub Copilot. Copilot applies
|
|
4
|
+
them to every chat and edit request in this workspace.
|
|
5
|
+
|
|
6
|
+
## What this project is
|
|
7
|
+
|
|
8
|
+
A standalone Open Mercato application. Build domain features ON TOP of the framework.
|
|
9
|
+
To customise a core module beyond the extension system: `yarn mercato eject <module>`.
|
|
10
|
+
Never edit `node_modules/@open-mercato/*` directly.
|
|
11
|
+
|
|
12
|
+
## Task routing
|
|
13
|
+
|
|
14
|
+
Read `AGENTS.md` before starting any task — it maps task types to the minimum files
|
|
15
|
+
to load. Path-scoped guidance lives in `.github/instructions/*.instructions.md`.
|
|
16
|
+
|
|
17
|
+
## Module system
|
|
18
|
+
|
|
19
|
+
Modules in `src/modules/<id>/`. Register with `from: '@app'` in `src/modules.ts`.
|
|
20
|
+
Run `yarn generate` after any module or entity change. Never edit `.mercato/generated/*`.
|
|
21
|
+
|
|
22
|
+
## CRITICAL rules — always follow without exception
|
|
23
|
+
|
|
24
|
+
1. **After editing any entity file** (`src/modules/<id>/entities/*.ts`):
|
|
25
|
+
- STOP before any further action.
|
|
26
|
+
- Tell the user: "I modified an entity in module <id>. Should I create a migration?"
|
|
27
|
+
- If yes: run `yarn db:generate`.
|
|
28
|
+
- Show the generated migration to the user before applying.
|
|
29
|
+
- Ask for confirmation, then run `yarn db:migrate`.
|
|
30
|
+
- Run `yarn generate` after the migration is applied.
|
|
31
|
+
|
|
32
|
+
2. **After editing `src/modules.ts`**: immediately run `yarn generate`.
|
|
33
|
+
|
|
34
|
+
3. **Never edit `.mercato/generated/*`**: edit the source and run `yarn generate` instead.
|
|
35
|
+
|
|
36
|
+
4. **Before significant features**: check `.ai/specs/` for an existing spec. If none
|
|
37
|
+
exists, ask the user whether to create one first.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Entity modification guard — triggers migration workflow
|
|
3
|
+
applyTo: "src/modules/*/entities/**/*.ts"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Entity Modification — Migration Required
|
|
7
|
+
|
|
8
|
+
You are editing an entity file. After saving, you MUST:
|
|
9
|
+
|
|
10
|
+
1. **Create a migration** — ask the user before running:
|
|
11
|
+
```
|
|
12
|
+
yarn db:generate
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
2. **Show the migration** to the user and wait for confirmation before applying.
|
|
16
|
+
|
|
17
|
+
3. **Apply the migration** (only after the user confirms):
|
|
18
|
+
```
|
|
19
|
+
yarn db:migrate
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
4. **Regenerate registries**:
|
|
23
|
+
```
|
|
24
|
+
yarn generate
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Do NOT skip any step. Do NOT run migrations without user confirmation.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Prevent editing auto-generated files
|
|
3
|
+
applyTo: ".mercato/generated/**"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# NEVER Edit Generated Files
|
|
7
|
+
|
|
8
|
+
These files are auto-generated by `yarn generate`. Any manual edits will be overwritten.
|
|
9
|
+
|
|
10
|
+
To change generated output, edit the source modules in `src/modules/` and run `yarn generate`.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Copy to .vscode/mcp.json and set MCP_API_KEY (printed by yarn initialize). VS Code Copilot uses the top-level \"servers\" key.",
|
|
3
|
+
"servers": {
|
|
4
|
+
"open-mercato": {
|
|
5
|
+
"command": "yarn",
|
|
6
|
+
"args": ["mercato", "mcp:dev"],
|
|
7
|
+
"env": {
|
|
8
|
+
"APP_URL": "http://localhost:3000",
|
|
9
|
+
"MCP_API_KEY": "${MCP_API_KEY}"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|