@open-mercato/onboarding 0.6.3-develop.3809.1.bde5459e65 → 0.6.3-develop.3811.1.be22750402
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/AGENTS.md +21 -3
- package/package.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -2,12 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Use `@open-mercato/onboarding` for setup wizards and guided flows during new tenant provisioning.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Always
|
|
6
6
|
|
|
7
7
|
1. **MUST keep wizard steps idempotent** — re-running a step MUST NOT create duplicate data
|
|
8
8
|
2. **MUST persist state per tenant/organization** — use the ORM entities in `data/`
|
|
9
|
-
3. **MUST
|
|
10
|
-
4.
|
|
9
|
+
3. **MUST use shared email utilities** from `@open-mercato/shared/lib/email` for welcome/invitation emails
|
|
10
|
+
4. Keep all wizard copy in `i18n/<locale>.json`.
|
|
11
|
+
|
|
12
|
+
## Ask First
|
|
13
|
+
|
|
14
|
+
- Ask before changing tenant-creation ordering, default seeded data, or welcome/invitation email semantics.
|
|
15
|
+
- Ask before adding a wizard step that depends on external credentials or paid services.
|
|
16
|
+
|
|
17
|
+
## Never
|
|
18
|
+
|
|
19
|
+
- Never hard-code user-facing wizard or email strings.
|
|
20
|
+
- Never make a step accessible before its predecessor is complete.
|
|
21
|
+
- Never create duplicate tenant data when a step is retried.
|
|
22
|
+
|
|
23
|
+
## Validation Commands
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
yarn generate
|
|
27
|
+
yarn workspace @open-mercato/onboarding build
|
|
28
|
+
```
|
|
11
29
|
|
|
12
30
|
## Rules for Wizard Steps
|
|
13
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/onboarding",
|
|
3
|
-
"version": "0.6.3-develop.
|
|
3
|
+
"version": "0.6.3-develop.3811.1.be22750402",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@open-mercato/shared": "0.6.3-develop.
|
|
72
|
+
"@open-mercato/shared": "0.6.3-develop.3811.1.be22750402"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@open-mercato/shared": "0.6.3-develop.
|
|
75
|
+
"@open-mercato/shared": "0.6.3-develop.3811.1.be22750402",
|
|
76
76
|
"@types/jest": "^30.0.0",
|
|
77
77
|
"jest": "^30.4.2",
|
|
78
78
|
"ts-jest": "^29.4.11"
|