create-mercato-app 0.6.8-develop.6972.1.275e435508 → 0.6.8-develop.6973.1.17fe21ccd4
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/README.md +5 -0
- package/agentic/claude-code/settings.experimental-hooks-validator.json +37 -0
- package/agentic/claude-code/settings.json +0 -21
- package/agentic/cursor/hooks.experimental-hooks-validator.json +20 -0
- package/agentic/cursor/hooks.json +0 -10
- package/dist/agentic/claude-code/settings.experimental-hooks-validator.json +37 -0
- package/dist/agentic/claude-code/settings.json +0 -21
- package/dist/agentic/cursor/hooks.experimental-hooks-validator.json +20 -0
- package/dist/agentic/cursor/hooks.json +0 -10
- package/dist/agentic/guides/module-facts.json +112 -112
- package/dist/agentic/guides/module-facts.v2.json +112 -112
- 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_gmail/index.md +1 -1
- package/dist/agentic/guides/modules/channel_imap/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/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/dictionaries/index.md +1 -1
- package/dist/agentic/guides/modules/directory/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/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/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/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/translations/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/manifest.json +1 -1
- package/dist/index.js +77 -19
- package/package.json +3 -3
- package/template/.env.example +7 -0
package/README.md
CHANGED
|
@@ -72,6 +72,9 @@ npx create-mercato-app my-store --preset classic --agents all
|
|
|
72
72
|
# Set up only Claude Code and Codex
|
|
73
73
|
npx create-mercato-app my-store --agents claude-code,codex
|
|
74
74
|
|
|
75
|
+
# Opt in to the experimental validation/typecheck hook layer
|
|
76
|
+
npx create-mercato-app my-store --agents claude-code,codex --experimental-hooks-validator
|
|
77
|
+
|
|
75
78
|
# Create a new app and initialize a local Git repository
|
|
76
79
|
npx create-mercato-app my-store --init-git
|
|
77
80
|
```
|
|
@@ -91,6 +94,8 @@ npx create-mercato-app my-store --init-git
|
|
|
91
94
|
|
|
92
95
|
A bare scaffold can install a standalone-specific AI development harness for Claude Code, Codex, Cursor, or any selected subset. It combines a compact task router, module/task guides, local skills, an integrity-pinned subset of `open-mercato/skills`, exact installed-framework context, and a reproducible evaluation catalog.
|
|
93
96
|
|
|
97
|
+
The gate-evidence hooks that record validation outcomes and require a newer passing typecheck after source edits are experimental and disabled by default. Opt in with `--experimental-hooks-validator` during creation or `yarn mercato agentic:init`, or set `OM_HARNESS_EXPERIMENTAL_HOOKS_VALIDATOR=1` before setup. The explicit flag takes precedence over the environment default.
|
|
98
|
+
|
|
94
99
|
### Install or refresh skills
|
|
95
100
|
|
|
96
101
|
Agentic setup attempts installation automatically. Re-run it after cloning, after an offline setup, or when selecting another tier:
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"PostToolUse": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "npx tsx \"$CLAUDE_PROJECT_DIR/.claude/hooks/entity-migration-check.ts\"",
|
|
10
|
+
"timeout": 15
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"matcher": "Bash",
|
|
16
|
+
"hooks": [
|
|
17
|
+
{
|
|
18
|
+
"type": "command",
|
|
19
|
+
"command": "npx tsx \"$CLAUDE_PROJECT_DIR/.claude/hooks/gate-evidence.ts\" record",
|
|
20
|
+
"timeout": 15
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"Stop": [
|
|
26
|
+
{
|
|
27
|
+
"hooks": [
|
|
28
|
+
{
|
|
29
|
+
"type": "command",
|
|
30
|
+
"command": "npx tsx \"$CLAUDE_PROJECT_DIR/.claude/hooks/gate-evidence.ts\" check",
|
|
31
|
+
"timeout": 20
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -10,27 +10,6 @@
|
|
|
10
10
|
"timeout": 15
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"matcher": "Bash",
|
|
16
|
-
"hooks": [
|
|
17
|
-
{
|
|
18
|
-
"type": "command",
|
|
19
|
-
"command": "npx tsx \"$CLAUDE_PROJECT_DIR/.claude/hooks/gate-evidence.ts\" record",
|
|
20
|
-
"timeout": 15
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"Stop": [
|
|
26
|
-
{
|
|
27
|
-
"hooks": [
|
|
28
|
-
{
|
|
29
|
-
"type": "command",
|
|
30
|
-
"command": "npx tsx \"$CLAUDE_PROJECT_DIR/.claude/hooks/gate-evidence.ts\" check",
|
|
31
|
-
"timeout": 20
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
13
|
}
|
|
35
14
|
]
|
|
36
15
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"hooks": {
|
|
4
|
+
"afterFileEdit": {
|
|
5
|
+
"command": "node",
|
|
6
|
+
"args": [".cursor/hooks/entity-migration-check.mjs"],
|
|
7
|
+
"description": "Check if entity edit requires a database migration"
|
|
8
|
+
},
|
|
9
|
+
"afterShellExecution": {
|
|
10
|
+
"command": "node",
|
|
11
|
+
"args": [".cursor/hooks/gate-evidence.mjs", "record"],
|
|
12
|
+
"description": "Record validation-gate outcomes so a gate cannot be claimed without running"
|
|
13
|
+
},
|
|
14
|
+
"stop": {
|
|
15
|
+
"command": "node",
|
|
16
|
+
"args": [".cursor/hooks/gate-evidence.mjs", "check"],
|
|
17
|
+
"description": "Block finishing when src/ changed without a passing typecheck since"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -5,16 +5,6 @@
|
|
|
5
5
|
"command": "node",
|
|
6
6
|
"args": [".cursor/hooks/entity-migration-check.mjs"],
|
|
7
7
|
"description": "Check if entity edit requires a database migration"
|
|
8
|
-
},
|
|
9
|
-
"afterShellExecution": {
|
|
10
|
-
"command": "node",
|
|
11
|
-
"args": [".cursor/hooks/gate-evidence.mjs", "record"],
|
|
12
|
-
"description": "Record validation-gate outcomes so a gate cannot be claimed without running"
|
|
13
|
-
},
|
|
14
|
-
"stop": {
|
|
15
|
-
"command": "node",
|
|
16
|
-
"args": [".cursor/hooks/gate-evidence.mjs", "check"],
|
|
17
|
-
"description": "Block finishing when src/ changed without a passing typecheck since"
|
|
18
8
|
}
|
|
19
9
|
}
|
|
20
10
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"PostToolUse": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "npx tsx \"$CLAUDE_PROJECT_DIR/.claude/hooks/entity-migration-check.ts\"",
|
|
10
|
+
"timeout": 15
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"matcher": "Bash",
|
|
16
|
+
"hooks": [
|
|
17
|
+
{
|
|
18
|
+
"type": "command",
|
|
19
|
+
"command": "npx tsx \"$CLAUDE_PROJECT_DIR/.claude/hooks/gate-evidence.ts\" record",
|
|
20
|
+
"timeout": 15
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"Stop": [
|
|
26
|
+
{
|
|
27
|
+
"hooks": [
|
|
28
|
+
{
|
|
29
|
+
"type": "command",
|
|
30
|
+
"command": "npx tsx \"$CLAUDE_PROJECT_DIR/.claude/hooks/gate-evidence.ts\" check",
|
|
31
|
+
"timeout": 20
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -10,27 +10,6 @@
|
|
|
10
10
|
"timeout": 15
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"matcher": "Bash",
|
|
16
|
-
"hooks": [
|
|
17
|
-
{
|
|
18
|
-
"type": "command",
|
|
19
|
-
"command": "npx tsx \"$CLAUDE_PROJECT_DIR/.claude/hooks/gate-evidence.ts\" record",
|
|
20
|
-
"timeout": 15
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"Stop": [
|
|
26
|
-
{
|
|
27
|
-
"hooks": [
|
|
28
|
-
{
|
|
29
|
-
"type": "command",
|
|
30
|
-
"command": "npx tsx \"$CLAUDE_PROJECT_DIR/.claude/hooks/gate-evidence.ts\" check",
|
|
31
|
-
"timeout": 20
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
13
|
}
|
|
35
14
|
]
|
|
36
15
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"hooks": {
|
|
4
|
+
"afterFileEdit": {
|
|
5
|
+
"command": "node",
|
|
6
|
+
"args": [".cursor/hooks/entity-migration-check.mjs"],
|
|
7
|
+
"description": "Check if entity edit requires a database migration"
|
|
8
|
+
},
|
|
9
|
+
"afterShellExecution": {
|
|
10
|
+
"command": "node",
|
|
11
|
+
"args": [".cursor/hooks/gate-evidence.mjs", "record"],
|
|
12
|
+
"description": "Record validation-gate outcomes so a gate cannot be claimed without running"
|
|
13
|
+
},
|
|
14
|
+
"stop": {
|
|
15
|
+
"command": "node",
|
|
16
|
+
"args": [".cursor/hooks/gate-evidence.mjs", "check"],
|
|
17
|
+
"description": "Block finishing when src/ changed without a passing typecheck since"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -5,16 +5,6 @@
|
|
|
5
5
|
"command": "node",
|
|
6
6
|
"args": [".cursor/hooks/entity-migration-check.mjs"],
|
|
7
7
|
"description": "Check if entity edit requires a database migration"
|
|
8
|
-
},
|
|
9
|
-
"afterShellExecution": {
|
|
10
|
-
"command": "node",
|
|
11
|
-
"args": [".cursor/hooks/gate-evidence.mjs", "record"],
|
|
12
|
-
"description": "Record validation-gate outcomes so a gate cannot be claimed without running"
|
|
13
|
-
},
|
|
14
|
-
"stop": {
|
|
15
|
-
"command": "node",
|
|
16
|
-
"args": [".cursor/hooks/gate-evidence.mjs", "check"],
|
|
17
|
-
"description": "Block finishing when src/ changed without a passing typecheck since"
|
|
18
8
|
}
|
|
19
9
|
}
|
|
20
10
|
}
|