// @bun
// src/components/docs/shared/StudioPrompt.tsx
import Link from "@contractspec/lib.ui-link";
import { jsx, jsxs } from "react/jsx-runtime";
function StudioPrompt({
  title = "Want to turn product signals into spec-first deliverables?",
  body = "ContractSpec Studio ingests evidence from meetings, support, analytics, docs, and code, then compiles decisions into spec diffs and task packs.",
  ctaLabel = "Try Studio",
  href = "https://www.contractspec.studio"
}) {
  return /* @__PURE__ */ jsxs("div", {
    className: "card-subtle space-y-3 p-6",
    children: [
      /* @__PURE__ */ jsx("h3", {
        className: "text-lg font-semibold",
        children: title
      }),
      /* @__PURE__ */ jsx("p", {
        className: "text-muted-foreground text-sm",
        children: body
      }),
      /* @__PURE__ */ jsx(Link, {
        href,
        className: "btn-primary",
        children: ctaLabel
      })
    ]
  });
}

// src/components/docs/ecosystem/TemplatesPage.tsx
import { CodeBlock } from "@contractspec/lib.design-system";
import Link2 from "@contractspec/lib.ui-link";
import { ChevronRight } from "lucide-react";
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
function EcosystemTemplatesPage() {
  return /* @__PURE__ */ jsxs2("div", {
    className: "space-y-8",
    children: [
      /* @__PURE__ */ jsxs2("div", {
        className: "space-y-3",
        children: [
          /* @__PURE__ */ jsx2("h1", {
            className: "text-4xl font-bold",
            children: "Plugin authoring templates"
          }),
          /* @__PURE__ */ jsx2("p", {
            className: "text-muted-foreground text-lg",
            children: "Scaffold focused Cursor plugins for ContractSpec product and core libraries."
          })
        ]
      }),
      /* @__PURE__ */ jsxs2("div", {
        className: "card-subtle space-y-4 p-6",
        children: [
          /* @__PURE__ */ jsx2("h2", {
            className: "text-2xl font-bold",
            children: "Create a focused plugin"
          }),
          /* @__PURE__ */ jsx2("p", {
            className: "text-muted-foreground text-sm",
            children: "Start from a scoped domain and keep each plugin aligned to one product or library surface."
          }),
          /* @__PURE__ */ jsx2(CodeBlock, {
            language: "bash",
            filename: "catalog-authoring-layout",
            code: `packages/apps-registry/cursor-marketplace/
  plugins/
    <plugin-name>/
      .cursor-plugin/plugin.json
      rules/
      commands/
      agents/
      skills/
      .mcp.json`
          })
        ]
      }),
      /* @__PURE__ */ jsxs2("div", {
        className: "card-subtle space-y-4 p-6",
        children: [
          /* @__PURE__ */ jsx2("h2", {
            className: "text-2xl font-bold",
            children: "Template outputs"
          }),
          /* @__PURE__ */ jsxs2("ul", {
            className: "text-muted-foreground space-y-2 text-sm",
            children: [
              /* @__PURE__ */ jsx2("li", {
                children: ".cursor-plugin/plugin.json with plugin metadata and paths"
              }),
              /* @__PURE__ */ jsx2("li", {
                children: "rules/, commands/, agents/, and skills/ content directories"
              }),
              /* @__PURE__ */ jsx2("li", {
                children: ".mcp.json with all MCP server declarations used by the plugin"
              }),
              /* @__PURE__ */ jsx2("li", {
                children: "README.md describing scope and governance boundaries"
              })
            ]
          })
        ]
      }),
      /* @__PURE__ */ jsxs2("div", {
        className: "card-subtle space-y-4 p-6",
        children: [
          /* @__PURE__ */ jsx2("h2", {
            className: "text-2xl font-bold",
            children: "Validate before submission"
          }),
          /* @__PURE__ */ jsx2(CodeBlock, {
            language: "bash",
            filename: "validate-marketplace-catalog",
            code: `# Validate all plugins referenced by root marketplace manifest
bun run plugin:contractspec:validate

# Optional in offline environments
SKIP_PLUGIN_NETWORK_CHECK=1 bun run plugin:contractspec:validate`
          })
        ]
      }),
      /* @__PURE__ */ jsx2(StudioPrompt, {
        title: "Need evidence-backed template iteration?",
        body: "Studio helps teams prioritize template changes from real product signals and export implementation-ready task packs."
      }),
      /* @__PURE__ */ jsxs2("div", {
        className: "flex items-center gap-4 pt-4",
        children: [
          /* @__PURE__ */ jsxs2(Link2, {
            href: "/docs/ecosystem/plugins",
            className: "btn-primary",
            children: [
              "Marketplace plugins ",
              /* @__PURE__ */ jsx2(ChevronRight, {
                size: 16
              })
            ]
          }),
          /* @__PURE__ */ jsx2(Link2, {
            href: "/docs/ecosystem/registry",
            className: "btn-ghost",
            children: "Marketplace manifest"
          })
        ]
      })
    ]
  });
}
export {
  EcosystemTemplatesPage
};
