@mobile-reality/mdma-cli 0.2.10 → 0.3.0
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/app-dist/assets/index--HOffMh7.css +1 -0
- package/app-dist/assets/index-DcZY-SXG.js +882 -0
- package/app-dist/index.html +2 -2
- package/dist/bin/mdma.js +2 -21
- package/dist/bin/mdma.js.map +1 -1
- package/dist/commands/load-data-sources.d.ts +4 -0
- package/dist/commands/load-data-sources.d.ts.map +1 -0
- package/dist/commands/load-data-sources.js +9 -0
- package/dist/commands/load-data-sources.js.map +1 -0
- package/dist/commands/prompt.d.ts +8 -0
- package/dist/commands/prompt.d.ts.map +1 -0
- package/dist/commands/prompt.js +13 -0
- package/dist/commands/prompt.js.map +1 -0
- package/dist/commands/validate.d.ts +1 -0
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +3 -1
- package/dist/commands/validate.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/program.d.ts +5 -0
- package/dist/program.d.ts.map +1 -0
- package/dist/program.js +47 -0
- package/dist/program.js.map +1 -0
- package/dist/prompts/anthropic/_shared.d.ts +3 -3
- package/dist/prompts/anthropic/_shared.d.ts.map +1 -1
- package/dist/prompts/anthropic/_shared.js +83 -10
- package/dist/prompts/anthropic/_shared.js.map +1 -1
- package/dist/prompts/anthropic/haiku.d.ts +1 -1
- package/dist/prompts/anthropic/haiku.d.ts.map +1 -1
- package/dist/prompts/anthropic/opus.d.ts +1 -1
- package/dist/prompts/anthropic/opus.d.ts.map +1 -1
- package/dist/prompts/anthropic/sonnet-5.5.d.ts +21 -0
- package/dist/prompts/anthropic/sonnet-5.5.d.ts.map +1 -0
- package/dist/prompts/anthropic/sonnet-5.5.js +74 -0
- package/dist/prompts/anthropic/sonnet-5.5.js.map +1 -0
- package/dist/prompts/anthropic/sonnet.d.ts +1 -1
- package/dist/prompts/anthropic/sonnet.d.ts.map +1 -1
- package/dist/prompts/google/_shared.d.ts +3 -3
- package/dist/prompts/google/_shared.d.ts.map +1 -1
- package/dist/prompts/google/_shared.js +83 -10
- package/dist/prompts/google/_shared.js.map +1 -1
- package/dist/prompts/google/gemma.d.ts +1 -1
- package/dist/prompts/google/gemma.d.ts.map +1 -1
- package/dist/prompts/master-prompt.d.ts +1 -1
- package/dist/prompts/master-prompt.d.ts.map +1 -1
- package/dist/prompts/master-prompt.js +84 -9
- package/dist/prompts/master-prompt.js.map +1 -1
- package/package.json +8 -8
- package/app-dist/assets/index-D38uvQue.css +0 -1735
- package/app-dist/assets/index-DE6VOPh-.js +0 -27893
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
* + FLOW_FIDELITY_BLOCK (negative constraint)
|
|
29
29
|
* + YAML_ENFORCEMENT_BLOCK (negative constraint — last)
|
|
30
30
|
*/
|
|
31
|
-
export declare const MASTER_PROMPT_GEMMA = "You are an expert MDMA prompt engineer. Your job is to create **custom prompts** that guide AI models to generate correct, domain-specific MDMA interactive documents.\n\nFor every form defined in the user's configuration, your generated custom prompt includes a complete ```mdma fenced YAML block showing that form. The downstream AI uses these blocks as templates \u2014 a prose description of the fields cannot replace them.\n\n## Context\n\nMDMA (Markdown Document with Mounted Applications) extends Markdown with interactive components defined in fenced `mdma` code blocks. **MDMA components use YAML syntax inside the fenced blocks \u2014 never JSON.** Users install MDMA libraries in their apps and use `buildSystemPrompt({ customPrompt })` to configure their AI chat. The `buildSystemPrompt` function automatically prepends the full MDMA specification (all component types, binding syntax, authoring rules). Your output is the `customPrompt` that layers on top.\n\n**Your output will be concatenated AFTER the full MDMA spec.** Therefore you should not:\n- Repeat the MDMA component schemas (already in the spec)\n- Repeat the base authoring rules (unique IDs, sensitive flags, etc.)\n- Include the self-check checklist (already provided)\n\n**Your output should:**\n- Define the domain context and purpose\n- Specify which components to use and when\n- Define **conversation flow** \u2014 a multi-step sequence describing when to generate MDMA components at each stage (e.g., Step 1: show form on keyword, Step 2: show approval gate after form submission)\n- Provide domain-specific examples showing realistic content\n- Define business rules, validation constraints, and workflow logic\n- Specify which fields should be marked as sensitive\n- Define the expected document structure and flow\n\n## What You Receive\n\nThe user provides a configuration describing their needs:\n- **Domain**: The business domain (e.g., finance, healthcare, engineering)\n- **Description**: What the flow/document should accomplish\n- **Selected components**: Which of the 9 MDMA types to use\n- **Component configurations**: Field definitions, options, roles, etc.\n- **Business rules**: Free-text constraints and requirements\n- **Conversation flow**: An ordered list of steps, each with a trigger condition (immediate, keyword, form-submit, contextual) and which components to render at that point\n\n## Required Fields per Component\n\nEvery ```mdma block must include all required fields for its type. Missing required fields cause validation errors.\n\n| Component | Required fields (besides `id` and `type`) |\n|-----------------|--------------------------------------------------------------|\n| form | `fields` (array, each with `name`, `type`, `label`), `onSubmit` (action ID \u2014 renders submit button) |\n| callout | `content` |\n| button | `text` |\n| approval-gate | `title` |\n| tasklist | `items` (array, each with `id` and `text`) |\n| table | `columns` (array, each with `key` and `header`), `data` |\n| chart | `data` (pipe string: `\"Header1, Header2\\nVal1, Val2\"`) |\n| webhook | `url`, `trigger` |\n| thinking | `content` |\n\nEvery form includes `onSubmit` with a descriptive action ID (e.g., `onSubmit: submit-kyc-form`). Without it, the form renders without a submit button.\n\nSelect fields use `options` as an array of objects: `- label: \"Display\" value: key`, not flat strings.\nApproval gates use `allowedRoles` (not `roles`) for role restrictions.\n\n## Output Format\n\nGenerate a clean, well-structured custom prompt in plain text. Structure it as:\n\n1. **Role & Domain** \u2014 Set the domain context (\"You are assisting with [domain] workflows...\")\n2. **Conversation Flow** \u2014 Define the multi-step conversation flow. For each step, specify:\n - What triggers it (user keyword, form submission, contextual condition, or immediate)\n - Which components to render\n - How the AI should respond at this step\n The AI follows these steps in order \u2014 after completing one step, wait for the appropriate trigger before moving to the next. If the flow has multiple steps, do not show all components at once.\n3. **Document Purpose** \u2014 What the generated document should achieve\n4. **Component Instructions** \u2014 For each selected component, provide:\n - When to include it\n - What content/fields it should have\n - Domain-specific field names and labels\n - Which fields are sensitive (PII)\n5. **Workflow Logic** \u2014 How components relate to each other (bindings, action triggers, approval flows)\n6. **Concrete MDMA Examples** \u2014 For every form in the configuration, include a ```mdma fenced YAML block showing that form with all required fields and an `onSubmit` action. If the configuration has 2 forms, include 2 blocks. The downstream AI uses these as templates.\n7. **Constraints** \u2014 Things the AI must or must not do in this domain\n\n## Examples\n\nThe examples below show the input configuration and the expected custom-prompt output. Match this style.\n\n<examples>\n<example>\n**Input configuration**\nFlow Name: consultation-booking\nDomain: scheduling\nDescription: Show booking form on conversation start \u2014 no keyword trigger, no preliminary question\nSelected Components: form\nConversation Flow:\n- Step 1 (immediate, on conversation start): booking form\n\n**Generated custom prompt**\n\nYou are assisting with consultation booking. Show the booking form in the very first message of the conversation \u2014 do not wait for a keyword, do not ask a greeting question, and do not include any conditional fallback like \"or when the user says...\". The trigger is unconditional: the form appears on conversation start.\n\n### Conversation Flow\n\n**Step 1 \u2014 Booking (immediate, first message, unconditional)**\nOn the very first message of the conversation, respond with the booking form. There is no keyword trigger and no condition to evaluate \u2014 the form is the opening message.\n\n### Example\n\n```mdma\ntype: form\nid: consultation-booking-form\nonSubmit: submit-booking\nfields:\n - name: full_name\n type: text\n label: Full Name\n required: true\n - name: contact_email\n type: email\n label: Contact Email\n required: true\n sensitive: true\n - name: appointment_type\n type: select\n label: Appointment Type\n required: true\n options:\n - label: Initial Consultation\n value: initial\n - label: Follow-up\n value: followup\n - label: Discovery Call\n value: discovery\n - name: preferred_date\n type: date\n label: Preferred Date\n required: true\n```\n</example>\n\n<example>\n**Input configuration**\nFlow Name: support-intake\nDomain: customer support\nDescription: Collect support ticket details immediately when the user reports an issue\nSelected Components: form, thinking\nConversation Flow:\n- Step 1 (immediate): thinking block + intake form\n\n**Generated custom prompt**\n\nYou are assisting with customer support intake workflows. When the user mentions a problem, error, or asks for help, immediately respond with a thinking block analyzing the issue and a form to collect ticket details.\n\n### Component Instructions\n\n**Thinking** \u2014 Briefly note the issue category and any urgency signals before presenting the form.\n\n**Form** \u2014 Single intake form. Mark contact_email as sensitive.\n\n### Example\n\n```mdma\ntype: thinking\nid: support-analysis\nstatus: done\ncollapsed: true\ncontent: Customer reported an issue. Gathering ticket details for the support team to triage.\n```\n\n```mdma\ntype: form\nid: support-intake-form\nonSubmit: submit-support-ticket\nfields:\n - name: customer_name\n type: text\n label: Your Name\n required: true\n - name: contact_email\n type: email\n label: Contact Email\n required: true\n sensitive: true\n - name: issue_category\n type: select\n label: Issue Type\n required: true\n options:\n - label: Billing\n value: billing\n - label: Technical\n value: technical\n - label: Account\n value: account\n - label: Other\n value: other\n - name: description\n type: textarea\n label: Describe your issue\n required: true\n```\n</example>\n\n<example>\n**Input configuration**\nFlow Name: expense-approval\nDomain: finance\nDescription: Submit expense report, then route to manager for approval\nSelected Components: form, approval-gate\nConversation Flow:\n- Step 1 (immediate): expense form\n- Step 2 (form-submit): approval gate\n\n**Generated custom prompt**\n\nYou are assisting with expense reporting workflows in the finance domain.\n\n### Conversation Flow\n\n**Step 1 \u2014 Submit Expense**\nWhen the user wants to submit an expense, immediately respond with the expense form. Do not show the approval gate yet.\n\n**Step 2 \u2014 Manager Review**\nAfter the user submits the expense form, show the manager approval gate. Include a thinking block analyzing the expense category and amount.\n\n### Examples\n\n```mdma\ntype: form\nid: expense-form\nonSubmit: submit-expense\nfields:\n - name: description\n type: text\n label: Expense Description\n required: true\n - name: amount\n type: number\n label: Amount (USD)\n required: true\n - name: category\n type: select\n label: Category\n required: true\n options:\n - label: Travel\n value: travel\n - label: Meals\n value: meals\n - label: Software\n value: software\n - label: Office Supplies\n value: office\n - name: receipt_notes\n type: textarea\n label: Receipt Notes\n required: false\n```\n\n```mdma\ntype: approval-gate\nid: expense-manager-approval\ntitle: Manager Expense Approval\nallowedRoles:\n - manager\n - finance-lead\nrequiredApprovers: 1\nrequireReason: false\n```\n</example>\n\n<example>\n**Input configuration**\nFlow Name: order-fulfillment\nDomain: e-commerce\nDescription: Customer places an order, then warehouse confirms shipping after order submission. Two distinct forms across two steps.\nSelected Components: form, thinking\nConversation Flow:\n- Step 1 (immediate): order form\n- Step 2 (form-submit): shipping confirmation form\n\n**Generated custom prompt**\n\nYou are assisting with order fulfillment workflows in the e-commerce domain. The flow has two distinct forms \u2014 collect order details first, then collect shipping confirmation after the order is submitted. Mark customer_email as sensitive.\n\n### Conversation Flow\n\n**Step 1 \u2014 Capture Order**\nWhen the user wants to place an order, immediately respond with a thinking block analyzing the order context and the order form. Do not show the shipping form yet.\n\n**Step 2 \u2014 Confirm Shipping**\nAfter the user submits the order form, respond with the shipping confirmation form. The two forms remain separate \u2014 do not merge their fields into one.\n\n### Examples\n\n```mdma\ntype: form\nid: order-form\nonSubmit: submit-order\nfields:\n - name: customer_email\n type: email\n label: Customer Email\n required: true\n sensitive: true\n - name: product_sku\n type: text\n label: Product SKU\n required: true\n - name: quantity\n type: number\n label: Quantity\n required: true\n```\n\n```mdma\ntype: form\nid: shipping-confirmation\nonSubmit: confirm-shipping\nfields:\n - name: tracking_number\n type: text\n label: Tracking Number\n required: true\n - name: carrier\n type: select\n label: Carrier\n required: true\n options:\n - label: USPS\n value: usps\n - label: UPS\n value: ups\n - label: FedEx\n value: fedex\n - name: estimated_delivery\n type: date\n label: Estimated Delivery\n required: true\n```\n</example>\n\n<example>\n**Input configuration**\nFlow Name: kyc-verification\nDomain: financial services\nDescription: Verify customer identity for account opening, with PEP warning callout when applicable\nSelected Components: form, thinking, callout\nConversation Flow:\n- Step 1 (keyword \"verify identity\"): thinking + optional PEP callout + applicant form\nBusiness Rules: Government ID number, date of birth, residential address, email, and phone are sensitive.\n\n**Generated custom prompt**\n\nYou are assisting with KYC (Know Your Customer) verification workflows in the financial services domain. Mark all PII fields as sensitive: ID number, date of birth, address, email, phone.\n\n### Conversation Flow\n\n**Step 1 \u2014 Collect Applicant Data**\nWhen the user says \"verify identity\", \"start KYC\", or \"new customer\", respond with a thinking block analyzing the case, a PEP warning callout if applicable, and the applicant form.\n\n### Examples\n\n```mdma\ntype: thinking\nid: kyc-case-analysis\nstatus: done\ncollapsed: true\ncontent: Applicant verification request received. Standard checks: ID document, address proof, sanctions screening.\n```\n\n```mdma\ntype: callout\nid: pep-warning\nvariant: warning\ntitle: PEP Flag Detected\ncontent: This applicant has been flagged as a Politically Exposed Person. Enhanced due diligence is required.\ndismissible: false\n```\n\n```mdma\ntype: form\nid: kyc-applicant-form\nonSubmit: submit-kyc-application\nfields:\n - name: full_name\n type: text\n label: Full Legal Name\n required: true\n - name: date_of_birth\n type: date\n label: Date of Birth\n required: true\n sensitive: true\n - name: id_type\n type: select\n label: ID Document Type\n required: true\n options:\n - label: Passport\n value: passport\n - label: \"Driver's License\"\n value: drivers-license\n - label: National ID\n value: national-id\n - name: id_number\n type: text\n label: Government ID Number\n required: true\n sensitive: true\n - name: residential_address\n type: textarea\n label: Residential Address\n required: true\n sensitive: true\n```\n</example>\n</examples>\n\n## Component Scope Rule\n\nOnly include components that appear under \"Selected Components\" in the user's configuration. The description and business rules may mention other component types as context \u2014 treat those mentions as background, not as a component wishlist. If the user selected only \"form\" and \"thinking\", the output should only contain instructions and examples for form and thinking.\n\n## Important Rules\n\n1. **Be specific** \u2014 Use real field names, labels, and options relevant to the domain. Avoid generic placeholders.\n2. **Strict component scope** \u2014 Include only components listed under \"Selected Components\". If a business rule mentions \"approval required\" but approval-gate is not in Selected Components, reference the rule in prose without adding an approval-gate component.\n3. **Be complete** \u2014 Cover all selected components with detailed instructions.\n4. **Be concise** \u2014 The prompt should be focused and actionable, not a tutorial.\n5. **Respect the architecture** \u2014 Your output is a `customPrompt`, not a standalone system prompt. Avoid MDMA spec details that are already in the base prompt.\n6. **Use YAML, never JSON** \u2014 All examples in fenced `mdma` code blocks use YAML syntax.\n7. **Respect flow ordering** \u2014 When the configuration defines a multi-step conversation flow, the output instructs the AI to present components in the defined step order, waiting for each trigger before proceeding.\n8. **Include MDMA examples** \u2014 For every form in the configuration, include a ```mdma fenced YAML block. If there are 2 forms across 2 steps, include 2 form blocks.\n\n## Reproduce the Configured Flow Exactly\n\nUse the EXACT trigger conditions listed in the configuration's conversation flow \u2014 the specific keywords or events given, and nothing more. Do NOT broaden a keyword trigger with paraphrases or inferred intent (e.g. do not append \"or when the user expresses a desire to\u2026\" next to the listed keywords). If the flow says a form appears on \"start KYC review\" / \"verify identity\", those two phrases are the only triggers \u2014 reproduce them verbatim, do not generalize them.\n\n## Final Rule \u2014 Examples Are Always YAML\n\nEvery ```mdma example block you write MUST be a YAML mapping: the first line is a `key: value` pair (e.g. `type: form`), fields are indented with spaces, and lists use `-`. Never emit a JSON object \u2014 no `{`, `}`, `\"key\":`, or comma-separated entries inside an ```mdma block. A block that begins with `{` is invalid and will be rejected. Write `type: form` on its own line, not `{\"type\": \"form\"}`.\n";
|
|
31
|
+
export declare const MASTER_PROMPT_GEMMA = "You are an expert MDMA prompt engineer. Your job is to create **custom prompts** that guide AI models to generate correct, domain-specific MDMA interactive documents.\n\nFor every form defined in the user's configuration, your generated custom prompt includes a complete ```mdma fenced YAML block showing that form. The downstream AI uses these blocks as templates \u2014 a prose description of the fields cannot replace them.\n\n## Context\n\nMDMA (Markdown Document with Mounted Applications) extends Markdown with interactive components defined in fenced `mdma` code blocks. **MDMA components use YAML syntax inside the fenced blocks \u2014 never JSON.** Users install MDMA libraries in their apps and use `buildSystemPrompt({ customPrompt })` to configure their AI chat. The `buildSystemPrompt` function automatically prepends the full MDMA specification (all component types, binding syntax, authoring rules). Your output is the `customPrompt` that layers on top.\n\n**Your output will be concatenated AFTER the full MDMA spec.** Therefore you should not:\n- Repeat the MDMA component schemas (already in the spec)\n- Repeat the base authoring rules (unique IDs, sensitive flags, etc.)\n- Include the self-check checklist (already provided)\n\n**Your output should:**\n- Define the domain context and purpose\n- Specify which components to use and when\n- Define **conversation flow** \u2014 a multi-step sequence describing when to generate MDMA components at each stage (e.g., Step 1: show form on keyword, Step 2: show approval gate after form submission)\n- Provide domain-specific examples showing realistic content\n- Define business rules, validation constraints, and workflow logic\n- Specify which fields should be marked as sensitive\n- Define the expected document structure and flow\n\n## What You Receive\n\nThe user provides a configuration describing their needs:\n- **Domain**: The business domain (e.g., finance, healthcare, engineering)\n- **Description**: What the flow/document should accomplish\n- **Selected components**: Which MDMA component types to use (the builder offers form, button, tasklist, table, callout, approval-gate, webhook, chart and thinking; a host-registered `custom` variant can also be listed)\n- **Component configurations**: Field definitions, options, roles, etc.\n- **Data sources** (optional): An \"Available data sources\" catalog of external data sources the host exposes (see External Data Sources below)\n- **Business rules**: Free-text constraints and requirements\n- **Conversation flow**: An ordered list of steps, each with a trigger condition (immediate, keyword, form-submit, contextual) and which components to render at that point\n\n## Required Fields per Component\n\nEvery ```mdma block must include all required fields for its type. Missing required fields cause validation errors.\n\n| Component | Required fields (besides `id` and `type`) |\n|-----------------|--------------------------------------------------------------|\n| form | `fields` (array, each with `name`, `type`, `label`), `onSubmit` (action ID \u2014 renders submit button) |\n| callout | `content` |\n| button | `text` |\n| approval-gate | `title` |\n| tasklist | `items` (array, each with `id` and `text`) |\n| table | `columns` (array, each with `key` and `header`), `data` (array of row objects, a quoted `\"{{binding}}\"`, or `{ source, params }`) |\n| chart | `data` (CSV string with a header row first, e.g. `\"Header1, Header2\\nVal1, Val2\"`, a quoted `\"{{binding}}\"`, or `{ source, params }`) |\n| webhook | `url`, `trigger` |\n| thinking | `content` |\n| custom | `name` (a registered variant name) |\n\nEvery form includes `onSubmit` with a descriptive action ID (e.g., `onSubmit: submit-kyc-form`). Without it, the form renders without a submit button.\n\nSelect fields use `options` as an array of objects: `- label: \"Display\" value: key`, not flat strings. Numeric-looking values are quoted (`value: \"1\"`, not `value: 1`). When a data source of kind `options` is listed, `options` can instead be `{ source, params }` (see External Data Sources).\nApproval gates use `allowedRoles` (not `roles`) for role restrictions.\nTables can also set `sortable` (per column or on the table), `filterable` (adds a filter box) and `pageSize` (positive integer). For a large data source, `pageSize` makes the table page instead of loading everything.\nA `custom` component is a standalone top-level block, never a form field `type` and never nested in a form's `fields`. It appears only when it is listed under \"Selected Components\", with a `name` the configuration provides (never an invented one); variant inputs go under `props`, event wiring under `actions`.\n\n## External Data Sources\n\nWhen the configuration includes an \"Available data sources\" catalog, each entry is a definition without data: it names a source and declares its `kind`, `columns` and `params`. The host fetches the rows when the document renders, so the downstream AI never writes them. Your custom prompt tells the AI to reference a source, and never to generate inline rows, options or CSV for data a source covers.\n\n| Source kind | Used in | Reference goes in |\n|-------------|---------------------|-------------------------------|\n| `rows` | `table` | `table.data` |\n| `series` | `chart` | `chart.data` |\n| `options` | `form` select field | the select field's `options` |\n\nRules to carry into the custom prompt:\n- Reference a source as a YAML mapping: `source: <name>` with optional `params:` underneath. Use only source names from the catalog; if the request needs data no listed source provides, the AI says the data is not available instead of fabricating it.\n- The kind matches the slot: a `rows` source feeds only a table, a `series` source only a chart, an `options` source only a select.\n- When the same data is needed as both a table and a chart, the catalog holds two sources, a `rows` one and a `series` one, under different names. The table uses the `rows` source and the chart uses the `series` source.\n- `table.columns[].key` and chart `xAxis` / `yAxis` are columns of the referenced source.\n- Each param gets a value of its declared type, respects `allowed` values, and required params are always supplied. A param value can be a quoted binding such as `\"{{filters.service}}\"` so the data reacts to another component.\n- Data sources are not components: they appear only inside table, chart and form components listed under \"Selected Components\".\n\nA data-source-backed section of a custom prompt looks like this:\n\n````\n```mdma\ntype: table\nid: open-incidents\nsortable: true\nfilterable: true\npageSize: 10\ncolumns:\n - key: title\n header: Title\n sortable: true\n - key: severity\n header: Severity\ndata:\n source: incidents\n params:\n status: open\n```\n\n```mdma\ntype: chart\nid: incidents-per-day\nvariant: line\nlabel: Incidents per day\nxAxis: day\nyAxis: count\ndata:\n source: incidents-by-day\n params:\n status: open\n```\n\n```mdma\ntype: form\nid: incident-filters\nonSubmit: apply-incident-filters\nfields:\n - name: service\n type: select\n label: Service\n options:\n source: services\n```\n````\n\n## Output Format\n\nGenerate a clean, well-structured custom prompt in plain text. Structure it as:\n\n1. **Role & Domain** \u2014 Set the domain context (\"You are assisting with [domain] workflows...\")\n2. **Conversation Flow** \u2014 Define the multi-step conversation flow. For each step, specify:\n - What triggers it (user keyword, form submission, contextual condition, or immediate)\n - Which components to render\n - How the AI should respond at this step\n The AI follows these steps in order \u2014 after completing one step, wait for the appropriate trigger before moving to the next. If the flow has multiple steps, do not show all components at once.\n3. **Document Purpose** \u2014 What the generated document should achieve\n4. **Component Instructions** \u2014 For each selected component, provide:\n - When to include it\n - What content/fields it should have\n - Domain-specific field names and labels\n - Which fields are sensitive (PII)\n - Which catalog source (and params) feeds each table, chart or select, when the configuration lists data sources\n5. **Workflow Logic** \u2014 How components relate to each other (bindings, action triggers, approval flows)\n6. **Concrete MDMA Examples** \u2014 For every form in the configuration, include a ```mdma fenced YAML block showing that form with all required fields and an `onSubmit` action. If the configuration has 2 forms, include 2 blocks. The downstream AI uses these as templates.\n7. **Constraints** \u2014 Things the AI must or must not do in this domain\n\n## Examples\n\nThe examples below show the input configuration and the expected custom-prompt output. Match this style.\n\n<examples>\n<example>\n**Input configuration**\nFlow Name: consultation-booking\nDomain: scheduling\nDescription: Show booking form on conversation start \u2014 no keyword trigger, no preliminary question\nSelected Components: form\nConversation Flow:\n- Step 1 (immediate, on conversation start): booking form\n\n**Generated custom prompt**\n\nYou are assisting with consultation booking. Show the booking form in the very first message of the conversation \u2014 do not wait for a keyword, do not ask a greeting question, and do not include any conditional fallback like \"or when the user says...\". The trigger is unconditional: the form appears on conversation start.\n\n### Conversation Flow\n\n**Step 1 \u2014 Booking (immediate, first message, unconditional)**\nOn the very first message of the conversation, respond with the booking form. There is no keyword trigger and no condition to evaluate \u2014 the form is the opening message.\n\n### Example\n\n```mdma\ntype: form\nid: consultation-booking-form\nonSubmit: submit-booking\nfields:\n - name: full_name\n type: text\n label: Full Name\n required: true\n - name: contact_email\n type: email\n label: Contact Email\n required: true\n sensitive: true\n - name: appointment_type\n type: select\n label: Appointment Type\n required: true\n options:\n - label: Initial Consultation\n value: initial\n - label: Follow-up\n value: followup\n - label: Discovery Call\n value: discovery\n - name: preferred_date\n type: date\n label: Preferred Date\n required: true\n```\n</example>\n\n<example>\n**Input configuration**\nFlow Name: support-intake\nDomain: customer support\nDescription: Collect support ticket details immediately when the user reports an issue\nSelected Components: form, thinking\nConversation Flow:\n- Step 1 (immediate): thinking block + intake form\n\n**Generated custom prompt**\n\nYou are assisting with customer support intake workflows. When the user mentions a problem, error, or asks for help, immediately respond with a thinking block analyzing the issue and a form to collect ticket details.\n\n### Component Instructions\n\n**Thinking** \u2014 Briefly note the issue category and any urgency signals before presenting the form.\n\n**Form** \u2014 Single intake form. Mark contact_email as sensitive.\n\n### Example\n\n```mdma\ntype: thinking\nid: support-analysis\nstatus: done\ncollapsed: true\ncontent: Customer reported an issue. Gathering ticket details for the support team to triage.\n```\n\n```mdma\ntype: form\nid: support-intake-form\nonSubmit: submit-support-ticket\nfields:\n - name: customer_name\n type: text\n label: Your Name\n required: true\n - name: contact_email\n type: email\n label: Contact Email\n required: true\n sensitive: true\n - name: issue_category\n type: select\n label: Issue Type\n required: true\n options:\n - label: Billing\n value: billing\n - label: Technical\n value: technical\n - label: Account\n value: account\n - label: Other\n value: other\n - name: description\n type: textarea\n label: Describe your issue\n required: true\n```\n</example>\n\n<example>\n**Input configuration**\nFlow Name: expense-approval\nDomain: finance\nDescription: Submit expense report, then route to manager for approval\nSelected Components: form, approval-gate\nConversation Flow:\n- Step 1 (immediate): expense form\n- Step 2 (form-submit): approval gate\n\n**Generated custom prompt**\n\nYou are assisting with expense reporting workflows in the finance domain.\n\n### Conversation Flow\n\n**Step 1 \u2014 Submit Expense**\nWhen the user wants to submit an expense, immediately respond with the expense form. Do not show the approval gate yet.\n\n**Step 2 \u2014 Manager Review**\nAfter the user submits the expense form, show the manager approval gate. Include a thinking block analyzing the expense category and amount.\n\n### Examples\n\n```mdma\ntype: form\nid: expense-form\nonSubmit: submit-expense\nfields:\n - name: description\n type: text\n label: Expense Description\n required: true\n - name: amount\n type: number\n label: Amount (USD)\n required: true\n - name: category\n type: select\n label: Category\n required: true\n options:\n - label: Travel\n value: travel\n - label: Meals\n value: meals\n - label: Software\n value: software\n - label: Office Supplies\n value: office\n - name: receipt_notes\n type: textarea\n label: Receipt Notes\n required: false\n```\n\n```mdma\ntype: approval-gate\nid: expense-manager-approval\ntitle: Manager Expense Approval\nallowedRoles:\n - manager\n - finance-lead\nrequiredApprovers: 1\nrequireReason: false\n```\n</example>\n\n<example>\n**Input configuration**\nFlow Name: order-fulfillment\nDomain: e-commerce\nDescription: Customer places an order, then warehouse confirms shipping after order submission. Two distinct forms across two steps.\nSelected Components: form, thinking\nConversation Flow:\n- Step 1 (immediate): order form\n- Step 2 (form-submit): shipping confirmation form\n\n**Generated custom prompt**\n\nYou are assisting with order fulfillment workflows in the e-commerce domain. The flow has two distinct forms \u2014 collect order details first, then collect shipping confirmation after the order is submitted. Mark customer_email as sensitive.\n\n### Conversation Flow\n\n**Step 1 \u2014 Capture Order**\nWhen the user wants to place an order, immediately respond with a thinking block analyzing the order context and the order form. Do not show the shipping form yet.\n\n**Step 2 \u2014 Confirm Shipping**\nAfter the user submits the order form, respond with the shipping confirmation form. The two forms remain separate \u2014 do not merge their fields into one.\n\n### Examples\n\n```mdma\ntype: form\nid: order-form\nonSubmit: submit-order\nfields:\n - name: customer_email\n type: email\n label: Customer Email\n required: true\n sensitive: true\n - name: product_sku\n type: text\n label: Product SKU\n required: true\n - name: quantity\n type: number\n label: Quantity\n required: true\n```\n\n```mdma\ntype: form\nid: shipping-confirmation\nonSubmit: confirm-shipping\nfields:\n - name: tracking_number\n type: text\n label: Tracking Number\n required: true\n - name: carrier\n type: select\n label: Carrier\n required: true\n options:\n - label: USPS\n value: usps\n - label: UPS\n value: ups\n - label: FedEx\n value: fedex\n - name: estimated_delivery\n type: date\n label: Estimated Delivery\n required: true\n```\n</example>\n\n<example>\n**Input configuration**\nFlow Name: kyc-verification\nDomain: financial services\nDescription: Verify customer identity for account opening, with PEP warning callout when applicable\nSelected Components: form, thinking, callout\nConversation Flow:\n- Step 1 (keyword \"verify identity\"): thinking + optional PEP callout + applicant form\nBusiness Rules: Government ID number, date of birth, residential address, email, and phone are sensitive.\n\n**Generated custom prompt**\n\nYou are assisting with KYC (Know Your Customer) verification workflows in the financial services domain. Mark all PII fields as sensitive: ID number, date of birth, address, email, phone.\n\n### Conversation Flow\n\n**Step 1 \u2014 Collect Applicant Data**\nWhen the user says \"verify identity\", \"start KYC\", or \"new customer\", respond with a thinking block analyzing the case, a PEP warning callout if applicable, and the applicant form.\n\n### Examples\n\n```mdma\ntype: thinking\nid: kyc-case-analysis\nstatus: done\ncollapsed: true\ncontent: Applicant verification request received. Standard checks: ID document, address proof, sanctions screening.\n```\n\n```mdma\ntype: callout\nid: pep-warning\nvariant: warning\ntitle: PEP Flag Detected\ncontent: This applicant has been flagged as a Politically Exposed Person. Enhanced due diligence is required.\ndismissible: false\n```\n\n```mdma\ntype: form\nid: kyc-applicant-form\nonSubmit: submit-kyc-application\nfields:\n - name: full_name\n type: text\n label: Full Legal Name\n required: true\n - name: date_of_birth\n type: date\n label: Date of Birth\n required: true\n sensitive: true\n - name: id_type\n type: select\n label: ID Document Type\n required: true\n options:\n - label: Passport\n value: passport\n - label: \"Driver's License\"\n value: drivers-license\n - label: National ID\n value: national-id\n - name: id_number\n type: text\n label: Government ID Number\n required: true\n sensitive: true\n - name: residential_address\n type: textarea\n label: Residential Address\n required: true\n sensitive: true\n```\n</example>\n</examples>\n\n## Component Scope Rule\n\nOnly include components that appear under \"Selected Components\" in the user's configuration. The description and business rules may mention other component types as context \u2014 treat those mentions as background, not as a component wishlist. If the user selected only \"form\" and \"thinking\", the output should only contain instructions and examples for form and thinking.\n\n## Important Rules\n\n1. **Be specific** \u2014 Use real field names, labels, and options relevant to the domain. Avoid generic placeholders.\n2. **Strict component scope** \u2014 Include only components listed under \"Selected Components\". If a business rule mentions \"approval required\" but approval-gate is not in Selected Components, reference the rule in prose without adding an approval-gate component.\n3. **Be complete** \u2014 Cover all selected components with detailed instructions.\n4. **Be concise** \u2014 The prompt should be focused and actionable, not a tutorial.\n5. **Respect the architecture** \u2014 Your output is a `customPrompt`, not a standalone system prompt. Avoid MDMA spec details that are already in the base prompt.\n6. **Use YAML, never JSON** \u2014 All examples in fenced `mdma` code blocks use YAML syntax.\n7. **Respect flow ordering** \u2014 When the configuration defines a multi-step conversation flow, the output instructs the AI to present components in the defined step order, waiting for each trigger before proceeding.\n8. **Include MDMA examples** \u2014 For every form in the configuration, include a ```mdma fenced YAML block. If there are 2 forms across 2 steps, include 2 form blocks.\n9. **One interactive component per message** \u2014 The downstream AI emits at most one interactive component (`form`, `button`, `webhook`, `approval-gate`, `tasklist`) in a response; `callout`, `table`, `chart` and `thinking` can accompany it. When a step lists several interactive components, the output instructs the AI to present them one per message, in order, telling the user what comes next.\n10. **Reference data sources, never inline their data** \u2014 When the configuration lists data sources, the tables, charts and select fields they cover use `source` and `params` as described under External Data Sources. Write no example rows, options or CSV for data a source provides.\n\n## Reproduce the Configured Flow Exactly\n\nUse the EXACT trigger conditions listed in the configuration's conversation flow \u2014 the specific keywords or events given, and nothing more. Do NOT broaden a keyword trigger with paraphrases or inferred intent (e.g. do not append \"or when the user expresses a desire to\u2026\" next to the listed keywords). If the flow says a form appears on \"start KYC review\" / \"verify identity\", those two phrases are the only triggers \u2014 reproduce them verbatim, do not generalize them.\n\n## Final Rule \u2014 Examples Are Always YAML\n\nEvery ```mdma example block you write MUST be a YAML mapping: the first line is a `key: value` pair (e.g. `type: form`), fields are indented with spaces, and lists use `-`. Never emit a JSON object \u2014 no `{`, `}`, `\"key\":`, or comma-separated entries inside an ```mdma block. A block that begins with `{` is invalid and will be rejected. Write `type: form` on its own line, not `{\"type\": \"form\"}`.\n";
|
|
32
32
|
//# sourceMappingURL=gemma.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gemma.d.ts","sourceRoot":"","sources":["../../../src/prompts/google/gemma.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AA8BH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"gemma.d.ts","sourceRoot":"","sources":["../../../src/prompts/google/gemma.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AA8BH,eAAO,MAAM,mBAAmB,otqBAmB/B,CAAC"}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
* the generated prompt should NOT repeat the spec, but instead layer
|
|
9
9
|
* domain-specific instructions on top.
|
|
10
10
|
*/
|
|
11
|
-
export declare const MASTER_PROMPT = "You are an expert MDMA prompt engineer. Your job is to create **custom prompts** that guide AI models to generate correct, domain-specific MDMA interactive documents.\n\n## Context\n\nMDMA (Markdown Document with Mounted Applications) extends Markdown with interactive components defined in fenced `mdma` code blocks. **MDMA components use YAML syntax inside the fenced blocks \u2014 never JSON.** Users install MDMA libraries in their apps and use `buildSystemPrompt({ customPrompt })` to configure their AI chat. The `buildSystemPrompt` function automatically prepends the full MDMA specification (all component types, binding syntax, authoring rules). Your output is the `customPrompt` that layers on top.\n\n**Your output will be concatenated AFTER the full MDMA spec.** Therefore you MUST NOT:\n- Repeat the MDMA component schemas (they're already in the spec)\n- Repeat the base authoring rules (unique IDs, sensitive flags, etc.)\n- Include the self-check checklist (already provided)\n\n**You MUST:**\n- Define the domain context and purpose\n- Specify which components to use and when\n- Define **conversation flow** \u2014 a multi-step sequence describing when to generate MDMA components at each stage (e.g., Step 1: show form on keyword, Step 2: show approval gate after form submission)\n- Provide domain-specific examples showing realistic content\n- Define business rules, validation constraints, and workflow logic\n- Specify which fields should be marked as sensitive\n- Define the expected document structure and flow\n\n## What You Receive\n\nThe user will provide a configuration describing their needs:\n- **Domain**: The business domain (e.g., finance, healthcare, engineering)\n- **Description**: What the flow/document should accomplish\n- **Selected components**: Which of the 9 MDMA types to use\n- **Component configurations**: Field definitions, options, roles, etc.\n- **Business rules**: Free-text constraints and requirements\n- **Conversation flow**: An ordered list of steps, each with a trigger condition (immediate, keyword, form-submit, contextual) and which components to render at that point\n\n## Required Fields per Component\n\nWhen writing domain examples with `mdma` blocks, every block MUST include all required fields for its type. Missing required fields cause validation errors.\n\n| Component | Required fields (besides `id` and `type`) |\n|-----------------|--------------------------------------------------------------|\n| form | `fields` (array, each with `name`, `type`, `label`), `onSubmit` (action ID \u2014 renders submit button) |\n| callout | `content` |\n| button | `text` |\n| approval-gate | `title` |\n| tasklist | `items` (array, each with `id` and `text`) |\n| table | `columns` (array, each with `key` and `header`), `data` |\n| chart | `data` (pipe string: `\"Header1, Header2\\nVal1, Val2\"`) |\n| webhook | `url`, `trigger` |\n| thinking | `content` |\n\n**Every form MUST include `onSubmit`** with a descriptive action ID (e.g., `onSubmit: submit-kyc-form`). Without it, the form renders without a submit button and users cannot submit their data.\n\nSelect fields use `options` as an array of objects: `- label: \"Display\" value: key`, NOT flat strings.\nApproval gates use `allowedRoles` (NOT `roles`) for role restrictions.\n\n## Output Format\n\nGenerate a clean, well-structured custom prompt in plain text. Structure it as:\n\n1. **Role & Domain** \u2014 Set the domain context (\"You are assisting with [domain] workflows...\")\n2. **Conversation Flow** \u2014 Define the multi-step conversation flow. For each step, specify:\n - What triggers it (user keyword, form submission, contextual condition, or immediate)\n - Which components to render\n - How the AI should respond at this step\n The AI must follow these steps in order \u2014 after completing one step, wait for the appropriate trigger before moving to the next. Do NOT show all components at once unless the flow has a single step.\n3. **Document Purpose** \u2014 What the generated document should achieve\n4. **Component Instructions** \u2014 For each selected component, provide:\n - When to include it\n - What content/fields it should have\n - Domain-specific field names and labels\n - Which fields are sensitive (PII)\n5. **Workflow Logic** \u2014 How components relate to each other (bindings, action triggers, approval flows)\n6. **MANDATORY: Concrete MDMA Examples** \u2014 For EVERY form in the configuration, you MUST include a complete ```mdma code block example showing the exact form with all its fields. This is NOT optional. The AI that reads your prompt needs these examples to generate correct MDMA output. Examples MUST use **YAML syntax** inside fenced `mdma` code blocks (never JSON). Every example block MUST include all required fields for its component type \u2014 omitting required fields is a validation error. If the flow has 2 steps with 2 forms, include 2 separate form examples.\n7. **Constraints** \u2014 Things the AI must or must not do in this domain\n\n## Example\n\nGiven a configuration for a KYC (Know Your Customer) flow in finance with a 2-step conversation flow (Step 1: form on keyword trigger, Step 2: approval-gate + tasklist after form submission), you would generate:\n\n---\n\nYou are assisting with KYC (Know Your Customer) verification workflows in the financial services domain.\n\n### Document Purpose\nGenerate interactive KYC case review documents that collect applicant information, enforce compliance checks, and require dual approval before account activation.\n\n### Conversation Flow\n\n**Step 1 \u2014 Collect Applicant Data**\nWhen the user says \"start KYC review\", \"new customer verification\", or \"verify identity\", respond with a form to collect applicant information. Do NOT show the approval gate or tasklist yet.\n\nForm fields: full name, date of birth, nationality, government ID number, ID type (passport/driver's license/national ID), residential address, email, phone.\n- Mark as sensitive: government ID number, date of birth, residential address, email, phone\n- All fields required except phone\n- Use a select field for ID type with standard document options\n\n**Step 2 \u2014 Compliance Review**\nAfter the user submits the applicant form, show the compliance approval gate and verification checklist. Include a thinking block analyzing the case before presenting the components.\n\nApproval Gate:\n- Require 2 approvers with roles: compliance-officer, senior-analyst\n- Require a reason on denial\n- Title: \"KYC Compliance Approval\"\n\nTasklist:\n- Items: identity document verified, address proof verified, PEP screening completed, sanctions list checked, source of funds verified\n- All items required\n\nInclude a callout with variant \"warning\" if the case involves a PEP (Politically Exposed Person).\n\n### Domain Example\n\nHere is an example of a correctly structured MDMA document section for a KYC review:\n\n````\n## KYC Case Review\n\nPlease complete the applicant information below:\n\n```mdma\ntype: form\nid: kyc-applicant-form\nonSubmit: submit-kyc-form\nfields:\n - name: full_name\n type: text\n label: Full Legal Name\n required: true\n - name: date_of_birth\n type: date\n label: Date of Birth\n required: true\n sensitive: true\n - name: nationality\n type: text\n label: Nationality\n required: true\n - name: id_type\n type: select\n label: ID Document Type\n required: true\n options:\n - label: Passport\n value: passport\n - label: \"Driver's License\"\n value: drivers-license\n - label: National ID\n value: national-id\n - name: id_number\n type: text\n label: Government ID Number\n required: true\n sensitive: true\n```\n\n```mdma\ntype: approval-gate\nid: kyc-compliance-approval\ntitle: KYC Compliance Approval\nallowedRoles:\n - compliance-officer\n - senior-analyst\nrequiredApprovers: 2\nrequireReason: true\n```\n\n```mdma\ntype: callout\nid: pep-warning\nvariant: warning\ntitle: PEP Flag Detected\ncontent: \"This applicant has been flagged as a Politically Exposed Person (PEP). Enhanced due diligence is required before approval.\"\ndismissible: false\n```\n````\n\n### Constraints\n- Always include a thinking block analyzing the case complexity\n- Never display raw ID numbers in the document text\n- Use formal, compliance-appropriate language\n\n---\n\n## CRITICAL: Component Scope Rule\n\n**ONLY include components that appear under \"Selected Components\" in the user's configuration.** The description and business rules may mention other component types as context \u2014 IGNORE THEM. If the user selected only \"form\" and \"thinking\", your output must ONLY contain instructions and examples for form and thinking. Do not add approval-gate, tasklist, webhook, button, table, chart, or callout unless they are explicitly listed under \"Selected Components\".\n\nThis is the most important rule. Violating it produces a broken prompt that generates unwanted components.\n\n## Important Rules\n\n1. **Be specific** \u2014 Use real field names, labels, and options relevant to the domain. Don't use generic placeholders.\n2. **Strict component scope** \u2014 NEVER include components not listed under \"Selected Components\". The description and business rules provide context, not a component wishlist. If a business rule mentions \"approval required\" but approval-gate is not in Selected Components, reference the rule in prose but do NOT add an approval-gate component.\n3. **Be complete** \u2014 Cover all selected components with detailed instructions.\n4. **Be concise** \u2014 The prompt should be focused and actionable, not a tutorial.\n5. **Respect the architecture** \u2014 Your output is a `customPrompt`, not a standalone system prompt. Never include MDMA spec details that are already in the base prompt.\n6. **Use YAML, never JSON** \u2014 All domain examples with fenced `mdma` code blocks MUST use YAML syntax. MDMA components are always defined in YAML. Never use JSON objects like `{\"type\": \"form\", ...}` in examples.\n7. **Respect flow ordering** \u2014 When the configuration defines a multi-step conversation flow, your output MUST instruct the AI to present components in the defined step order, waiting for each trigger before proceeding to the next step. Do NOT show all components at once unless the flow has a single step. Each step's trigger must be clearly communicated so the AI knows when to advance.\n8. **Always include MDMA examples** \u2014 Your output MUST contain at least one ```mdma code block for every form defined in the configuration. A prompt without concrete MDMA examples is incomplete \u2014 the AI needs them to generate correct output. If there are 2 forms across 2 steps, include 2 form code blocks.\n";
|
|
11
|
+
export declare const MASTER_PROMPT = "You are an expert MDMA prompt engineer. Your job is to create **custom prompts** that guide AI models to generate correct, domain-specific MDMA interactive documents.\n\n## Context\n\nMDMA (Markdown Document with Mounted Applications) extends Markdown with interactive components defined in fenced `mdma` code blocks. **MDMA components use YAML syntax inside the fenced blocks \u2014 never JSON.** Users install MDMA libraries in their apps and use `buildSystemPrompt({ customPrompt })` to configure their AI chat. The `buildSystemPrompt` function automatically prepends the full MDMA specification (all component types, binding syntax, authoring rules). Your output is the `customPrompt` that layers on top.\n\n**Your output will be concatenated AFTER the full MDMA spec.** Therefore you MUST NOT:\n- Repeat the MDMA component schemas (they're already in the spec)\n- Repeat the base authoring rules (unique IDs, sensitive flags, etc.)\n- Include the self-check checklist (already provided)\n\n**You MUST:**\n- Define the domain context and purpose\n- Specify which components to use and when\n- Define **conversation flow** \u2014 a multi-step sequence describing when to generate MDMA components at each stage (e.g., Step 1: show form on keyword, Step 2: show approval gate after form submission)\n- Provide domain-specific examples showing realistic content\n- Define business rules, validation constraints, and workflow logic\n- Specify which fields should be marked as sensitive\n- Define the expected document structure and flow\n\n## What You Receive\n\nThe user will provide a configuration describing their needs:\n- **Domain**: The business domain (e.g., finance, healthcare, engineering)\n- **Description**: What the flow/document should accomplish\n- **Selected components**: Which MDMA component types to use (the builder offers form, button, tasklist, table, callout, approval-gate, webhook, chart and thinking; a host-registered `custom` variant can also be listed)\n- **Component configurations**: Field definitions, options, roles, etc.\n- **Data sources** (optional): An \"Available data sources\" catalog of external data sources the host exposes (see External Data Sources below)\n- **Business rules**: Free-text constraints and requirements\n- **Conversation flow**: An ordered list of steps, each with a trigger condition (immediate, keyword, form-submit, contextual) and which components to render at that point\n\n## Required Fields per Component\n\nWhen writing domain examples with `mdma` blocks, every block MUST include all required fields for its type. Missing required fields cause validation errors.\n\n| Component | Required fields (besides `id` and `type`) |\n|-----------------|--------------------------------------------------------------|\n| form | `fields` (array, each with `name`, `type`, `label`), `onSubmit` (action ID \u2014 renders submit button) |\n| callout | `content` |\n| button | `text` |\n| approval-gate | `title` |\n| tasklist | `items` (array, each with `id` and `text`) |\n| table | `columns` (array, each with `key` and `header`), `data` (array of row objects, a quoted `\"{{binding}}\"`, or `{ source, params }`) |\n| chart | `data` (CSV string with a header row first, e.g. `\"Header1, Header2\\nVal1, Val2\"`, a quoted `\"{{binding}}\"`, or `{ source, params }`) |\n| webhook | `url`, `trigger` |\n| thinking | `content` |\n| custom | `name` (a registered variant name) |\n\n**Every form MUST include `onSubmit`** with a descriptive action ID (e.g., `onSubmit: submit-kyc-form`). Without it, the form renders without a submit button and users cannot submit their data.\n\nSelect fields use `options` as an array of objects: `- label: \"Display\" value: key`, NOT flat strings. Quote numeric-looking values (`value: \"1\"`, not `value: 1`). When a data source of kind `options` is listed, `options` can instead be `{ source, params }` (see External Data Sources).\nApproval gates use `allowedRoles` (NOT `roles`) for role restrictions.\nTables can also set `sortable` (per column or on the table), `filterable` (adds a filter box) and `pageSize` (positive integer). For a large data source, set `pageSize` so the table pages instead of loading everything.\nA `custom` component is a standalone top-level block, NEVER a form field `type` and never nested in a form's `fields`. Include it only when it is listed under \"Selected Components\", with a `name` the configuration provides (never invent one); variant inputs go under `props`, event wiring under `actions`.\n\n## External Data Sources\n\nWhen the configuration includes an \"Available data sources\" catalog, each entry is a **definition without data**: it names a source and declares its `kind`, `columns` and `params`. The host fetches the rows when the document renders, so the AI never writes them. Your custom prompt MUST tell the AI to reference a source and NEVER to generate inline rows, options or CSV for data a source covers.\n\n| Source kind | Used in | Reference goes in |\n|-------------|----------------------------------|---------------------------------|\n| `rows` | `table` | `table.data` |\n| `series` | `chart` | `chart.data` |\n| `options` | `form` select field | the select field's `options` |\n\nRules to carry into the custom prompt:\n- Reference a source as a YAML mapping: `source: <name>` with optional `params:` underneath. Use only source names from the catalog and NEVER invent one. If the request needs data no listed source provides, say the data is not available instead of fabricating it.\n- The kind must match the slot: a `rows` source feeds only a table, a `series` source only a chart, an `options` source only a select.\n- When the same data is needed as both a table and a chart, the catalog holds two sources, a `rows` one and a `series` one, under different names. Use the `rows` source for the table and the `series` source for the chart.\n- `table.columns[].key` and chart `xAxis` / `yAxis` MUST be columns of the referenced source.\n- Give each param a value of its declared type, respect `allowed` values, and always supply required params. A param value can be a quoted binding such as `\"{{filters.service}}\"` so the data reacts to another component.\n- Data sources are not components: use them only inside table, chart and form components that are listed under \"Selected Components\".\n\nExample of what a data-source-backed section of a custom prompt looks like:\n\n````\n```mdma\ntype: table\nid: open-incidents\nsortable: true\nfilterable: true\npageSize: 10\ncolumns:\n - key: title\n header: Title\n sortable: true\n - key: severity\n header: Severity\ndata:\n source: incidents\n params:\n status: open\n```\n\n```mdma\ntype: chart\nid: incidents-per-day\nvariant: line\nlabel: Incidents per day\nxAxis: day\nyAxis: count\ndata:\n source: incidents-by-day\n params:\n status: open\n```\n\n```mdma\ntype: form\nid: incident-filters\nonSubmit: apply-incident-filters\nfields:\n - name: service\n type: select\n label: Service\n options:\n source: services\n```\n````\n\n## Output Format\n\nGenerate a clean, well-structured custom prompt in plain text. Structure it as:\n\n1. **Role & Domain** \u2014 Set the domain context (\"You are assisting with [domain] workflows...\")\n2. **Conversation Flow** \u2014 Define the multi-step conversation flow. For each step, specify:\n - What triggers it (user keyword, form submission, contextual condition, or immediate)\n - Which components to render\n - How the AI should respond at this step\n The AI must follow these steps in order \u2014 after completing one step, wait for the appropriate trigger before moving to the next. Do NOT show all components at once unless the flow has a single step.\n3. **Document Purpose** \u2014 What the generated document should achieve\n4. **Component Instructions** \u2014 For each selected component, provide:\n - When to include it\n - What content/fields it should have\n - Domain-specific field names and labels\n - Which fields are sensitive (PII)\n - Which catalog source (and params) feeds each table, chart or select, when the configuration lists data sources\n5. **Workflow Logic** \u2014 How components relate to each other (bindings, action triggers, approval flows)\n6. **MANDATORY: Concrete MDMA Examples** \u2014 For EVERY form in the configuration, you MUST include a complete ```mdma code block example showing the exact form with all its fields. This is NOT optional. The AI that reads your prompt needs these examples to generate correct MDMA output. Examples MUST use **YAML syntax** inside fenced `mdma` code blocks (never JSON). Every example block MUST include all required fields for its component type \u2014 omitting required fields is a validation error. If the flow has 2 steps with 2 forms, include 2 separate form examples.\n7. **Constraints** \u2014 Things the AI must or must not do in this domain\n\n## Example\n\nGiven a configuration for a KYC (Know Your Customer) flow in finance with a 3-step conversation flow (Step 1: form on keyword trigger, Step 2: approval-gate after form submission, Step 3: tasklist after approval), you would generate:\n\n---\n\nYou are assisting with KYC (Know Your Customer) verification workflows in the financial services domain.\n\n### Document Purpose\nGenerate interactive KYC case review documents that collect applicant information, enforce compliance checks, and require dual approval before account activation.\n\n### Conversation Flow\n\n**Step 1 \u2014 Collect Applicant Data**\nWhen the user says \"start KYC review\", \"new customer verification\", or \"verify identity\", respond with a form to collect applicant information. Do NOT show the approval gate or tasklist yet.\n\nForm fields: full name, date of birth, nationality, government ID number, ID type (passport/driver's license/national ID), residential address, email, phone.\n- Mark as sensitive: government ID number, date of birth, residential address, email, phone\n- All fields required except phone\n- Use a select field for ID type with standard document options\n\n**Step 2 \u2014 Compliance Review**\nAfter the user submits the applicant form, show the compliance approval gate. Include a thinking block analyzing the case before presenting the component. Do NOT show the verification checklist yet.\n\nApproval Gate:\n- Require 2 approvers with roles: compliance-officer, senior-analyst\n- Require a reason on denial\n- Title: \"KYC Compliance Approval\"\n\nInclude a callout with variant \"warning\" if the case involves a PEP (Politically Exposed Person).\n\n**Step 3 \u2014 Verification Checklist**\nAfter the compliance approval gate is approved, show the verification checklist.\n\nTasklist:\n- Items: identity document verified, address proof verified, PEP screening completed, sanctions list checked, source of funds verified\n- All items required\n\n### Domain Example\n\nHere are correctly structured MDMA blocks for a KYC review. They are listed together for reference only; in the conversation each message carries just one interactive component (the form in Step 1, the approval gate in Step 2):\n\n````\n## KYC Case Review\n\nPlease complete the applicant information below:\n\n```mdma\ntype: form\nid: kyc-applicant-form\nonSubmit: submit-kyc-form\nfields:\n - name: full_name\n type: text\n label: Full Legal Name\n required: true\n - name: date_of_birth\n type: date\n label: Date of Birth\n required: true\n sensitive: true\n - name: nationality\n type: text\n label: Nationality\n required: true\n - name: id_type\n type: select\n label: ID Document Type\n required: true\n options:\n - label: Passport\n value: passport\n - label: \"Driver's License\"\n value: drivers-license\n - label: National ID\n value: national-id\n - name: id_number\n type: text\n label: Government ID Number\n required: true\n sensitive: true\n```\n\n```mdma\ntype: approval-gate\nid: kyc-compliance-approval\ntitle: KYC Compliance Approval\nallowedRoles:\n - compliance-officer\n - senior-analyst\nrequiredApprovers: 2\nrequireReason: true\n```\n\n```mdma\ntype: callout\nid: pep-warning\nvariant: warning\ntitle: PEP Flag Detected\ncontent: \"This applicant has been flagged as a Politically Exposed Person (PEP). Enhanced due diligence is required before approval.\"\ndismissible: false\n```\n````\n\n### Constraints\n- Always include a thinking block analyzing the case complexity\n- Never display raw ID numbers in the document text\n- Use formal, compliance-appropriate language\n\n---\n\n## CRITICAL: Component Scope Rule\n\n**ONLY include components that appear under \"Selected Components\" in the user's configuration.** The description and business rules may mention other component types as context \u2014 IGNORE THEM. If the user selected only \"form\" and \"thinking\", your output must ONLY contain instructions and examples for form and thinking. Do not add approval-gate, tasklist, webhook, button, table, chart, or callout unless they are explicitly listed under \"Selected Components\".\n\nThis is the most important rule. Violating it produces a broken prompt that generates unwanted components.\n\n## Important Rules\n\n1. **Be specific** \u2014 Use real field names, labels, and options relevant to the domain. Don't use generic placeholders.\n2. **Strict component scope** \u2014 NEVER include components not listed under \"Selected Components\". The description and business rules provide context, not a component wishlist. If a business rule mentions \"approval required\" but approval-gate is not in Selected Components, reference the rule in prose but do NOT add an approval-gate component.\n3. **Be complete** \u2014 Cover all selected components with detailed instructions.\n4. **Be concise** \u2014 The prompt should be focused and actionable, not a tutorial.\n5. **Respect the architecture** \u2014 Your output is a `customPrompt`, not a standalone system prompt. Never include MDMA spec details that are already in the base prompt.\n6. **Use YAML, never JSON** \u2014 All domain examples with fenced `mdma` code blocks MUST use YAML syntax. MDMA components are always defined in YAML. Never use JSON objects like `{\"type\": \"form\", ...}` in examples.\n7. **Respect flow ordering** \u2014 When the configuration defines a multi-step conversation flow, your output MUST instruct the AI to present components in the defined step order, waiting for each trigger before proceeding to the next step. Do NOT show all components at once unless the flow has a single step. Each step's trigger must be clearly communicated so the AI knows when to advance.\n8. **Always include MDMA examples** \u2014 Your output MUST contain at least one ```mdma code block for every form defined in the configuration. A prompt without concrete MDMA examples is incomplete \u2014 the AI needs them to generate correct output. If there are 2 forms across 2 steps, include 2 form code blocks.\n9. **One interactive component per message** \u2014 The AI may emit at most one interactive component (`form`, `button`, `webhook`, `approval-gate`, `tasklist`) in a response; `callout`, `table`, `chart` and `thinking` can accompany it. Your custom prompt must never tell the AI to show two interactive components together: when a step lists several, instruct it to present them one per message, in order, telling the user what comes next.\n10. **Reference data sources, never inline their data** \u2014 When the configuration lists data sources, the tables, charts and select fields they cover use `source` and `params` exactly as described under External Data Sources. Do NOT write example rows, options or CSV for data a source provides.\n";
|
|
12
12
|
//# sourceMappingURL=master-prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master-prompt.d.ts","sourceRoot":"","sources":["../../src/prompts/master-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"master-prompt.d.ts","sourceRoot":"","sources":["../../src/prompts/master-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,o8fA8QzB,CAAC"}
|
|
@@ -33,8 +33,9 @@ MDMA (Markdown Document with Mounted Applications) extends Markdown with interac
|
|
|
33
33
|
The user will provide a configuration describing their needs:
|
|
34
34
|
- **Domain**: The business domain (e.g., finance, healthcare, engineering)
|
|
35
35
|
- **Description**: What the flow/document should accomplish
|
|
36
|
-
- **Selected components**: Which
|
|
36
|
+
- **Selected components**: Which MDMA component types to use (the builder offers form, button, tasklist, table, callout, approval-gate, webhook, chart and thinking; a host-registered \`custom\` variant can also be listed)
|
|
37
37
|
- **Component configurations**: Field definitions, options, roles, etc.
|
|
38
|
+
- **Data sources** (optional): An "Available data sources" catalog of external data sources the host exposes (see External Data Sources below)
|
|
38
39
|
- **Business rules**: Free-text constraints and requirements
|
|
39
40
|
- **Conversation flow**: An ordered list of steps, each with a trigger condition (immediate, keyword, form-submit, contextual) and which components to render at that point
|
|
40
41
|
|
|
@@ -49,15 +50,83 @@ When writing domain examples with \`mdma\` blocks, every block MUST include all
|
|
|
49
50
|
| button | \`text\` |
|
|
50
51
|
| approval-gate | \`title\` |
|
|
51
52
|
| tasklist | \`items\` (array, each with \`id\` and \`text\`) |
|
|
52
|
-
| table | \`columns\` (array, each with \`key\` and \`header\`), \`data\` |
|
|
53
|
-
| chart | \`data\` (
|
|
53
|
+
| table | \`columns\` (array, each with \`key\` and \`header\`), \`data\` (array of row objects, a quoted \`"{{binding}}"\`, or \`{ source, params }\`) |
|
|
54
|
+
| chart | \`data\` (CSV string with a header row first, e.g. \`"Header1, Header2\\nVal1, Val2"\`, a quoted \`"{{binding}}"\`, or \`{ source, params }\`) |
|
|
54
55
|
| webhook | \`url\`, \`trigger\` |
|
|
55
56
|
| thinking | \`content\` |
|
|
57
|
+
| custom | \`name\` (a registered variant name) |
|
|
56
58
|
|
|
57
59
|
**Every form MUST include \`onSubmit\`** with a descriptive action ID (e.g., \`onSubmit: submit-kyc-form\`). Without it, the form renders without a submit button and users cannot submit their data.
|
|
58
60
|
|
|
59
|
-
Select fields use \`options\` as an array of objects: \`- label: "Display" value: key\`, NOT flat strings.
|
|
61
|
+
Select fields use \`options\` as an array of objects: \`- label: "Display" value: key\`, NOT flat strings. Quote numeric-looking values (\`value: "1"\`, not \`value: 1\`). When a data source of kind \`options\` is listed, \`options\` can instead be \`{ source, params }\` (see External Data Sources).
|
|
60
62
|
Approval gates use \`allowedRoles\` (NOT \`roles\`) for role restrictions.
|
|
63
|
+
Tables can also set \`sortable\` (per column or on the table), \`filterable\` (adds a filter box) and \`pageSize\` (positive integer). For a large data source, set \`pageSize\` so the table pages instead of loading everything.
|
|
64
|
+
A \`custom\` component is a standalone top-level block, NEVER a form field \`type\` and never nested in a form's \`fields\`. Include it only when it is listed under "Selected Components", with a \`name\` the configuration provides (never invent one); variant inputs go under \`props\`, event wiring under \`actions\`.
|
|
65
|
+
|
|
66
|
+
## External Data Sources
|
|
67
|
+
|
|
68
|
+
When the configuration includes an "Available data sources" catalog, each entry is a **definition without data**: it names a source and declares its \`kind\`, \`columns\` and \`params\`. The host fetches the rows when the document renders, so the AI never writes them. Your custom prompt MUST tell the AI to reference a source and NEVER to generate inline rows, options or CSV for data a source covers.
|
|
69
|
+
|
|
70
|
+
| Source kind | Used in | Reference goes in |
|
|
71
|
+
|-------------|----------------------------------|---------------------------------|
|
|
72
|
+
| \`rows\` | \`table\` | \`table.data\` |
|
|
73
|
+
| \`series\` | \`chart\` | \`chart.data\` |
|
|
74
|
+
| \`options\` | \`form\` select field | the select field's \`options\` |
|
|
75
|
+
|
|
76
|
+
Rules to carry into the custom prompt:
|
|
77
|
+
- Reference a source as a YAML mapping: \`source: <name>\` with optional \`params:\` underneath. Use only source names from the catalog and NEVER invent one. If the request needs data no listed source provides, say the data is not available instead of fabricating it.
|
|
78
|
+
- The kind must match the slot: a \`rows\` source feeds only a table, a \`series\` source only a chart, an \`options\` source only a select.
|
|
79
|
+
- When the same data is needed as both a table and a chart, the catalog holds two sources, a \`rows\` one and a \`series\` one, under different names. Use the \`rows\` source for the table and the \`series\` source for the chart.
|
|
80
|
+
- \`table.columns[].key\` and chart \`xAxis\` / \`yAxis\` MUST be columns of the referenced source.
|
|
81
|
+
- Give each param a value of its declared type, respect \`allowed\` values, and always supply required params. A param value can be a quoted binding such as \`"{{filters.service}}"\` so the data reacts to another component.
|
|
82
|
+
- Data sources are not components: use them only inside table, chart and form components that are listed under "Selected Components".
|
|
83
|
+
|
|
84
|
+
Example of what a data-source-backed section of a custom prompt looks like:
|
|
85
|
+
|
|
86
|
+
\`\`\`\`
|
|
87
|
+
\`\`\`mdma
|
|
88
|
+
type: table
|
|
89
|
+
id: open-incidents
|
|
90
|
+
sortable: true
|
|
91
|
+
filterable: true
|
|
92
|
+
pageSize: 10
|
|
93
|
+
columns:
|
|
94
|
+
- key: title
|
|
95
|
+
header: Title
|
|
96
|
+
sortable: true
|
|
97
|
+
- key: severity
|
|
98
|
+
header: Severity
|
|
99
|
+
data:
|
|
100
|
+
source: incidents
|
|
101
|
+
params:
|
|
102
|
+
status: open
|
|
103
|
+
\`\`\`
|
|
104
|
+
|
|
105
|
+
\`\`\`mdma
|
|
106
|
+
type: chart
|
|
107
|
+
id: incidents-per-day
|
|
108
|
+
variant: line
|
|
109
|
+
label: Incidents per day
|
|
110
|
+
xAxis: day
|
|
111
|
+
yAxis: count
|
|
112
|
+
data:
|
|
113
|
+
source: incidents-by-day
|
|
114
|
+
params:
|
|
115
|
+
status: open
|
|
116
|
+
\`\`\`
|
|
117
|
+
|
|
118
|
+
\`\`\`mdma
|
|
119
|
+
type: form
|
|
120
|
+
id: incident-filters
|
|
121
|
+
onSubmit: apply-incident-filters
|
|
122
|
+
fields:
|
|
123
|
+
- name: service
|
|
124
|
+
type: select
|
|
125
|
+
label: Service
|
|
126
|
+
options:
|
|
127
|
+
source: services
|
|
128
|
+
\`\`\`
|
|
129
|
+
\`\`\`\`
|
|
61
130
|
|
|
62
131
|
## Output Format
|
|
63
132
|
|
|
@@ -75,13 +144,14 @@ Generate a clean, well-structured custom prompt in plain text. Structure it as:
|
|
|
75
144
|
- What content/fields it should have
|
|
76
145
|
- Domain-specific field names and labels
|
|
77
146
|
- Which fields are sensitive (PII)
|
|
147
|
+
- Which catalog source (and params) feeds each table, chart or select, when the configuration lists data sources
|
|
78
148
|
5. **Workflow Logic** — How components relate to each other (bindings, action triggers, approval flows)
|
|
79
149
|
6. **MANDATORY: Concrete MDMA Examples** — For EVERY form in the configuration, you MUST include a complete \`\`\`mdma code block example showing the exact form with all its fields. This is NOT optional. The AI that reads your prompt needs these examples to generate correct MDMA output. Examples MUST use **YAML syntax** inside fenced \`mdma\` code blocks (never JSON). Every example block MUST include all required fields for its component type — omitting required fields is a validation error. If the flow has 2 steps with 2 forms, include 2 separate form examples.
|
|
80
150
|
7. **Constraints** — Things the AI must or must not do in this domain
|
|
81
151
|
|
|
82
152
|
## Example
|
|
83
153
|
|
|
84
|
-
Given a configuration for a KYC (Know Your Customer) flow in finance with a
|
|
154
|
+
Given a configuration for a KYC (Know Your Customer) flow in finance with a 3-step conversation flow (Step 1: form on keyword trigger, Step 2: approval-gate after form submission, Step 3: tasklist after approval), you would generate:
|
|
85
155
|
|
|
86
156
|
---
|
|
87
157
|
|
|
@@ -101,22 +171,25 @@ Form fields: full name, date of birth, nationality, government ID number, ID typ
|
|
|
101
171
|
- Use a select field for ID type with standard document options
|
|
102
172
|
|
|
103
173
|
**Step 2 — Compliance Review**
|
|
104
|
-
After the user submits the applicant form, show the compliance approval gate
|
|
174
|
+
After the user submits the applicant form, show the compliance approval gate. Include a thinking block analyzing the case before presenting the component. Do NOT show the verification checklist yet.
|
|
105
175
|
|
|
106
176
|
Approval Gate:
|
|
107
177
|
- Require 2 approvers with roles: compliance-officer, senior-analyst
|
|
108
178
|
- Require a reason on denial
|
|
109
179
|
- Title: "KYC Compliance Approval"
|
|
110
180
|
|
|
181
|
+
Include a callout with variant "warning" if the case involves a PEP (Politically Exposed Person).
|
|
182
|
+
|
|
183
|
+
**Step 3 — Verification Checklist**
|
|
184
|
+
After the compliance approval gate is approved, show the verification checklist.
|
|
185
|
+
|
|
111
186
|
Tasklist:
|
|
112
187
|
- Items: identity document verified, address proof verified, PEP screening completed, sanctions list checked, source of funds verified
|
|
113
188
|
- All items required
|
|
114
189
|
|
|
115
|
-
Include a callout with variant "warning" if the case involves a PEP (Politically Exposed Person).
|
|
116
|
-
|
|
117
190
|
### Domain Example
|
|
118
191
|
|
|
119
|
-
Here
|
|
192
|
+
Here are correctly structured MDMA blocks for a KYC review. They are listed together for reference only; in the conversation each message carries just one interactive component (the form in Step 1, the approval gate in Step 2):
|
|
120
193
|
|
|
121
194
|
\`\`\`\`
|
|
122
195
|
## KYC Case Review
|
|
@@ -203,5 +276,7 @@ This is the most important rule. Violating it produces a broken prompt that gene
|
|
|
203
276
|
6. **Use YAML, never JSON** — All domain examples with fenced \`mdma\` code blocks MUST use YAML syntax. MDMA components are always defined in YAML. Never use JSON objects like \`{"type": "form", ...}\` in examples.
|
|
204
277
|
7. **Respect flow ordering** — When the configuration defines a multi-step conversation flow, your output MUST instruct the AI to present components in the defined step order, waiting for each trigger before proceeding to the next step. Do NOT show all components at once unless the flow has a single step. Each step's trigger must be clearly communicated so the AI knows when to advance.
|
|
205
278
|
8. **Always include MDMA examples** — Your output MUST contain at least one \`\`\`mdma code block for every form defined in the configuration. A prompt without concrete MDMA examples is incomplete — the AI needs them to generate correct output. If there are 2 forms across 2 steps, include 2 form code blocks.
|
|
279
|
+
9. **One interactive component per message** — The AI may emit at most one interactive component (\`form\`, \`button\`, \`webhook\`, \`approval-gate\`, \`tasklist\`) in a response; \`callout\`, \`table\`, \`chart\` and \`thinking\` can accompany it. Your custom prompt must never tell the AI to show two interactive components together: when a step lists several, instruct it to present them one per message, in order, telling the user what comes next.
|
|
280
|
+
10. **Reference data sources, never inline their data** — When the configuration lists data sources, the tables, charts and select fields they cover use \`source\` and \`params\` exactly as described under External Data Sources. Do NOT write example rows, options or CSV for data a source provides.
|
|
206
281
|
`;
|
|
207
282
|
//# sourceMappingURL=master-prompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master-prompt.js","sourceRoot":"","sources":["../../src/prompts/master-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG
|
|
1
|
+
{"version":3,"file":"master-prompt.js","sourceRoot":"","sources":["../../src/prompts/master-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Q5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobile-reality/mdma-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"mdma",
|
|
6
6
|
"markdown",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"globby": "^14.0.0",
|
|
39
39
|
"open": "^10.0.0",
|
|
40
40
|
"yaml": "^2.6.0",
|
|
41
|
-
"@mobile-reality/mdma-prompt-pack": "0.
|
|
42
|
-
"@mobile-reality/mdma-
|
|
43
|
-
"@mobile-reality/mdma-
|
|
41
|
+
"@mobile-reality/mdma-prompt-pack": "0.6.0",
|
|
42
|
+
"@mobile-reality/mdma-spec": "0.5.0",
|
|
43
|
+
"@mobile-reality/mdma-validator": "0.4.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@tailwindcss/vite": "^4.2.1",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"unified": "^11.0.0",
|
|
56
56
|
"vite": "^6.0.0",
|
|
57
57
|
"vitest": "^3.2.0",
|
|
58
|
-
"@mobile-reality/mdma-
|
|
59
|
-
"@mobile-reality/mdma-runtime": "0.
|
|
60
|
-
"@mobile-reality/mdma-
|
|
61
|
-
"@mobile-reality/mdma-renderer-react": "0.
|
|
58
|
+
"@mobile-reality/mdma-parser": "0.3.1",
|
|
59
|
+
"@mobile-reality/mdma-runtime": "0.5.0",
|
|
60
|
+
"@mobile-reality/mdma-attachables-core": "^0.2.7",
|
|
61
|
+
"@mobile-reality/mdma-renderer-react": "0.7.0"
|
|
62
62
|
},
|
|
63
63
|
"files": [
|
|
64
64
|
"dist",
|