@open-mercato/cli 0.6.7-develop.6685.1.77c0a5591b → 0.6.7-develop.6686.1.bdda5ed397
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 -3
- package/build.mjs +21 -5
- package/dist/agentic/claude-code/hooks/entity-migration-check.ts +32 -88
- package/dist/agentic/codex/enforcement-rules.md +2 -16
- package/dist/agentic/cursor/hooks/entity-migration-check.mjs +19 -50
- package/dist/agentic/cursor/rules/entity-guard.mdc +9 -21
- package/dist/agentic/cursor/rules/generated-guard.mdc +3 -5
- package/dist/agentic/cursor/rules/open-mercato.mdc +3 -29
- package/dist/agentic/guides/ai-workflows.md +76 -0
- package/dist/agentic/guides/architecture.md +107 -0
- package/dist/agentic/guides/backend-ui.md +80 -0
- package/dist/agentic/guides/contracts.md +92 -0
- package/dist/agentic/guides/extensions.md +104 -0
- package/dist/agentic/guides/integrations.md +81 -0
- package/dist/agentic/guides/module-facts.json +217 -81
- package/dist/agentic/guides/module-system.md +12 -127
- 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 +2 -2
- package/dist/agentic/guides/modules/audit_logs.md +2 -2
- 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 +5 -5
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +17 -17
- 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 +2 -2
- 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 +2 -2
- package/dist/agentic/guides/modules/wms.md +2 -2
- package/dist/agentic/guides/modules/workflows.md +1 -1
- package/dist/agentic/guides/testing-debugging.md +74 -0
- package/dist/agentic/guides/upstream/AGENTS.md +297 -0
- package/dist/agentic/guides/upstream/BACKWARD_COMPATIBILITY.md +303 -0
- package/dist/agentic/guides/upstream/manifest.json +8 -0
- package/dist/agentic/shared/AGENTS.md.template +123 -311
- package/dist/agentic/shared/ai/agentic.config.json +1 -0
- package/dist/agentic/shared/ai/harness/README.md +48 -0
- package/dist/agentic/shared/ai/harness/RELEASE.md +57 -0
- package/dist/agentic/shared/ai/harness/cases.json +13487 -0
- package/dist/agentic/shared/ai/harness/cases.schema.json +132 -0
- package/dist/agentic/shared/ai/harness/fixtures/index.json +49 -0
- package/dist/agentic/shared/ai/harness/fixtures/seeds.json +162 -0
- package/dist/agentic/shared/ai/harness/generated-code-review-policy.md +20 -0
- package/dist/agentic/shared/ai/harness/generated-code-review-response.schema.json +43 -0
- package/dist/agentic/shared/ai/harness/generated-code-review-result.schema.json +110 -0
- package/dist/agentic/shared/ai/harness/release-matrix.json +133 -0
- package/dist/agentic/shared/ai/harness/release-result.schema.json +219 -0
- package/dist/agentic/shared/ai/harness/result.schema.json +76 -0
- package/dist/agentic/shared/ai/harness/routing-response.schema.json +12 -0
- package/dist/agentic/shared/ai/harness/target-validation-result.schema.json +73 -0
- package/dist/agentic/shared/ai/harness/validators.json +78 -0
- package/dist/agentic/shared/ai/harness/writable-ast-oracles.mjs +1768 -0
- package/dist/agentic/shared/ai/harness/writable-behavior-oracles.mjs +1096 -0
- package/dist/agentic/shared/ai/review-checklist.md +36 -0
- package/dist/agentic/shared/ai/skills/om-auto-review-pr/SKILL.md +4 -0
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/SKILL.md +20 -241
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/crud-surfaces.md +16 -0
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/frontend-and-design-system.md +53 -0
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/page-and-navigation.md +13 -0
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/quality-states.md +11 -0
- package/dist/agentic/shared/ai/skills/om-build-workflow/SKILL.md +30 -0
- package/dist/agentic/shared/ai/skills/om-build-workflow/references/activity-contracts.md +12 -0
- package/dist/agentic/shared/ai/skills/om-build-workflow/references/durability-and-progress.md +13 -0
- package/dist/agentic/shared/ai/skills/om-build-workflow/references/workflow-design.md +14 -0
- package/dist/agentic/shared/ai/skills/om-create-ai-agent/SKILL.md +28 -0
- package/dist/agentic/shared/ai/skills/om-create-ai-agent/references/attachments-and-overrides.md +12 -0
- package/dist/agentic/shared/ai/skills/om-create-ai-agent/references/module-agents-and-tools.md +22 -0
- package/dist/agentic/shared/ai/skills/om-create-ai-agent/references/orchestrator-agents.md +12 -0
- package/dist/agentic/shared/ai/skills/om-create-ai-agent/references/surface-selector.md +19 -0
- package/dist/agentic/shared/ai/skills/om-data-model-design/SKILL.md +16 -601
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/integrity-and-concurrency.md +19 -0
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/migration-workflow.md +13 -0
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/schema-design.md +14 -0
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/sensitive-data.md +10 -0
- package/dist/agentic/shared/ai/skills/om-eject-and-customize/SKILL.md +14 -310
- package/dist/agentic/shared/ai/skills/om-eject-and-customize/references/decision-and-procedure.md +17 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/SKILL.md +28 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/references/case-template.md +89 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/references/case-workflow.md +16 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/references/owner-selection.md +17 -0
- package/dist/agentic/shared/ai/skills/om-framework-context/SKILL.md +25 -0
- package/dist/agentic/shared/ai/skills/om-framework-context/references/resolver-procedure.md +11 -0
- package/dist/agentic/shared/ai/skills/om-framework-context/references/skew-and-escalation.md +13 -0
- package/dist/agentic/shared/ai/skills/om-help/SKILL.md +15 -97
- package/dist/agentic/shared/ai/skills/om-help/references/delivery-workflows.md +17 -0
- package/dist/agentic/shared/ai/skills/om-help/references/task-families.md +20 -0
- package/dist/agentic/shared/ai/skills/om-implement-spec/SKILL.md +15 -156
- package/dist/agentic/shared/ai/skills/om-implement-spec/references/phases-and-gates.md +12 -0
- package/dist/agentic/shared/ai/skills/om-integration-builder/SKILL.md +24 -708
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/package-and-activation.md +16 -0
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/provider-families.md +14 -0
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/security-and-reliability.md +15 -0
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/sync-and-files.md +12 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/SKILL.md +20 -820
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/api-and-domain.md +19 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/business-one-shot-blueprints.md +107 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/data-and-migrations.md +12 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/discovery-surface-catalog.md +83 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/module-surfaces.md +21 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/planning.md +11 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/runtime-cache-and-queues.md +22 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/verification.md +13 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/SKILL.md +19 -843
- package/dist/agentic/shared/ai/skills/om-system-extension/references/extension-branches.md +18 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/references/mechanism-selector.md +25 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/references/read-write-roundtrip.md +13 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/references/unified-overrides.md +38 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/references/verification.md +11 -0
- package/dist/agentic/shared/ai/skills/om-trim-unused-modules/SKILL.md +15 -63
- package/dist/agentic/shared/ai/skills/om-trim-unused-modules/references/dependency-and-redirect.md +15 -0
- package/dist/agentic/shared/ai/skills/om-troubleshooter/SKILL.md +16 -467
- package/dist/agentic/shared/ai/skills/om-troubleshooter/references/diagnosis-map.md +16 -0
- package/dist/agentic/shared/ai/skills/om-troubleshooter/references/regression-oracles.md +14 -0
- package/dist/agentic/shared/ai/skills/tiers.json +137 -20
- package/dist/agentic/shared/ai/skills/tiers.schema.json +52 -40
- package/dist/agentic/shared/scripts/agent-harness-tool-server.mjs +174 -0
- package/dist/agentic/shared/scripts/evaluate-agent-harness.mjs +2783 -0
- package/dist/agentic/shared/scripts/execution-sandbox.mjs +329 -0
- package/dist/agentic/shared/scripts/framework-context.mjs +894 -0
- package/dist/agentic/shared/scripts/install-skills.mjs +1029 -0
- package/dist/agentic/shared/scripts/install-skills.sh +4 -694
- package/dist/agentic/shared/scripts/prepare-agent-harness-fixture.mjs +222 -0
- package/dist/agentic/shared/scripts/run-agent-harness-release.mjs +1761 -0
- package/dist/lib/__integration__/TC-INT-008.spec.js +87 -8
- package/dist/lib/__integration__/TC-INT-008.spec.js.map +2 -2
- package/dist/lib/agentic-init.js +13 -3
- package/dist/lib/agentic-init.js.map +2 -2
- package/dist/lib/agentic-setup.js +418 -186
- package/dist/lib/agentic-setup.js.map +2 -2
- package/dist/lib/generators/module-facts-discovery.js +41 -7
- package/dist/lib/generators/module-facts-discovery.js.map +2 -2
- package/dist/lib/generators/module-facts.js +65 -17
- package/dist/lib/generators/module-facts.js.map +2 -2
- package/dist/lib/generators/module-registry.js +5 -4
- package/dist/lib/generators/module-registry.js.map +2 -2
- package/dist/lib/resolver.js +2 -0
- package/dist/lib/resolver.js.map +2 -2
- package/package.json +5 -5
- package/src/lib/__integration__/TC-INT-008.spec.ts +103 -8
- package/src/lib/__tests__/agentic-init.test.ts +41 -5
- package/src/lib/__tests__/agentic-setup.ownership.test.ts +380 -0
- package/src/lib/agentic-init.ts +15 -3
- package/src/lib/agentic-setup.ts +526 -224
- package/src/lib/generators/__tests__/module-facts.bc-guard.test.ts +6 -0
- package/src/lib/generators/__tests__/module-facts.customers.fixture.test.ts +1 -0
- package/src/lib/generators/__tests__/module-facts.discovery.test.ts +54 -10
- package/src/lib/generators/__tests__/module-facts.extension-hosts.test.ts +108 -0
- package/src/lib/generators/__tests__/module-subset.test.ts +18 -0
- package/src/lib/generators/module-facts-discovery.ts +58 -7
- package/src/lib/generators/module-facts.ts +84 -20
- package/src/lib/generators/module-registry.ts +8 -4
- package/src/lib/resolver.ts +3 -0
- package/dist/agentic/guides/cache.md +0 -45
- package/dist/agentic/guides/core.md +0 -453
- package/dist/agentic/guides/events.md +0 -117
- package/dist/agentic/guides/queue.md +0 -53
- package/dist/agentic/guides/search.md +0 -115
- package/dist/agentic/guides/shared.md +0 -108
- package/dist/agentic/guides/ui.md +0 -347
- package/dist/agentic/shared/ai/skills/om-auto-continue-pr-loop/SKILL.md +0 -27
- package/dist/agentic/shared/ai/skills/om-auto-create-pr-loop/SKILL.md +0 -27
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/ui-components.md +0 -260
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/mikro-orm-cheatsheet.md +0 -146
- package/dist/agentic/shared/ai/skills/om-help/references/skills-catalog.md +0 -84
- package/dist/agentic/shared/ai/skills/om-help/references/workflow-sequences.md +0 -193
- package/dist/agentic/shared/ai/skills/om-integration-builder/STANDALONE.md +0 -34
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/adapter-contracts.md +0 -762
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/naming-conventions.md +0 -50
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/navigation-patterns.md +0 -97
- package/dist/agentic/shared/ai/skills/om-system-extension/references/extension-contracts.md +0 -271
- package/dist/agentic/shared/ai/skills/om-troubleshooter/references/diagnostic-commands.md +0 -101
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
# UI Components Reference
|
|
2
|
-
|
|
3
|
-
Complete reference of all available UI components in `@open-mercato/ui`.
|
|
4
|
-
|
|
5
|
-
## Package Structure
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
@open-mercato/ui/
|
|
9
|
-
├── primitives/ # Base UI components (shadcn-style)
|
|
10
|
-
├── backend/ # Full-featured admin components
|
|
11
|
-
├── frontend/ # Public-facing components
|
|
12
|
-
└── theme/ # Theme and provider setup
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## PRIMITIVES (`@open-mercato/ui/primitives/*`)
|
|
16
|
-
|
|
17
|
-
| Component | Import Path | Purpose |
|
|
18
|
-
|-----------|-------------|---------|
|
|
19
|
-
| **Button** | `@open-mercato/ui/primitives/button` | Core button with variants (default, outline, ghost, destructive) |
|
|
20
|
-
| **Input** | `@open-mercato/ui/primitives/input` | Text input field |
|
|
21
|
-
| **Label** | `@open-mercato/ui/primitives/label` | Form label component |
|
|
22
|
-
| **Textarea** | `@open-mercato/ui/primitives/textarea` | Multi-line text input |
|
|
23
|
-
| **Dialog** | `@open-mercato/ui/primitives/dialog` | Modal dialog (Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter) |
|
|
24
|
-
| **Tooltip** | `@open-mercato/ui/primitives/tooltip` | Hover tooltip + `SimpleTooltip` utility component |
|
|
25
|
-
| **Table** | `@open-mercato/ui/primitives/table` | Table structure (Table, TableHeader, TableBody, TableRow, TableHead, TableCell) |
|
|
26
|
-
| **Alert** | `@open-mercato/ui/primitives/alert` | Alert boxes (Alert, AlertTitle, AlertDescription) with variants |
|
|
27
|
-
| **Badge** | `@open-mercato/ui/primitives/badge` | Small badge/tag labels with variants |
|
|
28
|
-
| **Separator** | `@open-mercato/ui/primitives/separator` | Visual divider line |
|
|
29
|
-
| **Switch** | `@open-mercato/ui/primitives/switch` | Toggle switch control |
|
|
30
|
-
| **Spinner** | `@open-mercato/ui/primitives/spinner` | Loading spinner animation |
|
|
31
|
-
| **Notice** | `@open-mercato/ui/primitives/Notice` | Contextual notice/hint with variants (`error`, `info`, `warning`) and optional `compact` mode |
|
|
32
|
-
| **ErrorNotice** | `@open-mercato/ui/primitives/ErrorNotice` | Convenience wrapper around `<Notice variant="error">` with default title/message |
|
|
33
|
-
| **DataLoader** | `@open-mercato/ui/primitives/DataLoader` | Loading state wrapper with spinner and optional skeleton |
|
|
34
|
-
|
|
35
|
-
## BACKEND COMPONENTS (`@open-mercato/ui/backend/*`)
|
|
36
|
-
|
|
37
|
-
### Core Layout & Navigation
|
|
38
|
-
|
|
39
|
-
| Component | Import Path | Purpose | Key Props |
|
|
40
|
-
|-----------|-------------|---------|-----------|
|
|
41
|
-
| **AppShell** | `@open-mercato/ui/backend/AppShell` | Main application shell with sidebar, header, breadcrumbs | `navigation`, `user`, `children` |
|
|
42
|
-
| **Page, PageHeader, PageBody** | `@open-mercato/ui/backend/Page` | Page layout containers | - |
|
|
43
|
-
| **UserMenu** | `@open-mercato/ui/backend/UserMenu` | User profile dropdown with logout | `user`, `onLogout` |
|
|
44
|
-
| **FlashMessages, flash** | `@open-mercato/ui/backend/FlashMessages` | Toast notifications. Use `flash(message, type)` programmatically | Type: 'success' \| 'error' \| 'warning' \| 'info' |
|
|
45
|
-
|
|
46
|
-
### Data Display & Tables
|
|
47
|
-
|
|
48
|
-
| Component | Import Path | Purpose | Key Props |
|
|
49
|
-
|-----------|-------------|---------|-----------|
|
|
50
|
-
| **DataTable** | `@open-mercato/ui/backend/DataTable` | Feature-rich table with sorting, filtering, pagination, export, perspectives | `entityId`, `apiPath`, `extensionTableId`, `columns`, `data`, `page`, `pageSize`, `totalCount`, `onPageChange`, `onRowClick` |
|
|
51
|
-
| **TruncatedCell** | `@open-mercato/ui/backend/TruncatedCell` | Table cell with text truncation and tooltip | `value`, `maxWidth` |
|
|
52
|
-
| **EmptyState** | `@open-mercato/ui/backend/EmptyState` | Empty state placeholder | `title`, `description`, `action`, `icon` |
|
|
53
|
-
| **RowActions** | `@open-mercato/ui/backend/RowActions` | Context menu for row actions | `items: {label, href?, onSelect?, destructive?}[]` |
|
|
54
|
-
| **FilterBar** | `@open-mercato/ui/backend/FilterBar` | Search and filter UI bar | `filters`, `values`, `onApply`, `onClear` |
|
|
55
|
-
| **ValueIcons** | `@open-mercato/ui/backend/ValueIcons` | `BooleanIcon`, `EnumBadge`, `useSeverityPreset()` | - |
|
|
56
|
-
|
|
57
|
-
### Forms
|
|
58
|
-
|
|
59
|
-
| Component | Import Path | Purpose | Key Props |
|
|
60
|
-
|-----------|-------------|---------|-----------|
|
|
61
|
-
| **CrudForm** | `@open-mercato/ui/backend/CrudForm` | Complete CRUD form with field registry, groups, custom fields, validation | `fields`, `groups`, `initialValues`, `onSubmit`, `schema`, `embedded`, `extraActions` |
|
|
62
|
-
| **FormHeader** | `@open-mercato/ui/backend/forms` | Unified page header with `edit` mode (compact, for CrudForm) and `detail` mode (large title, entity type label, status badge, Actions dropdown) | `mode`, `backHref`, `title`, `actions`, `menuActions`, `onDelete`, `statusBadge` |
|
|
63
|
-
| **FormFooter** | `@open-mercato/ui/backend/forms` | Form footer wrapping FormActionButtons with embedded/dialog layout awareness | `actions`, `embedded`, `className` |
|
|
64
|
-
| **FormActionButtons** | `@open-mercato/ui/backend/forms` | Atomic button bar: [extraActions] [Delete] [Cancel] [Save]. Shared by header and footer. | `showDelete`, `onDelete`, `cancelHref`, `submit` |
|
|
65
|
-
| **ActionsDropdown** | `@open-mercato/ui/backend/forms` | Dropdown menu for additional context actions (Convert, Send, Print). Only visible when items are provided. Delete is never inside the dropdown. | `items: ActionItem[]`, `label`, `size` |
|
|
66
|
-
| **JsonBuilder** | `@open-mercato/ui/backend/JsonBuilder` | Interactive JSON editor with "Raw JSON" and "Builder" tabs | `value`, `onChange`, `disabled` |
|
|
67
|
-
| **JsonDisplay** | `@open-mercato/ui/backend/JsonDisplay` | Read-only JSON viewer with expand/collapse | `data`, `title`, `maxInitialDepth`, `showCopy` |
|
|
68
|
-
|
|
69
|
-
### Input Components (`@open-mercato/ui/backend/inputs/*`)
|
|
70
|
-
|
|
71
|
-
Specialized inputs that ship with the framework. For each, the full props table, MUST rules, and anti-patterns live in `.ai/ui-components.md` under the section linked from the component name.
|
|
72
|
-
|
|
73
|
-
| Component | Import Path | Purpose | Key Props |
|
|
74
|
-
|-----------|-------------|---------|-----------|
|
|
75
|
-
| **ComboboxInput** | `@open-mercato/ui/backend/inputs/ComboboxInput` | Single-value typeahead with sync/async suggestions; allows free-form custom values by default | `value`, `onChange`, `suggestions`, `loadSuggestions`, `resolveLabel`, `allowCustomValues` |
|
|
76
|
-
| **TagsInput** | `@open-mercato/ui/backend/inputs/TagsInput` | Multi-value (`string[]`) version of `ComboboxInput` with rich `{ value, label, description }` triples | `value`, `onChange`, `suggestions`, `loadSuggestions`, `selectedOptions`, `resolveLabel` |
|
|
77
|
-
| **LookupSelect** | `@open-mercato/ui/backend/inputs/LookupSelect` | Rich card-list search/select with title/subtitle/icon/badge per row; returns selected id | `value`, `onChange`, `fetchItems`, `options`, `minQuery`, `actionSlot` |
|
|
78
|
-
| **PhoneNumberField** | `@open-mercato/ui/backend/inputs/PhoneNumberField` | Compound country-picker + national-number input matching Figma `Text Input [1.1]` Phone variant. Validates + normalizes on blur, optional duplicate lookup | `value`, `onValueChange`, `onDigitsChange`, `countries`, `defaultCountryIso2`, `onDuplicateLookup` |
|
|
79
|
-
| **EventSelect** | `@open-mercato/ui/backend/inputs/EventSelect` | Strict select for declared platform events, grouped by module. **Mandated by `packages/ui/AGENTS.md`** for event selection | `value`, `onChange`, `categories`, `modules`, `excludeTriggerExcluded`, `size` |
|
|
80
|
-
| **EventPatternInput** | `@open-mercato/ui/backend/inputs/EventPatternInput` | `ComboboxInput` preloaded with declared events that allows wildcard patterns (e.g. `sales.orders.*`) | `value`, `onChange`, `categories`, `modules` |
|
|
81
|
-
| **TimeInput** | `@open-mercato/ui/backend/inputs/TimeInput` | Bare `HH:MM` editor (two `<input type="number">` cells, no popover). Low-level atom — most flows want `TimePicker` | `value`, `onChange`, `minuteStep`, `hourLabel`, `minuteLabel` |
|
|
82
|
-
| **DatePicker** *(@deprecated shim — import from `primitives/date-picker`)* | `@open-mercato/ui/backend/inputs/DatePicker` | Backward-compat re-export of the `DatePicker` primitive. New code MUST import from `@open-mercato/ui/primitives/date-picker`. | — |
|
|
83
|
-
| **DateTimePicker** *(@deprecated shim — use `DatePicker withTime`)* | `@open-mercato/ui/backend/inputs/DateTimePicker` | Thin wrapper that always sets `withTime` on the primitive. New code: `<DatePicker withTime />` | — |
|
|
84
|
-
| **TimePicker** *(@deprecated shim — import from `primitives/time-picker`)* | `@open-mercato/ui/backend/inputs/TimePicker` | Legacy popover-anchored time picker wrapping the new `TimePicker` primitive. New code: `@open-mercato/ui/primitives/time-picker`. | — |
|
|
85
|
-
| **SwitchableMarkdownInput** *(@deprecated — use `RichEditor`)* | `@open-mercato/ui/backend/inputs/SwitchableMarkdownInput` | Markdown ⇄ plain textarea toggle. Kept only for backward compatibility with Markdown-backed surfaces. New rich-text fields MUST use `RichEditor` from `@open-mercato/ui/primitives/rich-editor` (sanitized HTML). | `value`, `onChange`, `isMarkdownEnabled` |
|
|
86
|
-
|
|
87
|
-
### Input Variants (Figma `Text Input [1.1]` — `@open-mercato/ui/primitives/*`)
|
|
88
|
-
|
|
89
|
-
Foundation-level input variants matching Figma type-specific designs. Use these instead of raw `<Input type="email">`, `<Input type="password">`, etc. — they ship correct visual chrome (leading icons, prefix boxes, trailing buttons, brand badges) and i18n-resolved labels.
|
|
90
|
-
|
|
91
|
-
| Component | Import Path | Purpose | Key Props |
|
|
92
|
-
|-----------|-------------|---------|-----------|
|
|
93
|
-
| **EmailInput** | `@open-mercato/ui/primitives/email-input` | `Input` wrapper with leading Mail icon, `type="email"`, `autoComplete="email"` | `value`, `onChange`, `showIcon` |
|
|
94
|
-
| **SearchInput** | `@open-mercato/ui/primitives/search-input` | Leading Search icon + trailing × clear button (when value non-empty). Use for DataTable global filter, command palette, list-view live filter | `value`, `onChange`, `onClear`, `clearable` |
|
|
95
|
-
| **PasswordInput** | `@open-mercato/ui/primitives/password-input` | Leading Lock icon + trailing Eye/EyeOff reveal toggle. Controlled or uncontrolled reveal state | `value`, `onChange`, `revealable`, `revealed`, `onRevealedChange`, `showLockIcon` |
|
|
96
|
-
| **WebsiteInput** | `@open-mercato/ui/primitives/website-input` | Left "https://" prefix box + divider + URL input. `type="url"` | `value`, `onChange`, `prefix`, `showPrefix` |
|
|
97
|
-
| **AmountInput** | `@open-mercato/ui/primitives/amount-input` | Leading currency symbol + numeric input + trailing ISO currency picker (10 markets default) | `value: { amount, currency }`, `onChange`, `currencies`, `showCurrency` |
|
|
98
|
-
| **ButtonInput** | `@open-mercato/ui/primitives/button-input` | Input with optional `leftIcon` + divider + required `trailingAction` slot for interactive button (copy URL, send, regenerate) | `leftIcon`, `trailingAction` (required) |
|
|
99
|
-
| **CardInput** | `@open-mercato/ui/primitives/card-input` | Credit-card-number input with regex-based brand auto-detection (Visa/MC/Amex/Discover/Diners/JCB/UnionPay), format masking, brand badge | `value` (digits-only), `onChange`, `onBrandChange`, `brands` |
|
|
100
|
-
|
|
101
|
-
### Detail Page Components (`@open-mercato/ui/backend/detail/*`)
|
|
102
|
-
|
|
103
|
-
| Component | Import Path | Purpose | Key Props |
|
|
104
|
-
|-----------|-------------|---------|-----------|
|
|
105
|
-
| **DetailFieldsSection** | `@open-mercato/ui/backend/detail/DetailFieldsSection` | Entity field display with inline editing | `fields`, `entity`, `onUpdate` |
|
|
106
|
-
| **InlineTextEditor** | `@open-mercato/ui/backend/detail/InlineEditors` | Click-to-edit text field | `value`, `onSave`, `label` |
|
|
107
|
-
| **InlineMultilineEditor** | `@open-mercato/ui/backend/detail/InlineEditors` | Click-to-edit textarea | `value`, `onSave`, `label` |
|
|
108
|
-
| **InlineSelectEditor** | `@open-mercato/ui/backend/detail/InlineEditors` | Click-to-edit select | `value`, `onSave`, `options`, `label` |
|
|
109
|
-
| **NotesSection** | `@open-mercato/ui/backend/detail/NotesSection` | Notes/comments section with markdown | `notes`, `onAdd`, `onUpdate`, `onDelete` |
|
|
110
|
-
| **TagsSection** | `@open-mercato/ui/backend/detail/TagsSection` | Tag management section | `tags`, `onAdd`, `onRemove`, `suggestions` |
|
|
111
|
-
| **CustomDataSection** | `@open-mercato/ui/backend/detail/CustomDataSection` | Custom fields display | `data`, `fieldDefinitions` |
|
|
112
|
-
| **LoadingMessage** | `@open-mercato/ui/backend/detail` | Loading state with spinner | `message` |
|
|
113
|
-
| **ErrorMessage** | `@open-mercato/ui/backend/detail` | Error alert with action | `title`, `description`, `action` |
|
|
114
|
-
| **TabEmptyState** | `@open-mercato/ui/backend/detail` | Empty state for tabs | `message`, `action` |
|
|
115
|
-
|
|
116
|
-
## BACKEND UTILITIES (`@open-mercato/ui/backend/utils/*`)
|
|
117
|
-
|
|
118
|
-
| Utility | Import Path | Purpose | Key Exports |
|
|
119
|
-
|---------|-------------|---------|-------------|
|
|
120
|
-
| **apiCall** | `@open-mercato/ui/backend/utils/apiCall` | HTTP client with auth | `apiCall`, `apiCallOrThrow`, `readApiResultOrThrow` |
|
|
121
|
-
| **api** | `@open-mercato/ui/backend/utils/api` | Low-level API utils | `apiFetch` |
|
|
122
|
-
| **crud** | `@open-mercato/ui/backend/utils/crud` | CRUD operation helpers | `createCrud`, `updateCrud`, `deleteCrud` |
|
|
123
|
-
| **serverErrors** | `@open-mercato/ui/backend/utils/serverErrors` | Error mapping | `mapCrudServerErrorToFormErrors`, `createCrudFormError`, `raiseCrudError` |
|
|
124
|
-
| **customFieldValues** | `@open-mercato/ui/backend/utils/customFieldValues` | Custom field value helpers | `collectCustomFieldValues`, `normalizeCustomFieldSubmitValue` |
|
|
125
|
-
| **customFieldDefs** | `@open-mercato/ui/backend/utils/customFieldDefs` | Field definition fetching | `useCustomFieldDefinitions` |
|
|
126
|
-
| **customFieldForms** | `@open-mercato/ui/backend/utils/customFieldForms` | Form field generation | `buildCustomFieldFormFields` |
|
|
127
|
-
| **customFieldColumns** | `@open-mercato/ui/backend/utils/customFieldColumns` | Column builders | `buildCustomFieldColumns` |
|
|
128
|
-
| **customFieldFilters** | `@open-mercato/ui/backend/utils/customFieldFilters` | Filter definitions | `useCustomFieldFilters` |
|
|
129
|
-
|
|
130
|
-
## Common Usage Patterns
|
|
131
|
-
|
|
132
|
-
### Flash Messages
|
|
133
|
-
```tsx
|
|
134
|
-
import { flash } from '@open-mercato/ui/backend/FlashMessages'
|
|
135
|
-
|
|
136
|
-
flash('Record saved successfully', 'success')
|
|
137
|
-
flash('Failed to save record', 'error')
|
|
138
|
-
// Types: 'success' | 'error' | 'warning' | 'info'
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### DataTable with Filters
|
|
142
|
-
```tsx
|
|
143
|
-
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
144
|
-
import type { FilterDef, FilterValues } from '@open-mercato/ui/backend/FilterBar'
|
|
145
|
-
|
|
146
|
-
const filters: FilterDef[] = [
|
|
147
|
-
{ id: 'search', type: 'text', label: 'Search', placeholder: 'Search...' },
|
|
148
|
-
{ id: 'status', type: 'select', label: 'Status', options: [...] },
|
|
149
|
-
]
|
|
150
|
-
|
|
151
|
-
<DataTable
|
|
152
|
-
entityId="inventory.item"
|
|
153
|
-
apiPath="inventory/items"
|
|
154
|
-
extensionTableId="inventory.item"
|
|
155
|
-
columns={columns}
|
|
156
|
-
filters={filters}
|
|
157
|
-
filterValues={filterValues}
|
|
158
|
-
onFiltersApply={handleFiltersApply}
|
|
159
|
-
onFiltersClear={handleFiltersClear}
|
|
160
|
-
page={page}
|
|
161
|
-
pageSize={pageSize}
|
|
162
|
-
totalCount={totalCount}
|
|
163
|
-
onPageChange={setPage}
|
|
164
|
-
onRowClick={(row) => router.push(`/items/${row.id}`)}
|
|
165
|
-
/>
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### CrudForm
|
|
169
|
-
```tsx
|
|
170
|
-
import { CrudForm, type CrudField, type CrudFormGroup } from '@open-mercato/ui/backend/CrudForm'
|
|
171
|
-
|
|
172
|
-
const fields: CrudField[] = [
|
|
173
|
-
{ id: 'name', label: 'Name', type: 'text', required: true },
|
|
174
|
-
{ id: 'description', label: 'Description', type: 'textarea' },
|
|
175
|
-
{ id: 'status', label: 'Status', type: 'select', options: [...] },
|
|
176
|
-
{ id: 'config', label: 'Config', type: 'custom', component: (props) => <JsonBuilder {...props} /> },
|
|
177
|
-
]
|
|
178
|
-
|
|
179
|
-
const groups: CrudFormGroup[] = [
|
|
180
|
-
{ id: 'basic', title: 'Basic Info', column: 1, fields: ['name', 'description'] },
|
|
181
|
-
{ id: 'settings', title: 'Settings', column: 1, fields: ['status', 'config'] },
|
|
182
|
-
]
|
|
183
|
-
|
|
184
|
-
<CrudForm
|
|
185
|
-
title="Create Item"
|
|
186
|
-
fields={fields}
|
|
187
|
-
groups={groups}
|
|
188
|
-
initialValues={{}}
|
|
189
|
-
onSubmit={handleSubmit}
|
|
190
|
-
submitLabel="Save"
|
|
191
|
-
embedded={true} // For use inside dialogs
|
|
192
|
-
extraActions={<Button onClick={handleDelete}>Delete</Button>}
|
|
193
|
-
/>
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### Dialog with Form
|
|
197
|
-
```tsx
|
|
198
|
-
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@open-mercato/ui/primitives/dialog'
|
|
199
|
-
import { CrudForm } from '@open-mercato/ui/backend/CrudForm'
|
|
200
|
-
|
|
201
|
-
<Dialog open={isOpen} onOpenChange={onClose}>
|
|
202
|
-
<DialogContent className="sm:max-w-2xl [&_.grid]:!grid-cols-1">
|
|
203
|
-
<DialogHeader>
|
|
204
|
-
<DialogTitle>Edit Item</DialogTitle>
|
|
205
|
-
</DialogHeader>
|
|
206
|
-
<CrudForm
|
|
207
|
-
fields={fields}
|
|
208
|
-
groups={groups}
|
|
209
|
-
initialValues={initialValues}
|
|
210
|
-
onSubmit={handleSubmit}
|
|
211
|
-
embedded={true}
|
|
212
|
-
submitLabel="Save"
|
|
213
|
-
/>
|
|
214
|
-
</DialogContent>
|
|
215
|
-
</Dialog>
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
### Detail Page with Inline Editing
|
|
219
|
-
```tsx
|
|
220
|
-
import { DetailFieldsSection, LoadingMessage, ErrorMessage } from '@open-mercato/ui/backend/detail'
|
|
221
|
-
|
|
222
|
-
if (isLoading) return <LoadingMessage message="Loading..." />
|
|
223
|
-
if (error) return <ErrorMessage title="Error" description={error.message} />
|
|
224
|
-
|
|
225
|
-
<DetailFieldsSection
|
|
226
|
-
fields={[
|
|
227
|
-
{ id: 'name', label: 'Name', type: 'text' },
|
|
228
|
-
{ id: 'status', label: 'Status', type: 'select', options: [...] },
|
|
229
|
-
]}
|
|
230
|
-
entity={entity}
|
|
231
|
-
onUpdate={handleUpdate}
|
|
232
|
-
/>
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
### API Calls
|
|
236
|
-
```tsx
|
|
237
|
-
import { apiCall } from '@open-mercato/ui/backend/utils/apiCall'
|
|
238
|
-
import { createCrud, updateCrud, deleteCrud } from '@open-mercato/ui/backend/utils/crud'
|
|
239
|
-
|
|
240
|
-
// Generic API call
|
|
241
|
-
const result = await apiCall<ResponseType>('/api/endpoint', { method: 'POST', body: JSON.stringify(data) })
|
|
242
|
-
if (result.ok) {
|
|
243
|
-
// result.result contains the parsed JSON response
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
// CRUD operations
|
|
247
|
-
const created = await createCrud<ItemType>('module/items', payload)
|
|
248
|
-
const updated = await updateCrud<ItemType>('module/items', id, payload)
|
|
249
|
-
const deleted = await deleteCrud('module/items', id)
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
## Important Notes
|
|
253
|
-
|
|
254
|
-
1. **Always use `flash()` for notifications** - Don't use `alert()` or custom toast implementations
|
|
255
|
-
2. **Use `CrudForm` for forms** - Provides consistent validation, field rendering, and keyboard shortcuts
|
|
256
|
-
3. **Use `DataTable` for lists** - Includes filtering, sorting, pagination, export, and perspectives
|
|
257
|
-
4. **Keep `extensionTableId` stable** - Injection spots must remain backward-compatible
|
|
258
|
-
5. **Use `JsonBuilder` for JSON editing** - Provides both raw JSON and visual builder modes
|
|
259
|
-
6. **Dialog forms need `embedded={true}`** - And add `[&_.grid]:!grid-cols-1` to DialogContent for single-column layout
|
|
260
|
-
7. **Support Cmd/Ctrl+Enter and Escape** - All dialogs should support these keyboard shortcuts
|
package/dist/agentic/shared/ai/skills/om-data-model-design/references/mikro-orm-cheatsheet.md
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
# MikroORM Entity Cheatsheet
|
|
2
|
-
|
|
3
|
-
## Property Decorators
|
|
4
|
-
|
|
5
|
-
```typescript
|
|
6
|
-
// String
|
|
7
|
-
@Property({ type: 'varchar', length: 255 })
|
|
8
|
-
name!: string
|
|
9
|
-
|
|
10
|
-
// Text (unlimited)
|
|
11
|
-
@Property({ type: 'text' })
|
|
12
|
-
description!: string
|
|
13
|
-
|
|
14
|
-
// Integer
|
|
15
|
-
@Property({ type: 'int' })
|
|
16
|
-
count!: number
|
|
17
|
-
|
|
18
|
-
// Decimal (money)
|
|
19
|
-
@Property({ type: 'decimal', precision: 10, scale: 2 })
|
|
20
|
-
amount!: string // Note: decimals are strings in MikroORM
|
|
21
|
-
|
|
22
|
-
// Boolean
|
|
23
|
-
@Property({ type: 'boolean', default: false })
|
|
24
|
-
is_published: boolean = false
|
|
25
|
-
|
|
26
|
-
// UUID
|
|
27
|
-
@Property({ type: 'uuid' })
|
|
28
|
-
reference_id!: string
|
|
29
|
-
|
|
30
|
-
// Date only
|
|
31
|
-
@Property({ type: 'date' })
|
|
32
|
-
birth_date!: Date
|
|
33
|
-
|
|
34
|
-
// Date + time with timezone
|
|
35
|
-
@Property({ type: 'timestamptz' })
|
|
36
|
-
created_at: Date = new Date()
|
|
37
|
-
|
|
38
|
-
// Auto-update timestamp
|
|
39
|
-
@Property({ type: 'timestamptz', onUpdate: () => new Date() })
|
|
40
|
-
updated_at: Date = new Date()
|
|
41
|
-
|
|
42
|
-
// Nullable
|
|
43
|
-
@Property({ type: 'varchar', length: 255, nullable: true })
|
|
44
|
-
optional_field: string | null = null
|
|
45
|
-
|
|
46
|
-
// JSONB
|
|
47
|
-
@Property({ type: 'jsonb', nullable: true })
|
|
48
|
-
metadata: Record<string, unknown> | null = null
|
|
49
|
-
|
|
50
|
-
// JSONB with default
|
|
51
|
-
@Property({ type: 'jsonb', default: '[]' })
|
|
52
|
-
tags: string[] = []
|
|
53
|
-
|
|
54
|
-
// Enum
|
|
55
|
-
@Enum({ items: () => StatusEnum })
|
|
56
|
-
status: StatusEnum = StatusEnum.DRAFT
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Index Decorators
|
|
60
|
-
|
|
61
|
-
```typescript
|
|
62
|
-
// Simple index
|
|
63
|
-
@Index()
|
|
64
|
-
@Property({ type: 'uuid' })
|
|
65
|
-
organization_id!: string
|
|
66
|
-
|
|
67
|
-
// Unique index
|
|
68
|
-
@Index({ unique: true })
|
|
69
|
-
@Property({ type: 'varchar', length: 255 })
|
|
70
|
-
email!: string
|
|
71
|
-
|
|
72
|
-
// Composite unique (on entity level)
|
|
73
|
-
@Entity({ tableName: 'product_tags' })
|
|
74
|
-
@Unique({ properties: ['product_id', 'tag_id'] })
|
|
75
|
-
export class ProductTag { ... }
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Common Queries
|
|
79
|
-
|
|
80
|
-
```typescript
|
|
81
|
-
// Find all (with tenant filter)
|
|
82
|
-
const items = await em.find(Entity, {
|
|
83
|
-
organization_id: orgId,
|
|
84
|
-
deleted_at: null,
|
|
85
|
-
})
|
|
86
|
-
|
|
87
|
-
// Find one by ID
|
|
88
|
-
const item = await em.findOne(Entity, {
|
|
89
|
-
id: itemId,
|
|
90
|
-
organization_id: orgId,
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
// Find with conditions
|
|
94
|
-
const items = await em.find(Entity, {
|
|
95
|
-
organization_id: orgId,
|
|
96
|
-
status: StatusEnum.ACTIVE,
|
|
97
|
-
created_at: { $gte: startDate },
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
// Find with IN clause (batch lookup)
|
|
101
|
-
const items = await em.find(Entity, {
|
|
102
|
-
id: { $in: idArray },
|
|
103
|
-
organization_id: orgId,
|
|
104
|
-
})
|
|
105
|
-
|
|
106
|
-
// Count
|
|
107
|
-
const count = await em.count(Entity, {
|
|
108
|
-
organization_id: orgId,
|
|
109
|
-
deleted_at: null,
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
// Pagination
|
|
113
|
-
const items = await em.find(Entity, {
|
|
114
|
-
organization_id: orgId,
|
|
115
|
-
}, {
|
|
116
|
-
limit: pageSize,
|
|
117
|
-
offset: (page - 1) * pageSize,
|
|
118
|
-
orderBy: { created_at: 'DESC' },
|
|
119
|
-
})
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
## Zod Validator Patterns
|
|
123
|
-
|
|
124
|
-
```typescript
|
|
125
|
-
import { z } from 'zod'
|
|
126
|
-
|
|
127
|
-
// Create schema
|
|
128
|
-
export const createEntitySchema = z.object({
|
|
129
|
-
name: z.string().min(1).max(255),
|
|
130
|
-
description: z.string().optional(),
|
|
131
|
-
amount: z.number().positive(),
|
|
132
|
-
status: z.enum(['draft', 'active', 'archived']),
|
|
133
|
-
tags: z.array(z.string()).default([]),
|
|
134
|
-
metadata: z.record(z.unknown()).optional(),
|
|
135
|
-
referenceId: z.string().uuid().optional(),
|
|
136
|
-
})
|
|
137
|
-
|
|
138
|
-
// Update schema (partial + required id)
|
|
139
|
-
export const updateEntitySchema = createEntitySchema.partial().extend({
|
|
140
|
-
id: z.string().uuid(),
|
|
141
|
-
})
|
|
142
|
-
|
|
143
|
-
// Derive types
|
|
144
|
-
export type CreateEntityInput = z.infer<typeof createEntitySchema>
|
|
145
|
-
export type UpdateEntityInput = z.infer<typeof updateEntitySchema>
|
|
146
|
-
```
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Skills Catalog — Standalone App
|
|
2
|
-
|
|
3
|
-
> All skills available in a `create-mercato-app` project, organized by category.
|
|
4
|
-
> Load this file when answering "what skill should I use?" or "what comes next?".
|
|
5
|
-
|
|
6
|
-
## Table of Contents
|
|
7
|
-
|
|
8
|
-
- [Building Your App](#building-your-app)
|
|
9
|
-
- [Extending & Customizing](#extending--customizing)
|
|
10
|
-
- [Troubleshooting & Maintenance](#troubleshooting--maintenance)
|
|
11
|
-
- [PR & Code Quality](#pr--code-quality)
|
|
12
|
-
- [Migration](#migration)
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## Building Your App
|
|
17
|
-
|
|
18
|
-
Skills for creating new functionality in your standalone Open Mercato application.
|
|
19
|
-
|
|
20
|
-
| Skill | Trigger / When to use | Preceded by | Followed by |
|
|
21
|
-
|-------|----------------------|-------------|-------------|
|
|
22
|
-
| `om-help` | "what now?", "which skill?", "next steps?", "how do I X?", orientation | — | any |
|
|
23
|
-
| `om-data-model-design` | Designing entities, relationships, migrations, encryption maps for PII | — | `om-spec-writing` or `om-module-scaffold` |
|
|
24
|
-
| `om-spec-writing` | Writing a spec before building a non-trivial feature | `om-data-model-design` | `om-module-scaffold` or `om-implement-spec` |
|
|
25
|
-
| `om-module-scaffold` | Creating a new module with entity, routes, pages, ACL, DI | `om-spec-writing` or `om-data-model-design` | `om-integration-tests` |
|
|
26
|
-
| `om-implement-spec` | Implementing an existing spec phase-by-phase | `om-spec-writing` | `om-integration-tests` |
|
|
27
|
-
| `om-backend-ui-design` | Designing admin pages, CRUD forms, data tables | — | `om-implement-spec` or `om-module-scaffold` |
|
|
28
|
-
| `om-integration-builder` | Building a payment, shipping, or data-sync integration provider | `om-spec-writing` | `om-integration-tests` |
|
|
29
|
-
| `om-integration-tests` | Writing or running Playwright integration tests | `om-module-scaffold` or `om-implement-spec` | `om-code-review` |
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## Extending & Customizing
|
|
34
|
-
|
|
35
|
-
Skills for modifying or extending behavior without touching core module source.
|
|
36
|
-
|
|
37
|
-
| Skill | Trigger / When to use | Preceded by | Followed by |
|
|
38
|
-
|-------|----------------------|-------------|-------------|
|
|
39
|
-
| `om-system-extension` | Add columns/fields/filters to existing tables, enrich API responses, intercept routes, inject menu items, replace UI components | — | `om-code-review` |
|
|
40
|
-
| `om-eject-and-customize` | When UMES extensions aren't enough and you need to modify core module source directly | — | `om-code-review` |
|
|
41
|
-
| `om-trim-unused-modules` | Slim down the app by disabling modules you don't use | — | `om-code-review` |
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## Troubleshooting & Maintenance
|
|
46
|
-
|
|
47
|
-
| Skill | Trigger / When to use | Preceded by | Followed by |
|
|
48
|
-
|-------|----------------------|-------------|-------------|
|
|
49
|
-
| `om-troubleshooter` | Errors, module not loading, widgets not appearing, migration failures, build errors, "it doesn't work" | — | `om-code-review` (after fix) |
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## PR & Code Quality
|
|
54
|
-
|
|
55
|
-
| Skill | Trigger / When to use | Preceded by | Followed by |
|
|
56
|
-
|-------|----------------------|-------------|-------------|
|
|
57
|
-
| `om-code-review` | Review before merging — architecture, security, DS, conventions | any impl skill | `om-auto-create-pr` |
|
|
58
|
-
| `om-auto-create-pr` | Ship work as a GitHub PR end-to-end | `om-code-review` | `om-auto-review-pr` |
|
|
59
|
-
| `om-auto-continue-pr` | Resume an in-progress PR started by `om-auto-create-pr` | — | `om-auto-review-pr` |
|
|
60
|
-
| `om-auto-create-pr-loop` | Long multi-step implementation with step-level resumability | — | `om-auto-review-pr` |
|
|
61
|
-
| `om-auto-continue-pr-loop` | Resume a PR started by `om-auto-create-pr-loop` | — | `om-auto-review-pr` |
|
|
62
|
-
| `om-auto-review-pr` | Automated PR review + approve/request-changes | `om-auto-create-pr` | — |
|
|
63
|
-
| `om-auto-fix-issue` | Fix a GitHub issue end-to-end (drives `om-verify-in-repo` → `om-root-cause` → `om-fix` → `om-open-pr`) | — | `om-auto-create-pr` |
|
|
64
|
-
| `om-prepare-issue` | Capture a feature to build later — write the spec, ship a docs-only spec PR, open a tracking issue | `om-spec-writing` | `om-implement-spec` |
|
|
65
|
-
| `om-prepare-test-env` | Boot a reusable local test environment (shared descriptor for QA + integration tests) | — | `om-integration-tests` |
|
|
66
|
-
| `om-setup-agent-pipeline` | Tailor `.ai/agentic.config.json` (labels, QA gate, tracker, validation commands) — the scaffold ships working defaults | — | any auto-skill |
|
|
67
|
-
| `om-apply-upgrade-notes` | Sync installed pipeline artifacts after `yarn install-skills` refreshed the external collection | — | — |
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## Migration
|
|
72
|
-
|
|
73
|
-
| Skill | Trigger / When to use | Preceded by | Followed by |
|
|
74
|
-
|-------|----------------------|-------------|-------------|
|
|
75
|
-
| `om-auto-upgrade-0.4.10-to-0.5.0` | Upgrade app from Open Mercato 0.4.10 → 0.5.0 | — | `om-code-review` |
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
## Notes
|
|
80
|
-
|
|
81
|
-
- **preceded-by / followed-by** are suggestions, not hard constraints.
|
|
82
|
-
- `om-troubleshooter` is always a valid entry point when something is broken.
|
|
83
|
-
- `om-system-extension` should be tried before `om-eject-and-customize` — ejecting makes upgrades harder.
|
|
84
|
-
- `om-help` is always the right starting point when you're unsure.
|