@noodleseed/one 0.117.3 → 0.118.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/dist/bin.js +0 -0
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js +3 -11
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/assistant.d.ts +6 -1
- package/node_modules/@noodle-borg/authoring/dist/assistant.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/assistant.js +44 -1
- package/node_modules/@noodle-borg/authoring/dist/assistant.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
File without changes
|
|
@@ -27,7 +27,7 @@ export const BUNDLED_EXAMPLE_FILES = [
|
|
|
27
27
|
{ relPath: "examples/acme-bistro/src/views/widget-style.css", content: ":root {\n color-scheme: light dark;\n font-family:\n Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n --nw-bg: #ffffff;\n --nw-surface: #fdf4f3;\n --nw-text: #1f1413;\n --nw-muted: #7a5f5c;\n --nw-border: #efd9d6;\n /* Local-dev default. At runtime menu-cart.tsx overrides this from server.branding.accent. */\n --nw-accent: #b91c1c;\n --nw-accent-strong: #991b1b;\n --nw-accent-soft: #fdeae8;\n --nw-radius: 10px;\n --nw-shadow: 0 18px 50px rgb(60 20 20 / 12%);\n}\n\n.dark,\n[data-theme=\"dark\"] {\n --nw-bg: #1a1211;\n --nw-surface: #241816;\n --nw-text: #f8ecea;\n --nw-muted: #c3a29e;\n --nw-border: #43302d;\n --nw-accent: #f87171;\n --nw-accent-strong: #ef4444;\n --nw-accent-soft: #3a1f1d;\n --nw-shadow: 0 18px 50px rgb(0 0 0 / 32%);\n}\n\n* {\n box-sizing: border-box;\n}\n\nbody {\n margin: 0;\n background: var(--nw-bg);\n color: var(--nw-text);\n}\n\nbutton {\n font: inherit;\n}\n\n.nw-shell {\n min-height: 100vh;\n padding: 14px;\n background: var(--nw-bg);\n color: var(--nw-text);\n}\n\n.nw-card {\n max-width: 560px;\n margin: 0 auto;\n background: var(--nw-surface);\n border: 1px solid var(--nw-border);\n border-radius: var(--nw-radius);\n box-shadow: var(--nw-shadow);\n overflow: hidden;\n}\n\n.nw-header {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 16px;\n border-bottom: 1px solid var(--nw-border);\n}\n\n.nw-icon svg {\n width: 24px;\n height: 24px;\n fill: none;\n stroke: var(--nw-accent);\n stroke-width: 1.7;\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n\n.nw-title-block {\n flex: 1;\n min-width: 0;\n}\n\n.nw-title {\n margin: 0;\n font-size: 17px;\n font-weight: 700;\n}\n\n.nw-subtitle {\n margin: 2px 0 0;\n font-size: 13px;\n color: var(--nw-muted);\n}\n\n.nw-chip {\n padding: 4px 10px;\n border-radius: 999px;\n background: var(--nw-accent-soft);\n color: var(--nw-accent-strong);\n font-size: 12px;\n font-weight: 600;\n}\n\n.nw-menu {\n list-style: none;\n margin: 0;\n padding: 8px 16px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.nw-row {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 0;\n border-bottom: 1px dashed var(--nw-border);\n}\n\n.nw-row-main {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n}\n\n.nw-name {\n font-weight: 600;\n}\n\n.nw-kind {\n font-size: 12px;\n color: var(--nw-muted);\n}\n\n.nw-price {\n color: var(--nw-accent-strong);\n font-weight: 600;\n font-size: 13px;\n}\n\n.nw-qty {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n}\n\n.nw-step {\n width: 26px;\n height: 26px;\n border: 1px solid var(--nw-border);\n border-radius: 8px;\n background: var(--nw-bg);\n color: var(--nw-text);\n cursor: pointer;\n}\n\n.nw-step:disabled {\n opacity: 0.4;\n cursor: default;\n}\n\n.nw-count {\n min-width: 16px;\n text-align: center;\n font-variant-numeric: tabular-nums;\n}\n\n.nw-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 12px 16px 4px;\n}\n\n.nw-total {\n font-size: 14px;\n color: var(--nw-muted);\n}\n\n.nw-total strong {\n color: var(--nw-text);\n font-size: 16px;\n}\n\n.nw-button {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 9px 14px;\n border: 1px solid var(--nw-border);\n border-radius: 10px;\n background: var(--nw-bg);\n color: var(--nw-text);\n cursor: pointer;\n}\n\n.nw-button svg {\n width: 16px;\n height: 16px;\n fill: none;\n stroke: currentColor;\n stroke-width: 1.7;\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n\n.nw-button-primary {\n background: var(--nw-accent);\n border-color: var(--nw-accent);\n color: #ffffff;\n font-weight: 600;\n}\n\n.nw-button-primary:disabled {\n opacity: 0.6;\n cursor: default;\n}\n\n.nw-note {\n margin: 0;\n padding: 8px 16px 16px;\n font-size: 12px;\n color: var(--nw-muted);\n}\n" },
|
|
28
28
|
{ relPath: "examples/acme-bistro/test/server.test.ts", content: "import { describe, expect, it } from 'vitest';\nimport app from '../src/server.js';\n\ndescribe('acme-bistro example', () => {\n it('exports a Noodle server definition', () => {\n expect(typeof app.toManifest).toBe('function');\n });\n\n it('declares the payment-only handoff domain', async () => {\n // End-to-end: the order completes in chat; only payment hands off to Acme's checkout.\n const text = JSON.stringify(await app.toManifest());\n expect(text).toContain('https://pay.acme.example');\n });\n\n it('exposes the menu widget, cart helpers, and checkout tool', async () => {\n const text = JSON.stringify(await app.toManifest());\n expect(text).toContain('show_menu');\n expect(text).toContain('add_to_cart');\n expect(text).toContain('create_checkout');\n });\n});\n" },
|
|
29
29
|
{ relPath: "examples/acme-bistro/vitest.config.ts", content: "import { defineConfig } from 'vitest/config';\n\n// Local config so `npm test` (vitest run) discovers this example's own tests instead of inheriting a\n// parent monorepo config's include globs.\nexport default defineConfig({\n test: { include: ['test/**/*.test.ts'] },\n});\n" },
|
|
30
|
-
{ relPath: "examples/acme-discovery/README.md", content: "# Acme Getaways — top-of-funnel discovery → handoff\n\nA Noodle MCP App for **Acme Getaways**, a fictional travel brand. It is the flagship for the\n**top-of-funnel discovery → handoff** pattern: discovery and configuration happen inside ChatGPT; the\nbooking/transaction happens off-app on Acme's own site, reached through a signed, attributable handoff\ndeep link. It pairs a `tool` discovery carousel with a model-visible `create_handoff` tool and\nserver-level `handoff.allowedDomains`.\n\nCapability slots: top-of-funnel funnel discipline, discovery carousel widget, `create_handoff` deep-link\nhandoff with attribution, `handoff.allowedDomains`, the **public website assistant surface**, and a worked\n**design-first** artifact (the UX spec + wireframe below). It shows the \"design the experience, then build\nit\" flow the `noodle-seed` skill's `references/experience-design.md` teaches.\n\n## The same tools on Acme's own website\n\nThe funnel does not only start in ChatGPT. The `assistant` block projects these same three tools onto\nAcme's marketing site for a visitor with **no account and no session backend**:\n\n```ts\naccess: publicWebsite({\n origins: ['https://getaways.acme.example'],\n capabilities: [discoverGetaways, createHandoff, shortlistGetaway],\n}),\n```\n\nThere is no second tool set and no second app — one `server.ts`, projected onto another front door.\n`capabilities` is the entire externally reachable surface, so it stays short enough to review at a glance\nand closed by default: a tool added to this server later is unreachable from the website until someone\nlists it. A tool that needed a signed-in user could not be listed here at all (the compiler rejects it);\
|
|
30
|
+
{ relPath: "examples/acme-discovery/README.md", content: "# Acme Getaways — top-of-funnel discovery → handoff\n\nA Noodle MCP App for **Acme Getaways**, a fictional travel brand. It is the flagship for the\n**top-of-funnel discovery → handoff** pattern: discovery and configuration happen inside ChatGPT; the\nbooking/transaction happens off-app on Acme's own site, reached through a signed, attributable handoff\ndeep link. It pairs a `tool` discovery carousel with a model-visible `create_handoff` tool and\nserver-level `handoff.allowedDomains`.\n\nCapability slots: top-of-funnel funnel discipline, discovery carousel widget, `create_handoff` deep-link\nhandoff with attribution, `handoff.allowedDomains`, the **public website assistant surface**, and a worked\n**design-first** artifact (the UX spec + wireframe below). It shows the \"design the experience, then build\nit\" flow the `noodle-seed` skill's `references/experience-design.md` teaches.\n\n## The same tools on Acme's own website\n\nThe funnel does not only start in ChatGPT. The `assistant` block projects these same three tools onto\nAcme's marketing site for a visitor with **no account and no session backend**:\n\n```ts\naccess: publicWebsite({\n origins: ['https://getaways.acme.example'],\n capabilities: [discoverGetaways, createHandoff, shortlistGetaway],\n}),\n```\n\nThere is no second tool set and no second app — one `server.ts`, projected onto another front door.\n`capabilities` is the entire externally reachable surface, so it stays short enough to review at a glance\nand closed by default: a tool added to this server later is unreachable from the website until someone\nlists it. A tool that needed a signed-in user could not be listed here at all (the compiler rejects it);\nserve those from `authenticatedWebsite({ origins })` instead, where Acme's own backend proves who the\nvisitor is. Mid-conversation sign-in on a public surface is not available yet.\n\n## Design spec (write this before the code)\n\n- **Funnel boundary** — Discover and shortlist a getaway in ChatGPT. Booking, payment, and the account\n live on `acme.example`, reached only after the handoff. No payment or per-user auth in chat.\n- **Personas** — the undecided browser (\"somewhere warm in June?\"), the near-decided planner (has a vibe\n and month, wants options and a fast handoff).\n- **Top-3 prioritized user flows**\n 1. **Discover** — \"warm beach trip in June for 2\" → `discover_getaways` renders the carousel.\n 2. **Shortlist** — pick a destination in the widget → `shortlist_getaway` (widget-only) records it.\n 3. **Handoff** — \"Continue on Acme\" → `create_handoff` emits the deep link → opens off-app.\n- **Tools** — `discover_getaways` (model-visible, renders the widget), `create_handoff` (model-visible,\n emits the deep link), `shortlist_getaway` (widget-only helper, hidden from the model).\n- **Widgets + display modes** — `DiscoveryCarousel` as an inline card that expands to fullscreen for\n browsing. No picture-in-picture (nothing is live/ongoing).\n- **Grounding sources** — the destination catalog in `src/server.ts` is Acme's own data; the widget never\n invents a place, price, or best-month.\n- **Handoff domains** — `https://book.acme.example`, `https://acme.example` (the server\n `handoff.allowedDomains`; the deep link carries `dest`, `month`, `pax`, and `src=chatgpt` for\n attribution).\n\n## Wireframe (one screen, then the off-app destination)\n\nThe carousel screen is in-app (solid frame); the booking screen is off-app (dashed frame) and reached\nonly after the handoff — it is Acme's own page, never wireframed as if it were in chat.\n\n```html\n<div class=\"phone\"> <!-- in-app: solid frame -->\n <div class=\"chatgpt-header\">ChatGPT · Acme Getaways</div>\n <div class=\"msg user\">somewhere warm in June, 2 of us</div>\n <div class=\"tool-call\">discover_getaways { vibe: \"beach\", month: \"June\", travelers: 2 }</div>\n <div class=\"wcard\">\n <div class=\"wcard-head\">DiscoveryCarousel</div> <!-- component name = code + spec -->\n <div class=\"wcard-body\">\n <div class=\"dest\">Coral Bay · from $890 · best May–Sep [Shortlist]</div>\n <div class=\"dest\">Harbor City · from $980 · best Sep–Nov [Shortlist]</div>\n <a class=\"cta\">Continue on Acme · Coral Bay</a> <!-- one primary action -->\n </div>\n </div>\n</div>\n<div class=\"phone offapp\"> <!-- off-app: dashed frame -->\n <div class=\"browser-header\">book.acme.example/plan?dest=coral_bay&month=June&pax=2&src=chatgpt</div>\n <div class=\"offapp-body\">Acme booking — payment & account live here.</div>\n</div>\n```\n\n## Local author loop\n\n```sh\nnoodle validate\nnoodle test\nnoodle dev\n```\n\nIn another terminal:\n\n```sh\nnoodle tools list\nnoodle tools call discover_getaways --args '{\"vibe\":\"beach\",\"month\":\"June\",\"travelers\":2}'\nnoodle tools call create_handoff --args '{\"destination\":\"coral_bay\",\"destinationName\":\"Coral Bay\",\"month\":\"June\",\"travelers\":2}'\nnoodle check --target chatgpt\n```\n\n## Deploy\n\n```sh\nnoodle link --org demo --app acme-discovery\nnoodle deploy --access owner-only\nnoodle open\n```\n\nThis example has no connector secrets and does not include tokens, caller-key mechanisms, or\n`.env.noodle` values. All destinations, prices, and URLs are fictional.\n" },
|
|
31
31
|
{ relPath: "examples/acme-discovery/design/UX-Document.md", content: "# Acme Getaways ChatGPT App — User Flow & Experience Document\n\n**Prepared by:** Noodle Seed\n**Scope:** Top-of-funnel destination discovery & trip-shaping inside ChatGPT → signed, attributable handoff to finish booking on Acme's own site\n**Status:** Design specification (v1)\n**Funnel boundary:** Everything up to \"this is the getaway I want and roughly when I'm going.\" Discovery, shortlisting, and shaping the trip (vibe · month · travelers) happen inside ChatGPT; **booking, dates, and payment happen off-app at `book.acme.example`** via a signed deep link that carries the trip. No per-user OAuth in this app.\n\n> The funnel-boundary line above is the contract. Every scope debate resolves against it: **shape the trip in chat, transact on Acme.**\n\n---\n\n## 0. The One-Paragraph Thesis\n\nA traveler deciding *where* to go doesn't start on a booking site — they start with a fuzzy feeling: \"somewhere warm and walkable in June, just the two of us, not too expensive.\" That deliberation increasingly happens in ChatGPT, where they can think out loud and be talked through options. But base ChatGPT can only guess at places and prices; it doesn't know Acme's actual catalog, what a trip *starts from*, or which months are right. The Acme Getaways app brings Acme's **own curated destinations** — Coral Bay, Monte Alto, Old Quarter, Harbor City, each with a real starting price, best-months window, and an honest one-line reason it fits — into that same conversation, rendered as a discovery carousel the traveler can scan, shortlist, and shape. We own the **discovery and configuration** loop; Acme owns the **booking, dates, inventory, and payment** that happen on `book.acme.example`. The handoff *is* the product: the moment the traveler is excited about a specific place, one tap carries the shaped trip to Acme's site with a `src=chatgpt` attribution tag — so Acme measures, and pays for, exactly the demand ChatGPT sent. Acme never has to build or maintain a chat surface; Noodle Seed never has to touch payments.\n\n---\n\n## 1. Acme Getaways Product Overview (Knowledge Base)\n\n### 1.1 What is Acme Getaways?\n\n**Acme Getaways** is a fictional curated-travel brand that sells a small, hand-picked catalog of getaway destinations rather than an infinite metasearch index. Its edge is *curation*: every destination is chosen, described, and priced by Acme, and every trip is booked and fulfilled on Acme's own platform at `acme.example` (booking flow at `book.acme.example`). Because the catalog is small and Acme-owned, it is the ideal thing to ground a ChatGPT app on — the app can be authoritative about every place it shows, because Acme is the source of truth for all of them.\n\n### 1.2 The Catalog (what the app helps discover)\n\nThe curated catalog is **static, Acme-owned data the app returns verbatim** — the app never invents a destination, a price, or a best-months window.\n\n| Destination | Region | Vibe | From (per person) | Best months | Why (Acme's own line) |\n|-------------|--------|------|-------------------|-------------|------------------------|\n| **Coral Bay** | Adriatic coast | beach | **$890** | May–Sep | Calm swimming coves and a walkable old town — easy for a relaxed first trip. |\n| **Monte Alto** | Northern Alps | mountains | **$1,120** | Dec–Mar | Ski-in village with beginner slopes and long groomed runs. |\n| **Old Quarter** | Central Europe | culture | **$640** | Apr–Oct | Dense museum district and food halls, all reachable on foot. |\n| **Harbor City** | Pacific rim | city | **$980** | Sep–Nov | Waterfront nightlife and day-trip islands a short ferry away. |\n\n**\"From\" prices are per-person starting figures**, not quotes — the real, dated price is computed on Acme's site once the traveler picks dates and party size. The app is careful to say \"from $X,\" never \"$X.\"\n\n### 1.3 The Trip Shape (the three inputs the app configures)\n\nDiscovery is parameterized by three model-fillable inputs the traveler expresses in natural language: **vibe** (`beach` · `mountains` · `culture` · `city`), **month** (a calendar month, defaulting to June), and **travelers** (party size, default 2). These are exactly the values that survive the handoff, so the trip a traveler shapes in chat is the trip Acme's site opens to. Nothing else is configured in chat — no dates, no rooms, no payment; those belong to Acme.\n\n### 1.4 The Booking Platform (what lives after the handoff)\n\n`book.acme.example` is Acme's real booking flow: live inventory, exact dates, party pricing, and checkout. It is **off-app by design** — it needs the traveler's account, real availability, and a payment method, none of which belong in a chat surface. The ChatGPT app's job ends the instant the traveler is ready to book; it hands the shaped trip across a signed deep link and never sees a card number.\n\n### 1.5 Business Model / Why Acme Wants This\n\nAcme earns on completed bookings. Its bottleneck is **top-of-funnel demand** — reaching travelers at the \"where should we go?\" moment, before they've defaulted to a metasearch site. That moment now happens in ChatGPT. This app moves Acme **upstream** into the deliberation itself, and — critically — makes the demand **attributable**: every handoff carries `src=chatgpt`, so Acme can measure ChatGPT-sourced sessions, handoffs, and downstream bookings, and Noodle Seed can be paid for the funnel it fills. Acme gets qualified, pre-shaped travelers landing on its booking flow; it does not have to build, staff, or moderate a conversational surface.\n\n---\n\n## 2. Competitive Landscape — Travel Discovery on ChatGPT\n\n### 2.1 What exists today\n\nTravel discovery inside ChatGPT today is **ungrounded**: the model will happily suggest destinations, but it can't tell you what *Acme* actually sells, what a trip starts from, or which months are right for a specific place — and it can't hand you off to book. Travelers bounce out to metasearch tabs, lose the context they built up in chat, and re-explain everything. Generic travel apps that do exist optimize for the *booking* transaction, not the *deliberation* — they assume you already know where you're going.\n\n### 2.2 Acme's unique position in ChatGPT\n\nThe wedge is **\"a fuzzy feeling in, a specific shortlisted getaway out — grounded in a real catalog, ready to book in one tap.\"** Differentiators:\n\n- **Grounded catalog.** Every place, price, best-month, and reason comes from Acme's own data, shown in the carousel — never the model's guess.\n- **Shaped, not just suggested.** The trip carries a vibe, a month, and a party size, so the handoff opens Acme's site to *this* trip, not a blank search.\n- **Honest top-of-funnel.** The app is explicit that booking and payment happen on Acme, never in chat — no fake in-chat checkout, no invented availability.\n- **Attributable by construction.** The `src=chatgpt` tag on the handoff makes the funnel measurable from day one.\n\n---\n\n## 3. Target User Personas (traveler-centric)\n\n**Persona A — \"The Weekend Deliberator.\"** Knows the vibe and the rough month, not the place. \"Somewhere warm and walkable, early June, two of us.\" Wants 3–4 credible options with a reason each, fast. High intent, low patience. Handoff target: **book the shortlisted place on Acme.**\n\n**Persona B — \"The Budget-First Traveler.\"** Starts from a number, not a place. \"What's the cheapest getaway that isn't miserable?\" Scans on the \"from\" price, reads the reason, shortlists. Handoff target: **Acme, once the price/place feels right.**\n\n**Persona C — \"The Season Chaser.\"** Has a fixed window and wants the place that's *right then*. \"Where's good in December?\" Cares most about the best-months fit. Handoff target: **Acme, for the in-season pick.**\n\n**Persona D — \"The Vibe Switcher.\"** Came in for the beach, talks themselves into culture or a city break mid-conversation. Re-runs discovery with a new vibe; the carousel re-renders. Handoff target: **Acme, once the vibe settles.**\n\n**Persona E — \"The Group Coordinator.\"** (Edge.) Shaping a trip for 4–6 people; party size matters for how the trip reads and what carries across. Same loop; the `travelers` value is the one they care about surviving the handoff.\n\n> **The single adaptive behavior:** the app infers vibe · month · travelers from natural language, re-runs discovery when any of them changes, and only ever offers **one deliberate exit — book on Acme.** There is no second track; the handoff is singular.\n\n---\n\n## 4. Conversational User Flow\n\n### 4.1 Entry Points\n\n1. **Vibe + month:** \"Where should we go for a beach trip in June?\"\n2. **Budget-first:** \"Cheapest getaway you'd actually recommend for two?\"\n3. **Season-first:** \"Somewhere good in December?\"\n4. **Named vibe switch:** \"Actually, more of a city break — options?\"\n5. **Party-shaped:** \"A culture trip for four in October.\"\n\n### 4.2 Flow Architecture\n\n```\n ┌─────────────────────────────────────────┐\n │ ENTRY / INTENT │\n │ vibe · month · travelers (from language) │\n └──────────────────────┬────────────────────┘\n │\n discover_getaways ★\n │\n ┌─────────────▼──────────────┐\n │ DiscoveryCarousel │\n │ 4 grounded options: name, │\n │ from-price, best-months, │\n │ region, Acme's \"why\" line │\n └─────────────┬──────────────┘\n │\n ┌──────────────────────────┼──────────────────────────┐\n │ │ │\n shortlist_getaway re-run discovery (browse / narrate)\n (tap a card → mark) (change vibe/month/pax) model explains fit\n │ │ │\n └──────────────────────────┼───────────────────────────┘\n │\n ┌─────────────▼──────────────┐\n │ \"Continue on Acme\" CTA │\n │ create_handoff ★ │\n └─────────────┬──────────────┘\n │\n ┌──────────────────────────▼───────────────────────────┐\n │ HANDOFF (the funnel boundary) │\n │ book.acme.example/plan?dest=…&month=…&pax=…&src=chatgpt│\n │ (dates · inventory · payment happen OFF-APP) │\n └────────────────────────────────────────────────────────┘\n```\n\nThe defining property: **the discovery loop is fast, grounded, and account-free; the handoff is a single deliberate exit to Acme.** Nothing is sold, dated, or paid for inside ChatGPT.\n\n### 4.3 Detailed Conversational Scenarios\n\n#### Scenario 1 — \"Beach trip in June\" (vibe + month → carousel)\n\n> **Traveler:** Where should we go for a beach trip in June? Just the two of us.\n\nApp calls `discover_getaways(vibe=\"beach\", month=\"June\", travelers=2)`.\n\n> **ChatGPT:** Here are Acme's getaways shaped for a beach trip in June, for two —\n> *[renders `DiscoveryCarousel`]*\n> **Coral Bay** stands out for a relaxed June trip: calm swimming coves and a walkable old town, from **$890**, and June sits right in its May–Sep window. Tap **Shortlist** on any you like, and I'll hold it. When you're ready, **Continue on Acme** to pick dates and book.\n\n**Subtlety:** the model *narrates which fit* (Coral Bay for beach), but the carousel shows Acme's full catalog — the tool returns all four; it never filters on the input (that's the honest, grounded behavior, §6). Prices are shown \"from,\" never as quotes.\n\n#### Scenario 2 — \"Cheapest you'd recommend\" (budget-first)\n\n> **Traveler:** Honestly, what's the cheapest one you'd actually recommend for two?\n\nApp calls `discover_getaways(vibe=\"culture\", month=\"June\", travelers=2)` (model maps \"cheapest, recommend\" to browsing the catalog).\n\n> **ChatGPT:** *[renders `DiscoveryCarousel`]*\n> On price, **Old Quarter** starts lowest at **from $640** — a dense museum district and food halls, all walkable, best Apr–Oct so June works well. It's the value pick without feeling like a compromise. Shortlist it, or want me to lean warmer/beachier?\n\n**Subtlety:** the recommendation is tied to Acme's real starting prices ($640 Old Quarter < $890 Coral Bay < $980 Harbor City < $1,120 Monte Alto), stated honestly as \"from,\" and the model offers to re-shape the vibe rather than pretend to filter.\n\n#### Scenario 3 — \"Somewhere good in December\" (season-first)\n\n> **Traveler:** We've got a week in December — where's actually good then?\n\nApp calls `discover_getaways(vibe=\"mountains\", month=\"December\", travelers=2)`.\n\n> **ChatGPT:** *[renders `DiscoveryCarousel`]*\n> December points straight at **Monte Alto** — it's the one destination whose best-months window is **Dec–Mar** (ski-in village, beginner slopes, long groomed runs), from **$1,120**. The others read better in warmer months. Want me to shortlist Monte Alto and get you to Acme to check December dates?\n\n**Subtlety:** the app grounds the seasonal call in the catalog's actual `bestMonths` values; it doesn't invent weather claims. Real availability for December is Acme's to confirm — the app says so.\n\n#### Scenario 4 — \"Shortlist that one\" (widget-only write)\n\n> **Traveler:** Shortlist Coral Bay.\n\nInside the widget, tapping **Shortlist** calls `shortlist_getaway(destination=\"Coral Bay\")`.\n\n> **ChatGPT:** *[carousel updates the card to \"Shortlisted\"; status line reads \"Shortlisted Coral Bay.\"]*\n> Held. Coral Bay's your pick — shortlist another to compare, or **Continue on Acme** when you're ready to book it for June, for two.\n\n**Subtlety:** shortlisting is a **local, non-destructive write** (widget state), not a booking or an account action. It's the \"I like this one\" gesture that sets up the handoff; nothing leaves the app.\n\n#### Scenario 5 — \"Actually, a city break\" (vibe switch → re-run)\n\n> **Traveler:** Hmm, actually more of a city break. What've you got?\n\nApp re-calls `discover_getaways(vibe=\"city\", month=\"June\", travelers=2)`; the carousel re-renders.\n\n> **ChatGPT:** *[renders `DiscoveryCarousel`]*\n> Switching to a city vibe — **Harbor City** is the fit: waterfront nightlife and day-trip islands a short ferry away, from **$980**, best Sep–Nov (so June's shoulder-season, still lively). Shortlist it, or keep exploring?\n\n**Subtlety:** the trip **re-shapes on a natural-language change** — the model updates the `vibe` input and re-invokes discovery. Month and party size persist so the traveler isn't re-asked.\n\n#### Scenario 6 — \"Continue on Acme\" (HANDOFF — the funnel boundary)\n\n> **Traveler:** Let's do Coral Bay. Book it.\n\nInside the widget, **Continue on Acme** calls `create_handoff(destination=\"coral_bay\", destinationName=\"Coral Bay\", month=\"June\", travelers=2)`, then opens the returned URL.\n\n> **ChatGPT:** *[opens `https://book.acme.example/plan?dest=coral_bay&month=June&pax=2&src=chatgpt`]*\n> Opening Acme with Coral Bay, June, two travelers pre-filled — pick your exact dates and finish booking there. Booking and payment happen on Acme, never in chat.\n\n**This is the funnel boundary.** The deep link carries the shaped trip (`dest` · `month` · `pax`) plus the `src=chatgpt` attribution. Acme's site takes it from there: real dates, live inventory, payment. The app's job — turning a fuzzy feeling into a specific, shaped, ready-to-book getaway — is done.\n\n---\n\n## 5. UI Widget Specifications (OpenAI Apps SDK Compliant)\n\n> The app has **one** widget, `DiscoveryCarousel`, authored as a React `view` on the `discover_getaways` `tool`. It follows the OpenAI Apps SDK UI Guidelines (system fonts, monochrome outlined icons, WCAG AA, ≤2 actions per card, no nested scroll). Styling uses Noodle Seed's server-level `branding` tokens and CSS cascade layers — not app-specific global CSS. Acme's accent teal is restricted to the primary CTA, the logo mark, and the \"Shortlisted\" state only.\n\n### 5.1 Design System Compliance\n\nBranding is declared once, server-side, and the runtime injects it into the widget as semantic tokens:\n\n```ts\nbranding: {\n name: 'Acme Getaways',\n accent: '#0EA5A4', // teal — CTAs / logo / \"Shortlisted\" ONLY\n surface: '#F0FDFA', // light surface tint\n surfaceDark: '#0B1B1B', // dark-mode surface\n radius: 'lg',\n density: 'comfortable',\n}\n```\n\n| Category | Source | Notes |\n|----------|--------|-------|\n| Text / background / border | Host system tokens (light + dark) | Neutral ChatGPT surface; the widget reads `theme` from `useLayout()` |\n| Accent | `branding.accent` (`#0EA5A4`) | **Primary CTA + logo mark + \"Shortlisted\" badge ONLY** |\n| Surface | `branding.surface` / `surfaceDark` | Light/dark card tint; no full-bleed brand gradient |\n| Radius / density | `branding.radius: lg` / `density: comfortable` | System scale, comfortable spacing |\n| Icons | Monochrome outlined (compass, external-link) | Inline SVG, single stroke, no fills |\n\n**Rules enforced:** system fonts only; monochrome outlined icons; WCAG AA contrast in light *and* dark; no nested scroll (the carousel is a single horizontal track, no scroll-within-scroll); **≤2 actions per card** (each card has one **Shortlist** toggle; the shell has one **Continue on Acme** primary); prices always shown as **\"from $X\"**, never as a quote; the standing line **\"Booking and payment happen on acme.example — never inside chat.\"** is always visible. Verify all of this with `noodle check --target chatgpt` before submission.\n\n### 5.2 Display Mode Strategy\n\n| User Intent | Display Mode | Compliance Note |\n|-------------|-------------|-----------------|\n| Discover / shortlist getaways | **Inline Carousel** (`DiscoveryCarousel`) | Horizontal track of ≤4 cards; 1 action/card; auto-fit inline |\n| Scan the full catalog at once | **Fullscreen** (same component, `displayMode=\"fullscreen\"`) | The component reads `displayMode` and shows a \"Fullscreen\" chip; same data, roomier layout |\n\n> **No Picture-in-Picture, no in-chat checkout.** There is no live session to pin and no transaction in-app, so PiP is unnecessary and a payment/checkout widget is deliberately **not** built — booking is off-app by design. Fullscreen is the same carousel component, not a second widget.\n\n### 5.3 Widget Specification\n\n#### `DiscoveryCarousel` — Inline Carousel ★ core (the only widget)\n**Purpose:** Turn a shaped trip (vibe · month · travelers) into a scannable set of grounded Acme destinations the traveler can shortlist and then carry to Acme to book.\n\n| Spec | Value |\n|------|-------|\n| Header | Compass logo mark, \"Acme Getaways\" title, status subtitle (e.g. \"Shortlisted Coral Bay.\"), a mode chip (\"Discover\" / \"Fullscreen\") |\n| Per card | Destination **name**, **from $price**, **region · best {months}**, Acme's **\"why\"** line (grounded copy), one **Shortlist** toggle (→ \"Shortlisted\" when active) |\n| Shell action | One primary **Continue on Acme · {selected}** CTA (opens the handoff), disabled while pending (\"Opening Acme…\") |\n| Actions per card | **1** (Shortlist) — well within the ≤2 inline limit |\n| Standing note | \"Booking and payment happen on acme.example — never inside chat.\" (always shown) |\n| Model context | A `data-llm` summary line (\"Acme Getaways discovery: N options for {month}, {travelers} traveler(s); shortlisted {name}\") so the model can narrate accurately |\n| Edge states | Empty catalog → status prompts \"Pick a getaway to continue.\"; pending handoff → CTA shows \"Opening Acme…\"; dark mode → `surfaceDark` tint |\n\n---\n\n## 6. Tool Definitions (App Backend)\n\nThree tools, all thin and deterministic over Acme's **own** catalog data. No tool requires a user credential, and **no tool invents a place, price, or best-month** — the catalog is returned verbatim.\n\n### Tool 1: `discover_getaways` ★ (tool with widget)\n- **In:** `vibe (\"beach\"|\"mountains\"|\"culture\"|\"city\", default \"beach\")`, `month (calendar month, default \"June\")`, `travelers (int ≥1, default 2)`\n- **Out:** `{ status, vibe, month, travelers, options[] }` where each option is `{ id, name, region, vibe, priceFrom, bestMonths, why }`\n- **Behavior:** returns the **full curated catalog** verbatim and renders `DiscoveryCarousel`; the model narrates which options fit the stated vibe. It deliberately does **not** filter on the input — filtering a returned catalog on an input value is connector/flow work, not a tool's job, and returning everything keeps the app honest and lets the traveler switch vibe without a dead end. `read-only` annotation. Host status copy: \"Finding getaways…\" → \"Getaways ready\".\n\n### Tool 2: `shortlist_getaway` (tool for widget)\n- **In:** `destination (string)`, `note (string, default \"\")`\n- **Out:** `{ status, destination, note }`\n- **Behavior:** records the traveler's shortlisted destination from inside the carousel. Widget-only (called by the view, not opened by the model). `local-action`, non-destructive — it's a \"hold this one\" gesture in widget state, not a booking or an account write.\n\n### Tool 3: `create_handoff` ★ (open-link tool)\n- **In:** `destination (url-safe id slug, e.g. \"coral_bay\")`, `destinationName (display name)`, `month (calendar month)`, `travelers (int ≥1)`\n- **Out:** `{ status, destination, summary, handoffUrl }`\n- **Behavior:** builds the signed Acme booking deep link carrying the shaped trip:\n `https://book.acme.example/plan?dest=${destination}&month=${month}&pax=${travelers}&src=chatgpt`\n Every value is already URL-safe (id slug · month enum · integer), so it is substituted directly — the tool never URL-encodes, transforms, or filters an input. `open-action` annotation; the domain is declared in `handoff.allowedDomains` so ChatGPT opens it without a safe-link warning. See §9.\n\n> **No live inventory, no pricing math, no AI in the tool path.** Discovery returns static curated data; the handoff is string substitution. The model does the language and the routing; the tools supply grounded truth and the signed link.\n\n---\n\n## 7. Conversation Design Principles\n\n### 7.1 Tone of Voice\nWarm, concise, and honest — a well-traveled friend who knows Acme's catalog cold. It makes a real recommendation (\"Old Quarter is the value pick\"), names the trade-off, and is candid about what it *can't* do (confirm December dates, quote an exact price) because that's Acme's job. No hype, no invented superlatives.\n\n### 7.2 Guardrails (non-negotiable)\n- **Never invent a destination, price, or best-month.** Only the four catalog entries exist; all values are Acme's, shown verbatim.\n- **Always say \"from $X,\" never \"$X.\"** Starting prices are not quotes; the dated price is computed on Acme.\n- **Never imply an in-chat booking, date, or payment.** The standing note is always visible; the CTA always says \"Continue on Acme.\"\n- **Ground seasonal claims in `bestMonths` only** — no fabricated weather or crowd claims.\n- **Attribution is honest, not hidden.** The `src=chatgpt` tag measures the funnel; it carries no PII.\n\n### 7.3 Memory Strategy\nLightweight, per-conversation: the current trip shape (vibe · month · travelers, so suggestions stay consistent), the shortlisted destination, and rejected vibes. No PII, no account linkage. The `chosen` selection lives in widget view-state so it survives re-renders within the session.\n\n### 7.4 Multi-Turn Intelligence\nDiscovery is iterative. The app holds the trip shape across turns; **re-runs `discover_getaways` when vibe, month, or party size changes**; persists the values the traveler didn't change; and proactively offers the next step (shortlist → continue on Acme). The model routes and phrases; the tools supply the catalog and the link.\n\n---\n\n## 8. End-to-End User Journey Map\n\n**Phase 1 — Frame the feeling (first 10–20s).** Traveler states a fuzzy intent; `discover_getaways` returns four grounded options. *Emotional beat: \"these are real places, with real reasons.\"*\n\n**Phase 2 — Compare & shortlist (20–60s).** Traveler scans on price / best-months / reason, switches vibe if the mood changes, taps **Shortlist**. *Emotional beat: \"this one — I like this one.\"*\n\n**Phase 3 — Decide (10–20s).** The shortlisted getaway, shaped with month and party size, is the thing to act on. *Emotional beat: confidence in the pick.*\n\n**Phase 4 — Handoff (1 tap).** **Continue on Acme** opens the booking flow pre-filled. *Emotional beat: \"and now I just pick dates.\"*\n\n**Phase 5 — Off-app.** Dates, inventory, and payment on `book.acme.example`. **Outside our scope by design.**\n\n**Phase 6 — Return (next trip).** A new conversation re-frames a new feeling; the loop repeats for the next getaway.\n\n---\n\n## 9. Handoff Architecture (Deep Dive) ★\n\nThe handoff *is* the product boundary — and here it is a **single, signed, attributable deep link**, not a two-track decision. Simplicity is the point.\n\n### 9.1 What must be true of the handoff\n\n1. **Zero credentials cross the boundary.** ChatGPT never holds an Acme login or a payment method. The traveler authenticates and pays on Acme.\n2. **The shaped trip is preserved.** `dest` (id slug), `month`, and `pax` (party size) travel in the URL so nothing is re-typed on Acme.\n3. **Attribution is attached.** `src=chatgpt` lets Acme credit the session, the handoff, and the downstream booking to the ChatGPT funnel — the commercial heart of the deal, and it carries no PII.\n4. **The domain is allow-listed.** `book.acme.example` (and `acme.example`) are declared in `handoff.allowedDomains`; the compiler derives ChatGPT's redirect domains from that list, so the link opens without a safe-link interstitial.\n5. **Values are already URL-safe.** The id slug, month enum, and integer party size need no encoding — the tool substitutes them directly (encoding an input would break substitution).\n\n### 9.2 The URL pattern\n\n```\nhttps://book.acme.example/plan?dest=coral_bay&month=June&pax=2&src=chatgpt\n```\n\n`dest` = catalog id slug · `month` = calendar month · `pax` = party size · `src=chatgpt` = attribution. One pattern, every destination.\n\n### 9.3 Recommendation & open questions for Acme\n\nShip against Acme's **existing** `book.acme.example/plan` entry point so nothing blocks launch. In parallel, confirm with Acme:\n\n- The **attribution parameter** name/format (we assume `src=chatgpt`) and whether a finer campaign/session tag is wanted.\n- Whether `book.acme.example/plan` should **pre-select dates** from `month` or just default the month filter (today the app passes the month; Acme owns exact dates).\n- Whether a **deep-linked destination page** (`/plan/coral_bay`) is preferred over a query param — a config change, not a UX rework.\n\n> **Design stance:** `create_handoff` emits a `url` + `summary`. Upgrading the query param to a path, or adding a session tag, is a config change — the unknowns don't block the build.\n\n### 9.4 Edge cases at the boundary\n\n- **Destination sold out / month unavailable:** Acme's site owns this; the app never asserts availability, only \"from\" pricing and best-months.\n- **Mobile:** the deep link opens Acme's site/app; the shaped trip carries regardless.\n- **No shortlist yet:** the CTA continues with the currently-selected (first) card, so the handoff always has a destination.\n\n---\n\n## 10. Demo Scope Recommendation\n\n### 10.1 MVP demo features (priority order)\n1. `discover_getaways` + `DiscoveryCarousel` — fuzzy feeling → four grounded options (the \"these are real\" moment).\n2. `shortlist_getaway` — tap to hold a getaway (the \"this one\" moment).\n3. Re-run discovery on a vibe switch — beach → city, carousel re-renders (the \"it adapts\" moment).\n4. `create_handoff` — Continue on Acme, signed link with `src=chatgpt` (the funnel boundary).\n\n### 10.2 Demo script (≈90 seconds)\n1. \"Beach trip in June, two of us.\" → `DiscoveryCarousel`: Coral Bay leads, from $890, May–Sep fit. *(discovery)*\n2. \"What's the cheapest you'd recommend?\" → model points to Old Quarter, from $640. *(grounded recommendation)*\n3. \"Actually, a city break.\" → carousel re-renders to feature Harbor City. *(vibe switch)*\n4. Tap **Shortlist** on Harbor City → status \"Shortlisted Harbor City.\" *(the pick)*\n5. **Continue on Acme** → opens `book.acme.example/plan?dest=harbor_city&month=June&pax=2&src=chatgpt`. *(the handoff — the whole point)*\n\nThe demo's arc: *a vague mood → four real, priced, reasoned getaways → one shortlisted → one tap to book on Acme.*\n\n---\n\n## 11. Technical Architecture (High Level)\n\n```\nChatGPT ──tool calls──► Noodle Seed runtime (server 'acme_discovery')\n │ app-owned curated catalog (static data)\n ├──► discover_getaways (tool → DiscoveryCarousel)\n ├──► shortlist_getaway (tool, local write)\n ├──► create_handoff (open-link → signed Acme deep link)\n └──► React view bundle (DiscoveryCarousel, branding tokens, CSP)\n │\n (traveler taps Continue) ──► book.acme.example/plan?…&src=chatgpt\n (dates · inventory · payment on Acme)\n```\n\n- **Stateless hot path.** Discovery returns static curated data; the handoff is string substitution. No AI in the tool path.\n- **Grounding discipline.** Every place/price/best-month is Acme's own data, returned verbatim; the model narrates, it never invents.\n- **CSP.** The widget's `connectDomains` / `resourceDomains` / `frameDomains` are scoped to `acme.example`; the handoff domains are declared in `handoff.allowedDomains`.\n- **Attribution.** `src=chatgpt` injected at `create_handoff`, logged (PII-free) for funnel analytics.\n\n---\n\n## 12. Success Metrics\n\n| Metric | What it tells us |\n|--------|------------------|\n| **Discovery rate** (session → carousel rendered) | Top-of-funnel reach |\n| **Shortlists per session** | Engagement with the core gesture |\n| **Vibe re-runs per session** | Depth of deliberation (the loop working) |\n| **Handoff rate** (session → Continue on Acme) | In-app funnel conversion |\n| **`src=chatgpt` bookings on Acme** | The revenue number — bookings attributed to the ChatGPT funnel |\n| **Handoff→booking rate** (Acme-side) | Quality of the shaped demand we send |\n\nThe cleanest experiment: measure **ChatGPT-attributed handoffs → completed Acme bookings** — the conversion that justifies the app and prices the funnel.\n\n---\n\n## 13. Future Enhancements (Post-Launch)\n\n- **Deep-linked destination pages** (`/plan/coral_bay`) if Acme prefers a path over a query param (§9.3).\n- **Month → date pre-selection** on Acme once the booking flow accepts a target window.\n- **Richer shortlist** — hold multiple getaways and compare them side by side before the handoff.\n- **Live catalog feed** — swap the static catalog for an Acme feed so new destinations and \"from\" prices update without a redeploy.\n- **Seasonal nudges** — surface the in-season destination first when the stated month maps cleanly to one `bestMonths` window.\n- **Fullscreen catalog browse** — a roomier grid of the full catalog (same component, `displayMode=\"fullscreen\"`) for \"show me everything.\"\n\n---\n\n## Appendix A — Funnel Boundary Cheat-Sheet\n\n| Stage | Where it happens | Auth needed? |\n|-------|------------------|--------------|\n| Frame the feeling (vibe · month · travelers) | ChatGPT (model) | No |\n| Discover getaways | App → `discover_getaways` | No |\n| Shortlist a getaway | App → `shortlist_getaway` (widget state) | No |\n| Re-shape the trip (change vibe/month/pax) | App → re-run `discover_getaways` | No |\n| **Handoff** | App → `create_handoff` (signed deep link) | No |\n| Pick dates / check availability | **Acme** (`book.acme.example`) | **Yes (at Acme)** |\n| Pay & confirm booking | **Acme** | **Yes (at Acme)** |\n\nEverything above the bold line is ours and runs without a single user credential. Everything below is Acme's. The **Continue on Acme** CTA is the line — and it points one way: *book it on Acme.*\n\n---\n\n## Appendix B — Source Notes (for the build team)\n\nAcme Getaways is a **fictional** brand; the catalog, prices, best-months, and regions in this document are the app's own curated data and are internally consistent with `src/server.ts` and the `DiscoveryCarousel` view. \"From\" prices are per-person starting figures, not quotes — the `create_handoff` deep link exists precisely so exact dates and pricing are always resolved on Acme's own booking flow, never asserted in chat. Tool names (`discover_getaways`, `shortlist_getaway`, `create_handoff`), the widget name (`DiscoveryCarousel`), and the handoff domain (`book.acme.example`) match the implementation exactly; verify Apps SDK compliance with `noodle check --target chatgpt` at build time.\n" },
|
|
32
32
|
{ relPath: "examples/acme-discovery/design/wireframe.html", content: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>Acme Getaways × ChatGPT — Discovery Top-of-Funnel Wireframes</title>\n<style>\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');\n * { margin: 0; padding: 0; box-sizing: border-box; }\n body { font-family: 'Inter', -apple-system, sans-serif; background: #f4f5f7; color: #1a1d22; line-height: 1.55; }\n .mono { font-family: 'JetBrains Mono', monospace; }\n\n /* ── Acme Getaways brand tokens (from server branding) ── */\n :root {\n --ac-teal: #0EA5A4;\n --ac-teal-soft: #E4FAF8;\n --ac-teal-border: #9CE6E3;\n --ac-ink: #0B1B1B;\n --ac-slate: #234A48;\n --ac-green: #1F9D6B;\n --ac-green-soft: #E5F6EE;\n --ac-green-border: #A7E2C7;\n --ac-amber: #C2710C;\n --ac-amber-soft: #FBF1DF;\n --ac-amber-border: #F0D49A;\n --ac-blue: #2563C9;\n --ac-blue-soft: #E8EEFB;\n }\n\n /* ── Page Header ── */\n .page-header { background: var(--ac-ink); color: #fff; border-bottom: 3px solid var(--ac-teal); padding: 30px 48px; position: sticky; top: 0; z-index: 100; }\n .page-header h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }\n .page-header h1 .brand { color: var(--ac-teal); }\n .page-header p { font-size: 13px; color: #9db3b1; margin-top: 4px; }\n .page-header .scope { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; padding: 4px 12px; background: var(--ac-teal); color: #04201f; border-radius: 4px; }\n\n /* ── Section Nav ── */\n .section-nav { background: #fff; border-bottom: 1px solid #e6e8ec; padding: 12px 48px; display: flex; gap: 22px; font-size: 12px; font-weight: 600; position: sticky; top: 100px; z-index: 99; overflow-x: auto; }\n .section-nav a { color: #8a929c; text-decoration: none; white-space: nowrap; }\n .section-nav a:hover { color: var(--ac-teal); }\n\n .container { max-width: 1480px; margin: 0 auto; padding: 40px 48px 90px; }\n\n /* ── Visual Vocabulary ── */\n .vocab { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 26px; padding: 14px 18px; background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; font-size: 12px; color: #555; }\n .vocab-item { display: flex; align-items: center; gap: 8px; }\n .vocab-sw { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.1); }\n .vocab-sw.teal { background: var(--ac-teal); }\n .vocab-sw.green { background: var(--ac-green); }\n .vocab-sw.amber { background: var(--ac-amber); }\n .vocab-sw.grey { background: #cdd2d8; }\n .vocab-sw.ink { background: var(--ac-ink); }\n\n /* ── Section ── */\n .section { margin-bottom: 68px; }\n .section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ac-teal); margin-bottom: 8px; display: block; }\n .section-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; color: var(--ac-ink); }\n .section-subtitle { font-size: 14px; color: #5c6570; margin-bottom: 22px; max-width: 900px; }\n\n /* ── Rationale Block ── */\n .rationale { background: #fff; border: 1px solid #e6e8ec; border-left: 3px solid var(--ac-teal); border-radius: 10px; padding: 16px 20px; margin-bottom: 22px; max-width: 960px; }\n .rationale h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #8a929c; margin-bottom: 8px; }\n .rationale p { font-size: 13px; color: #3d454e; line-height: 1.6; margin-bottom: 8px; }\n .rationale p:last-child { margin-bottom: 0; }\n .r-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-right: 4px; }\n .r-tag.ux { background: var(--ac-green-soft); color: #15734d; }\n .r-tag.ui { background: var(--ac-blue-soft); color: #1d4fa0; }\n .r-tag.acme { background: var(--ac-teal-soft); color: #067e7c; }\n .r-tag.trust { background: var(--ac-amber-soft); color: #92560a; }\n\n /* ── Phone Row ── */\n .phones-row { display: flex; gap: 26px; overflow-x: auto; padding-bottom: 16px; align-items: stretch; }\n .phone-step { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }\n .step-label { font-size: 11px; font-weight: 600; color: #99a1ab; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; text-align: center; max-width: 320px; }\n .step-label small { font-weight: 400; letter-spacing: 0; text-transform: none; color: #b3bac2; display: block; margin-top: 2px; }\n .phone { width: 322px; min-height: 660px; background: #fff; border: 2px solid var(--ac-ink); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; }\n .phone.offapp { border-color: #b9c0c8; border-style: dashed; }\n .phone-notch { width: 100px; height: 24px; background: var(--ac-ink); border-radius: 0 0 14px 14px; margin: 0 auto; flex-shrink: 0; }\n .phone.offapp .phone-notch { background: #b9c0c8; }\n .phone-screen { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }\n .step-arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; align-self: center; width: 34px; font-size: 24px; color: #c6ccd3; }\n\n /* ── ChatGPT / Browser Chrome ── */\n .chatgpt-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 10px; border-bottom: 1px solid #eef0f2; }\n .chatgpt-header .model-name { font-size: 14px; font-weight: 600; }\n .chatgpt-header .dots { font-size: 18px; color: #aab; letter-spacing: 2px; }\n .browser-header { display: flex; align-items: center; gap: 8px; padding: 8px 0 10px; border-bottom: 1px solid #eef0f2; }\n .browser-header .url { flex: 1; font-size: 9.5px; color: #8a929c; background: #f1f3f5; border-radius: 12px; padding: 6px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }\n .browser-header .lock { color: var(--ac-green); font-size: 11px; }\n\n /* ── Messages ── */\n .msg { max-width: 94%; font-size: 13px; line-height: 1.55; }\n .msg.user { align-self: flex-end; background: var(--ac-ink); color: #fff; padding: 10px 14px; border-radius: 18px 18px 4px 18px; margin-left: auto; }\n .msg.assistant { color: #1a1d22; padding: 2px 0; }\n .msg.assistant strong { font-weight: 600; }\n\n /* ── Tool Call ── */\n .tool-call { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f7f8f9; border: 1px solid #e6e8ec; border-radius: 10px; font-size: 11px; color: #5c6570; }\n .tool-call .icon { width: 20px; height: 20px; background: var(--ac-teal); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; font-weight: 800; color: #04201f; }\n .tool-call .label { font-weight: 700; color: #3d454e; }\n .mono-tool { font-family: 'JetBrains Mono', monospace; color: #8a929c; }\n\n /* ── Widget card (DiscoveryCarousel shell) ── */\n .wcard { border: 1.5px solid #e0e3e7; border-radius: 14px; background: #fff; overflow: hidden; }\n .wcard-head { padding: 11px 14px; background: var(--ac-ink); color: #fff; display: flex; align-items: center; gap: 8px; }\n .wcard-head .wc-logo { width: 20px; height: 20px; background: var(--ac-teal); border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }\n .wcard-head .wc-logo svg { width: 13px; height: 13px; stroke: #04201f; fill: none; stroke-width: 2; }\n .wcard-head .wc-title { font-size: 12px; font-weight: 700; letter-spacing: 0.2px; }\n .wcard-head .wc-sub { font-size: 10px; color: #9db3b1; margin-left: auto; }\n .wc-status { font-size: 10px; color: #9db3b1; }\n .wcard-body { padding: 13px 14px; display: flex; flex-direction: column; gap: 10px; }\n .wc-chip { font-size: 9px; font-weight: 700; padding: 2px 7px; background: rgba(255,255,255,0.14); color: #cfeeed; border-radius: 10px; }\n\n /* ── Destination cards inside carousel ── */\n .dest-track { display: flex; flex-direction: column; gap: 9px; }\n .dcard { border: 1.5px solid #e6e8ec; border-radius: 11px; padding: 10px 11px; display: flex; flex-direction: column; gap: 5px; }\n .dcard.active { border-color: var(--ac-teal); background: var(--ac-teal-soft); }\n .dcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }\n .dcard-name { font-size: 14px; font-weight: 800; color: var(--ac-ink); }\n .dcard-price { font-size: 11px; font-weight: 700; color: var(--ac-slate); white-space: nowrap; }\n .dcard-region { font-size: 10.5px; color: #7b838d; }\n .dcard-why { font-size: 11px; color: #3d454e; line-height: 1.45; }\n .dcard-btn { align-self: flex-start; font-size: 10.5px; font-weight: 700; padding: 4px 11px; border-radius: 20px; border: 1.5px solid #d4d8dd; color: #4a525c; background: #fff; }\n .dcard-btn.on { background: var(--ac-teal); border-color: var(--ac-teal); color: #04201f; }\n\n /* ── CTA / note ── */\n .cta { padding: 9px 10px; background: var(--ac-teal); border-radius: 9px; text-align: center; font-size: 12px; font-weight: 700; color: #04201f; display: flex; align-items: center; justify-content: center; gap: 6px; }\n .cta svg { width: 13px; height: 13px; stroke: #04201f; fill: none; stroke-width: 2; }\n .cta.disabled { background: #cdeceb; color: #5f8a89; }\n .note { font-size: 11px; color: #5c6570; background: #f7f8f9; border-radius: 8px; padding: 8px 10px; line-height: 1.5; }\n .note.why { border-left: 3px solid var(--ac-teal); }\n .standing { font-size: 10px; color: #8a929c; text-align: center; font-style: italic; }\n\n /* ── Off-app destination ── */\n .dest { border: 1.5px solid #e0e3e7; border-radius: 10px; padding: 11px; }\n .dest .dh { font-size: 12px; font-weight: 800; color: var(--ac-ink); margin-bottom: 6px; }\n .dest .dl { font-size: 11px; color: #5c6570; line-height: 1.5; }\n .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; padding: 5px 0; border-bottom: 1px dashed #eceef1; }\n .kv:last-child { border-bottom: none; }\n .kv .k { color: #7b838d; }\n .kv .v { font-weight: 600; color: #2c3540; text-align: right; }\n\n /* ── Gallery ── */\n .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }\n .spec-frame { display: flex; flex-direction: column; gap: 8px; }\n .spec-frame .sf-name { font-size: 12px; font-weight: 700; color: var(--ac-ink); }\n .spec-frame .sf-name span { font-weight: 400; color: #8a929c; }\n\n /* ── API appendix ── */\n .api-panel { background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; max-width: 1040px; }\n .api-panel h4 { font-size: 13px; font-weight: 800; color: var(--ac-ink); margin-bottom: 4px; }\n .api-panel .ap-sub { font-size: 12px; color: #8a929c; margin-bottom: 12px; }\n .api-step { display: flex; gap: 10px; padding: 9px 0; border-top: 1px dashed #eceef1; }\n .api-step .an { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--ac-teal); flex-shrink: 0; width: 26px; }\n .api-step .ac { flex: 1; }\n .api-step .tool { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; color: #2c3540; }\n .api-step .tool .kind { font-family: 'Inter'; font-size: 9px; font-weight: 700; color: #067e7c; background: var(--ac-teal-soft); padding: 1px 6px; border-radius: 4px; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.3px; }\n .api-note { font-size: 11px; color: #5c6570; margin-top: 3px; line-height: 1.5; }\n .api-note code { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; background: #f1f3f5; padding: 1px 5px; border-radius: 4px; color: #3d454e; }\n\n /* ── Audit table ── */\n .audit-table { width: 100%; border-collapse: collapse; font-size: 12px; max-width: 1160px; background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; overflow: hidden; }\n .audit-table th { text-align: left; padding: 10px 14px; background: #f7f8f9; color: #5c6570; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1px solid #e6e8ec; }\n .audit-table td { padding: 11px 14px; border-bottom: 1px solid #eef0f2; vertical-align: top; color: #3d454e; line-height: 1.5; }\n .audit-table tr:last-child td { border-bottom: none; }\n .audit-table td.req { font-weight: 700; color: var(--ac-ink); width: 210px; }\n .pass { font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }\n .pass.ok { background: var(--ac-green-soft); color: #15734d; border: 1px solid var(--ac-green-border); }\n .pass.flag { background: var(--ac-amber-soft); color: #92560a; border: 1px solid var(--ac-amber-border); }\n .audit-sub { font-size: 13px; font-weight: 800; color: var(--ac-ink); margin: 26px 0 12px; }\n\n .footer { text-align: center; font-size: 11px; color: #99a1ab; padding: 30px; border-top: 1px solid #e6e8ec; }\n</style>\n</head>\n<body>\n\n<div class=\"page-header\">\n <h1><span class=\"brand\">Acme Getaways</span> × ChatGPT — Discovery Top-of-Funnel Wireframes</h1>\n <p>Prepared by Noodle Seed · a fuzzy feeling → four grounded getaways → shortlist → signed handoff to book on Acme</p>\n <span class=\"scope\">FUNNEL BOUNDARY: discover & shape the trip in ChatGPT · book / date / pay OFF-APP on acme.example</span>\n</div>\n\n<div class=\"section-nav\">\n <a href=\"#legend\">Legend</a>\n <a href=\"#flow\">End-to-End Flow</a>\n <a href=\"#discover\">1 · Discovery</a>\n <a href=\"#shortlist\">2 · Shortlist & Re-shape</a>\n <a href=\"#handoff\">3 · Handoff</a>\n <a href=\"#gallery\">Widget Gallery</a>\n <a href=\"#tools\">MCP Tools</a>\n <a href=\"#audit\">Compliance Audit</a>\n</div>\n\n<div class=\"container\">\n\n <!-- LEGEND -->\n <div class=\"section\" id=\"legend\">\n <div class=\"vocab\">\n <div class=\"vocab-item\"><span class=\"vocab-sw teal\"></span> Acme accent — primary CTA & \"Shortlisted\" only</div>\n <div class=\"vocab-item\"><span class=\"vocab-sw green\"></span> Positive / in-season fit</div>\n <div class=\"vocab-item\"><span class=\"vocab-sw amber\"></span> Caution / honest limit</div>\n <div class=\"vocab-item\"><span class=\"vocab-sw ink\"></span> ChatGPT system surface</div>\n <div class=\"vocab-item\"><span class=\"vocab-sw grey\"></span> Off-app (dashed phone)</div>\n </div>\n <div class=\"rationale\">\n <h4>How to read these wireframes</h4>\n <p>Solid-border phones are the <strong>in-ChatGPT app</strong> (the discovery & shortlist loop — no account, no transaction). Dashed-border phones are <strong>off-app destinations</strong> (Acme's booking flow at <span class=\"mono\">book.acme.example</span>) reached only after the handoff. Every card is <strong>grounded</strong>: the place, \"from\" price, best-months, region, and reason all come from Acme's own curated catalog and are shown verbatim — the app never invents a destination or a number.</p>\n <p><span class=\"r-tag ux\">UX</span> flow rationale <span class=\"r-tag ui\">UI</span> interface rationale <span class=\"r-tag acme\">ACME</span> brand / catalog fit <span class=\"r-tag trust\">TRUST</span> honesty / boundary guardrail</p>\n </div>\n </div>\n\n <!-- END TO END FLOW -->\n <div class=\"section\" id=\"flow\">\n <span class=\"section-label\">The whole journey</span>\n <h2 class=\"section-title\">End-to-End: a fuzzy feeling → a shortlisted getaway → booked on Acme</h2>\n <p class=\"section-subtitle\">A traveler frames a vibe and a month, sees four grounded Acme getaways, shortlists the one they love, re-shapes if the mood changes, then hands off to Acme to pick dates and pay. Everything left of the dashed phone is account-free and transaction-free.</p>\n\n <div class=\"phones-row\">\n\n <!-- Step 1 -->\n <div class=\"phone-step\">\n <div class=\"step-label\">1 · Frame the feeling<small>vibe · month · travelers</small></div>\n <div class=\"phone\">\n <div class=\"phone-notch\"></div>\n <div class=\"phone-screen\">\n <div class=\"chatgpt-header\"><span class=\"model-name\">ChatGPT</span><span class=\"dots\">···</span></div>\n <div class=\"msg user\">Where should we go for a beach trip in June? Just the two of us.</div>\n <div class=\"tool-call\"><span class=\"icon\">A</span><span><span class=\"label\">discover_getaways</span><br><span class=\"mono-tool\">vibe=beach · month=June · travelers=2</span></span></div>\n <div class=\"msg assistant\">Acme's getaways, shaped for a beach June for two —</div>\n <div class=\"wcard\">\n <div class=\"wcard-head\">\n <span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span>\n <span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Discover</span>\n </div>\n <div class=\"wcard-body\">\n <div class=\"dest-track\">\n <div class=\"dcard active\">\n <div class=\"dcard-head\"><span class=\"dcard-name\">Coral Bay</span><span class=\"dcard-price\">from $890</span></div>\n <div class=\"dcard-region\">Adriatic coast · best May–Sep</div>\n <div class=\"dcard-why\">Calm swimming coves and a walkable old town — easy for a relaxed first trip.</div>\n <span class=\"dcard-btn\">Shortlist</span>\n </div>\n <div class=\"dcard\">\n <div class=\"dcard-head\"><span class=\"dcard-name\">Old Quarter</span><span class=\"dcard-price\">from $640</span></div>\n <div class=\"dcard-region\">Central Europe · best Apr–Oct</div>\n <div class=\"dcard-why\">Dense museum district and food halls, all reachable on foot.</div>\n <span class=\"dcard-btn\">Shortlist</span>\n </div>\n </div>\n <div class=\"cta disabled\">Continue on Acme · Coral Bay</div>\n <div class=\"standing\">Booking and payment happen on acme.example — never inside chat.</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"step-arrow\">→</div>\n\n <!-- Step 2 -->\n <div class=\"phone-step\">\n <div class=\"step-label\">2 · Shortlist the pick<small>local, non-destructive</small></div>\n <div class=\"phone\">\n <div class=\"phone-notch\"></div>\n <div class=\"phone-screen\">\n <div class=\"chatgpt-header\"><span class=\"model-name\">ChatGPT</span><span class=\"dots\">···</span></div>\n <div class=\"msg user\">Shortlist Coral Bay.</div>\n <div class=\"tool-call\"><span class=\"icon\">A</span><span><span class=\"label\">shortlist_getaway</span><br><span class=\"mono-tool\">destination=\"Coral Bay\"</span></span></div>\n <div class=\"wcard\">\n <div class=\"wcard-head\">\n <span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span>\n <span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Discover</span>\n </div>\n <div class=\"wcard-body\">\n <div class=\"wc-status\" style=\"color:#067e7c;\">Shortlisted Coral Bay.</div>\n <div class=\"dest-track\">\n <div class=\"dcard active\">\n <div class=\"dcard-head\"><span class=\"dcard-name\">Coral Bay</span><span class=\"dcard-price\">from $890</span></div>\n <div class=\"dcard-region\">Adriatic coast · best May–Sep</div>\n <div class=\"dcard-why\">Calm swimming coves and a walkable old town — easy for a relaxed first trip.</div>\n <span class=\"dcard-btn on\">✓ Shortlisted</span>\n </div>\n <div class=\"dcard\">\n <div class=\"dcard-head\"><span class=\"dcard-name\">Harbor City</span><span class=\"dcard-price\">from $980</span></div>\n <div class=\"dcard-region\">Pacific rim · best Sep–Nov</div>\n <div class=\"dcard-why\">Waterfront nightlife and day-trip islands a short ferry away.</div>\n <span class=\"dcard-btn\">Shortlist</span>\n </div>\n </div>\n <div class=\"cta\"><svg viewBox=\"0 0 24 24\"><path d=\"M14 4h6v6\"/><path d=\"m20 4-9 9\"/><path d=\"M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5\"/></svg>Continue on Acme · Coral Bay</div>\n <div class=\"standing\">Booking and payment happen on acme.example — never inside chat.</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"step-arrow\">→</div>\n\n <!-- Step 3 -->\n <div class=\"phone-step\">\n <div class=\"step-label\">3 · Re-shape the trip<small>vibe switch → re-render</small></div>\n <div class=\"phone\">\n <div class=\"phone-notch\"></div>\n <div class=\"phone-screen\">\n <div class=\"chatgpt-header\"><span class=\"model-name\">ChatGPT</span><span class=\"dots\">···</span></div>\n <div class=\"msg user\">Hmm, actually more of a city break. What've you got?</div>\n <div class=\"tool-call\"><span class=\"icon\">A</span><span><span class=\"label\">discover_getaways</span><br><span class=\"mono-tool\">vibe=city · month=June · travelers=2</span></span></div>\n <div class=\"msg assistant\">Switching to a city vibe —</div>\n <div class=\"wcard\">\n <div class=\"wcard-head\">\n <span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span>\n <span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Discover</span>\n </div>\n <div class=\"wcard-body\">\n <div class=\"dest-track\">\n <div class=\"dcard active\">\n <div class=\"dcard-head\"><span class=\"dcard-name\">Harbor City</span><span class=\"dcard-price\">from $980</span></div>\n <div class=\"dcard-region\">Pacific rim · best Sep–Nov</div>\n <div class=\"dcard-why\">Waterfront nightlife and day-trip islands a short ferry away.</div>\n <span class=\"dcard-btn\">Shortlist</span>\n </div>\n <div class=\"dcard\">\n <div class=\"dcard-head\"><span class=\"dcard-name\">Old Quarter</span><span class=\"dcard-price\">from $640</span></div>\n <div class=\"dcard-region\">Central Europe · best Apr–Oct</div>\n <div class=\"dcard-why\">Dense museum district and food halls, all reachable on foot.</div>\n <span class=\"dcard-btn\">Shortlist</span>\n </div>\n </div>\n <div class=\"note why\"><strong>Harbor City</strong> is the city fit — best Sep–Nov, so June is lively shoulder season. Month & party size carried over, so you're not re-asked.</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"step-arrow\">→</div>\n\n <!-- Step 4 -->\n <div class=\"phone-step\">\n <div class=\"step-label\">4 · Handoff<small>the funnel boundary</small></div>\n <div class=\"phone\">\n <div class=\"phone-notch\"></div>\n <div class=\"phone-screen\">\n <div class=\"chatgpt-header\"><span class=\"model-name\">ChatGPT</span><span class=\"dots\">···</span></div>\n <div class=\"msg user\">Let's do Coral Bay. Book it.</div>\n <div class=\"tool-call\"><span class=\"icon\">A</span><span><span class=\"label\">create_handoff</span><br><span class=\"mono-tool\">dest=coral_bay · month=June · pax=2</span></span></div>\n <div class=\"msg assistant\">Opening Acme with Coral Bay, June, two travelers pre-filled — pick exact dates and finish there.</div>\n <div class=\"wcard\">\n <div class=\"wcard-head\">\n <span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span>\n <span class=\"wc-title\">Acme Getaways</span><span class=\"wc-sub\">create_handoff</span>\n </div>\n <div class=\"wcard-body\">\n <div class=\"kv\"><span class=\"k\">Destination</span><span class=\"v\">Coral Bay</span></div>\n <div class=\"kv\"><span class=\"k\">Trip</span><span class=\"v\">June · 2 travelers</span></div>\n <div class=\"kv\"><span class=\"k\">Attribution</span><span class=\"v\">src=chatgpt</span></div>\n <div class=\"cta\"><svg viewBox=\"0 0 24 24\"><path d=\"M14 4h6v6\"/><path d=\"m20 4-9 9\"/><path d=\"M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5\"/></svg>Continue on Acme</div>\n <div class=\"standing\">Booking and payment happen on acme.example — never inside chat.</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"step-arrow\">→</div>\n\n <!-- Step 5 off-app -->\n <div class=\"phone-step\">\n <div class=\"step-label\">5 · Off-app<small>book · date · pay on Acme</small></div>\n <div class=\"phone offapp\">\n <div class=\"phone-notch\"></div>\n <div class=\"phone-screen\">\n <div class=\"browser-header\"><span class=\"lock\">🔒</span><span class=\"url\">book.acme.example/plan?dest=coral_bay&month=June&pax=2&src=chatgpt</span></div>\n <div class=\"dest\">\n <div class=\"dh\">Acme · Book Coral Bay</div>\n <div class=\"dl\">The shaped trip lands pre-filled — <strong>Coral Bay · June · 2 travelers</strong>. Traveler signs in, picks exact dates against live availability, and pays. <strong>Purchase happens here.</strong></div>\n </div>\n <div class=\"note\" style=\"margin-top:8px;\">⟵ The deep link carried <span class=\"mono\">dest · month · pax</span> so nothing is re-typed, plus <span class=\"mono\">src=chatgpt</span> so Acme credits this booking to the ChatGPT funnel.</div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n\n <!-- 1 DISCOVERY -->\n <div class=\"section\" id=\"discover\">\n <span class=\"section-label\">Surface 1 · core</span>\n <h2 class=\"section-title\">Discovery — a grounded catalog, never a guess</h2>\n <p class=\"section-subtitle\">The opening move: turn a fuzzy feeling into four real Acme getaways, each with its own \"from\" price, best-months window, region, and honest reason. The model narrates which fit the stated vibe; the carousel shows the full curated catalog.</p>\n <div class=\"rationale\">\n <h4>Why it's built this way</h4>\n <p><span class=\"r-tag ux\">UX</span> A traveler at \"where should we go?\" wants a few credible options with a reason each — not an infinite list. Four cards scan in seconds; one tap shortlists.</p>\n <p><span class=\"r-tag acme\">ACME</span> Every place, price, and reason is Acme's own catalog data returned verbatim — the app is authoritative because Acme owns all four. <span class=\"r-tag trust\">TRUST</span> Prices are shown <strong>\"from $X\"</strong>, never as a quote; <code>discover_getaways</code> returns the whole catalog and never filters on the input, so switching vibe is never a dead end.</p>\n </div>\n <div class=\"phones-row\">\n <div class=\"phone-step\">\n <div class=\"step-label\">Budget-first intent</div>\n <div class=\"phone\"><div class=\"phone-notch\"></div><div class=\"phone-screen\">\n <div class=\"chatgpt-header\"><span class=\"model-name\">ChatGPT</span><span class=\"dots\">···</span></div>\n <div class=\"msg user\">Honestly, what's the cheapest you'd actually recommend for two?</div>\n <div class=\"tool-call\"><span class=\"icon\">A</span><span><span class=\"label\">discover_getaways</span></span></div>\n <div class=\"wcard\"><div class=\"wcard-head\"><span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span><span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Discover</span></div><div class=\"wcard-body\">\n <div class=\"dest-track\">\n <div class=\"dcard active\"><div class=\"dcard-head\"><span class=\"dcard-name\">Old Quarter</span><span class=\"dcard-price\">from $640</span></div><div class=\"dcard-region\">Central Europe · best Apr–Oct</div><div class=\"dcard-why\">Dense museum district and food halls, all reachable on foot.</div><span class=\"dcard-btn\">Shortlist</span></div>\n <div class=\"dcard\"><div class=\"dcard-head\"><span class=\"dcard-name\">Coral Bay</span><span class=\"dcard-price\">from $890</span></div><div class=\"dcard-region\">Adriatic coast · best May–Sep</div><div class=\"dcard-why\">Calm swimming coves and a walkable old town.</div><span class=\"dcard-btn\">Shortlist</span></div>\n </div>\n <div class=\"note why\"><strong>Old Quarter</strong> starts lowest at from $640 — the value pick without feeling like a compromise.</div>\n </div></div>\n </div></div>\n </div>\n <div class=\"step-arrow\">→</div>\n <div class=\"phone-step\">\n <div class=\"step-label\">Season-first intent</div>\n <div class=\"phone\"><div class=\"phone-notch\"></div><div class=\"phone-screen\">\n <div class=\"chatgpt-header\"><span class=\"model-name\">ChatGPT</span><span class=\"dots\">···</span></div>\n <div class=\"msg user\">We've got a week in December — where's actually good then?</div>\n <div class=\"tool-call\"><span class=\"icon\">A</span><span><span class=\"label\">discover_getaways</span><span class=\"mono-tool\"> month=December</span></span></div>\n <div class=\"wcard\"><div class=\"wcard-head\"><span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span><span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Discover</span></div><div class=\"wcard-body\">\n <div class=\"dest-track\">\n <div class=\"dcard active\"><div class=\"dcard-head\"><span class=\"dcard-name\">Monte Alto</span><span class=\"dcard-price\">from $1,120</span></div><div class=\"dcard-region\">Northern Alps · best Dec–Mar</div><div class=\"dcard-why\">Ski-in village with beginner slopes and long groomed runs.</div><span class=\"dcard-btn\">Shortlist</span></div>\n </div>\n <div class=\"note why\"><strong>Monte Alto</strong> is the one whose window is <strong>Dec–Mar</strong> — the in-season pick. Exact December availability is Acme's to confirm.</div>\n </div></div>\n </div></div>\n </div>\n <div class=\"step-arrow\">→</div>\n <div class=\"phone-step\">\n <div class=\"step-label\">Fullscreen browse (same component)</div>\n <div class=\"phone\"><div class=\"phone-notch\"></div><div class=\"phone-screen\">\n <div class=\"chatgpt-header\"><span class=\"model-name\">ChatGPT</span><span class=\"dots\">···</span></div>\n <div class=\"msg user\">Just show me everything.</div>\n <div class=\"tool-call\"><span class=\"icon\">A</span><span><span class=\"label\">discover_getaways</span></span></div>\n <div class=\"wcard\"><div class=\"wcard-head\"><span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span><span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Fullscreen</span></div><div class=\"wcard-body\">\n <div class=\"dest-track\">\n <div class=\"dcard\"><div class=\"dcard-head\"><span class=\"dcard-name\">Coral Bay</span><span class=\"dcard-price\">from $890</span></div><div class=\"dcard-region\">Adriatic coast · May–Sep · beach</div></div>\n <div class=\"dcard\"><div class=\"dcard-head\"><span class=\"dcard-name\">Monte Alto</span><span class=\"dcard-price\">from $1,120</span></div><div class=\"dcard-region\">Northern Alps · Dec–Mar · mountains</div></div>\n <div class=\"dcard\"><div class=\"dcard-head\"><span class=\"dcard-name\">Old Quarter</span><span class=\"dcard-price\">from $640</span></div><div class=\"dcard-region\">Central Europe · Apr–Oct · culture</div></div>\n <div class=\"dcard\"><div class=\"dcard-head\"><span class=\"dcard-name\">Harbor City</span><span class=\"dcard-price\">from $980</span></div><div class=\"dcard-region\">Pacific rim · Sep–Nov · city</div></div>\n </div>\n <div class=\"standing\">Same component, roomier layout — displayMode=\"fullscreen\".</div>\n </div></div>\n </div></div>\n </div>\n </div>\n </div>\n\n <!-- 2 SHORTLIST -->\n <div class=\"section\" id=\"shortlist\">\n <span class=\"section-label\">Surface 2</span>\n <h2 class=\"section-title\">Shortlist & re-shape — the deliberation loop</h2>\n <p class=\"section-subtitle\">Shortlisting is the \"I like this one\" gesture — a local widget-state write, not a booking. Changing the vibe, month, or party size re-runs discovery and re-renders the carousel, so the traveler can think out loud without losing context.</p>\n <div class=\"rationale\">\n <h4>Why it's built this way</h4>\n <p><span class=\"r-tag ux\">UX</span> The loop rewards exploration: shortlist, switch vibe, compare, shortlist again. The values you didn't change persist, so a vibe switch never re-asks month or party size.</p>\n <p><span class=\"r-tag ui\">UI</span> One action per card (Shortlist toggle) and one shell CTA (Continue on Acme) — well inside the ≤2-actions-per-card rule; the carousel is a single track with no nested scroll. <span class=\"r-tag trust\">TRUST</span> Shortlisting writes nothing off-app: <code>shortlist_getaway</code> is a non-destructive local action, not an account or a cart.</p>\n </div>\n <div class=\"phones-row\">\n <div class=\"phone-step\">\n <div class=\"step-label\">Before — nothing held yet</div>\n <div class=\"phone\"><div class=\"phone-notch\"></div><div class=\"phone-screen\">\n <div class=\"chatgpt-header\"><span class=\"model-name\">ChatGPT</span><span class=\"dots\">···</span></div>\n <div class=\"wcard\"><div class=\"wcard-head\"><span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span><span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Discover</span></div><div class=\"wcard-body\">\n <div class=\"wc-status\">Pick a getaway to continue.</div>\n <div class=\"dest-track\">\n <div class=\"dcard\"><div class=\"dcard-head\"><span class=\"dcard-name\">Coral Bay</span><span class=\"dcard-price\">from $890</span></div><div class=\"dcard-region\">Adriatic coast · best May–Sep</div><span class=\"dcard-btn\">Shortlist</span></div>\n <div class=\"dcard\"><div class=\"dcard-head\"><span class=\"dcard-name\">Harbor City</span><span class=\"dcard-price\">from $980</span></div><div class=\"dcard-region\">Pacific rim · best Sep–Nov</div><span class=\"dcard-btn\">Shortlist</span></div>\n </div>\n <div class=\"cta disabled\">Continue on Acme</div>\n </div></div>\n </div></div>\n </div>\n <div class=\"step-arrow\">→</div>\n <div class=\"phone-step\">\n <div class=\"step-label\">After — Coral Bay held</div>\n <div class=\"phone\"><div class=\"phone-notch\"></div><div class=\"phone-screen\">\n <div class=\"chatgpt-header\"><span class=\"model-name\">ChatGPT</span><span class=\"dots\">···</span></div>\n <div class=\"tool-call\"><span class=\"icon\">A</span><span><span class=\"label\">shortlist_getaway</span><span class=\"mono-tool\"> \"Coral Bay\"</span></span></div>\n <div class=\"wcard\"><div class=\"wcard-head\"><span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span><span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Discover</span></div><div class=\"wcard-body\">\n <div class=\"wc-status\" style=\"color:#067e7c;\">Shortlisted Coral Bay.</div>\n <div class=\"dest-track\">\n <div class=\"dcard active\"><div class=\"dcard-head\"><span class=\"dcard-name\">Coral Bay</span><span class=\"dcard-price\">from $890</span></div><div class=\"dcard-region\">Adriatic coast · best May–Sep</div><span class=\"dcard-btn on\">✓ Shortlisted</span></div>\n <div class=\"dcard\"><div class=\"dcard-head\"><span class=\"dcard-name\">Harbor City</span><span class=\"dcard-price\">from $980</span></div><div class=\"dcard-region\">Pacific rim · best Sep–Nov</div><span class=\"dcard-btn\">Shortlist</span></div>\n </div>\n <div class=\"cta\"><svg viewBox=\"0 0 24 24\"><path d=\"M14 4h6v6\"/><path d=\"m20 4-9 9\"/><path d=\"M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5\"/></svg>Continue on Acme · Coral Bay</div>\n </div></div>\n </div></div>\n </div>\n </div>\n </div>\n\n <!-- 3 HANDOFF -->\n <div class=\"section\" id=\"handoff\">\n <span class=\"section-label\">Surface 3 · the funnel boundary</span>\n <h2 class=\"section-title\">The single, signed, attributable handoff</h2>\n <p class=\"section-subtitle\">One deliberate exit — no second track. <strong>Continue on Acme</strong> calls <code>create_handoff</code>, which builds a signed deep link carrying the shaped trip and the <span class=\"mono\">src=chatgpt</span> attribution, then opens Acme's booking flow. Dates, inventory, and payment are Acme's, off-app by design.</p>\n <div class=\"rationale\">\n <h4>Why it's built this way</h4>\n <p><span class=\"r-tag acme\">ACME</span> Acme earns on completed bookings; the app's job is to send pre-shaped, attributable demand. The deep link carries <code>dest · month · pax</code> so nothing is re-typed, plus <code>src=chatgpt</code> so Acme can measure and pay for the funnel.</p>\n <p><span class=\"r-tag ui\">UI</span> Every value is already URL-safe (id slug · month enum · integer), so the tool substitutes them directly — it never URL-encodes or transforms an input. <span class=\"r-tag trust\">TRUST</span> The domain is declared in <code>handoff.allowedDomains</code>, so ChatGPT opens it without a safe-link warning; zero credentials cross the boundary.</p>\n </div>\n <div class=\"phones-row\">\n <div class=\"phone-step\">\n <div class=\"step-label\">In-app — the handoff card</div>\n <div class=\"phone\"><div class=\"phone-notch\"></div><div class=\"phone-screen\">\n <div class=\"chatgpt-header\"><span class=\"model-name\">ChatGPT</span><span class=\"dots\">···</span></div>\n <div class=\"tool-call\"><span class=\"icon\">A</span><span><span class=\"label\">create_handoff</span><br><span class=\"mono-tool\">dest=coral_bay · month=June · pax=2</span></span></div>\n <div class=\"wcard\"><div class=\"wcard-head\"><span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span><span class=\"wc-title\">Acme Getaways</span><span class=\"wc-sub\">create_handoff</span></div><div class=\"wcard-body\">\n <div class=\"kv\"><span class=\"k\">Destination</span><span class=\"v\">Coral Bay</span></div>\n <div class=\"kv\"><span class=\"k\">Trip</span><span class=\"v\">June · 2 travelers</span></div>\n <div class=\"kv\"><span class=\"k\">Summary</span><span class=\"v\">Coral Bay · June · 2</span></div>\n <div class=\"cta\"><svg viewBox=\"0 0 24 24\"><path d=\"M14 4h6v6\"/><path d=\"m20 4-9 9\"/><path d=\"M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5\"/></svg>Continue on Acme</div>\n <div class=\"standing\">Booking and payment happen on acme.example — never inside chat.</div>\n </div></div>\n </div></div>\n </div>\n <div class=\"step-arrow\">→</div>\n <div class=\"phone-step\">\n <div class=\"step-label\">Off-app — Acme booking flow</div>\n <div class=\"phone offapp\"><div class=\"phone-notch\"></div><div class=\"phone-screen\">\n <div class=\"browser-header\"><span class=\"lock\">🔒</span><span class=\"url\">book.acme.example/plan?dest=coral_bay&month=June&pax=2&src=chatgpt</span></div>\n <div class=\"dest\">\n <div class=\"dh\">Acme · Plan your Coral Bay trip</div>\n <div class=\"dl\">Pre-filled from the handoff: <strong>Coral Bay · June · 2 travelers</strong>. Sign in, choose exact dates against live availability, review the dated price, and pay. <strong>The transaction lives here.</strong></div>\n </div>\n <div class=\"note\" style=\"margin-top:8px;\">The <span class=\"mono\">src=chatgpt</span> tag credits this session — and any booking that follows — to the ChatGPT funnel. It carries no PII.</div>\n </div></div>\n </div>\n </div>\n </div>\n\n <!-- WIDGET GALLERY -->\n <div class=\"section\" id=\"gallery\">\n <span class=\"section-label\">Reference</span>\n <h2 class=\"section-title\">Widget gallery</h2>\n <p class=\"section-subtitle\">The app ships <strong>one</strong> widget — <span class=\"mono\">DiscoveryCarousel</span> — shown here at rest and in its key states. Apps SDK compliant: system fonts, monochrome outlined icons, neutral surface, Acme teal reserved for the primary CTA and the \"Shortlisted\" state only.</p>\n <div class=\"gallery\">\n\n <div class=\"spec-frame\">\n <div class=\"sf-name\">DiscoveryCarousel ★ <span>· at rest</span></div>\n <div class=\"wcard\"><div class=\"wcard-head\"><span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span><span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Discover</span></div><div class=\"wcard-body\">\n <div class=\"dest-track\">\n <div class=\"dcard\"><div class=\"dcard-head\"><span class=\"dcard-name\">Coral Bay</span><span class=\"dcard-price\">from $890</span></div><div class=\"dcard-region\">Adriatic coast · best May–Sep</div><div class=\"dcard-why\">Calm swimming coves and a walkable old town.</div><span class=\"dcard-btn\">Shortlist</span></div>\n </div>\n <div class=\"cta disabled\">Continue on Acme</div>\n <div class=\"standing\">Booking and payment happen on acme.example.</div>\n </div></div>\n </div>\n\n <div class=\"spec-frame\">\n <div class=\"sf-name\">DiscoveryCarousel <span>· shortlisted state</span></div>\n <div class=\"wcard\"><div class=\"wcard-head\"><span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span><span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Discover</span></div><div class=\"wcard-body\">\n <div class=\"wc-status\" style=\"color:#067e7c;\">Shortlisted Harbor City.</div>\n <div class=\"dest-track\">\n <div class=\"dcard active\"><div class=\"dcard-head\"><span class=\"dcard-name\">Harbor City</span><span class=\"dcard-price\">from $980</span></div><div class=\"dcard-region\">Pacific rim · best Sep–Nov</div><span class=\"dcard-btn on\">✓ Shortlisted</span></div>\n </div>\n <div class=\"cta\"><svg viewBox=\"0 0 24 24\"><path d=\"M14 4h6v6\"/><path d=\"m20 4-9 9\"/><path d=\"M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5\"/></svg>Continue on Acme · Harbor City</div>\n </div></div>\n </div>\n\n <div class=\"spec-frame\">\n <div class=\"sf-name\">DiscoveryCarousel <span>· pending handoff</span></div>\n <div class=\"wcard\"><div class=\"wcard-head\"><span class=\"wc-logo\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m15.5 8.5-2 5-5 2 2-5 5-2Z\"/></svg></span><span class=\"wc-title\">Acme Getaways</span><span class=\"wc-chip\">Discover</span></div><div class=\"wcard-body\">\n <div class=\"dest-track\">\n <div class=\"dcard active\"><div class=\"dcard-head\"><span class=\"dcard-name\">Monte Alto</span><span class=\"dcard-price\">from $1,120</span></div><div class=\"dcard-region\">Northern Alps · best Dec–Mar</div><span class=\"dcard-btn on\">✓ Shortlisted</span></div>\n </div>\n <div class=\"cta disabled\">Opening Acme…</div>\n <div class=\"standing\">Booking and payment happen on acme.example.</div>\n </div></div>\n </div>\n\n </div>\n </div>\n\n <!-- MCP TOOLS APPENDIX -->\n <div class=\"section\" id=\"tools\">\n <span class=\"section-label\">Technical appendix</span>\n <h2 class=\"section-title\">MCP Tools & Call Sequence</h2>\n <p class=\"section-subtitle\">Every tool that appears in a wireframe, grouped by journey phase, with the intent behind each call. Server: <span class=\"mono\">acme_discovery</span>. Three tools, one widget.</p>\n\n <div class=\"api-panel\">\n <h4>Discover & Shortlist (Steps 1–3)</h4>\n <div class=\"ap-sub\">The in-chat loop — grounded, account-free, transaction-free.</div>\n <div class=\"api-step\">\n <div class=\"an\">1</div>\n <div class=\"ac\">\n <div class=\"tool\">discover_getaways<span class=\"kind\">tool + view</span></div>\n <div class=\"api-note\">In <code>{ vibe, month, travelers }</code> → out <code>{ status, vibe, month, travelers, options[] }</code> and renders <code>DiscoveryCarousel</code>. Returns the <strong>full curated catalog verbatim</strong> (4 destinations); the model narrates fit. Host status: \"Finding getaways…\" → \"Getaways ready\". <code>read-only</code>.</div>\n </div>\n </div>\n <div class=\"api-step\">\n <div class=\"an\">2</div>\n <div class=\"ac\">\n <div class=\"tool\">shortlist_getaway<span class=\"kind\">tool + app visibility</span></div>\n <div class=\"api-note\">In <code>{ destination, note }</code> → out <code>{ status, destination, note }</code>. Called from inside the carousel when a card's <strong>Shortlist</strong> is tapped; updates widget view-state. <code>local-action</code>, non-destructive — not a booking.</div>\n </div>\n </div>\n <div class=\"api-step\">\n <div class=\"an\">3</div>\n <div class=\"ac\">\n <div class=\"tool\">discover_getaways<span class=\"kind\">re-invoke</span></div>\n <div class=\"api-note\">A natural-language vibe/month/party change re-invokes discovery with the updated input; unchanged values persist so the traveler isn't re-asked. The carousel re-renders in place.</div>\n </div>\n </div>\n </div>\n\n <div class=\"api-panel\">\n <h4>Handoff (Step 4 → off-app)</h4>\n <div class=\"ap-sub\">The single deliberate exit — signed, attributable, credential-free.</div>\n <div class=\"api-step\">\n <div class=\"an\">4</div>\n <div class=\"ac\">\n <div class=\"tool\">create_handoff<span class=\"kind\">tool · open-link</span></div>\n <div class=\"api-note\">In <code>{ destination, destinationName, month, travelers }</code> → out <code>{ status, destination, summary, handoffUrl }</code>. Builds <code>https://book.acme.example/plan?dest={destination}&month={month}&pax={travelers}&src=chatgpt</code> by direct substitution of already-URL-safe values. The widget calls it, then opens <code>handoffUrl</code>. Domain declared in <code>handoff.allowedDomains</code> (<code>book.acme.example</code>, <code>acme.example</code>) so the compiler derives ChatGPT's redirect domains. <code>open-action</code>.</div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- COMPLIANCE AUDIT -->\n <div class=\"section\" id=\"audit\">\n <span class=\"section-label\">Submission evidence</span>\n <h2 class=\"section-title\">OpenAI Apps SDK Compliance Audit</h2>\n <p class=\"section-subtitle\">Each row cites concrete app behavior, not aspiration. Reference: the OpenAI Apps SDK UX Principles + UI Guidelines. Verify against the built app with <span class=\"mono\">noodle check --target chatgpt</span> before submission.</p>\n\n <table class=\"audit-table\">\n <tr><th>OpenAI Requirement</th><th>How the Acme Getaways app addresses it</th><th>Status</th></tr>\n <tr><td class=\"req\">Conversational value</td><td>A traveler expresses a fuzzy feeling in natural language (\"warm, walkable, June, two of us\"); the model maps it to <code>vibe · month · travelers</code> and returns grounded options — something no tap-driven form does as fluidly.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">Beyond base ChatGPT</td><td>Acme's own curated catalog (places, \"from\" prices, best-months, reasons) and a signed, attributable handoff — knowledge and an action base ChatGPT cannot provide.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">Atomic, model-friendly actions</td><td>Three self-contained tools with explicit Zod input/output schemas: <code>discover_getaways</code>, <code>shortlist_getaway</code>, <code>create_handoff</code>. No ambiguity; all inputs fillable from language.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">Helpful UI only</td><td>The carousel earns its widget: visual scanning of four options with price/season/reason, plus a shortlist gesture. No payment or checkout widget is built — booking is off-app by design.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">In-chat task completion</td><td>The task — discover, shortlist, and shape a getaway — completes in chat; the booking is an intentional handoff, not an unfinished flow.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">Performance & responsiveness</td><td>Static curated data and string-substitution handoff — no live inventory call and no AI in the tool path; carousel renders in one round-trip.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">Discoverability</td><td>Broad natural triggers (\"beach trip in June\", \"cheapest getaway for two\", \"somewhere good in December\"). Golden-prompt set + app-description keywords are a launch workstream.</td><td><span class=\"pass flag\">PLAN</span></td></tr>\n <tr><td class=\"req\">Platform fit</td><td>Rich prompts, multi-turn deliberation (re-shape on vibe/month change), lightweight per-session memory (trip shape + shortlist). No multimodality claimed where it isn't real.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n </table>\n\n <div class=\"audit-sub\">UI Guidelines Compliance</div>\n <table class=\"audit-table\">\n <tr><th>Guideline</th><th>How the app addresses it</th><th>Status</th></tr>\n <tr><td class=\"req\">Design tokens (no vendor lock)</td><td>Styling driven by Noodle Seed server <code>branding</code> tokens (accent <code>#0EA5A4</code>, surface, radius, density) via CSS cascade layers — no app-specific global CSS.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">Accent restraint</td><td>Acme teal appears only on the primary <strong>Continue on Acme</strong> CTA, the compass logo mark, and the active \"Shortlisted\" state. Everything else is neutral system surface.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">System fonts</td><td>System font stack throughout the widget; no custom web font shipped to the host.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">Monochrome outlined icons</td><td>Compass (header) and external-link (CTA) are single-stroke outlined SVGs, no fills.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">WCAG AA contrast</td><td>Text/surface pairs meet AA in light and dark; the widget reads <code>theme</code> from <code>useLayout()</code> and applies <code>surfaceDark</code> (<code>#0B1B1B</code>).</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">≤2 actions on inline cards</td><td>Each destination card has one action (Shortlist toggle); the shell has one primary CTA. Never more than two.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">No nested scroll</td><td>The carousel is a single scroll surface; no scroll-within-scroll region.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">Correct display-mode usage</td><td>Inline carousel for discovery; the same component in fullscreen for full-catalog browse. No PiP (no live session), no in-chat checkout.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n </table>\n\n <div class=\"audit-sub\">Domain Guardrail Rows (travel-specific)</div>\n <table class=\"audit-table\">\n <tr><th>Guardrail</th><th>How the app enforces it</th><th>Status</th></tr>\n <tr><td class=\"req\">Never invent catalog data</td><td>Only the four curated destinations exist; every place, price, best-month, and reason is returned verbatim from Acme's catalog — the model narrates, never fabricates.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">\"From\" pricing, never a quote</td><td>Prices always render as \"from $X\"; the dated, party-sized price is computed only on Acme's booking flow.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">Honest funnel boundary</td><td>The standing note \"Booking and payment happen on acme.example — never inside chat.\" is always visible; the CTA always reads \"Continue on Acme\". No availability is asserted in chat.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n <tr><td class=\"req\">Credential-free handoff</td><td>The deep link carries only <code>dest · month · pax · src</code> — no PII, no token; the traveler authenticates and pays on Acme.</td><td><span class=\"pass ok\">PASS</span></td></tr>\n </table>\n </div>\n\n</div>\n\n<div class=\"footer\">\n Acme Getaways × ChatGPT — Discovery Top-of-Funnel Wireframes · Noodle Seed · v1 · 2026<br>\n Acme Getaways is a fictional brand; catalog, prices & best-months are the app's own curated data, internally consistent with <span class=\"mono\">src/server.ts</span>. Verify Apps SDK compliance with <span class=\"mono\">noodle check --target chatgpt</span> at build time.\n</div>\n\n</body>\n</html>\n" },
|
|
33
33
|
{ relPath: "examples/acme-discovery/noodle.json", content: "{\n \"entrypoint\": \"src/server.ts\",\n \"name\": \"acme-discovery\",\n \"template\": \"widget\"\n}\n" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example-files.js","sourceRoot":"","sources":["../../src/generated/example-files.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,kFAAkF;AAClF,iGAAiG;AAQjG,uGAAuG;AACvG,MAAM,CAAC,MAAM,qBAAqB,GAAsB;IACtD,OAAO;IACP,SAAS;IACT,eAAe;IACf,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,e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EAAE,OAAO,EAAE,+BAA+B,EAAE,OAAO,EAAE,6WAA6W,EAAE;IACpa,EAAE,OAAO,EAAE,gCAAgC,EAAE,OAAO,EAAE,2rUAA2rU,EAAE;IACnvU,EAAE,OAAO,EAAE,sCAAsC,EAAE,OAAO,EAAE,+pDAA+pD,EAAE;CAC9tD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-embedded-assistant-ref.d.ts","sourceRoot":"","sources":["../src/skill-embedded-assistant-ref.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,wBAAgB,gCAAgC,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"skill-embedded-assistant-ref.d.ts","sourceRoot":"","sources":["../src/skill-embedded-assistant-ref.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,wBAAgB,gCAAgC,IAAI,MAAM,CA2nBzD"}
|
|
@@ -87,19 +87,11 @@ export function renderEmbeddedAssistantReference() {
|
|
|
87
87
|
'',
|
|
88
88
|
'A public surface **must** declare `capabilities`: the exact positive allowlist it may reach. It is required by the type, and it is the whole externally reachable surface — a reviewer should read it in one screenful. Anything absent stays private, and a capability added to the server later is excluded until someone lists it. `authenticatedWebsite` may also take `capabilities` to narrow the in-app surface; omitted, it projects the whole server.',
|
|
89
89
|
'',
|
|
90
|
-
'### Mixed surfaces:
|
|
90
|
+
'### Mixed surfaces: not available yet',
|
|
91
91
|
'',
|
|
92
|
-
'
|
|
92
|
+
'`publicWebsite({ signIn: true })` **throws**. Mid-conversation sign-in has no runtime: nothing offers the visitor a way to sign in, so an identity-dependent capability on such a surface would simply be refused — and accepting it would also give up the compile-time guard that plain `public` provides. The option stays declared so the vocabulary and wire shape are settled.',
|
|
93
93
|
'',
|
|
94
|
-
'
|
|
95
|
-
'access: publicWebsite({',
|
|
96
|
-
' origins: ["https://www.example.com"],',
|
|
97
|
-
' capabilities: [answerProductQuestion, requestDemo, myOrders],',
|
|
98
|
-
' signIn: true, // `myOrders` reads ${user}; visitors sign in to reach it',
|
|
99
|
-
'}),',
|
|
100
|
-
'```',
|
|
101
|
-
'',
|
|
102
|
-
'Elevation runs through the **host application’s own login**, never a Noodle-operated one: the page signs the visitor in and its backend exchanges that verified user for an elevated session on the same conversation. Do not build a second identity provider for this.',
|
|
94
|
+
'Until it ships, split the audiences: keep anonymous-safe capabilities on `publicWebsite`, and serve identity-dependent ones from `authenticatedWebsite({ origins })`, where the embedding backend proves who the visitor is. One assistant can declare both.',
|
|
103
95
|
'',
|
|
104
96
|
'A connector-backed side effect needs **two** independent declarations to be reachable from a public or mixed surface: inclusion in `capabilities` **and** `{ confirm: true }` on the operation. Signing in proves who the visitor is; it does not pre-authorize an effect, so confirmation still applies on a mixed surface. Confirmation is never authentication or business authorization — the customer backend still owns payload validation, abuse controls, and idempotency. Local or session-only widget state needs no confirmation.',
|
|
105
97
|
'',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-embedded-assistant-ref.js","sourceRoot":"","sources":["../src/skill-embedded-assistant-ref.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,MAAM,UAAU,gCAAgC;IAC9C,OAAO;QACL,sBAAsB;QACtB,EAAE;QACF,aAAa;QACb,EAAE;QACF,gBAAgB;QAChB,8BAA8B;QAC9B,uBAAuB;QACvB,8BAA8B;QAC9B,wBAAwB;QACxB,kCAAkC;QAClC,6BAA6B;QAC7B,kCAAkC;QAClC,iCAAiC;QACjC,kDAAkD;QAClD,wBAAwB;QACxB,6BAA6B;QAC7B,gCAAgC;QAChC,0BAA0B;QAC1B,uBAAuB;QACvB,yCAAyC;QACzC,EAAE;QACF,iBAAiB;QACjB,EAAE;QACF,4SAA4S;QAC5S,EAAE;QACF,oDAAoD;QACpD,EAAE;QACF,kCAAkC;QAClC,qBAAqB;QACrB,4HAA4H;QAC5H,8KAA8K;QAC9K,wLAAwL;QACxL,4NAA4N;QAC5N,kJAAkJ;QAClJ,EAAE;QACF,+BAA+B;QAC/B,EAAE;QACF,kbAAkb;QAClb,EAAE;QACF,wBAAwB;QACxB,EAAE;QACF,oRAAoR;QACpR,EAAE;QACF,+TAA+T;QAC/T,EAAE;QACF,OAAO;QACP,gDAAgD;QAChD,wEAAwE;QACxE,gCAAgC;QAChC,6BAA6B;QAC7B,oDAAoD;QACpD,yCAAyC;QACzC,gDAAgD;QAChD,OAAO;QACP,kCAAkC;QAClC,oEAAoE;QACpE,OAAO;QACP,2DAA2D;QAC3D,KAAK;QACL,KAAK;QACL,EAAE;QACF,oTAAoT;QACpT,EAAE;QACF,+CAA+C;QAC/C,EAAE;QACF,qOAAqO;QACrO,EAAE;QACF,OAAO;QACP,WAAW;QACX,mBAAmB;QACnB,2CAA2C;QAC3C,yDAAyD;QACzD,OAAO;QACP,0BAA0B;QAC1B,2CAA2C;QAC3C,uDAAuD;QACvD,OAAO;QACP,IAAI;QACJ,KAAK;QACL,EAAE;QACF,gQAAgQ;QAChQ,EAAE;QACF,8XAA8X;QAC9X,EAAE;QACF,gcAAgc;QAChc,EAAE;QACF,
|
|
1
|
+
{"version":3,"file":"skill-embedded-assistant-ref.js","sourceRoot":"","sources":["../src/skill-embedded-assistant-ref.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,MAAM,UAAU,gCAAgC;IAC9C,OAAO;QACL,sBAAsB;QACtB,EAAE;QACF,aAAa;QACb,EAAE;QACF,gBAAgB;QAChB,8BAA8B;QAC9B,uBAAuB;QACvB,8BAA8B;QAC9B,wBAAwB;QACxB,kCAAkC;QAClC,6BAA6B;QAC7B,kCAAkC;QAClC,iCAAiC;QACjC,kDAAkD;QAClD,wBAAwB;QACxB,6BAA6B;QAC7B,gCAAgC;QAChC,0BAA0B;QAC1B,uBAAuB;QACvB,yCAAyC;QACzC,EAAE;QACF,iBAAiB;QACjB,EAAE;QACF,4SAA4S;QAC5S,EAAE;QACF,oDAAoD;QACpD,EAAE;QACF,kCAAkC;QAClC,qBAAqB;QACrB,4HAA4H;QAC5H,8KAA8K;QAC9K,wLA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B;QACxB,EAAE;QACF,8CAA8C;QAC9C,2EAA2E;QAC3E,oFAAoF;QACpF,+QAA+Q;QAC/Q,mKAAmK;QACnK,oHAAoH;QACpH,2DAA2D;QAC3D,sJAAsJ;QACtJ,qFAAqF;QACrF,6LAA6L;QAC7L,EAAE;QACF,0CAA0C;QAC1C,EAAE;QACF,+BAA+B;QAC/B,qBAAqB;QACrB,ySAAyS;QACzS,4eAA4e;QAC5e,6NAA6N;QAC7N,iMAAiM;QACjM,gKAAgK;QAChK,iKAAiK;QACjK,wKAAwK;QACxK,+LAA+L;QAC/L,oXAAoX;QACpX,qQAAqQ;QACrQ,oOAAoO;QACpO,8RAA8R;QAC9R,0NAA0N;QAC1N,wPAAwP;QACxP,+KAA+K;QAC/K,uRAAuR;QACvR,gNAAgN;QAChN,4JAA4J;QAC5J,yHAAyH;QACzH,oOAAoO;QACpO,mRAAmR;QACnR,mMAAmM;QACnM,6LAA6L;QAC7L,gbAAgb;QAChb,iPAAiP;KAClP,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -165,7 +165,12 @@ export interface PublicWebsiteInput {
|
|
|
165
165
|
* explicit positive choice rather than whatever the server happens to declare.
|
|
166
166
|
*/
|
|
167
167
|
readonly capabilities: readonly CapabilityRef[];
|
|
168
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Let a visitor sign in mid-conversation to reach identity-dependent capabilities.
|
|
170
|
+
*
|
|
171
|
+
* Not enabled yet — `publicWebsite` throws on `true`. The option stays declared so the vocabulary and
|
|
172
|
+
* the wire shape are settled, and so this doc comment is where an author finds out why.
|
|
173
|
+
*/
|
|
169
174
|
readonly signIn?: boolean;
|
|
170
175
|
}
|
|
171
176
|
export declare function authenticatedWebsite(input: AuthenticatedWebsiteInput): AuthenticatedWebsiteAccess;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant.d.ts","sourceRoot":"","sources":["../src/assistant.ts"],"names":[],"mappings":"AAAA,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Q,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC;CAC5E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,0BAA0B,GAAG,qBAAqB,CAezF;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,wBAAwB,GAAG,uBAAuB,CA2B1F"}
|
|
@@ -8,8 +8,19 @@ export function authenticatedWebsite(input) {
|
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
export function publicWebsite(input) {
|
|
11
|
+
if (input.signIn === true) {
|
|
12
|
+
// `mixed` is schema-complete and has no runtime: nothing emits the sign-in interaction, so a visitor
|
|
13
|
+
// would reach an identity-dependent capability, be refused for having no user, and never be offered a
|
|
14
|
+
// way to get one. Worse, accepting it is weaker than plain `public`, which rejects such a capability
|
|
15
|
+
// at compile time — so `signIn: true` buys a lost guard in exchange for a promise nothing keeps.
|
|
16
|
+
//
|
|
17
|
+
// The refusal is here, in the constructor where the author types it, rather than in the compiler:
|
|
18
|
+
// it is a property of this one option, needs nothing from the manifest, and fires in their editor.
|
|
19
|
+
// The mode, its wire shape, and its vocabulary stay landed; elevation re-enables by deleting this.
|
|
20
|
+
throw new Error('publicWebsite({ signIn: true }) is not enabled yet: a visitor cannot sign in mid-conversation, so an identity-dependent capability on this surface would always be refused. Drop signIn to keep the surface public, or serve signed-in visitors from authenticatedWebsite({ origins })');
|
|
21
|
+
}
|
|
11
22
|
return {
|
|
12
|
-
mode:
|
|
23
|
+
mode: 'public',
|
|
13
24
|
origins: [...input.origins],
|
|
14
25
|
capabilities: [...input.capabilities],
|
|
15
26
|
};
|
|
@@ -30,6 +41,7 @@ export function openAICompatible(input) {
|
|
|
30
41
|
}
|
|
31
42
|
export function embeddedAssistant(input) {
|
|
32
43
|
const { model, access, suggestedPrompts, ...ui } = input;
|
|
44
|
+
assertAccessDeclared(input, access);
|
|
33
45
|
const surfaces = (Array.isArray(access) ? access : [access]);
|
|
34
46
|
assertDistinctSurfaces(surfaces);
|
|
35
47
|
const sessionClaims = surfaces.find((surface) => surface.mode === 'authenticated')?.sessionClaims;
|
|
@@ -51,6 +63,37 @@ export function embeddedAssistant(input) {
|
|
|
51
63
|
...(sessionClaims ? { sessionClaims: structuredClone(sessionClaims) } : {}),
|
|
52
64
|
};
|
|
53
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* `access` became required when surfaces replaced the flat `allowedOrigins`/`sessionClaims` shape.
|
|
68
|
+
*
|
|
69
|
+
* Without this, omitting it read `.mode` off `undefined` and the author saw
|
|
70
|
+
* `TypeError: Cannot read properties of undefined (reading 'mode')` from inside the SDK — reported from
|
|
71
|
+
* a real deploy, which is how it earned an explicit check. An author on the previous shape has made an
|
|
72
|
+
* ordinary migration mistake, so say which constructor to reach for and, when the old keys are still
|
|
73
|
+
* present, name them: the message is the migration guide they will actually read.
|
|
74
|
+
*/
|
|
75
|
+
function assertAccessDeclared(input, access) {
|
|
76
|
+
const legacy = input;
|
|
77
|
+
const moved = [];
|
|
78
|
+
if (legacy.allowedOrigins !== undefined) {
|
|
79
|
+
moved.push('`allowedOrigins` is now `origins` on a surface');
|
|
80
|
+
}
|
|
81
|
+
if (legacy.sessionClaims !== undefined) {
|
|
82
|
+
moved.push('`sessionClaims` now belongs to authenticatedWebsite({ origins, sessionClaims })');
|
|
83
|
+
}
|
|
84
|
+
const migration = moved.length > 0 ? ` (${moved.join('; ')})` : '';
|
|
85
|
+
const usage = 'access: publicWebsite({ origins, capabilities }) or authenticatedWebsite({ origins })';
|
|
86
|
+
if (access === undefined || access === null) {
|
|
87
|
+
throw new Error(`embeddedAssistant requires an access surface — ${usage}${migration}`);
|
|
88
|
+
}
|
|
89
|
+
const surfaces = Array.isArray(access) ? access : [access];
|
|
90
|
+
for (const surface of surfaces) {
|
|
91
|
+
const mode = surface?.mode;
|
|
92
|
+
if (mode !== 'public' && mode !== 'mixed' && mode !== 'authenticated') {
|
|
93
|
+
throw new Error(`embeddedAssistant access must be built with ${usage}${migration}`);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
54
97
|
/**
|
|
55
98
|
* Two surfaces of the same audience, or one origin claimed twice, would make "which projection is this
|
|
56
99
|
* request?" ambiguous at mint time — so both are author-time errors rather than a resolution rule.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant.js","sourceRoot":"","sources":["../src/assistant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"assistant.js","sourceRoot":"","sources":["../src/assistant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AA+LvF,MAAM,UAAU,oBAAoB,CAAC,KAAgC;IACnE,OAAO;QACL,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC;QAC3B,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvF,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAyB;IACrD,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;QAC1B,qGAAqG;QACrG,sGAAsG;QACtG,qGAAqG;QACrG,iGAAiG;QACjG,EAAE;QACF,kGAAkG;QAClG,mGAAmG;QACnG,mGAAmG;QACnG,MAAM,IAAI,KAAK,CACb,wRAAwR,CACzR,CAAC;IACJ,CAAC;IACD,OAAO;QACL,IAAI,EAAE,QAAQ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
"private": false,
|
|
5
5
|
"description": "Noodle CLI by Noodle Seed — author, run, and deploy declarative MCP servers. Embedding the assistant in your own web app is @noodleseed/assistant.",
|
|
6
6
|
"license": "Apache-2.0",
|