@open-mercato/cli 0.10.1-develop.8033.1.a68811b809 → 0.10.1-develop.8034.1.400508da51

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.
Files changed (90) hide show
  1. package/dist/agentic/guides/architecture.md +7 -5
  2. package/dist/agentic/guides/module-facts.json +162 -162
  3. package/dist/agentic/guides/module-facts.v2.json +162 -162
  4. package/dist/agentic/guides/modules/agent_orchestrator/index.md +1 -1
  5. package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
  6. package/dist/agentic/guides/modules/api_docs/index.md +1 -1
  7. package/dist/agentic/guides/modules/api_keys/index.md +1 -1
  8. package/dist/agentic/guides/modules/attachments/index.md +1 -1
  9. package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
  10. package/dist/agentic/guides/modules/auth/index.md +1 -1
  11. package/dist/agentic/guides/modules/availability/index.md +1 -1
  12. package/dist/agentic/guides/modules/business_rules/index.md +1 -1
  13. package/dist/agentic/guides/modules/carrier_inpost/index.md +1 -1
  14. package/dist/agentic/guides/modules/cart/index.md +1 -1
  15. package/dist/agentic/guides/modules/catalog/index.md +1 -1
  16. package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
  17. package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
  18. package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
  19. package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
  20. package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
  21. package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
  22. package/dist/agentic/guides/modules/channel_resend/index.md +1 -1
  23. package/dist/agentic/guides/modules/channel_ses/index.md +1 -1
  24. package/dist/agentic/guides/modules/channel_smtp/index.md +1 -1
  25. package/dist/agentic/guides/modules/checkout/index.md +1 -1
  26. package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
  27. package/dist/agentic/guides/modules/configs/index.md +1 -1
  28. package/dist/agentic/guides/modules/content/index.md +1 -1
  29. package/dist/agentic/guides/modules/currencies/index.md +1 -1
  30. package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
  31. package/dist/agentic/guides/modules/customer_groups/index.md +1 -1
  32. package/dist/agentic/guides/modules/customers/index.md +1 -1
  33. package/dist/agentic/guides/modules/dashboards/index.md +1 -1
  34. package/dist/agentic/guides/modules/data_sync/index.md +1 -1
  35. package/dist/agentic/guides/modules/design_system/index.md +1 -1
  36. package/dist/agentic/guides/modules/devices/index.md +1 -1
  37. package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
  38. package/dist/agentic/guides/modules/directory/index.md +1 -1
  39. package/dist/agentic/guides/modules/documents/index.md +1 -1
  40. package/dist/agentic/guides/modules/ecommerce/index.md +1 -1
  41. package/dist/agentic/guides/modules/entities/index.md +1 -1
  42. package/dist/agentic/guides/modules/eudr/index.md +1 -1
  43. package/dist/agentic/guides/modules/events/index.md +1 -1
  44. package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
  45. package/dist/agentic/guides/modules/forms/index.md +1 -1
  46. package/dist/agentic/guides/modules/gateway_autopay/index.md +1 -1
  47. package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
  48. package/dist/agentic/guides/modules/gateway_tpay/index.md +1 -1
  49. package/dist/agentic/guides/modules/generators/index.md +1 -1
  50. package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
  51. package/dist/agentic/guides/modules/integrations/index.md +1 -1
  52. package/dist/agentic/guides/modules/messages/index.md +1 -1
  53. package/dist/agentic/guides/modules/notifications/index.md +1 -1
  54. package/dist/agentic/guides/modules/onboarding/index.md +1 -1
  55. package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
  56. package/dist/agentic/guides/modules/perspectives/index.md +1 -1
  57. package/dist/agentic/guides/modules/phone_calls/index.md +1 -1
  58. package/dist/agentic/guides/modules/planner/index.md +1 -1
  59. package/dist/agentic/guides/modules/portal/index.md +1 -1
  60. package/dist/agentic/guides/modules/progress/index.md +1 -1
  61. package/dist/agentic/guides/modules/promotions/index.md +1 -1
  62. package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
  63. package/dist/agentic/guides/modules/query_index/index.md +1 -1
  64. package/dist/agentic/guides/modules/record_locks/index.md +1 -1
  65. package/dist/agentic/guides/modules/resources/index.md +1 -1
  66. package/dist/agentic/guides/modules/sales/index.md +1 -1
  67. package/dist/agentic/guides/modules/scheduler/index.md +1 -1
  68. package/dist/agentic/guides/modules/search/index.md +1 -1
  69. package/dist/agentic/guides/modules/security/index.md +1 -1
  70. package/dist/agentic/guides/modules/seeds/index.md +1 -1
  71. package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
  72. package/dist/agentic/guides/modules/sso/index.md +1 -1
  73. package/dist/agentic/guides/modules/staff/index.md +1 -1
  74. package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
  75. package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
  76. package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
  77. package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
  78. package/dist/agentic/guides/modules/telemetry/index.md +1 -1
  79. package/dist/agentic/guides/modules/tillio/index.md +1 -1
  80. package/dist/agentic/guides/modules/translations/index.md +1 -1
  81. package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
  82. package/dist/agentic/guides/modules/webhooks/index.md +1 -1
  83. package/dist/agentic/guides/modules/wms/index.md +1 -1
  84. package/dist/agentic/guides/modules/workflows/index.md +1 -1
  85. package/dist/agentic/guides/reference-module-facts.json +1 -1
  86. package/dist/agentic/guides/template-tool.md +38 -0
  87. package/dist/agentic/guides/upstream/manifest.json +1 -1
  88. package/dist/agentic/shared/AGENTS.md.template +1 -0
  89. package/dist/agentic/shared/ai/harness/cases.json +1 -1
  90. package/package.json +7 -7
@@ -1,5 +1,5 @@
1
1
  # staff — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.10.1-develop.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/storage-s3 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/sync-akeneo 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/enterprise 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/telemetry 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/tillio 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/webhooks 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809; core 0.10.1-develop.8033.1.a68811b809 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.8034.1.400508da51; core 0.10.1-develop.8034.1.400508da51 — 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.8033.1.a68811b809",
1188
+ "coreVersion": "0.10.1-develop.8034.1.400508da51",
1189
1189
  "sourcePackage": null,
1190
1190
  "sourceVersion": null,
1191
1191
  "sourceRoot": "src/modules/example",
@@ -0,0 +1,38 @@
1
+ # Save and Create App Templates
2
+
3
+ An app template is a GitHub repository with a complete standalone app at its root. Use [create-mercato-template](https://github.com/open-mercato/create-mercato-template#readme) to save this app as one, and `create-mercato-app --template` to create a new app from one. A template is code only: the committed files of one commit. The database, configuration made in the UI, uploads, `.env` files, Git history and registry credentials are never saved. Move anything the next app needs into code (seeds, setup scripts) and commit it first.
4
+
5
+ Save a reviewed snapshot from the app root:
6
+
7
+ ```bash
8
+ npx create-mercato-template prepare --out ../my-template
9
+ ```
10
+
11
+ It reads the committed `HEAD` offline, runs no app code and never changes the app. `--out` must be a new or empty directory outside the app. Uncommitted changes are listed but not exported unless `--include-uncommitted` is given. The result is `<out>/tree` and `<out>/report.json` with a `snapshotId`. An error finding (a secret, a symlink, a database dump, a missing `yarn.lock`) stops it: fix the source, commit, and run `prepare` again. Use `--allow-file <path>` or `--keep-env <KEY>` only when the user confirms that file or value may be shared. Show the user the report before publishing: errors, warnings, emptied env keys, the module list, uncommitted files and every image path, because images are not scanned and the user must inspect them.
12
+
13
+ Publish only after the user approves the repository name, the visibility and the reviewed `snapshotId`:
14
+
15
+ ```bash
16
+ npx create-mercato-template publish --from ../my-template --repo your-name/my-template --private --expect <snapshotId>
17
+ ```
18
+
19
+ It needs `gh auth login` and never reads or prints a token. Visibility is always explicit (`--public` or `--private`); never choose it for the user. `--expect` is required with `--json` and without a terminal. It pushes exactly the snapshot as one commit, marks the repository as a template and adds its topics. It never force-pushes. After a failed GitHub step, rerun the printed command with `--resume`. With `--json`, read the exit code: 0 done, 1 a check failed or publication was refused, 2 usage, 3 GitHub auth missing, 4 a GitHub step failed.
20
+
21
+ To list the template in the catalog:
22
+
23
+ ```bash
24
+ npx create-mercato-template describe --from ../my-template
25
+ ```
26
+
27
+ It prints the catalog YAML and the CONTRIBUTING link. Listing is a pull request the user opens in `open-mercato/modules`; neither tool opens it.
28
+
29
+ Create a new app from a template outside this app's directory:
30
+
31
+ ```bash
32
+ npx create-mercato-app my-app --template your-name/my-template
33
+ npx create-mercato-app my-crm --template crm
34
+ ```
35
+
36
+ `--template` takes a curator slug or `owner/repo`, optionally with `#ref`; a private repository needs `GITHUB_TOKEN`. Before the download it prints `owner/repo@<sha>` and whether that commit is verified, and it refuses a template on hold. The new app gets the app name in `package.json` (unless `--keep-name`), an `openMercatoTemplate` field with the repository, ref and commit, and no `mercato-template.json`. Then follow the printed next steps, which match the app's scripts: `yarn setup` when it has `setup` and `infra:up`; `docker compose up -d` then `yarn setup` when it has only `setup`; otherwise `yarn install`, `yarn initialize`, `yarn dev`. The declared env keys are listed before the start commands. Imports get no agentic setup; run `yarn mercato agentic:init` inside the new app when wanted.
37
+
38
+ If `npx create-mercato-template` is not available from npm yet, run it from GitHub: `npx --package github:open-mercato/create-mercato-template create-mercato-template --help`. Without process execution, report that capability gap instead of claiming a snapshot or a publication.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "generator": "@open-mercato/cli@0.10.1-develop.8033.1.a68811b809",
3
+ "generator": "@open-mercato/cli@0.10.1-develop.8034.1.400508da51",
4
4
  "files": {
5
5
  "AGENTS.md": "35c948a32e06ca64b4706970c55ec60946412b410938b22478233a2c5c43df56",
6
6
  "BACKWARD_COMPATIBILITY.md": "4e85dfc08b0e9542c78415e25a020e06e4ec3c3bb664b278b5aa3faa3523d873"
@@ -73,6 +73,7 @@ Open every matched work-unit skill before selection.
73
73
  | Route | Work unit | Skill/context |
74
74
  |---|---|---|
75
75
  | `architecture` | Find, scaffold a module starter, publish, or link an app module | `.ai/guides/module-tool.md`; find: `om-find-module`; new code loads `om-module-scaffold` |
76
+ | `architecture` | Save this app as an app template, or create an app from one | `.ai/guides/template-tool.md` |
76
77
  | `architecture` | Explain/choose module, UMES, package, eject | architecture; `om-help` for an unresolved or comparative choice across these mechanisms |
77
78
  | `module-data` | Business slice or multi-seam domain/API/command fix | MUST load `om-module-scaffold` + its exact `.ai/skills/om-module-scaffold/references/business-one-shot-blueprints.md` key, which resolves units inside the slice, not ownership — an ownership/capability outline adds `architecture` |
78
79
  | `spec-pr` | Spec/plan | Axis 3; phases+integration coverage (`integration-coverage`); no domain routes |
@@ -4554,7 +4554,7 @@
4554
4554
  ],
4555
4555
  "maxContextFiles": 5,
4556
4556
  "maxInitialContextBytes": 40960,
4557
- "maxTotalContextBytes": 116736,
4557
+ "maxTotalContextBytes": 118784,
4558
4558
  "relatedCases": [
4559
4559
  "OMH-058"
4560
4560
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/cli",
3
- "version": "0.10.1-develop.8033.1.a68811b809",
3
+ "version": "0.10.1-develop.8034.1.400508da51",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -60,10 +60,10 @@
60
60
  "@mikro-orm/decorators": "^7.1.14",
61
61
  "@mikro-orm/migrations": "^7.1.14",
62
62
  "@mikro-orm/postgresql": "^7.1.14",
63
- "@open-mercato/events": "0.10.1-develop.8033.1.a68811b809",
64
- "@open-mercato/queue": "0.10.1-develop.8033.1.a68811b809",
65
- "@open-mercato/shared": "0.10.1-develop.8033.1.a68811b809",
66
- "@open-mercato/telemetry": "0.10.1-develop.8033.1.a68811b809",
63
+ "@open-mercato/events": "0.10.1-develop.8034.1.400508da51",
64
+ "@open-mercato/queue": "0.10.1-develop.8034.1.400508da51",
65
+ "@open-mercato/shared": "0.10.1-develop.8034.1.400508da51",
66
+ "@open-mercato/telemetry": "0.10.1-develop.8034.1.400508da51",
67
67
  "cross-spawn": "^7.0.6",
68
68
  "minisearch": "7.2.0",
69
69
  "pg": "8.23.0",
@@ -75,10 +75,10 @@
75
75
  "typescript-js": "npm:typescript@6.0.3"
76
76
  },
77
77
  "peerDependencies": {
78
- "@open-mercato/shared": "0.10.1-develop.8033.1.a68811b809"
78
+ "@open-mercato/shared": "0.10.1-develop.8034.1.400508da51"
79
79
  },
80
80
  "devDependencies": {
81
- "@open-mercato/shared": "0.10.1-develop.8033.1.a68811b809",
81
+ "@open-mercato/shared": "0.10.1-develop.8034.1.400508da51",
82
82
  "@types/jest": "^30.0.0",
83
83
  "jest": "^30.4.2",
84
84
  "ts-jest": "^29.4.12"