@open-mercato/cli 0.10.1-develop.8115.1.f93e1af159 → 0.10.1-develop.8123.1.acf6ca6db8
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 +2 -2
- package/dist/agentic/guides/module-facts.json +162 -162
- package/dist/agentic/guides/module-facts.v2.json +162 -162
- 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/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/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/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/BACKWARD_COMPATIBILITY.md +5 -0
- package/dist/agentic/guides/upstream/manifest.json +2 -2
- package/dist/lib/env-example.js +25 -0
- package/dist/lib/env-example.js.map +7 -0
- package/dist/mercato.js +3 -1
- package/dist/mercato.js.map +2 -2
- package/package.json +7 -7
- package/src/lib/__tests__/env-example.test.ts +58 -0
- package/src/lib/env-example.ts +31 -0
- package/src/mercato.ts +3 -1
|
@@ -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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.10.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.10.1-develop.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8; core 0.10.1-develop.8123.1.acf6ca6db8 — 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.8123.1.acf6ca6db8",
|
|
1189
1189
|
"sourcePackage": null,
|
|
1190
1190
|
"sourceVersion": null,
|
|
1191
1191
|
"sourceRoot": "src/modules/example",
|
|
@@ -635,6 +635,11 @@ STABLE tools/execute writes bypass approval; no bridge. [Migrate](UPGRADE_NOTES.
|
|
|
635
635
|
|
|
636
636
|
SCIM adds 429/503 before credentials; honor Retry-After. Optional `beforeAuth: ApiRouteBeforeAuth` is additive. See [contract and migration](.ai/specs/enterprise/implemented/SPEC-ENT-004-2026-02-19-sso-directory-sync.md#migration--backward-compatibility).
|
|
637
637
|
|
|
638
|
+
## Compose encryption (2026-11-01, #7231)
|
|
639
|
+
|
|
640
|
+
STABLE: unsafe keys/HTTP Vault rejected; bridges retain exposure. [Migration](UPGRADE_NOTES.md).
|
|
641
|
+
Named human waiver of steps 1–3 required.
|
|
642
|
+
|
|
638
643
|
## Encryption maintenance safety gates (2026-11-02, #6767)
|
|
639
644
|
|
|
640
645
|
CLI safety confirmations changed; stop writers and restart replicas. [Flags, migration and stable formats](UPGRADE_NOTES.md#encryption-maintenance-safety-confirmations-6767).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"generator": "@open-mercato/cli@0.10.1-develop.
|
|
3
|
+
"generator": "@open-mercato/cli@0.10.1-develop.8123.1.acf6ca6db8",
|
|
4
4
|
"files": {
|
|
5
5
|
"AGENTS.md": "35c948a32e06ca64b4706970c55ec60946412b410938b22478233a2c5c43df56",
|
|
6
|
-
"BACKWARD_COMPATIBILITY.md": "
|
|
6
|
+
"BACKWARD_COMPATIBILITY.md": "33fc69a9a74bcf7b4c2c9995b2144ee05a4ea6afb683f44c1fd7b33272f9c446"
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { randomBytes } from "node:crypto";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import { parseEnv } from "node:util";
|
|
4
|
+
const GENERATED_SECRET_KEYS = ["TENANT_DATA_ENCRYPTION_FALLBACK_KEY"];
|
|
5
|
+
function fillEmptyEnvSecrets(content, randomSource = randomBytes) {
|
|
6
|
+
const example = parseEnv(content);
|
|
7
|
+
const keyNames = ["TENANT_DATA_ENCRYPTION_FALLBACK_KEY", "TENANT_DATA_ENCRYPTION_KEY"];
|
|
8
|
+
const configured = keyNames.some((key) => [process.env[key], example[key]].some((value) => (value ?? "").trim().replace(/^['"]|['"]$/g, "").trim().length > 0));
|
|
9
|
+
if (configured) return content;
|
|
10
|
+
let next = content;
|
|
11
|
+
for (const key of GENERATED_SECRET_KEYS) {
|
|
12
|
+
const pattern = new RegExp(`^(${key}=)[ \\t]*(\\r?)$`, "m");
|
|
13
|
+
next = next.replace(pattern, (_match, prefix, lineEnd) => `${prefix}${randomSource(32).toString("hex")}${lineEnd}`);
|
|
14
|
+
}
|
|
15
|
+
return next;
|
|
16
|
+
}
|
|
17
|
+
function createEnvFileFromExample(examplePath, envPath) {
|
|
18
|
+
const content = fs.readFileSync(examplePath, "utf8");
|
|
19
|
+
fs.writeFileSync(envPath, fillEmptyEnvSecrets(content), { flag: "wx" });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
createEnvFileFromExample,
|
|
23
|
+
fillEmptyEnvSecrets
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=env-example.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/lib/env-example.ts"],
|
|
4
|
+
"sourcesContent": ["import { randomBytes } from 'node:crypto'\nimport fs from 'node:fs'\nimport { parseEnv } from 'node:util'\n\n// Mirrors scripts/dev-env-file.mjs: .env.example ships no tenant encryption key\n// (#7231), so a .env materialized from it gets a unique machine-local key once.\nconst GENERATED_SECRET_KEYS = ['TENANT_DATA_ENCRYPTION_FALLBACK_KEY'] as const\n\nexport function fillEmptyEnvSecrets(\n content: string,\n randomSource: (size: number) => Buffer = randomBytes,\n): string {\n const example = parseEnv(content)\n const keyNames = ['TENANT_DATA_ENCRYPTION_FALLBACK_KEY', 'TENANT_DATA_ENCRYPTION_KEY']\n const configured = keyNames.some((key) =>\n [process.env[key], example[key]].some((value) =>\n (value ?? '').trim().replace(/^['\"]|['\"]$/g, '').trim().length > 0))\n if (configured) return content\n let next = content\n for (const key of GENERATED_SECRET_KEYS) {\n const pattern = new RegExp(`^(${key}=)[ \\\\t]*(\\\\r?)$`, 'm')\n next = next.replace(pattern, (_match, prefix: string, lineEnd: string) =>\n `${prefix}${randomSource(32).toString('hex')}${lineEnd}`)\n }\n return next\n}\n\nexport function createEnvFileFromExample(examplePath: string, envPath: string): void {\n const content = fs.readFileSync(examplePath, 'utf8')\n fs.writeFileSync(envPath, fillEmptyEnvSecrets(content), { flag: 'wx' })\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,mBAAmB;AAC5B,OAAO,QAAQ;AACf,SAAS,gBAAgB;AAIzB,MAAM,wBAAwB,CAAC,qCAAqC;AAE7D,SAAS,oBACd,SACA,eAAyC,aACjC;AACR,QAAM,UAAU,SAAS,OAAO;AAChC,QAAM,WAAW,CAAC,uCAAuC,4BAA4B;AACrF,QAAM,aAAa,SAAS,KAAK,CAAC,QAChC,CAAC,QAAQ,IAAI,GAAG,GAAG,QAAQ,GAAG,CAAC,EAAE,KAAK,CAAC,WACpC,SAAS,IAAI,KAAK,EAAE,QAAQ,gBAAgB,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;AACvE,MAAI,WAAY,QAAO;AACvB,MAAI,OAAO;AACX,aAAW,OAAO,uBAAuB;AACvC,UAAM,UAAU,IAAI,OAAO,KAAK,GAAG,oBAAoB,GAAG;AAC1D,WAAO,KAAK,QAAQ,SAAS,CAAC,QAAQ,QAAgB,YACpD,GAAG,MAAM,GAAG,aAAa,EAAE,EAAE,SAAS,KAAK,CAAC,GAAG,OAAO,EAAE;AAAA,EAC5D;AACA,SAAO;AACT;AAEO,SAAS,yBAAyB,aAAqB,SAAuB;AACnF,QAAM,UAAU,GAAG,aAAa,aAAa,MAAM;AACnD,KAAG,cAAc,SAAS,oBAAoB,OAAO,GAAG,EAAE,MAAM,KAAK,CAAC;AACxE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/mercato.js
CHANGED
|
@@ -259,10 +259,12 @@ async function ensureEnvLoaded(options = {}) {
|
|
|
259
259
|
if (options.createIfMissing !== false && !fs.existsSync(envPath) && process.env.NODE_ENV !== "production") {
|
|
260
260
|
const examplePath = path.join(appDir, ".env.example");
|
|
261
261
|
if (fs.existsSync(examplePath)) {
|
|
262
|
-
|
|
262
|
+
const { createEnvFileFromExample } = await import("./lib/env-example.js");
|
|
263
|
+
createEnvFileFromExample(examplePath, envPath);
|
|
263
264
|
console.log("");
|
|
264
265
|
console.log("\u26A0\uFE0F No .env was found, so one was created from .env.example.");
|
|
265
266
|
console.log(` ${envPath}`);
|
|
267
|
+
console.log(" A unique tenant encryption key was generated; keep it \u2014 data encrypted with it is unreadable without it.");
|
|
266
268
|
console.log(" It carries the example placeholders \u2014 review DATABASE_URL and secrets before continuing.");
|
|
267
269
|
console.log("");
|
|
268
270
|
}
|