var $=Object.defineProperty;var q=(J)=>J;function A(J,z){this[J]=q.bind(null,z)}var B=(J,z)=>{for(var M in z)$(J,M,{get:z[M],enumerable:!0,configurable:!0,set:A.bind(z,M)})};var D=(J,z)=>()=>(J&&(z=J(J=0)),z);import{buildExampleDocsHref as T,buildExampleReferenceHref as v,getDiscoverableExample as I,getExamplePreviewHref as N}from"@contractspec/module.examples/catalog";var O={"agent-console":"Primary meetup path for autonomous agents: typed tools, agent configs, run history, and execution logs in one regenerable surface.","ai-chat-assistant":"Secondary meetup path for MCP-aware assistants: reasoning, sources, suggestions, and a minimal contract-backed search tool.","data-grid-showcase":"Canonical table example for the full ContractSpec stack: declarative DataView contract, shared controller, raw web primitive, native-first primitive, and the composed design-system wrapper.","messaging-agent-actions":"Live messaging lane for the meetup: inbound Slack, WhatsApp, or Telegram messages route through fixed intents, allowlisted actions, and deterministic confirmations."},P={"agent-console":"/docs/reference/agent-console/agent-console","ai-chat-assistant":"/docs/reference/ai-chat-assistant/assistant.search","data-grid-showcase":"/docs/reference/data-grid-showcase/data-grid-showcase","messaging-agent-actions":"/docs/reference/messaging-agent-actions/messaging.agentActions.process"};function Y(J){let z=I(J);if(!z)return;let M=z.entrypoints.packageName.replace("@contractspec/example.",""),U=T(J),X=N(J);return{key:J,lead:O[J]??z.meta.summary??z.meta.description??"Public ContractSpec reference example.",sandboxHref:X,referenceHref:P[J]??v(J),llmsHref:`/llms/${z.entrypoints.packageName.replace("@contractspec/","")}`,repoHref:`https://github.com/lssm-tech/contractspec/tree/main/packages/examples/${M}`,localCommands:V(M,U,X)}}function V(J,z,M){let U=[`bun run --cwd packages/examples/${J} build`,"bun run --cwd packages/apps/web-landing dev","","# Open in the browser",`# http://localhost:3000${z}`];if(M)U.push(`# http://localhost:3000${M}`);return U.join(`
`)}import{ButtonLink as W,CodeBlock as F}from"@contractspec/lib.design-system";import _ from"@contractspec/lib.ui-link";import{getExample as C}from"@contractspec/module.examples/catalog";import{FileCode2 as S,Play as K,TerminalSquare as g}from"lucide-react";import{jsx as G,jsxs as Q}from"react/jsx-runtime";function E({exampleKey:J}){let z=Y(J),M=C(J);if(!z||!M)return null;let U=M.meta.title??M.meta.key,X=M.meta.summary??M.meta.description??"",Z=M.entrypoints.packageName;return Q("div",{className:"space-y-10",children:[Q("section",{className:"space-y-5",children:[G("p",{className:"editorial-kicker",children:"Meetup-ready example"}),G("h1",{className:"editorial-title max-w-5xl",children:U}),G("p",{className:"editorial-subtitle",children:z.lead}),G("p",{className:"editorial-copy max-w-4xl",children:X}),Q("div",{className:"flex flex-wrap gap-3",children:[z.sandboxHref?G(W,{href:z.sandboxHref,children:"Open sandbox"}):null,G(W,{href:z.referenceHref,variant:"outline",children:"Generated reference"})]})]}),Q("section",{className:"grid gap-5 lg:grid-cols-3",children:[z.sandboxHref?Q("article",{className:"editorial-panel space-y-4",children:[Q("div",{className:"flex items-center gap-3",children:[G("div",{className:"rounded-full border border-border/80 bg-background/85 p-2",children:G(K,{size:18})}),G("h2",{className:"font-semibold text-xl",children:"Sandbox preview"})]}),G("p",{className:"editorial-copy text-sm",children:"Load the same public browser surface used for the prepared live demo."}),G(W,{href:z.sandboxHref,size:"sm",children:"Open preview"})]}):null,Q("article",{className:"editorial-panel space-y-4",children:[Q("div",{className:"flex items-center gap-3",children:[G("div",{className:"rounded-full border border-border/80 bg-background/85 p-2",children:G(S,{size:18})}),G("h2",{className:"font-semibold text-xl",children:"Reference docs"})]}),G("p",{className:"editorial-copy text-sm",children:"Inspect the generated contract-facing material instead of relying on marketing summaries."}),G(W,{href:z.referenceHref,size:"sm",variant:"outline",children:"Open reference"})]}),Q("article",{className:"editorial-panel space-y-4",children:[Q("div",{className:"flex items-center gap-3",children:[G("div",{className:"rounded-full border border-border/80 bg-background/85 p-2",children:G(g,{size:18})}),G("h2",{className:"font-semibold text-xl",children:"Package context"})]}),G("p",{className:"editorial-copy text-sm",children:"Use the agent-facing package page for fast repo orientation, then jump to the source directory."}),G("p",{className:"rounded-[18px] border border-border/70 bg-background/75 px-4 py-3 font-mono text-sm",children:Z}),Q("div",{className:"flex flex-wrap gap-2",children:[G(W,{href:z.llmsHref,size:"sm",variant:"outline",children:"LLMS page"}),G(W,{href:z.repoHref,size:"sm",variant:"outline",children:"GitHub source"})]})]})]}),Q("section",{className:"editorial-panel space-y-5",children:[Q("div",{className:"space-y-2",children:[G("p",{className:"editorial-kicker",children:"Talk commands"}),G("h2",{className:"editorial-panel-title",children:"Exact local commands for the meetup lane"}),G("p",{className:"editorial-copy text-sm",children:"Build the example package, then launch the web shell and open the prepared docs or sandbox route."})]}),G(F,{language:"bash",filename:`${J}-meetup-runbook`,code:z.localCommands}),Q("p",{className:"text-muted-foreground text-sm",children:["For the full fallback order and safe live-edit workflow, use"," ",G(_,{href:"https://github.com/lssm-tech/contractspec/blob/main/docs/meetup-agent-examples-runbook.md",children:"the meetup runbook"}),"."]})]})]})}export{E as ExampleShowcasePage};
