@open-mercato/cli 0.6.6-develop.6465.1.019f0fb26f → 0.6.6-develop.6472.1.1673e7e66b
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 +3 -3
- package/dist/agentic/guides/module-facts.json +53 -53
- package/dist/agentic/guides/modules/ai_assistant.md +1 -1
- package/dist/agentic/guides/modules/api_docs.md +1 -1
- package/dist/agentic/guides/modules/api_keys.md +1 -1
- package/dist/agentic/guides/modules/attachments.md +1 -1
- package/dist/agentic/guides/modules/audit_logs.md +1 -1
- package/dist/agentic/guides/modules/auth.md +1 -1
- package/dist/agentic/guides/modules/business_rules.md +1 -1
- package/dist/agentic/guides/modules/catalog.md +1 -1
- package/dist/agentic/guides/modules/channel_gmail.md +1 -1
- package/dist/agentic/guides/modules/channel_imap.md +1 -1
- package/dist/agentic/guides/modules/checkout.md +1 -1
- package/dist/agentic/guides/modules/communication_channels.md +1 -1
- package/dist/agentic/guides/modules/configs.md +1 -1
- package/dist/agentic/guides/modules/content.md +1 -1
- package/dist/agentic/guides/modules/currencies.md +1 -1
- package/dist/agentic/guides/modules/customer_accounts.md +1 -1
- package/dist/agentic/guides/modules/customers.md +1 -1
- package/dist/agentic/guides/modules/dashboards.md +1 -1
- package/dist/agentic/guides/modules/data_sync.md +1 -1
- package/dist/agentic/guides/modules/dictionaries.md +1 -1
- package/dist/agentic/guides/modules/directory.md +1 -1
- package/dist/agentic/guides/modules/entities.md +1 -1
- package/dist/agentic/guides/modules/events.md +1 -1
- package/dist/agentic/guides/modules/feature_toggles.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe.md +1 -1
- package/dist/agentic/guides/modules/generators.md +1 -1
- package/dist/agentic/guides/modules/inbox_ops.md +1 -1
- package/dist/agentic/guides/modules/integrations.md +1 -1
- package/dist/agentic/guides/modules/messages.md +1 -1
- package/dist/agentic/guides/modules/notifications.md +1 -1
- package/dist/agentic/guides/modules/onboarding.md +1 -1
- package/dist/agentic/guides/modules/payment_gateways.md +1 -1
- package/dist/agentic/guides/modules/perspectives.md +1 -1
- package/dist/agentic/guides/modules/planner.md +1 -1
- package/dist/agentic/guides/modules/portal.md +1 -1
- package/dist/agentic/guides/modules/progress.md +1 -1
- package/dist/agentic/guides/modules/query_index.md +1 -1
- package/dist/agentic/guides/modules/record_locks.md +1 -1
- package/dist/agentic/guides/modules/resources.md +1 -1
- package/dist/agentic/guides/modules/sales.md +1 -1
- package/dist/agentic/guides/modules/scheduler.md +1 -1
- package/dist/agentic/guides/modules/search.md +1 -1
- package/dist/agentic/guides/modules/security.md +1 -1
- package/dist/agentic/guides/modules/shipping_carriers.md +1 -1
- package/dist/agentic/guides/modules/sso.md +1 -1
- package/dist/agentic/guides/modules/staff.md +1 -1
- package/dist/agentic/guides/modules/storage_s3.md +1 -1
- package/dist/agentic/guides/modules/sync_akeneo.md +1 -1
- package/dist/agentic/guides/modules/sync_excel.md +1 -1
- package/dist/agentic/guides/modules/system_status_overlays.md +1 -1
- package/dist/agentic/guides/modules/translations.md +1 -1
- package/dist/agentic/guides/modules/webhooks.md +1 -1
- package/dist/agentic/guides/modules/workflows.md +1 -1
- package/dist/mercato.js +2 -0
- package/dist/mercato.js.map +2 -2
- package/package.json +5 -5
- package/src/lib/__tests__/release-notes-retired.test.ts +33 -0
- package/src/mercato.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/cli",
|
|
3
|
-
"version": "0.6.6-develop.
|
|
3
|
+
"version": "0.6.6-develop.6472.1.1673e7e66b",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"@mikro-orm/decorators": "^7.1.5",
|
|
61
61
|
"@mikro-orm/migrations": "^7.1.5",
|
|
62
62
|
"@mikro-orm/postgresql": "^7.1.5",
|
|
63
|
-
"@open-mercato/queue": "0.6.6-develop.
|
|
64
|
-
"@open-mercato/shared": "0.6.6-develop.
|
|
63
|
+
"@open-mercato/queue": "0.6.6-develop.6472.1.1673e7e66b",
|
|
64
|
+
"@open-mercato/shared": "0.6.6-develop.6472.1.1673e7e66b",
|
|
65
65
|
"cross-spawn": "^7.0.6",
|
|
66
66
|
"pg": "8.22.0",
|
|
67
67
|
"semver": "^7.8.5",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"typescript": "^6.0.3"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@open-mercato/shared": "0.6.6-develop.
|
|
74
|
+
"@open-mercato/shared": "0.6.6-develop.6472.1.1673e7e66b"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@open-mercato/shared": "0.6.6-develop.
|
|
77
|
+
"@open-mercato/shared": "0.6.6-develop.6472.1.1673e7e66b",
|
|
78
78
|
"@types/jest": "^30.0.0",
|
|
79
79
|
"jest": "^30.4.2",
|
|
80
80
|
"ts-jest": "^29.4.11"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import fs from 'node:fs'
|
|
2
|
+
import path from 'node:path'
|
|
3
|
+
|
|
4
|
+
function findRepoRoot(): string {
|
|
5
|
+
let dir = __dirname
|
|
6
|
+
for (let depth = 0; depth < 12; depth += 1) {
|
|
7
|
+
if (fs.existsSync(path.join(dir, 'packages', 'core', 'src', 'modules'))) return dir
|
|
8
|
+
dir = path.dirname(dir)
|
|
9
|
+
}
|
|
10
|
+
throw new Error('[internal] could not locate repo root from the test directory')
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
describe('RELEASE_NOTES.md retirement (issue #4024)', () => {
|
|
14
|
+
const repoRoot = findRepoRoot()
|
|
15
|
+
|
|
16
|
+
it('does not reintroduce RELEASE_NOTES.md at the repo root', () => {
|
|
17
|
+
expect(fs.existsSync(path.join(repoRoot, 'RELEASE_NOTES.md'))).toBe(false)
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
it('keeps the migrated deprecation notes in UPGRADE_NOTES.md', () => {
|
|
21
|
+
const upgradeNotes = fs.readFileSync(path.join(repoRoot, 'UPGRADE_NOTES.md'), 'utf8')
|
|
22
|
+
expect(upgradeNotes).toContain('MODULE_FACTS_ALLOWLIST')
|
|
23
|
+
expect(upgradeNotes).toContain('per-module standalone AI guides')
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
it('points the deprecation protocol at UPGRADE_NOTES.md, not the retired file', () => {
|
|
27
|
+
for (const relativePath of ['AGENTS.md', 'BACKWARD_COMPATIBILITY.md']) {
|
|
28
|
+
const contents = fs.readFileSync(path.join(repoRoot, relativePath), 'utf8')
|
|
29
|
+
expect(contents).not.toContain('RELEASE_NOTES.md')
|
|
30
|
+
expect(contents).toContain('UPGRADE_NOTES.md')
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
})
|
package/src/mercato.ts
CHANGED
|
@@ -2070,6 +2070,13 @@ export async function run(argv = process.argv) {
|
|
|
2070
2070
|
while (!stopping) {
|
|
2071
2071
|
envReloader.reload()
|
|
2072
2072
|
const runtimeEnv = buildServerProcessEnvironment(process.env)
|
|
2073
|
+
// buildServerProcessEnvironment forces NODE_ENV=production, so the
|
|
2074
|
+
// logging facade's dev defaults (pretty output, debug level) never
|
|
2075
|
+
// apply to the spawned Next.js/worker/scheduler processes on their
|
|
2076
|
+
// own — default them here for the dev command, respecting explicit
|
|
2077
|
+
// user overrides.
|
|
2078
|
+
if (runtimeEnv.OM_LOG_PRETTY === undefined) runtimeEnv.OM_LOG_PRETTY = '1'
|
|
2079
|
+
if (runtimeEnv.OM_LOG_LEVEL === undefined) runtimeEnv.OM_LOG_LEVEL = 'debug'
|
|
2073
2080
|
const autoSpawnWorkersMode = resolveAutoSpawnWorkersMode(process.env)
|
|
2074
2081
|
// Guard the default-on events single-delivery: if this process runs
|
|
2075
2082
|
// no events worker, fall back to safe inline dual-dispatch so
|