Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
docs: complete website overhaul (#917)
Sid9958dbaa7f4a
diff --git a/.claude/skills/carbon-docs/SKILL.md b/.claude/skills/carbon-docs/SKILL.mdnew file mode 100644index 0000000000..84b1fb54df--- /dev/null+++ b/.claude/skills/carbon-docs/SKILL.md@@ -0,0 +1,178 @@+---+name: carbon-docs+description: >-+ Author, edit, or extend the Carbon documentation site at `apps/docs` (a built Fumadocs + Next.js+ app). Use whenever creating or changing reader-facing docs for Carbon: editorial Guide chapters,+ Reference/entity pages, the docs IA, or "document this feature" requests — anything destined for+ the docs site. Covers the grounded-in-source authoring workflow, the flow-based Guide architecture,+ the real MDX components for each surface, the warm-paper house style, and the build verification+ loop. Trigger even if the user doesn't say "docs" but clearly wants explanatory, reader-facing+ written material about how Carbon works.+---++# Carbon Docs++`apps/docs` is a **built, opinionated** documentation site — Fumadocs + Next.js (React 19), **light-only**,+warm-paper aesthetic. It is no longer scaffolded; it exists and ships content. This skill is how to add+or change docs **in that system, in its house style, grounded in real Carbon code.**++> The single biggest mistake is writing plausible ERP-generic prose. Carbon's behavior is specific and+> often counterintuitive (WIP is a GL balance not a table; payment is a field not an entity; overhead is+> not absorbed; fixed-asset disposal is scrapping-only). **Every claim is grounded in source.** See the+> prime directive below — it overrides everything.++## The prime directive — ground everything in source++The **holy source of truth is the actual source code + the LATEST database migrations**+(`packages/database/supabase/migrations/`, newest by timestamp) — NOT ERP/CMMS general knowledge, NOT+`llm/cache/` alone (it is often stale).++- **Verify before you write.** Every entity, status enum *value*, and transition named in docs must exist+ in real code. Confirm exact strings (`"To Ship and Invoice"`, `"Fully Depreciated"`), the actions that+ drive them (service fns, routes, edge functions in `packages/database/supabase/functions/`), and what+ posts/gates (e.g. `companySettings.accountingEnabled`).+- **Read the newest migration, not the first.** Timestamps order them; a 2026 refactor may have rebuilt a+ subsystem the cache still describes the old way.+- **Document only real, ACTIVE features.** Omit placeholders / inactive / not-yet-shipped things (e.g.+ integration registry entries with `active: false` like QuickBooks/Sage/Zapier). Don't surface them.+- **When code and cache disagree, code wins** — and note the drift.+- **Method:** dispatch a research subagent per feature → return verified facts with `file:line` refs →+ then write. This is how every flow in the Guide was built. Don't skip it for anything non-trivial.++## Three surfaces (know which you're touching)++| Surface | Path / route | What it is | Authored? |+|---|---|---|---|+| **Guides** | `content/guides/*.mdx` → `/guides` | Editorial narrative *tours*, grouped into **flows**. Second-person, opinionated, illustrated. The journey + the "why". | Hand-written MDX |+| **Reference** | `content/docs/**/*.mdx` → `/docs` | One page per entity/concept. Scannable: tables, cards, field rows. The "what". | Hand-written MDX |+| **API reference** | `app/api-reference/[module]/[resource]` | PostgREST endpoint docs, **generated at build** from the swagger. | **Generated — do NOT hand-edit.** Edit `scripts/generate-api-docs.mjs` or the swagger schema. |++Interlink across surfaces and flows: a Guide links into Reference for detail; Reference links back to the+Guide for the story. (Guide chapters were given 12 cross-flow links — interlinking is expected, not optional.)++## Authoring workflow (every change)++1. **Research (grounded).** Subagent verifies the feature vs source + newest migrations. Get exact+ table/column/enum/transition names + `file:line`. Flag what a generic description would get wrong.+2. **Pick the surface + placement.** Guide flow + frontmatter, or Reference folder + `meta.json` order.+3. **Write in the house voice** with the surface's real components (below). Lead with a concrete example.+4. **Verify (always).** Regenerate, typecheck, build, and grep the prerendered HTML:+ ```bash+ cd apps/docs+ pnpm exec fumadocs-mdx # regen .source — REQUIRED after frontmatter/schema changes+ npx tsc --noEmit # or: pnpm --filter docs typecheck+ pnpm --filter docs build # expect "✓ Generating static pages (N/N)"+ grep -o "your new heading" .next/server/app/guides/<slug>.html # confirm it rendered+ ```++## Guides — the flow architecture++Frontmatter (`source.config.ts` schema):++```yaml+---+title: From quote to order+description: An RFQ becomes a quote; an accepted quote becomes a sales order.+label: "(I)" # display marker, roman numeral, per-flow+index: 0 # order WITHIN the flow (0,1,2…)+flow: quote-to-cash # flow id (omit → defaults to "make-to-order")+flowName: Quote to cash # flow tab label+flowIndex: 1 # order of the flow in the subnav (0 = first)+---+```++- Chapters sort by `(flowIndex, index)`. The **subnav is a flow switcher**; the **sidebar + mobile selector+ + "read next" are scoped to the active flow**. The original 5 chapters (order/build/plan/floor/ship) carry+ no flow fields and fold into `make-to-order` (flowIndex 0) via defaults.+- **Add a chapter to a flow:** same `flow`/`flowName`/`flowIndex`, next `index` + `label`.+- **Add a flow:** new `flowIndex` + `flowName`; its chapters start at `index: 0`, `label: "(I)"`.+- All chapter bodies render server-side on every page (the reader cross-fades, no route nav), so links to+ `/guides/<slug>` resolve. **No code fences in guides** (prose + components only).++**Components** (`components/editorial/mdx.tsx`):++- `<Figure illustration="flow-overview" caption="…" />` — SVG from the registry. **`illustration` MUST be a+ real key** from `components/editorial/illustrations.tsx` (else it silently renders nothing). Valid keys:+ `flow-overview, order-split, bom-tree, demand-forecast, planning-engine, shopfloor-loop, eight-d,+ traceability-graph, method-types, kit-vs-subassembly, reorder-policy, outside-processing, mes-station,+ issue-workflow, schedule-board, get-method, conversion-factor`. For anything without a fitting key, use+ `<Screenshot>` instead — don't invent keys.+- `<Screenshot label="Sales order dashboard" caption="…" ratio="wide|tall|square" />` — placeholder frame,+ free-text label (no image asset needed). Default `ratio="wide"`.+- `<Callout tone="neutral|blue|green|amber" badge="WHY BATCH" title="…">body</Callout>` — the workhorse.+ Use it to carry the **Carbon-specific truth a generic description gets wrong**. Tones: blue = explanatory+ "why", green = good-to-know/outcome, amber = caution/contrast, neutral = definitional.+- `<Divider />` — closes a chapter before its wrap-up line.++Each `##` heading becomes a sidebar rail entry — so structure chapters as 3–5 `##` sections.++## Reference — entity pages++- Frontmatter: `title` + `description` only.+- **Nav = `meta.json` `pages` arrays** (ordered). Folders: `content/docs/{reference,platform,integrate}/`.+ Root order in `content/docs/meta.json`; a folder's order + sidebar title in its own `meta.json`+ (`{ "title": "Product reference", "defaultOpen": true, "pages": [...] }`). Add a page → add its slug to+ the folder's `pages`.+- **Components** (`components/editorial/reference-components.tsx` + `components/mdx.tsx`):+ - `<Callout type="info|note|warn|warning|error|success|tip" title?>…</Callout>` — type → badge+tone+ (`info/note`→NOTE/blue, `warn/warning/error`→HEADS UP/amber, `success/tip`→GOOD TO KNOW/green). Note this+ is a **different Callout API** than the Guides one (type vs tone+badge).+ - `<Cards><Card title href icon?>…</Card></Cards>` — link-card grid (cross-surface navigation).+ - `<EnvVars><EnvVar name type? default? required?>…</EnvVar></EnvVars>` — field/parameter rows.+ - `<Steps>/<Step>`, `<Tabs>/<Tab>` (fumadocs-ui), markdown tables, and code fences (dark panel).+- Voice is more technical/scannable than the Guides — fields, constraints, tables — but still names the+ gotcha and links back to the Guide for the narrative.++## House voice++- **Second person, concrete, narrative.** Anchor in the running example (the 90-unit humanoid-robot order).+ "Open the sales order dashboard." / "You don't build 90 robots as one monolithic job."+- **Quote real status names exactly**, in quotes: `**"To Ship and Invoice"**`, `**"Posted"**`, `**"Open"**`.+- **Callouts carry the counterintuitive truth** — the thing people get wrong. Title is a claim, body is the+ why. ("Quotes are optional — the opportunity is the thread.")+- **Explain the why, name the mistake, point to the next step.** If a paragraph does none of those, cut it.+- **Interlink** at natural seams (`[make-to-order tour](/guides/order)`).++## Design / styling++- **Light-only.** Warm-paper palette: page bg `#FBFBF9` / `#F5F5F2`; ink `#262323` (+ `rgba(38,35,35,0.x)`+ for faint); accent `#1E84B0` (links) / `#00B0FF` (focus/brand); hairlines `#E7E7E3` / `#E3E3DF`.+- **Inline Tailwind arbitrary values** (`text-[15px]`, `bg-[#FBFBF9]`, `border-[#E7E7E3]`) — this app is+ standalone (NOT `@carbon/react`, NOT the ERP theme). Match the surrounding component's density and colors;+ don't introduce a new palette.+- Fonts: DM Sans (body), Fira Code (mono). Callout tone fills/borders: neutral `#EFEFEB/#DADAD5`,+ blue `#DFF5FF/#A9DAF3`, green `#E4F8DA/#A8DB91`, amber `#FFF2D8/#E6CFA3`.++## Gotchas (hard-won)++- **Shiki theme** (`source.config.ts` → `rehypeCodeOptions.themes`): set **both** `light` and `dark` to the+ same `"github-dark-default"`. A single `theme` (or a missing `github-light`) breaks the build for any+ `content/docs` file with a code fence (`ShikiError: Theme github-light not found`). Guides have no fences,+ so they're immune — handy for isolating a red build to the Reference side.+- **Regen `.source` before typecheck** after any frontmatter/schema change (the schema is baked into+ `.source/` at generate time).+- **Figure keys must exist** — see the list above; a typo renders nothing, silently.+- **`Write` blocks on existing files** — natural collision protection when a parallel session co-writes the+ docs. Just write the next uncovered gap; don't pause to coordinate unless asked.+- **`curl` GET can 405 in this sandbox** (a method-less request reads as POST) — use the WebFetch tool for+ external pages; the pnpm registry works fine.+- **Don't hand-edit the API reference** (generated) — change the generator/schema and rebuild.++## Deep-dive references (read when you reach the relevant phase)++- `references/components.md` — full component APIs for both surfaces + the illustration registry.+- `references/writing-guide.md` — the voice, the grounding rule, worked examples.+- `references/information-architecture.md` — the flow IA and the Reference `meta.json` nav.+- `references/design-language.md` — palette, fonts, the inline-Tailwind convention.++> Note: `references/scaffold.md`, `references/brand-integration.md`, and `assets/templates/*` are+> **scaffolding-era** (how the app was first stood up, with Geist/`@carbon/react`/signature-touch templates).+> The app diverged from them. **The live components in `apps/docs/components/{editorial,api}/` are the source+> of truth** — read those, not the templates, when in doubt.++## Verification bar++Never declare docs done without: a green `pnpm --filter docs build`, `tsc` clean, the new content present in+the prerendered HTML, every internal link resolving, names matching real code, and a re-read that confirms+each page says what matters / names the mistake / points onward. Then record progress (this loop tracks it in+`llm/tasks/` and the `project_docs_guide_flows` memory; the live API-reference/search work tracks its own).diff --git a/.claude/skills/carbon-docs/assets/templates/README.md b/.claude/skills/carbon-docs/assets/templates/README.mdnew file mode 100644index 0000000000..2ea998c0dd--- /dev/null+++ b/.claude/skills/carbon-docs/assets/templates/README.md@@ -0,0 +1,19 @@+# Templates — DEPRECATED (scaffold-era, NOT used by the shipped docs)++> These files were starting points from when `apps/docs` was first scaffolded. **The shipped docs use none+> of them.** They assume things that aren't true of the real app (Geist fonts, a `.dark` mode, `@carbon`+> theme tokens, React 18, and "signature-touch" components like a reading-progress ruler / scroll-reveal /+> chapter-rail / feature-callout / interactive checklist). Treat everything here as historical only.++**What the real docs actually use:**++- **Guide MDX components** (`apps/docs/components/editorial/mdx.tsx`): `Figure`, `Screenshot`, `Callout`+ (`tone`+`badge`), `Divider`. Illustration keys live in `components/editorial/illustrations.tsx`.+- **Reference MDX components** (`apps/docs/components/editorial/reference-components.tsx` + `components/mdx.tsx`):+ `Callout` (`type`), `Card`/`Cards`, `EnvVar`/`EnvVars`, `Steps`/`Tabs`.+- **Styling:** inline Tailwind arbitrary values, warm-paper palette, DM Sans + Fira Code, **light-only**.+- **The flow reader** (`components/editorial/{guide-context,guide-subnav,sidebar-nav,how-to-layout}.tsx`)+ drives the Guide's flow-switcher + scoped sidebar + View-Transitions crossfade.++**Use instead:** `references/components.md`, `references/design-language.md`, and the live components above.+The `components/*.tsx` files in this folder remain only as historical scaffolding artifacts.diff --git a/.claude/skills/carbon-docs/assets/templates/components/chapter-nav.tsx b/.claude/skills/carbon-docs/assets/templates/components/chapter-nav.tsxnew file mode 100644index 0000000000..fac9ea8057--- /dev/null+++ b/.claude/skills/carbon-docs/assets/templates/components/chapter-nav.tsx@@ -0,0 +1,94 @@+"use client";++/**+ * ChapterNav — the editorial Guide sidebar: roman-numeral chapters, each a+ * vertical line of connected step-dots. The current step is filled with the+ * brand accent; completed steps are solid foreground; upcoming steps hollow.+ *+ * Reads as a *journey*, not a file tree. Mount in the Guide layout.+ *+ * The `chapters` prop should be derived from the Fumadocs page tree so it stays+ * in sync with meta.json (one source of truth). In your Guide layout:+ *+ * import { source } from "@/lib/source";+ * // walk source.pageTree: folders → chapters, pages → steps {title, url}+ * <ChapterNav chapters={chapters} title="How to run your shop with Carbon" />+ *+ * Keeping it presentational (chapters passed in) makes it trivial to test and+ * avoids coupling to a specific Fumadocs tree shape.+ */+import Link from "next/link";+import { usePathname } from "next/navigation";++export type Step = { title: string; url: string };+export type Chapter = { label: string; steps: Step[] };++const ROMAN = ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X"];++function dotClass(state: "active" | "done" | "todo") {+ if (state === "active") return "bg-brand";+ if (state === "done") return "bg-foreground";+ return "border border-border bg-transparent";+}++export function ChapterNav({+ chapters,+ title = "How to run your shop with Carbon",+}: {+ chapters: Chapter[];+ title?: string;+}) {+ const pathname = usePathname();++ const flat = chapters.flatMap((c) => c.steps);+ const activeIndex = flat.findIndex((s) => s.url === pathname);++ let i = -1; // running index across all steps++ return (+ <nav className="text-sm">+ <p className="mb-6 max-w-[14rem] text-[13px] leading-snug text-muted-foreground">{title}</p>++ <ol className="space-y-7">+ {chapters.map((chapter, ci) => (+ <li key={chapter.label}>+ <div className="mb-2 flex items-baseline gap-2">+ <span className="font-mono text-xs text-muted-foreground">{ROMAN[ci] ?? ci + 1}.</span>+ <span className="font-medium text-foreground">{chapter.label}</span>+ </div>++ <ul className="ml-1 space-y-0.5 border-l border-border pl-4">+ {chapter.steps.map((step) => {+ i += 1;+ const state =+ i === activeIndex ? "active" : activeIndex !== -1 && i < activeIndex ? "done" : "todo";++ return (+ <li key={step.url} className="relative">+ <span+ aria-hidden+ className={`absolute -left-[1.3rem] top-2 size-2 rounded-full ring-2 ring-[hsl(var(--background))] ${dotClass(+ state,+ )}`}+ />+ <Link+ href={step.url}+ aria-current={state === "active" ? "page" : undefined}+ className={`block rounded-md px-2 py-1 transition-colors ${+ state === "active"+ ? "text-foreground"+ : "text-muted-foreground hover:text-foreground"+ }`}+ >+ {step.title}+ </Link>+ </li>+ );+ })}+ </ul>+ </li>+ ))}+ </ol>+ </nav>+ );+}diff --git a/.claude/skills/carbon-docs/assets/templates/components/checklist.tsx b/.claude/skills/carbon-docs/assets/templates/components/checklist.tsxnew file mode 100644index 0000000000..769decefe0--- /dev/null+++ b/.claude/skills/carbon-docs/assets/templates/components/checklist.tsx@@ -0,0 +1,80 @@+"use client";++/**+ * Checklist / Check — a stateful, tickable checklist. State persists per page+ * in localStorage; checked items strike through. Turns "read these N things"+ * into "did these N things".+ *+ * Usage in MDX:+ * <Checklist>+ * <Check>Item has an active revision</Check>+ * <Check>Routing has at least one operation</Check>+ * </Checklist>+ */+import { Children, cloneElement, isValidElement, useEffect, useState } from "react";+import type { ReactNode } from "react";+import { usePathname } from "next/navigation";++export function Checklist({ children }: { children: ReactNode }) {+ let index = 0;+ return (+ <ul className="not-prose my-6 space-y-2">+ {Children.map(children, (child) =>+ isValidElement(child) ? cloneElement(child, { _index: index++ } as { _index: number }) : child,+ )}+ </ul>+ );+}++export function Check({ children, _index = 0 }: { children: ReactNode; _index?: number }) {+ const pathname = usePathname();+ const key = `carbon-docs:check:${pathname}:${_index}`;+ const [done, setDone] = useState(false);++ // Read persisted state after mount (avoids SSR/client mismatch).+ useEffect(() => {+ setDone(window.localStorage.getItem(key) === "1");+ }, [key]);++ function toggle() {+ const next = !done;+ setDone(next);+ window.localStorage.setItem(key, next ? "1" : "0");+ }++ return (+ <li>+ <button+ type="button"+ onClick={toggle}+ aria-pressed={done}+ className="group flex w-full items-start gap-3 text-left"+ >+ <span+ className={`mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-md border transition-colors ${+ done ? "border-brand bg-brand text-primary-foreground" : "border-border bg-card group-hover:border-brand/60"+ }`}+ >+ {done && (+ <svg viewBox="0 0 16 16" fill="none" className="size-3.5" aria-hidden>+ <path+ d="M3.5 8.5l3 3 6-6"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ )}+ </span>+ <span+ className={`text-[15px] leading-relaxed ${+ done ? "text-muted-foreground line-through" : "text-foreground"+ }`}+ >+ {children}+ </span>+ </button>+ </li>+ );+}diff --git a/.claude/skills/carbon-docs/assets/templates/components/feature-callout.tsx b/.claude/skills/carbon-docs/assets/templates/components/feature-callout.tsxnew file mode 100644index 0000000000..2974e07781--- /dev/null+++ b/.claude/skills/carbon-docs/assets/templates/components/feature-callout.tsx@@ -0,0 +1,56 @@+/**+ * FeatureCallout — the two-column "bridge to product" card. Left: the+ * explanation + a CTA. Right: a muted aside. Use whenever a concept maps to a+ * direct action in Carbon. Server component (no client JS needed).+ *+ * Usage in MDX:+ * <FeatureCallout title="Try in Carbon" href="https://app.carbon.ms"+ * cta="Open the routing builder →" aside="Templated per item revision.">+ * Lay out operations and assign each to a work center...+ * </FeatureCallout>+ */+import Link from "next/link";+import type { ReactNode } from "react";++export function FeatureCallout({+ title = "Try in Carbon",+ href,+ cta = "Open Carbon →",+ aside,+ children,+}: {+ title?: string;+ href?: string;+ cta?: string;+ aside?: ReactNode;+ children: ReactNode;+}) {+ return (+ <div className="not-prose my-8 rounded-xl border border-border bg-card p-6 shadow-sm">+ <div className="grid gap-6 sm:grid-cols-[1fr_minmax(0,12rem)]">+ <div>+ <div className="mb-3 flex items-center justify-between gap-4">+ <span className="inline-flex items-center rounded-full bg-brand/10 px-2.5 py-0.5 text-xs font-medium text-brand">+ {title}+ </span>+ {href && (+ <Link+ href={href}+ className="inline-flex shrink-0 items-center rounded-lg bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground transition-opacity hover:opacity-90"+ >+ {cta}+ </Link>+ )}+ </div>+ <div className="text-[15px] leading-relaxed text-foreground [&>p]:m-0">{children}</div>+ </div>++ {aside && (+ <p className="text-xs leading-relaxed text-muted-foreground sm:border-l sm:border-border sm:pl-5">+ {aside}+ </p>+ )}+ </div>+ </div>+ );+}diff --git a/.claude/skills/carbon-docs/assets/templates/components/frame.tsx b/.claude/skills/carbon-docs/assets/templates/components/frame.tsxnew file mode 100644index 0000000000..2646a79828--- /dev/null+++ b/.claude/skills/carbon-docs/assets/templates/components/frame.tsx@@ -0,0 +1,24 @@+/**+ * Frame — wraps a screenshot/diagram in a rounded, hairline-bordered frame with+ * an optional caption, so media reads as a deliberate figure rather than a raw+ * pasted image. Server component.+ *+ * Usage in MDX:+ * <Frame caption="The routing builder, mid-edit.">+ * + * </Frame>+ */+import type { ReactNode } from "react";++export function Frame({ children, caption }: { children: ReactNode; caption?: string }) {+ return (+ <figure className="not-prose my-8">+ <div className="overflow-hidden rounded-xl border border-border bg-card shadow-sm [&_img]:m-0 [&_img]:block [&_img]:w-full">+ {children}+ </div>+ {caption && (+ <figcaption className="mt-3 text-center text-xs text-muted-foreground">{caption}</figcaption>+ )}+ </figure>+ );+}diff --git a/.claude/skills/carbon-docs/assets/templates/components/prose.tsx b/.claude/skills/carbon-docs/assets/templates/components/prose.tsxnew file mode 100644index 0000000000..2bfe54308c--- /dev/null+++ b/.claude/skills/carbon-docs/assets/templates/components/prose.tsx@@ -0,0 +1,20 @@+/**+ * Small editorial primitives for the Guide surface.+ *+ * Eyebrow — the small pill above a chapter H1 ("Chapter III"). Register it in+ * mdx-components.tsx and use <Eyebrow> (capitalized — lowercase tags are treated+ * as plain HTML in MDX and won't resolve to a component).+ *+ * Usage in MDX:+ * <Eyebrow>Chapter III</Eyebrow>+ * # Run production+ */+import type { ReactNode } from "react";++export function Eyebrow({ children }: { children: ReactNode }) {+ return (+ <span className="not-prose mb-3 inline-flex items-center rounded-full border border-border px-3 py-1 text-xs font-medium tracking-wide text-muted-foreground">+ {children}+ </span>+ );+}diff --git a/.claude/skills/carbon-docs/assets/templates/components/reading-progress.tsx b/.claude/skills/carbon-docs/assets/templates/components/reading-progress.tsxnew file mode 100644index 0000000000..f49ac2cacb--- /dev/null+++ b/.claude/skills/carbon-docs/assets/templates/components/reading-progress.tsx@@ -0,0 +1,46 @@+"use client";++/**+ * ReadingProgress — the right-edge tick ruler that fills as the reader scrolls.+ * Mount once in the Guide layout (not inside MDX). Hidden below lg.+ *+ * Design intent: make the page's length *finite and visible*. A reader who can+ * see they're 40% through keeps going. See references/design-language.md.+ */+import { motion, useScroll, useTransform } from "framer-motion";++const TICKS = 32;++function Ticks({ className }: { className?: string }) {+ return (+ <div className={`flex h-full flex-col justify-between ${className ?? ""}`}>+ {Array.from({ length: TICKS }).map((_, i) => (+ <span key={i} className="h-px w-3 rounded-full bg-current" />+ ))}+ </div>+ );+}++export function ReadingProgress() {+ const { scrollYProgress } = useScroll();+ // Reveal the brand-colored copy of the ruler from the top down to scroll depth.+ const height = useTransform(scrollYProgress, (v) => `${Math.min(Math.max(v, 0), 1) * 100}%`);++ return (+ <div+ aria-hidden+ className="pointer-events-none fixed right-5 top-1/2 z-30 hidden h-56 -translate-y-1/2 lg:block"+ >+ <div className="relative h-full">+ {/* Base ticks (inactive) */}+ <Ticks className="text-border" />+ {/* Accent overlay clipped to scroll progress; inner copy is full-height so ticks align */}+ <motion.div className="absolute inset-x-0 top-0 overflow-hidden text-brand" style={{ height }}>+ <div className="h-56">+ <Ticks className="text-brand" />+ </div>+ </motion.div>+ </div>+ </div>+ );+}diff --git a/.claude/skills/carbon-docs/assets/templates/components/scroll-reveal.tsx b/.claude/skills/carbon-docs/assets/templates/components/scroll-reveal.tsxnew file mode 100644index 0000000000..a980351826--- /dev/null+++ b/.claude/skills/carbon-docs/assets/templates/components/scroll-reveal.tsx@@ -0,0 +1,39 @@+"use client";++/**+ * ScrollReveal — fade + gentle rise as a section enters the viewport, once.+ * Wrap Guide sections to pace a long page. Honors prefers-reduced-motion:+ * when the user opts out, it renders the final state with no animation.+ *+ * Usage in MDX:+ * <ScrollReveal>+ * ## Why routings matter+ * ...+ * </ScrollReveal>+ */+import { motion, useReducedMotion } from "framer-motion";+import type { ReactNode } from "react";++export function ScrollReveal({+ children,+ className,+}: {+ children: ReactNode;+ className?: string;+}) {+ const reduce = useReducedMotion();++ if (reduce) return <div className={className}>{children}</div>;++ return (+ <motion.div+ className={className}+ initial={{ opacity: 0, y: 12 }}+ whileInView={{ opacity: 1, y: 0 }}+ viewport={{ once: true, margin: "0px 0px -12% 0px" }}+ transition={{ duration: 0.4, ease: [0.22, 1, 0.36, 1] }}+ >+ {children}+ </motion.div>+ );+}diff --git a/.claude/skills/carbon-docs/assets/templates/global.css b/.claude/skills/carbon-docs/assets/templates/global.cssnew file mode 100644index 0000000000..1b8df57acc--- /dev/null+++ b/.claude/skills/carbon-docs/assets/templates/global.css@@ -0,0 +1,161 @@+/* Carbon docs — Tailwind v4 + Geist + Carbon tokens + Fumadocs UI.+ * See .claude/skills/carbon-docs/references/brand-integration.md for the why. */++@import "tailwindcss";++/* Geist (Carbon's typeface) */+@import "non.geist";+@import "non.geist/mono";++/* Carbon's token → utility mapping (@theme inline) + @plugins */+@import "@carbon/config/tailwind/theme.css";++/* Fumadocs UI base + a neutral preset we override with Carbon tokens below */+@import "fumadocs-ui/css/neutral.css";+@import "fumadocs-ui/css/preset.css";++/* Scan the docs app's own files for utility classes */+@source "../";++/* Raw token values for the default "Modern" (zinc) theme, baked in because a+ * Next app has no React Router root route to inject them at runtime. */+:root {+ --background: 0 0% 100%;+ --foreground: 220 10% 3.9%;+ --card: 0 0% 100%;+ --card-foreground: 220 10% 3.9%;+ --popover: 0 0% 100%;+ --popover-foreground: 220 10% 3.9%;+ --active: 222 10% 88%;+ --active-foreground: 222 0 8%;+ --primary: 220 5.9% 10%;+ --primary-foreground: 0 0% 98%;+ --secondary: 220 4.8% 95.9%;+ --secondary-foreground: 220 5.9% 10%;+ --muted: 220 4.8% 95.9%;+ --muted-foreground: 220 3.8% 46.1%;+ --accent: 220 4.8% 95.9%;+ --accent-foreground: 220 5.9% 10%;+ --destructive: 0 84.2% 60.2%;+ --destructive-foreground: 0 0% 98%;+ --border: 220 5.9% 90%;+ --input: 220 5.9% 90%;+ --ring: 220 5.9% 10%;+ --success: 142 70% 45%;+ --success-foreground: 0 0% 98%;+ --radius: 0.5rem;++ /* Editorial highlight accent (progress fill, active step dot, feature label) */+ --brand: 217 91% 60%;+}++.dark {+ --background: 0 0% 0%;+ --foreground: 0 0% 93%;+ --card: 0 0% 4%;+ --card-foreground: 0 0% 93%;+ --popover: 0 0% 7%;+ --popover-foreground: 0 0% 93%;+ --active: 0 0% 10%;+ --active-foreground: 0 0% 100%;+ --primary: 0 0% 100%;+ --primary-foreground: 0 0% 0%;+ --secondary: 0 0% 7%;+ --secondary-foreground: 0 0% 93%;+ --muted: 0 0% 15%;+ --muted-foreground: 0 0% 63%;+ --accent: 0 0% 10%;+ --accent-foreground: 0 0% 93%;+ --destructive: 0 100% 64%;+ --destructive-foreground: 0 0% 100%;+ --border: 0 0% 15%;+ --input: 0 0% 15%;+ --ring: 0 0% 35%;+ --success: 152 72% 53%;+ --success-foreground: 0 0% 0%;++ --brand: 213 94% 68%;+}++/* Expose --brand as Tailwind color utilities (text-brand, bg-brand, bg-brand/10) */+@theme inline {+ --color-brand: hsl(var(--brand));+}++/* Map Fumadocs' own theme variables onto Carbon tokens — one palette everywhere */+:root,+.dark {+ --color-fd-background: hsl(var(--background));+ --color-fd-foreground: hsl(var(--foreground));+ --color-fd-muted: hsl(var(--muted));+ --color-fd-muted-foreground: hsl(var(--muted-foreground));+ --color-fd-popover: hsl(var(--popover));+ --color-fd-popover-foreground: hsl(var(--popover-foreground));+ --color-fd-card: hsl(var(--card));+ --color-fd-card-foreground: hsl(var(--card-foreground));+ --color-fd-border: hsl(var(--border));+ --color-fd-primary: hsl(var(--primary));+ --color-fd-primary-foreground: hsl(var(--primary-foreground));+ --color-fd-secondary: hsl(var(--secondary));+ --color-fd-secondary-foreground: hsl(var(--secondary-foreground));+ --color-fd-accent: hsl(var(--accent));+ --color-fd-accent-foreground: hsl(var(--accent-foreground));+ --color-fd-ring: hsl(var(--ring));+}++/* Carbon's theme.css pulls in @tailwindcss/typography, whose `.prose` rules+ * collide with Fumadocs' content (also `.prose`) and apply fixed grays that+ * don't adapt to dark mode. Point Typography's color vars at Carbon tokens so+ * prose text is theme-aware (near-white on dark, near-black on light). */+.prose {+ --tw-prose-body: hsl(var(--foreground));+ --tw-prose-headings: hsl(var(--foreground));+ --tw-prose-lead: hsl(var(--muted-foreground));+ --tw-prose-links: hsl(var(--primary));+ --tw-prose-bold: hsl(var(--foreground));+ --tw-prose-counters: hsl(var(--muted-foreground));+ --tw-prose-bullets: hsl(var(--border));+ --tw-prose-hr: hsl(var(--border));+ --tw-prose-quotes: hsl(var(--foreground));+ --tw-prose-quote-borders: hsl(var(--border));+ --tw-prose-captions: hsl(var(--muted-foreground));+ --tw-prose-code: hsl(var(--foreground));+ --tw-prose-pre-code: hsl(var(--foreground));+ --tw-prose-pre-bg: hsl(var(--muted));+ --tw-prose-th-borders: hsl(var(--border));+ --tw-prose-td-borders: hsl(var(--border));+}++@layer base {+ body {+ background-color: hsl(var(--background));+ color: hsl(var(--foreground));+ font-family: var(--font-sans);+ letter-spacing: var(--tracking-normal);+ -webkit-font-smoothing: antialiased;+ text-rendering: optimizeLegibility;+ }++ /* Editorial reading rhythm for the Guide surface (.guide-prose on the article) */+ .guide-prose p,+ .guide-prose li {+ font-size: 1.0625rem;+ line-height: 1.75;+ }+ .guide-prose h1 {+ font-size: clamp(2.25rem, 5vw, 2.75rem);+ line-height: 1.1;+ letter-spacing: -0.03em;+ font-weight: 600;+ }+ .guide-prose h2 {+ margin-top: 3rem;+ font-size: 1.5rem;+ letter-spacing: -0.02em;+ font-weight: 600;+ }++ table {+ font-variant-numeric: tabular-nums;+ }+}diff --git a/.claude/skills/carbon-docs/references/brand-integration.md b/.claude/skills/carbon-docs/references/brand-integration.mdnew file mode 100644index 0000000000..10c6373123--- /dev/null+++ b/.claude/skills/carbon-docs/references/brand-integration.md@@ -0,0 +1,18 @@+# Brand integration — DEPRECATED (scaffold-era)++> This file described how the docs app was *first* stood up: baking `@carbon/config` theme tokens, Geist+> fonts, a `.dark` mode, Fumadocs `--color-fd-*` variable mapping, and a Tailwind-Typography `.prose`+> collision fix. **The shipped `apps/docs` does none of that.**++The real app is **standalone and light-only**:++- **No `@carbon/react`, no ERP theme tokens, no Geist, no dark mode.** It uses **DM Sans** (body) + **Fira+ Code** (mono) and a **warm-paper palette** styled with **inline Tailwind arbitrary values**+ (`bg-[#FBFBF9]`, `text-[#262323]`, `border-[#E7E7E3]`, accent `#1E84B0`).+- Shiki maps both "light" and "dark" to `github-dark-default` precisely *because* there is no dark mode.+- The Carbon wordmark lockup is `apps/docs/public/carbon-word-light.svg` (mark + "carbon"); the `*-light`+ assets are dark ink for the light background.++**Use instead:** `references/design-language.md` for the real palette/fonts/conventions, and the live+components in `apps/docs/components/{editorial,api}/` as the source of truth. Ignore the+`@carbon/config`/Geist/dark-mode guidance that used to live here.diff --git a/.claude/skills/carbon-docs/references/components.md b/.claude/skills/carbon-docs/references/components.mdnew file mode 100644index 0000000000..67402fdcd2--- /dev/null+++ b/.claude/skills/carbon-docs/references/components.md@@ -0,0 +1,119 @@+# Component catalog (real, current)++The MDX vocabulary, per surface. These are the components that **actually ship** in `apps/docs` — read the+live source if anything here looks off (`components/editorial/mdx.tsx`, `components/editorial/reference-components.tsx`,+`components/mdx.tsx`, `components/editorial/illustrations.tsx`). The Guide and Reference surfaces have+**different** component sets and even a **different `Callout` API** — don't mix them.++> Legacy note: the old version of this file listed `ReadingProgress`, `ChapterNav`, `ScrollReveal`,+> `FeatureCallout`, `Checklist`, `Frame`, `TypeTable`, `Eyebrow`. **None of those are used by the shipped+> docs.** Ignore them; use what's below.++---++## Guide surface — `content/guides/*.mdx`++Registered in `components/editorial/mdx.tsx` (markdown elements get warm-paper prose styling; these four+carry the structured pieces). **No code fences in guides.**++### `<Figure>`+SVG diagram from the illustration registry.+```mdx+<Figure illustration="flow-overview" caption="The path one order travels through Carbon." />+```+- `illustration: IllustrationKey` (**required, must be a real key**), `caption?: string`.+- Valid keys (`components/editorial/illustrations.tsx`): `flow-overview`, `order-split`, `bom-tree`,+ `demand-forecast`, `planning-engine`, `shopfloor-loop`, `eight-d`, `traceability-graph`, `method-types`,+ `kit-vs-subassembly`, `reorder-policy`, `outside-processing`, `mes-station`, `issue-workflow`,+ `schedule-board`, `get-method`, `conversion-factor`.+- A non-existent key renders **nothing, silently**. If no key fits your topic, use `<Screenshot>` instead —+ do not invent keys, and don't author a new SVG unless asked (they're hand-built components).++### `<Screenshot>`+Placeholder frame for a real Carbon screen — no image asset required.+```mdx+<Screenshot label="Sales order dashboard" caption="The 90-unit robot order, with its three-week schedule." ratio="wide" />+```+- `label: string` (required), `caption?: string`, `ratio?: "wide" | "tall" | "square"` (default `wide` = 16/9).+- This is the default visual in new content — most new chapters lean on `<Screenshot>` + `<Callout>` and use+ `<Figure>` only where a registry key genuinely fits.++### `<Callout>` (Guide API — tone + badge)+The workhorse. Carry the **Carbon-specific truth a generic description gets wrong**.+```mdx+<Callout tone="amber" badge="POSTING ≠ CREATING" title="Posting moves inventory and the order — and stops there.">+A posted shipment decrements stock and advances the order; it does **not** create the invoice. Fulfillment+and billing are deliberately separate steps.+</Callout>+```+- `tone: "neutral" | "blue" | "green" | "amber"`, `badge: string` (short, SCREAMING-CASE), `title: string`,+ `children`.+- Tone usage: **blue** = explanatory "why" / context; **green** = good-to-know / outcome; **amber** =+ caution / contrast / gotcha; **neutral** = definitional.+- Body is wrapped in a `<div>` (not `<p>`) — fine to use **one** paragraph of children. Title is a *claim*,+ body is the *why*.++### `<Divider />`+Hairline rule. Used once near the end of a chapter, before the wrap-up sentence.++**Rail:** every `##` heading becomes a sidebar entry. Structure a chapter as 3–5 `##` sections + a short+intro; `###` is for sub-structure (not in the rail).++---++## Reference surface — `content/docs/**/*.mdx`++Registered via `components/mdx.tsx` + `components/editorial/reference-components.tsx`.++### `<Callout>` (Reference API — type, NOT tone+badge)+```mdx+<Callout type="note">**Replenishment system** is the high-level strategy; **default method type** is the line-level default it allows.</Callout>+```+- `type: "info" | "note" | "warn" | "warning" | "error" | "success" | "tip"`, `title?`, `children`.+- type → badge/tone: `info`/`note` → NOTE / blue; `warn`/`warning`/`error` → HEADS UP / amber;+ `success`/`tip` → GOOD TO KNOW / green.+- **Different from the Guide `Callout`** — here you pass `type`, not `tone`+`badge`.++### `<Cards>` / `<Card>`+Link-card grid — overview fan-out and cross-surface navigation.+```mdx+<Cards>+ <Card title="Methods & sourcing" href="/docs/reference/methods">How an item's BOM and routing are defined.</Card>+ <Card title="Inside the build" href="/guides/build">The same ideas in the story of a robot build.</Card>+</Cards>+```+- `Card`: `title?`, `href?`, `icon?`, `children`. `Cards` wraps them in a 2-col grid.++### `<EnvVars>` / `<EnvVar>`+Field / parameter / option rows (hairline-divided).+```mdx+<EnvVars>+ <EnvVar name="CARBON_API_KEY" type="string" required={true}>The PostgREST API key for the instance.</EnvVar>+ <EnvVar name="exchangeRate" type="number" default="1">FX rate stamped on the line at creation.</EnvVar>+</EnvVars>+```+- `EnvVar`: `name: string`, `type?`, `default?`, `required?: boolean`, `children` (description).++### Standard+- `<Steps>/<Step>`, `<Tabs>/<Tab>` (fumadocs-ui) for sub-procedures and alternative paths.+- **Markdown tables** for field references (`| Field | Type | Description |`).+- **Code fences** render in the dark API-playground panel (`MdxCodeBlock`). Reference pages *may* use fences+ — but mind the shiki theme gotcha (SKILL.md).++---++## Choosing a component++| You want to… | Guide | Reference |+|---|---|---|+| Show a real Carbon screen | `<Screenshot>` | `<Screenshot>` works, but Reference usually uses tables/cards |+| Show a conceptual diagram | `<Figure>` (real key only) | — |+| Flag a must-not-miss truth / gotcha | `<Callout tone badge title>` | `<Callout type>` |+| Fan out to related pages | inline links | `<Cards>` |+| Document fields/params | (prose) | markdown table or `<EnvVars>` |+| A short ordered procedure | (narrate it) | `<Steps>` |+| Alternative paths | — | `<Tabs>` |++Coherence beats variety: a Guide chapter is mostly prose + 2–4 callouts + a few screenshots/figures; a+Reference page is mostly tables/cards + a couple of `type` callouts. Don't stack Guide and Reference+components on one page.diff --git a/.claude/skills/carbon-docs/references/design-language.md b/.claude/skills/carbon-docs/references/design-language.mdnew file mode 100644index 0000000000..87598a77f1--- /dev/null+++ b/.claude/skills/carbon-docs/references/design-language.md@@ -0,0 +1,86 @@+# Design language (real, current)++The shipped docs are **light-only**, warm-paper, calm and editorial. The governing principle: *restraint* —+lots of whitespace, few type sizes, one accent used for meaning, motion that paces rather than performs.+Match the existing components; don't introduce a new palette or font.++> Legacy note: the old version of this file described Geist fonts, a dark mode, a "Vercel-black" base, and+> signature-touch components (reading-progress ruler, scroll-reveal, chapter rail, interactive checklist,+> framed media). **None of that shipped.** The real system is below.++## Palette — warm paper (light only)++| Role | Hex |+|---|---|+| Page background | `#FBFBF9` |+| Paper / header / nav surface | `#F5F5F2` |+| Ink (body) | `#262323` (+ `rgba(38,35,35,0.7)` / `0.55` / `0.42` for fainter) |+| Accent — links | `#1E84B0` |+| Accent — focus / brand highlight | `#00B0FF` |+| Hairline border (primary) | `#E7E7E3` |+| Hairline border (subtle / inputs) | `#E3E3DF` |++Callout tone fills/borders (Guide `Callout`): neutral `#EFEFEB`/`#DADAD5`, blue `#DFF5FF`/`#A9DAF3`,+green `#E4F8DA`/`#A8DB91`, amber `#FFF2D8`/`#E6CFA3` (text `#3583A8`/`#4F9140`/`#9C7136`).++There is **no dark mode**. `source.config.ts` even maps both shiki "light" and "dark" to+`github-dark-default` because the site is light-only (and a real `github-light` would break the build).++## Fonts++- **Body:** DM Sans. **Mono:** Fira Code (`--font-mono`). (Not Geist.)+- Inline code: Fira Code, quiet bg `rgba(38,35,35,0.055)` + 1px border.+- Code blocks: dark panel (`github-dark-default`) — used on Reference/API surfaces, not in Guides.++## Styling convention — inline Tailwind arbitrary values++This app is **standalone** — it does **not** import `@carbon/react`, the ERP theme, or shared tokens. Styling+is **inline Tailwind arbitrary values**: `text-[15px]`, `bg-[#FBFBF9]`, `border-[#E7E7E3]`,+`text-[rgba(38,35,35,0.7)]`, `rounded-[12px]`, `font-[530]`. When you add or edit a component, **match the+surrounding component's exact values** (sizes, weights, colors, radii) — copy from a sibling rather than+inventing. New `bg-*`/`text-*` palettes are how the warm-paper coherence breaks.++## Layout anatomy++**Shared header** (`components/main-header.tsx`, fixed, `#F5F5F2`, bottom hairline): Carbon wordmark left+(the `carbon-word-light.svg` lockup — mark + "carbon"), primary nav (Guides · Reference · API · MCP),+⌘K search, one dark "Open Carbon" CTA right.++**Guide page** (`how-to-layout.tsx`):+- *Flow subnav* (top, under header) — the flow switcher.+- *Left sidebar* (desktop ≥1000px) — the **active flow's** chapters, each with its `##` section dots+ (`sidebar-nav.tsx`). Active section tracked by scrollspy.+- *Center column* — `max-w-[620px]` reading measure; a small `label — SLUG` eyebrow pill above the body; the+ chapter MDX; a "read next (within flow)" link.+- Chapter/flow switches animate via the **View Transitions API** (reduced-motion → instant). This crossfade+ is the one real "signature" motion — there is no progress ruler or scroll-reveal.++**Reference page** (`app/docs/layout.tsx`): left `DocsNav` sidebar (280px) · center prose · right+"On this page" TOC (232px, ≥xl). Active nav link: `bg-[rgba(0,176,255,0.10)]` + `text-[#1E84B0]` + `font-[530]`.++**API reference** (`app/api-reference/layout.tsx`): left config + nav · center 3-col endpoint docs · right TOC.++## Visual rhythm++- One idea per screen in Guides; whitespace separates thoughts. Generous heading spacing (`pt-[44px]`+).+- Guide `##` headings are large editorial titles (`text-[32px]`/`md:text-[40px]`); body `text-[15px]`,+ leading ~1.6.+- `<Figure>` (registry SVGs) and `<Screenshot>` (placeholder frames) sit in rounded, hairline-bordered cards+ with a centered caption — the "framed media" treatment, built into the components.+- Tabular numerals where figures align (quantities, costs).++## Motion++- View Transitions crossfade on chapter/flow switch (the reader). Reduced-motion → instant swap.+- Hover: quick (~150–200ms) color/translate nudges on links/cards (e.g. arrow `group-hover:translate-x-[2px]`,+ chevron `group-data-[state=open]:rotate-180`).+- Nothing loops or animates on a timer.++## Do / don't++**Do:** match the surrounding component's exact arbitrary values; keep the warm-paper palette; lead Guide+chapters with a strong opinionated paragraph; one accent (`#1E84B0`) for interactive/active states.++**Don't:** import `@carbon/react` or ERP theme tokens here; add a dark mode or a second accent/font; invent+`bg-*`/`text-*` colors; add code fences to Guide chapters; reach for the legacy template components — the live+components in `apps/docs/components/{editorial,api}/` are the source of truth.diff --git a/.claude/skills/carbon-docs/references/information-architecture.md b/.claude/skills/carbon-docs/references/information-architecture.mdnew file mode 100644index 0000000000..fefdfeff45--- /dev/null+++ b/.claude/skills/carbon-docs/references/information-architecture.md@@ -0,0 +1,89 @@+# Information architecture (real, current)++How the shipped docs are organized. The governing rule still holds:++> **Organize around what the reader is trying to do, not how the product is built.**++But the *mechanism* is specific to this app — read it from the live files, not generic Fumadocs lore.+The Guide and Reference use **different nav systems**.++## Guide — flow-based, frontmatter-driven (NO meta.json)++The Guide is a set of **flows**. A flow is a self-contained narrative tour (a reader goal): *make-to-order*,+*quote-to-cash*, *rfq-to-bill*, *manufacturing-accounting*. Each flow is an ordered set of chapters.++Navigation is driven **entirely by frontmatter** (`source.config.ts` schema) — there is no `meta.json` for+guides:++```yaml+label: "(II)" # roman-numeral marker, per flow+index: 1 # order within the flow+flow: quote-to-cash # flow id (omit → defaults to make-to-order)+flowName: Quote to cash # subnav tab label+flowIndex: 1 # flow order in the subnav (0 first)+```++How it renders (`app/guides/[chapter]/page.tsx` + `components/editorial/*`):+- Chapters sort by `(flowIndex, index)` → each flow is contiguous.+- **Subnav = a flow switcher** ("How to · Make to order · Quote to cash · …"), built by `flowsOf()`.+- **Sidebar + mobile selector + "read next" are scoped to the active flow** via `chaptersInFlow()`. The+ sidebar lists that flow's chapters and each chapter's `##` sections.+- All bodies render server-side; switching flows/chapters cross-fades (View Transitions), no route nav.++**To add a chapter:** new `.mdx` in `content/guides/`, same `flow`/`flowName`/`flowIndex`, next `index`+`label`.+**To add a flow:** pick the next `flowIndex` + a `flowName`; its chapters start `index: 0`, `label: "(I)"`.+The original 5 chapters carry no flow fields and fall into `make-to-order` (flowIndex 0) by default.++Keep a flow to ~2–5 chapters; a chapter to 3–5 `##` sections. If a chapter sprawls, split it.++## Reference — folder tree + meta.json `pages` arrays++`content/docs/**` → `/docs`, rendered through a **custom `DocsNav`** (`components/api/docs-nav.tsx`), not+the stock Fumadocs sidebar. Nav order comes from `meta.json` `pages` arrays.++Folders today: `reference/` (the entity pages — "Product reference"), `platform/` (architecture/deployment/+env), `integrate/` (app-connections, webhooks).++```jsonc+// content/docs/meta.json (root order)+{ "pages": ["index", "platform", "reference", "integrate"] }+```+```jsonc+// content/docs/reference/meta.json (folder title + page order)+{ "title": "Product reference", "defaultOpen": true,+ "pages": ["items", "methods", "routings", "work-centers", "jobs", "...", "traceability"] }+```++**To add a Reference page:** create `content/docs/<folder>/<slug>.mdx` (frontmatter = `title` + `description`),+then add `<slug>` to that folder's `meta.json` `pages` array in the right reading position. Omitted pages get+appended — prefer explicit ordering.++One page **per entity/concept** (one-noun-per-page). Slugs: short, kebab-case, stable (URLs are a contract).++## API reference — generated, not authored++`/api-reference` is built from the PostgREST swagger by `scripts/generate-api-docs.mjs` (runs on+`predev`/`prebuild`). One page per table, grouped by module. **Don't hand-author** — change the generator or+the swagger schema.++## Page taxonomy++Decide a page's type up front; mixing them is what makes docs confusing.++| Type | Surface | Answers | Shape |+|---|---|---|---|+| Guide chapter | Guide | "walk me through ___" | narrated, sequenced, illustrated, opinionated |+| Concept | Reference | "what is ___, why?" | explanation + links |+| Reference | Reference | "exact fields / statuses / options?" | tables, `<EnvVars>`, scannable |+| Overview | either | "what's here?" | short intro + `<Cards>` |++Don't put exhaustive field tables in a narrative chapter — link out to the Reference page. Don't put+motivational narration in a field table — link back to the Guide.++## Cross-linking IS the architecture++The two surfaces only work stitched together — and the Guide flows must interlink with each other:+- Guide → Reference for the fields; Reference → Guide for the story (`<Cards>` / inline links).+- Guide flow → Guide flow at natural seams (`[make-to-order tour](/guides/order)`,+ `[quote-to-cash](/guides/order-to-cash)`). The shipped Guide has ~12 cross-flow links.+- No dead ends — every page offers an obvious next move (the reader auto-gets "read next" within a flow).diff --git a/.claude/skills/carbon-docs/references/scaffold.md b/.claude/skills/carbon-docs/references/scaffold.mdnew file mode 100644index 0000000000..719047e0b2--- /dev/null+++ b/.claude/skills/carbon-docs/references/scaffold.md@@ -0,0 +1,214 @@+# Phase 1 — Scaffold `apps/docs` (Next.js + Fumadocs)++> **Historical — `apps/docs` already exists.** You will almost never re-run this; it's the record of how+> the app was first stood up (Next.js + Fumadocs, React 19 pinned, pnpm/Biome). For *authoring or editing*+> docs, ignore this and start from `SKILL.md`. The decisions here are mostly still accurate, but the live+> app is the source of truth — don't re-scaffold over it.++Goal: a new app at `apps/docs` that builds with the monorepo's tooling and renders one Guide page and+one Reference page. Get this thin slice working before doing anything else.++> Carbon has no Next.js app yet — this is the first. That's intentional and already anticipated:+> `@carbon/config` exports a ready `./tsconfig/nextjs.json`, and `turbo.json` already lists `.next/**`+> as a build output. You're filling in an expected slot, not fighting the monorepo.++## Step 1 — Decide the React/Next/Fumadocs version line (do this consciously)++The catalog pins `[email protected]` / `[email protected]`, and `@carbon/react` peer-depends on React 18.+**Always check the current Fumadocs peer deps first** — it moves fast and dictates the path:++```bash+npm view fumadocs-ui version peerDependencies+npm view fumadocs-core peerDependencies+```++As of this writing, current Fumadocs (16.x) **hard-requires `react@^19.2` + `next@16` + `zod@4`** — so+the older "stay on React 18" path is not available with current Fumadocs. Pick one path and write down why:++- **Path B (the realistic default today): React 19, isolated.** Pin the docs app's own `react@^19.2`,+ `react-dom@^19.2`, `next@^16`, `fumadocs-*@latest`, and `zod@^4` in its `package.json` (NOT the+ catalog — the catalog stays on React 18 / zod 3 for the rest of the repo). Treat the docs app as+ isolated: consume only Carbon's **CSS tokens and fonts** (`theme.css` + `non.geist` — both pure CSS,+ no React), and do **not** import `@carbon/react` React components (its React-18 peer would clash).+ The bundled bespoke components only use Tailwind + framer-motion, so they run fine on React 19. Use a+ React-19-compatible `framer-motion` (v12+) or the `motion` package, pinned in the docs app.+- **Path A (only if you must reuse `@carbon/react` components): pin an older Fumadocs line** that still+ supports React 18, and add `react`/`react-dom` as `catalog:`. This trades away current Fumadocs+ features and ages out quickly — avoid unless there's a hard requirement to import Carbon's React+ components into MDX.++Because of the isolation in Path B, the workspace ends up with two React majors (18 for the apps, 19 for+docs). pnpm handles this fine — each package resolves its own. Note the split in your summary so nobody+is surprised. Also note `pnpm-workspace.yaml` sets `minimumReleaseAge` (a few days); brand-new Next/+Fumadocs releases may be blocked until they age in — pin to a slightly older patch if install refuses.++## Step 2 — Create the app skeleton++You can either run `pnpm create fumadocs-app` inside `apps/` and then reconcile it to the conventions+below, or hand-create the files. Either way the result must match this layout:++```+apps/docs/+├── package.json+├── tsconfig.json+├── next.config.mjs+├── postcss.config.mjs+├── source.config.ts # Fumadocs MDX source definition+├── mdx-components.tsx # global MDX component map (built-ins + Carbon bespoke)+├── app/+│ ├── layout.tsx # root: html, fonts, theme provider, global.css+│ ├── global.css # ← copy assets/templates/global.css+│ ├── (home)/ # optional editorial landing+│ ├── docs/+│ │ ├── layout.tsx # DocsLayout (sidebar, search, nav)+│ │ └── [[...slug]]/page.tsx # renders an MDX page+│ └── api/search/route.ts # search index endpoint+├── content/+│ └── docs/+│ ├── index.mdx # Reference landing+│ ├── meta.json # nav order (see information-architecture.md)+│ └── guide/ # editorial Guide chapters+│ ├── meta.json+│ └── build.mdx+├── lib/+│ └── source.ts # loader() over content/docs+└── components/ # ← copy assets/templates/components/*+```++## Step 3 — `package.json`++Use `workspace:*` for Carbon packages and `catalog:` for shared deps (matches `apps/starter`). Pin the+Fumadocs/Next versions to current stable at scaffold time.++```jsonc+{+ "name": "docs",+ "type": "module",+ "private": true,+ "scripts": {+ "dev": "next dev -p 3002", // pick an unused port: erp=3000 mes=3001 starter=4000 academy=4111+ "build": "next build",+ "start": "next start -p 3002",+ "postinstall": "fumadocs-mdx", // generates the .source types+ "lint": "biome lint --write",+ "typecheck": "tsc --noEmit"+ },+ "dependencies": {+ "fumadocs-core": "^16",+ "fumadocs-mdx": "^15",+ "fumadocs-ui": "^16",+ "next": "^16",+ "non.geist": "catalog:", // pure CSS — safe to share from the catalog+ "framer-motion": "^12", // v12+ for React 19 (powers scroll-reveal + progress)+ "react": "^19.2", // PINNED here, NOT catalog (repo stays on React 18)+ "react-dom": "^19.2",+ "zod": "^4" // fumadocs-core peers zod 4 (repo catalog is zod 3)+ },+ "devDependencies": {+ "@carbon/config": "workspace:*",+ "@tailwindcss/postcss": "^4", // Next uses the PostCSS plugin, NOT @tailwindcss/vite+ "@tailwindcss/typography": "catalog:", // theme.css @plugins these four — must be installed+ "@types/mdx": "^2", // REQUIRED — mdx-components.tsx imports `mdx/types`+ "@types/node": "^22",+ "@types/react": "^19", // React 19 types — NOT catalog (catalog is 18)+ "@types/react-dom": "^19",+ "tailwindcss": "catalog:",+ "tailwindcss-animate": "catalog:",+ "tailwind-scrollbar": "catalog:",+ "tailwind-scrollbar-hide": "catalog:",+ "typescript": "catalog:"+ }+}+```++> Two non-obvious requirements, both learned by building this for real:+> - **`@types/mdx`** is a Fumadocs peer the generated `mdx-components.tsx` relies on+> (`import type { MDXComponents } from "mdx/types"`). Omit it and `next build` fails type-check with+> *"Cannot find module 'mdx/types'"* even though it compiles.+> - **React/`@types/react` must be pinned to 19**, not `catalog:` — the catalog is React 18 for the rest+> of the repo. pnpm happily keeps both majors; verify the other apps still resolve `react@18` after+> `pnpm install` (`pnpm --filter erp ls react`).++> `@carbon/config/tailwind/theme.css` begins with `@plugin "tailwindcss-animate"`,+> `@plugin "@tailwindcss/typography"`, `@plugin "tailwind-scrollbar"`, and `@plugin+> "tailwind-scrollbar-hide"`. Those packages must be resolvable from the docs app or the CSS import+> fails at build — hence the four devDeps above (all already in the catalog).++Notes:+- `[email protected]` is in the catalog. Tailwind v4 in Next is wired through **`@tailwindcss/postcss`**+ (a PostCSS plugin), unlike the Vite apps which use `@tailwindcss/vite`. Add `@tailwindcss/postcss` to+ the catalog in `pnpm-workspace.yaml` if it isn't there yet (it's part of the same `4.3.0` line).+- Don't add `react`/`react-dom`/`framer-motion`/`non.geist` versions inline — reference `catalog:` so+ the docs app moves with the repo.++## Step 4 — `tsconfig.json`++Extend the prepared Next config and use the `@/*` alias Fumadocs expects:++```jsonc+{+ "extends": "@carbon/config/tsconfig/nextjs.json",+ "compilerOptions": {+ "paths": { "@/*": ["./*"] },+ "plugins": [{ "name": "next" }]+ },+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", ".source/**/*"],+ "exclude": ["node_modules"]+}+```++## Step 5 — PostCSS + Next config++`postcss.config.mjs`:+```js+export default { plugins: { "@tailwindcss/postcss": {} } };+```++`next.config.mjs` — wrap with the Fumadocs MDX plugin:+```js+import { createMDX } from "fumadocs-mdx/next";+const withMDX = createMDX();+/** @type {import('next').NextConfig} */+const config = { reactStrictMode: true };+export default withMDX(config);+```++## Step 6 — Fumadocs source + global styles++- `source.config.ts`, `lib/source.ts`, `mdx-components.tsx`, `app/layout.tsx`, `app/docs/layout.tsx`,+ and `app/docs/[[...slug]]/page.tsx` follow the standard Fumadocs App Router setup — generate them+ with `pnpm create fumadocs-app` or from the current Fumadocs docs, then apply the Carbon brand wiring+ in `references/brand-integration.md`.+- **`app/global.css` is the load-bearing file.** Copy `assets/templates/global.css` verbatim — it+ imports Tailwind, the Geist fonts, Carbon's `theme.css`, the Fumadocs UI CSS, bakes in the default+ theme's light/dark HSL values, and maps Fumadocs' `--color-fd-*` variables onto Carbon tokens. This+ is what makes a fresh Fumadocs install look like Carbon instead of like the Fumadocs demo.++## Step 7 — Wire into the monorepo++- **Workspace:** nothing to do — `apps/*` in `pnpm-workspace.yaml` already includes `apps/docs`.+ Run `pnpm install` from the root so workspace links resolve.+- **Turbo:** nothing to add — the generic `dev` and `build` tasks run the app's scripts, and `.next/**`+ is already an output. Confirm with `pnpm --filter docs dev`.+- **Biome:** inherits the root `biome.jsonc`. Don't add a local linter config.+- **Optional root script:** add `"dev:docs": "turbo run dev --filter=docs"` to the root `package.json`+ to match the `dev:erp` / `dev:academy` ergonomics.++## Step 8 — Confirm the slice++```bash+pnpm install+pnpm --filter docs dev # serves on the port you chose+pnpm --filter docs build # must complete clean before you scale out+```++Load the dev server, confirm one Guide page and one Reference page render with Geist fonts and the+Carbon palette in both light and dark mode. Only then move on.++## Deployment (follow-up, not part of the first slice)++Carbon deploys via **SST** (`sst.config.ts` at root → AWS), with domains following `<app>.<infix>` and+docs naturally mapping to `docs.carbon.ms`. Adding the docs app to SST (a Next component pointing at+`apps/docs`, with the domain) is a deliberate follow-up step — don't block the first render on it.+Mirror how `erp`/`mes` are declared in `sst.config.ts`. Confirm with the user before touching+deployment infra, since it's outward-facing.diff --git a/.claude/skills/carbon-docs/references/writing-guide.md b/.claude/skills/carbon-docs/references/writing-guide.mdnew file mode 100644index 0000000000..14646c3b7b--- /dev/null+++ b/.claude/skills/carbon-docs/references/writing-guide.md@@ -0,0 +1,139 @@+# Writing guide++How to write Carbon docs so the prose earns the design. The voice is deliberate — opinionated, concrete,+second-person — not the flat neutral tone most docs default to. But before any of that:++## Rule 0 — ground every claim in source (non-negotiable)++The holy source of truth is **the actual source code + the LATEST database migrations**, never ERP-generic+knowledge, never `llm/cache/` alone. A confidently-wrong sentence is worse than no sentence.++- **Verify before writing.** Every entity, **status enum value** (exact string), and **transition** must+ exist in real code. Dispatch a research subagent → get `file:line` refs → then write.+- **Newest migration wins.** Read by timestamp, newest first; a 2026 refactor may have rebuilt the subsystem.+- **Only real, ACTIVE features.** Omit placeholders / `active: false` / not-yet-shipped. Don't tease a flow+ that won't exist.+- **Carbon is specific and counterintuitive** — that specificity *is* the value. The best sentences are the+ ones a generic ERP guide would get wrong: "WIP isn't a table — it's a GL balance"; "payment is a field,+ not an entity"; "overhead is not absorbed into job cost"; "disposal is scrapping-only, always a loss."++## The voice in three moves++Almost every good section makes the same three moves:++1. **Say what actually matters** — lead with the real point, no preamble.+2. **Name the mistake** — call out what people get wrong, specifically. Often the highest-value sentence.+3. **Show how Carbon handles it** — bridge to the concrete behavior.++Opinionated, concrete, second person. ✓ "You don't build 90 robots as one monolithic job." Not ✗ "Jobs+can be split into batches."++## Voice principles++- **Second person, active, present tense.** "You create a shipment against the order." Not "A shipment is created."+- **Lead with the point.** First sentence of each `##` states the takeaway; a reader who stops there still learns the main thing.+- **Anchor in a running example.** The Guides follow one shop — an OEM building humanoid robots, a 90-unit+ order split 30/30/30. Reuse concrete nouns and numbers; they make abstract mechanics legible.+- **Quote real status names exactly, in bold-quotes.** `**"To Ship and Invoice"**`, `**"Posted"**`,+ `**"Fully Depreciated"**`, `**"Open"**`. These are verified strings — getting one wrong reads as not+ knowing the product.+- **Name the common mistake.** Say the thing people trip on out loud.+- **Short paragraphs** (2–4 sentences, one idea). White space is part of the writing.+- **Plain words.** "make" not "utilize", "use" not "leverage". Technical terms are exact and consistent.+- **Respect the reader's time.** No "In this section we will…" throat-clearing, no restating the heading.++## Terminology: one word per concept++Match the **ERP/MES UI labels and the verified code** — same word for the same thing everywhere. A *work+order* is not a *job* is not an *operation*. Method types are exactly `Make to Order` / `Pull from Inventory`+/ `Purchase to Order` (not "Make/Buy/Pull"). Before a chapter, list its domain nouns and pin each to the+real term. Inconsistent terminology is the fastest way to lose trust.++## Callouts carry the gotcha++A `<Callout>` is where the counterintuitive Carbon truth lives — the title is a claim, the body is the why.+Don't waste them on restating prose. 2–4 per Guide chapter; if every paragraph is a callout, none land.++```mdx+<Callout tone="neutral" badge="NO RIGID CHAIN" title="Quotes are optional — the opportunity is the thread.">+A sales order does not require a quote, and a quote does not require an RFQ. Each document links back to the+same opportunity, so you can enter the flow at whatever point a deal actually starts.+</Callout>+```++## Interlink at the seams++Connect flows where they naturally touch: `[make-to-order tour](/guides/order)`,+`[quote-to-cash](/guides/order-to-cash)`. Link the *noun*, inline — never "click here". A Guide links into+Reference for fields; Reference links back to the Guide for the story.++## Real page templates++### Guide chapter (editorial, in a flow)+```mdx+---+title: From quote to order+description: An RFQ becomes a quote; an accepted quote becomes a sales order.+label: "(I)"+index: 0+flow: quote-to-cash+flowName: Quote to cash+flowIndex: 1+---++## Introduction++The make-to-order tour started at a confirmed sales order. This flow rewinds to where that order comes+from: a customer asking for a price, a quote that answers it, an acceptance that turns it into work.++## One opportunity, many documents++In Carbon, an RFQ, a quote, and a sales order aren't a rigid chain — they hang off a single **opportunity**…++<Callout tone="neutral" badge="NO RIGID CHAIN" title="Quotes are optional — the opportunity is the thread.">+…+</Callout>++<Screenshot label="Quote builder" caption="A multi-line quote with quantity-break pricing." ratio="wide" />+```+Each chapter ends pointing onward (the reader auto-gets a "read next" within the flow); the final chapter of+a flow ends with a `<Divider />` + one wrap-up line.++### Reference (entity page)+```mdx+---+title: Sales orders+description: The confirmed customer order that production, shipment, and invoicing all key off.+---++A **sales order** is … (lead with what it is and why it's load-bearing).++## Statuses++| Status | Meaning |+|---|---|+| `Draft` | … |+| `To Ship and Invoice` | open until every line is both shipped and invoiced |++<Callout type="note">The list shows a computed **display status** that can read `In Progress` while the stored status is `To Ship and Invoice` — make-to-order lines with open jobs.</Callout>++<Cards>+ <Card title="Ship, invoice, get paid" href="/guides/order-to-cash">The story of fulfilling this order.</Card>+</Cards>+```++## The "earn its place" test++Before shipping a page, read it as a Carbon newcomer. Each paragraph must **teach**, **warn**, or **move+forward** — cut anything that does none. Then the page as a whole:+- First paragraph states what matters?+- Common mistake named?+- Clear next step / link at the end?+- Could a real example replace an abstract sentence? Replace it.+- **Every status/name/transition checked against source?** (Rule 0.)++## Tone calibration++You're writing to manufacturers, shop managers, and the engineers configuring their system. Sound like a+sharp manufacturing-systems consultant who has set up a hundred shops and knows exactly where they go wrong:+confident, concrete, never padded, never condescending — and never guessing about how Carbon actually behaves.diff --git a/.dockerignore b/.dockerignoreindex b41aca8ee0..dfae52b740 100644--- a/.dockerignore+++ b/.dockerignore@@ -6,3 +6,4 @@ llm.claude.cursorexamples+apps/docs\ No newline at end of filediff --git a/apps/docs/.gitignore b/apps/docs/.gitignorenew file mode 100644index 0000000000..82019d82f1--- /dev/null+++ b/apps/docs/.gitignore@@ -0,0 +1,9 @@+.next+.source+node_modules+*.tsbuildinfo+next-env.d.ts++# generated at build by scripts/generate-api-docs.mjs+lib/api-data.generated.ts+lib/tools-data.generated.tsdiff --git a/apps/docs/app/api-reference/[module]/[resource]/page.tsx b/apps/docs/app/api-reference/[module]/[resource]/page.tsxnew file mode 100644index 0000000000..9e969cb068--- /dev/null+++ b/apps/docs/app/api-reference/[module]/[resource]/page.tsx@@ -0,0 +1,46 @@+import type { Metadata } from "next";+import { notFound } from "next/navigation";+import { BaseUrl } from "@/components/api/base-url";+import { EndpointSection } from "@/components/api/endpoint-section";+import { allResourceParams, apiBase, getResource } from "@/lib/api-data";++type Params = { params: Promise<{ module: string; resource: string }> };++export function generateStaticParams() {+ return allResourceParams();+}++export async function generateMetadata(props: Params): Promise<Metadata> {+ const { module, resource } = await props.params;+ const found = getResource(module, resource);+ return {+ title: found ? `${found.resource.name} — Carbon API` : "Carbon API",+ description: found?.resource.description+ };+}++export default async function ResourcePage(props: Params) {+ const { module, resource } = await props.params;+ const found = getResource(module, resource);+ if (!found) notFound();+ const { module: mod, resource: r } = found;++ return (+ <div className="max-w-[1180px]">+ <p className="m-0 font-[family-name:var(--font-mono)] text-[12px] font-medium uppercase tracking-[0.08em] text-[rgba(38,35,35,0.5)]">+ {mod.name}+ </p>+ <h1 className="m-0 mt-[8px] text-[34px] font-[560] leading-[120%] text-[#262323]">+ {r.name}+ </h1>+ <p className="m-0 mt-[12px] max-w-[640px] text-[16.5px] leading-[160%] text-[rgba(38,35,35,0.8)]">+ {r.description}+ </p>+ <BaseUrl path={r.endpoints[0]?.path ?? ""} />++ {r.endpoints.map((e) => (+ <EndpointSection key={e.id} endpoint={e} base={apiBase} />+ ))}+ </div>+ );+}diff --git a/apps/docs/app/api-reference/authentication/page.tsx b/apps/docs/app/api-reference/authentication/page.tsxnew file mode 100644index 0000000000..713f0ca4dc--- /dev/null+++ b/apps/docs/app/api-reference/authentication/page.tsx@@ -0,0 +1,193 @@+import type { Metadata } from "next";+import type { ReactNode } from "react";+import { CodeBlock } from "@/components/api/code-block";+import {+ Code,+ DocEyebrow,+ DocLink,+ DocPage,+ DocTitle,+ H2,+ Lead,+ P,+ Warn+} from "@/components/api/doc";+import { ContentFooter } from "@/components/api/page-footer";+import { highlight } from "@/lib/highlight";++export const metadata: Metadata = {+ title: "Authentication — Carbon API",+ description:+ "Create a scoped API key and authenticate requests with a bearer token."+};++const REQUEST = `curl 'https://rest.carbon.ms/item?limit=1' \\+ -H "Authorization: Bearer <api-key>"`;++function Row({+ cells,+ cols,+ head = false+}: {+ cells: ReactNode[];+ cols: string;+ head?: boolean;+}) {+ return (+ <div+ className="grid border-t border-[#E3E3DF] first:border-t-0"+ style={{ gridTemplateColumns: cols }}+ >+ {cells.map((c, i) => (+ <div+ key={i}+ className={`px-[12px] py-[9px] text-[14px] leading-[150%] ${+ head ? "font-[560] text-[#262323]" : "text-[rgba(38,35,35,0.82)]"+ } ${i > 0 ? "border-l border-[#E3E3DF]" : ""}`}+ >+ {c}+ </div>+ ))}+ </div>+ );+}++function Table({ children }: { children: ReactNode }) {+ return (+ <div className="my-[18px] overflow-hidden rounded-[10px] border border-[#E3E3DF]">+ {children}+ </div>+ );+}++export default async function AuthenticationPage() {+ const html = await highlight(REQUEST, "curl");+ return (+ <DocPage>+ <DocEyebrow>REST API</DocEyebrow>+ <DocTitle>Authentication</DocTitle>+ <Lead>+ Carbon authenticates public API requests with a scoped, optionally+ expiring API key.+ </Lead>+ <P>+ Create a key in{" "}+ <DocLink href="https://app.carbon.ms/x/settings/api-keys">+ Settings → API Keys+ </DocLink>+ , then send it on every request as a bearer token:{" "}+ <Code>Authorization: Bearer <api-key></Code>.+ </P>+ <CodeBlock html={html} code={REQUEST} label="Example request" />++ <H2 id="creating-a-key">Creating a key</H2>+ <P>+ Choosing <strong>New API Key</strong> opens a dialog with three fields:+ </P>+ <Table>+ <Row+ head+ cols="120px 1fr 84px"+ cells={["Field", "Description", "Required"]}+ />+ <Row+ cols="120px 1fr 84px"+ cells={[+ "Name",+ "A label to identify the key in your list. Not sent with requests.",+ "Yes"+ ]}+ />+ <Row+ cols="120px 1fr 84px"+ cells={[+ "Expires At",+ "Date the key stops working. Leave blank for a key that never expires.",+ "No"+ ]}+ />+ <Row+ cols="120px 1fr 84px"+ cells={[+ "Permissions",+ "A grid of every module against View / Create / Update / Delete. The key can only perform the actions you check.",+ "Yes"+ ]}+ />+ </Table>+ <Warn title="The key is shown only once">+ Copy the <Code>crbn_…</Code> token when it is generated — Carbon stores+ only a hash and cannot show it again. Keep it server-side; it carries+ every permission you grant. Lost a key? Delete it and create a new one.+ </Warn>++ <H2 id="permissions">Permissions</H2>+ <P>+ Each checkbox grants one action on one module. The action maps to the+ HTTP method of the request:+ </P>+ <Table>+ <Row+ head+ cols="110px 1fr 96px"+ cells={["Action", "Grants", "Method"]}+ />+ <Row+ cols="110px 1fr 96px"+ cells={["View", "Read rows", <Code key="g">GET</Code>]}+ />+ <Row+ cols="110px 1fr 96px"+ cells={["Create", "Insert rows", <Code key="p">POST</Code>]}+ />+ <Row+ cols="110px 1fr 96px"+ cells={["Update", "Modify rows", <Code key="pa">PATCH</Code>]}+ />+ <Row+ cols="110px 1fr 96px"+ cells={["Delete", "Remove rows", <Code key="d">DELETE</Code>]}+ />+ </Table>+ <P>+ Reading from <Code>/item</Code>, for example, needs{" "}+ <strong>Parts → View</strong>. A request for an action the key does not+ hold returns <Code>403</Code>. Some modules omit actions they do not+ support (Accounting has no Delete, shown as <Code>--</Code>).+ </P>++ <H2 id="expiration">Expiration & errors</H2>+ <P>+ If a key is past its <strong>Expires At</strong> date, requests fail+ with <Code>401</Code> before anything runs. Other authentication+ failures:+ </P>+ <Table>+ <Row head cols="72px 1fr" cells={["Status", "When it happens"]} />+ <Row+ cols="72px 1fr"+ cells={[+ <Code key="a">401</Code>,+ "Missing or invalid key, or the key has expired."+ ]}+ />+ <Row+ cols="72px 1fr"+ cells={[+ <Code key="b">403</Code>,+ "The key lacks the required module permission (or the company is on the Starter plan)."+ ]}+ />+ <Row+ cols="72px 1fr"+ cells={[+ <Code key="c">429</Code>,+ "Rate limit exceeded — back off and retry per the X-RateLimit-* response headers."+ ]}+ />+ </Table>++ <ContentFooter prev={{ label: "Introduction", url: "/api-reference" }} />+ </DocPage>+ );+}diff --git a/apps/docs/app/api-reference/layout.tsx b/apps/docs/app/api-reference/layout.tsxnew file mode 100644index 0000000000..85578d66c7--- /dev/null+++ b/apps/docs/app/api-reference/layout.tsx@@ -0,0 +1,34 @@+import type { ReactNode } from "react";+import { ApiNav } from "@/components/api/api-nav";+import { ApiConfigProvider } from "@/components/api/config-context";+import { Configurator } from "@/components/api/configurator";+import { TableOfContents } from "@/components/api/toc";+import { MainHeader } from "@/components/main-header";+import { navTree } from "@/lib/api-data";++export default function ApiReferenceLayout({+ children+}: {+ children: ReactNode;+}) {+ return (+ <div className="min-h-screen w-full bg-[#FBFBF9]">+ <MainHeader active="api" />++ <ApiConfigProvider>+ <div className="mx-auto flex w-full max-w-[1480px] pt-[64px]">+ <aside className="sticky top-[64px] hidden h-[calc(100dvh-64px)] w-[280px] shrink-0 overflow-y-auto border-r border-[#E7E7E3] px-[20px] py-[28px] scrollbar-hidden-until-scroll nav-scroll-fade lg:block">+ <Configurator />+ <ApiNav tree={navTree} />+ </aside>+ <main className="min-w-0 flex-1 px-[24px] pb-[140px] pt-[40px] lg:px-[56px]">+ {children}+ </main>+ <aside className="hidden w-[232px] shrink-0 px-[28px] pt-[40px] xl:block">+ <TableOfContents />+ </aside>+ </div>+ </ApiConfigProvider>+ </div>+ );+}diff --git a/apps/docs/app/api-reference/page.tsx b/apps/docs/app/api-reference/page.tsxnew file mode 100644index 0000000000..f7f4026440--- /dev/null+++ b/apps/docs/app/api-reference/page.tsx@@ -0,0 +1,79 @@+import type { Metadata } from "next";+import { CodeBlock } from "@/components/api/code-block";+import {+ Code,+ DocEyebrow,+ DocLink,+ DocPage,+ DocTitle,+ H2,+ Lead,+ P+} from "@/components/api/doc";+import { ContentFooter } from "@/components/api/page-footer";+import { SdkCards } from "@/components/api/sdk-cards";+import { apiBase } from "@/lib/api-data";+import { highlight } from "@/lib/highlight";++export const metadata: Metadata = {+ title: "Introduction — Carbon API",+ description: "The Carbon REST API — every table and view is an endpoint."+};++const ENV = `# .env+CARBON_API_URL=${apiBase}+CARBON_API_KEY=<your-api-key>`;++const INIT = `import { createClient } from '@supabase/supabase-js'++const apiUrl = process.env.CARBON_API_URL+const apiKey = process.env.CARBON_API_KEY++export const carbon = createClient(apiUrl, apiKey)`;++export default async function ApiIntroPage() {+ const [env, init] = await Promise.all([+ highlight(ENV, "curl"),+ highlight(INIT, "javascript")+ ]);++ return (+ <DocPage>+ <DocEyebrow>REST API</DocEyebrow>+ <DocTitle>Introduction</DocTitle>+ <Lead>+ The Carbon API is a REST interface over your manufacturing data — every+ table and view is an endpoint, with full read and write access.+ </Lead>+ <P>+ There are three ways to call it: directly over HTTP, through the{" "}+ <DocLink href="#client-libraries">JavaScript SDK</DocLink>, or from the{" "}+ <DocLink href="/mcp">MCP server</DocLink>. Start by creating an{" "}+ <DocLink href="/api-reference/authentication">API key</DocLink>.+ </P>++ <H2 id="client-libraries">Client libraries</H2>+ <P>+ Carbon's API is standard REST, so it works from any language. The+ recommended client is the JavaScript SDK, built on{" "}+ <Code>supabase-js</Code>.+ </P>+ <SdkCards />++ <H2 id="quickstart">Quickstart</H2>+ <P>Save your key and the API URL as environment variables:</P>+ <CodeBlock html={env} code={ENV} label=".env" />+ <P>Then initialize the client:</P>+ <CodeBlock html={init} code={INIT} label="lib/carbon.ts" />+ <P>+ You can now query any resource with <Code>carbon.from('…')</Code>. Pick+ a resource from the sidebar for its endpoints and ready-to-copy samples+ — pointed at your configured instance.+ </P>++ <ContentFooter+ next={{ label: "Authentication", url: "/api-reference/authentication" }}+ />+ </DocPage>+ );+}diff --git a/apps/docs/app/api/search/route.ts b/apps/docs/app/api/search/route.tsnew file mode 100644index 0000000000..335faeae63--- /dev/null+++ b/apps/docs/app/api/search/route.ts@@ -0,0 +1,12 @@+import { createSearchAPI } from "fumadocs-core/search/server";+import { buildSearchIndexes } from "@/lib/search-index";++/* Single search endpoint across all four surfaces (Reference docs, the Guide, API+ * resources, MCP tools). Canonical fumadocs pattern: one combined `indexes` array, each+ * entry `tag`ged (docs | guide | resources | tools) so the header's surface pills can+ * filter via `?tag=`. Result count is capped client-side (no server limit in fumadocs). */++export const { GET } = createSearchAPI("advanced", {+ language: "english",+ indexes: buildSearchIndexes()+});diff --git a/apps/docs/app/docs/[[...slug]]/page.tsx b/apps/docs/app/docs/[[...slug]]/page.tsxnew file mode 100644index 0000000000..980f683e7f--- /dev/null+++ b/apps/docs/app/docs/[[...slug]]/page.tsx@@ -0,0 +1,48 @@+import { createRelativeLink } from "fumadocs-ui/mdx";+import type { Metadata } from "next";+import { notFound } from "next/navigation";+import { DocsFooter } from "@/components/api/page-footer";+import { getMDXComponents } from "@/components/mdx";+import { source } from "@/lib/source";++type Params = { params: Promise<{ slug?: string[] }> };++export default async function Page(props: Params) {+ const params = await props.params;+ const page = source.getPage(params.slug);+ if (!page) notFound();++ const MDX = page.data.body;++ return (+ <article className="max-w-[760px]">+ <h1 className="reference-title m-0">{page.data.title}</h1>+ {page.data.description && (+ <p className="reference-desc m-0 mt-[12px]">{page.data.description}</p>+ )}+ <div className="prose mt-[30px]">+ <MDX+ components={getMDXComponents({+ a: createRelativeLink(source, page)+ })}+ />+ </div>+ <DocsFooter url={page.url} />+ </article>+ );+}++export async function generateStaticParams() {+ return source.generateParams();+}++export async function generateMetadata(props: Params): Promise<Metadata> {+ const params = await props.params;+ const page = source.getPage(params.slug);+ if (!page) notFound();++ return {+ title: page.data.title,+ description: page.data.description+ };+}diff --git a/apps/docs/app/docs/layout.tsx b/apps/docs/app/docs/layout.tsxnew file mode 100644index 0000000000..2380f58d4b--- /dev/null+++ b/apps/docs/app/docs/layout.tsx@@ -0,0 +1,65 @@+import type { ReactNode } from "react";+import { DocsNav, type DocsNavNode } from "@/components/api/docs-nav";+import { TableOfContents } from "@/components/api/toc";+import { MainHeader } from "@/components/main-header";+import { NavScrollChevron } from "@/components/nav-scroll-chevron";+import { ScrollHints } from "@/components/scroll-hints";+import { source } from "@/lib/source";+import "../reference.css";++type TreeNode = {+ type: "page" | "folder" | "separator";+ name?: unknown;+ url?: string;+ index?: { url?: string };+ children?: TreeNode[];+};++const label = (name: unknown) =>+ typeof name === "string" ? name : String(name ?? "");++const byLabel = (a: DocsNavNode, b: DocsNavNode) =>+ a.label.localeCompare(b.label);++/** Convert the Fumadocs page tree into our serializable nav shape, with the pages in+ * each group sorted alphabetically. */+function toNav(nodes: TreeNode[]): DocsNavNode[] {+ return nodes.flatMap((n) => {+ if (n.type === "separator") return [];+ if (n.type === "folder") {+ return [+ {+ label: label(n.name),+ url: n.index?.url,+ children: toNav(n.children ?? []).sort(byLabel)+ }+ ];+ }+ return [{ label: label(n.name), url: n.url }];+ });+}++export default function ReferenceLayout({ children }: { children: ReactNode }) {+ const tree = toNav((source.getPageTree().children as TreeNode[]) ?? []);++ return (+ <div className="min-h-screen w-full bg-[#FBFBF9]">+ <MainHeader active="reference" />++ <div className="mx-auto flex w-full max-w-[1480px] pt-[64px]">+ <aside className="nav-scroll-fade sticky top-[64px] hidden h-[calc(100dvh-64px)] w-[280px] shrink-0 overflow-y-auto border-r border-[#E7E7E3] px-[20px] py-[28px] scrollbar-hidden-until-scroll lg:block">+ <DocsNav tree={tree} />+ <NavScrollChevron />+ </aside>+ <main className="min-w-0 flex-1 px-[24px] pb-[140px] pt-[40px] lg:px-[56px]">+ {children}+ </main>+ <aside className="hidden w-[232px] shrink-0 px-[28px] pt-[40px] xl:block">+ <TableOfContents />+ </aside>+ </div>++ <ScrollHints />+ </div>+ );+}diff --git a/apps/docs/app/editorial.css b/apps/docs/app/editorial.cssnew file mode 100644index 0000000000..6f76d38cb8--- /dev/null+++ b/apps/docs/app/editorial.css@@ -0,0 +1,174 @@+/* Editorial design system — ported verbatim from the cofounder how-to reference.+ * Warm paper theme, DM Sans, glass pills, callout boxes, ink text. Powers the+ * product/Guide surface (app/guides/*). Loaded AFTER global.css so its font+ * overrides win. */++/* DM Sans for body text, Fira Code for code/labels (loaded via <link> in layout) */+:root {+ --font-mono: "Fira Code", ui-monospace, monospace;+}++body {+ font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;+}++.scrollbar-none {+ -ms-overflow-style: none;+ scrollbar-width: none;+}+.scrollbar-none::-webkit-scrollbar {+ display: none;+}++.glass-pill {+ border: 1px solid rgba(32, 32, 32, 0.06);+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%),+ rgba(245, 245, 242, 0.65);+ box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.06), 0 0 0.357px 1.5px rgba(255, 255, 255, 0.35) inset,+ 0 2px 0 0 #fff inset;+ backdrop-filter: blur(12px);+}++.login-btn-light {+ border: 1px solid rgba(32, 32, 32, 0.1);+ background: #f5f5f2;+ box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.06), 0 0 0.357px 1.5px rgba(255, 255, 255, 0.35) inset,+ 0 2px 0 0 #fff inset;+ border-radius: 8px;+}++.cta-btn-dark {+ background: linear-gradient(180deg, #3a3835 0%, #262323 100%);+ border: 1px solid rgba(255, 255, 255, 0.08);+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(255, 255, 255, 0.08) inset,+ 0 1px 0 0 rgba(255, 255, 255, 0.1) inset;+}++.btn-dark-hover {+ background: linear-gradient(180deg, #4a4845 0%, #363333 100%);+ border: 1px solid rgba(255, 255, 255, 0.12);+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(255, 255, 255, 0.12) inset,+ 0 1px 0 0 rgba(255, 255, 255, 0.15) inset;+}++.text-ink {+ color: #262323cc;+ text-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.2), 0 -0.5px 0 rgba(255, 255, 255, 0.25);+}+.text-ink-ui {+ color: #202020cc;+}+.text-ink-faint {+ color: #26232399;+}+.text-ink-body {+ color: rgba(38, 35, 35, 0.78);+}+.text-on-dark {+ color: rgba(255, 255, 255, 0.92);+}++.nav-link {+ text-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.1), 0 -0.5px 0 rgba(255, 255, 255, 0.15);+}++.callout-box {+ border: 1px solid #e7e7e3;+ background: rgba(251, 251, 248, 0.5);+ box-shadow: inset 0 1px 0 #fff;+ border-radius: 12px;+}+.callout-box-inner {+ background: #f7f7f3;+ box-shadow: inset 0 0 0 1px rgba(38, 35, 35, 0.08), inset 0 1px 0 #fff;+ border-radius: 10px;+}++.scrollbar-hidden-until-scroll {+ scrollbar-width: thin;+ scrollbar-color: transparent transparent;+}+.scrollbar-hidden-until-scroll:hover {+ scrollbar-color: #26232326 transparent;+}+.scrollbar-hidden-until-scroll::-webkit-scrollbar {+ width: 4px;+}+.scrollbar-hidden-until-scroll::-webkit-scrollbar-thumb {+ background: transparent;+ border-radius: 2px;+}+.scrollbar-hidden-until-scroll:hover::-webkit-scrollbar-thumb {+ background: #26232326;+}++/* Scroll affordance for navigation sidebars — fade the list at its top/bottom edges+ * so it's clear there's more above / below. Applied only to nav scrollers. */+.nav-scroll-fade {+ -webkit-mask-image: linear-gradient(+ to bottom,+ transparent 0,+ #000 22px,+ #000 calc(100% - 26px),+ transparent 100%+ );+ mask-image: linear-gradient(+ to bottom,+ transparent 0,+ #000 22px,+ #000 calc(100% - 26px),+ transparent 100%+ );+}++/* View Transitions — smooth cross-fade when switching chapters (driven by+ * document.startViewTransition in guide-context). Viewport-scoped root snapshot+ * keeps it cheap; the static header/rail are identical old→new so they don't move. */+@media (prefers-reduced-motion: no-preference) {+ ::view-transition-old(root),+ ::view-transition-new(root) {+ animation-duration: 0.3s;+ animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);+ }+}++.code-inline {+ display: inline-flex;+ align-items: center;+ border-radius: 5px;+ border: 1.2px solid #e3e3e0;+ padding: 1px 6px;+ font-size: 13px;+ line-height: 140%;+ letter-spacing: 0.13px;+ color: #a76451;+ white-space: nowrap;+ background: #e7e7e3;+ box-shadow: 0 0.5px 0.5px 0 rgba(0, 0, 0, 0.1), 0 2px 1px 0 #fff, 0 -1px 1px 0 rgba(0, 0, 0, 0.03);+}++/* Shiki-highlighted code in the API reference dark panels (Fira Code, panel bg shows through) */+.api-shiki .shiki,+.api-shiki-response .shiki {+ margin: 0;+ padding: 16px;+ overflow-x: auto;+ background: transparent !important;+ font-family: "Fira Code", ui-monospace, monospace;+ font-size: 12.5px;+ line-height: 1.65;+ scrollbar-width: none;+}+.api-shiki .shiki {+ padding-right: 64px;+}+.api-shiki .shiki::-webkit-scrollbar,+.api-shiki-response .shiki::-webkit-scrollbar {+ display: none;+}+.api-shiki .shiki code,+.api-shiki-response .shiki code {+ font-family: inherit;+}diff --git a/apps/docs/app/global.css b/apps/docs/app/global.cssnew file mode 100644index 0000000000..e4dde0f479--- /dev/null+++ b/apps/docs/app/global.css@@ -0,0 +1,184 @@+/* Carbon docs — Tailwind v4 + Geist + Carbon tokens + Fumadocs UI.+ * See .claude/skills/carbon-docs/references/brand-integration.md for the why. */++@import "tailwindcss";++/* Geist (Carbon's typeface) */+@import "non.geist";+@import "non.geist/mono";++/* Carbon's token → utility mapping (@theme inline) + @plugins */+@import "@carbon/config/tailwind/theme.css";++/* Fumadocs UI base + a neutral preset we override with Carbon tokens below */+@import "fumadocs-ui/css/neutral.css";+@import "fumadocs-ui/css/preset.css";++/* Scan the docs app's own files for utility classes */+@source "../";++/* Swap the site typeface to DM Sans / IBM Plex Mono (matches the editorial Guide).+ * This overrides Carbon theme.css's Geist font-sans utility site-wide. */+@theme {+ --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;+ --font-mono: "Fira Code", ui-monospace, monospace;+}++/* Raw token values for the default "Modern" (zinc) theme, baked in because a+ * Next app has no React Router root route to inject them at runtime. */+:root {+ /* Warm paper editorial palette — matches the Guide (#F5F5F2 paper, #262323 ink). */+ --background: 60 11% 95%;+ --foreground: 0 4% 14%;+ --card: 60 33% 98%;+ --card-foreground: 0 4% 14%;+ --popover: 60 20% 99%;+ --popover-foreground: 0 4% 14%;+ --active: 60 8% 90%;+ --active-foreground: 0 4% 14%;+ --primary: 0 4% 14%;+ --primary-foreground: 60 11% 96%;+ --secondary: 60 9% 93%;+ --secondary-foreground: 0 4% 14%;+ --muted: 60 9% 93%;+ --muted-foreground: 24 4% 44%;+ --accent: 60 8% 90%;+ --accent-foreground: 0 4% 14%;+ --destructive: 0 72% 51%;+ --destructive-foreground: 0 0% 98%;+ --border: 60 8% 90%;+ --input: 60 8% 90%;+ --ring: 0 4% 30%;+ --success: 142 60% 40%;+ --success-foreground: 0 0% 98%;+ --radius: 0.5rem;++ /* Editorial highlight accent — the clone's #00B0FF blue */+ --brand: 199 100% 50%;+}++.dark {+ --background: 0 0% 0%;+ --foreground: 0 0% 93%;+ --card: 0 0% 4%;+ --card-foreground: 0 0% 93%;+ --popover: 0 0% 7%;+ --popover-foreground: 0 0% 93%;+ --active: 0 0% 10%;+ --active-foreground: 0 0% 100%;+ --primary: 0 0% 100%;+ --primary-foreground: 0 0% 0%;+ --secondary: 0 0% 7%;+ --secondary-foreground: 0 0% 93%;+ --muted: 0 0% 15%;+ --muted-foreground: 0 0% 63%;+ --accent: 0 0% 10%;+ --accent-foreground: 0 0% 93%;+ --destructive: 0 100% 64%;+ --destructive-foreground: 0 0% 100%;+ --border: 0 0% 15%;+ --input: 0 0% 15%;+ --ring: 0 0% 35%;+ --success: 152 72% 53%;+ --success-foreground: 0 0% 0%;++ --brand: 213 94% 68%;+}++/* Expose --brand as Tailwind color utilities (text-brand, bg-brand, bg-brand/10) */+@theme inline {+ --color-brand: hsl(var(--brand));+}++/* Map Fumadocs' own theme variables onto Carbon tokens — one palette everywhere */+:root,+.dark {+ --color-fd-background: hsl(var(--background));+ --color-fd-foreground: hsl(var(--foreground));+ --color-fd-muted: hsl(var(--muted));+ --color-fd-muted-foreground: hsl(var(--muted-foreground));+ --color-fd-popover: hsl(var(--popover));+ --color-fd-popover-foreground: hsl(var(--popover-foreground));+ --color-fd-card: hsl(var(--card));+ --color-fd-card-foreground: hsl(var(--card-foreground));+ --color-fd-border: hsl(var(--border));+ --color-fd-primary: hsl(var(--primary));+ --color-fd-primary-foreground: hsl(var(--primary-foreground));+ --color-fd-secondary: hsl(var(--secondary));+ --color-fd-secondary-foreground: hsl(var(--secondary-foreground));+ --color-fd-accent: hsl(var(--accent));+ --color-fd-accent-foreground: hsl(var(--accent-foreground));+ --color-fd-ring: hsl(var(--ring));+}++/* Carbon's theme.css pulls in @tailwindcss/typography, whose `.prose` rules+ * collide with Fumadocs' content (also `.prose`) and apply fixed grays that+ * don't adapt to dark mode. Point Typography's color vars at Carbon tokens so+ * prose text is theme-aware (near-white on dark, near-black on light). */+.prose {+ --tw-prose-body: hsl(var(--foreground));+ --tw-prose-headings: hsl(var(--foreground));+ --tw-prose-lead: hsl(var(--muted-foreground));+ --tw-prose-links: hsl(var(--primary));+ --tw-prose-bold: hsl(var(--foreground));+ --tw-prose-counters: hsl(var(--muted-foreground));+ --tw-prose-bullets: hsl(var(--border));+ --tw-prose-hr: hsl(var(--border));+ --tw-prose-quotes: hsl(var(--foreground));+ --tw-prose-quote-borders: hsl(var(--border));+ --tw-prose-captions: hsl(var(--muted-foreground));+ --tw-prose-code: hsl(var(--foreground));+ --tw-prose-pre-code: hsl(var(--foreground));+ --tw-prose-pre-bg: hsl(var(--muted));+ --tw-prose-th-borders: hsl(var(--border));+ --tw-prose-td-borders: hsl(var(--border));+ font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;+}++/* Kill Tailwind Typography's default underlines. Heading anchors never underline;+ * body links underline only on hover. (This was the "underlines everywhere" issue.) */+.prose a {+ text-decoration: none;+ font-weight: inherit;+}+.prose p a:hover {+ text-decoration: underline;+ text-underline-offset: 2px;+}+.prose :where(h1, h2, h3, h4, h5, h6) a {+ color: inherit;+}++@layer base {+ body {+ background-color: hsl(var(--background));+ color: hsl(var(--foreground));+ font-family: var(--font-sans);+ letter-spacing: var(--tracking-normal);+ -webkit-font-smoothing: antialiased;+ text-rendering: optimizeLegibility;+ }++ /* Editorial reading rhythm for the Guide surface (.guide-prose on the article) */+ .guide-prose p,+ .guide-prose li {+ font-size: 1.0625rem;+ line-height: 1.75;+ }+ .guide-prose h1 {+ font-size: clamp(2.25rem, 5vw, 2.75rem);+ line-height: 1.1;+ letter-spacing: -0.03em;+ font-weight: 600;+ }+ .guide-prose h2 {+ margin-top: 3rem;+ font-size: 1.5rem;+ letter-spacing: -0.02em;+ font-weight: 600;+ }++ table {+ font-variant-numeric: tabular-nums;+ }+}diff --git a/apps/docs/app/guides/[chapter]/page.tsx b/apps/docs/app/guides/[chapter]/page.tsxnew file mode 100644index 0000000000..ee2583575f--- /dev/null+++ b/apps/docs/app/guides/[chapter]/page.tsx@@ -0,0 +1,92 @@+import type { Metadata } from "next";+import { notFound } from "next/navigation";+import type { ReactNode } from "react";+import type { GuideChapter } from "@/components/editorial/guide-context";+import { GuideProvider } from "@/components/editorial/guide-context";+import { GuideSubnav } from "@/components/editorial/guide-subnav";+import { HowToLayout } from "@/components/editorial/how-to-layout";+import { editorialMdxComponents } from "@/components/editorial/mdx";+import { MainHeader } from "@/components/main-header";+import { guideSource } from "@/lib/source";++type Params = { params: Promise<{ chapter: string }> };++// Fumadocs' toc item `title` is a ReactNode (often a React element, not a string),+// so pull the plain text out of it — otherwise the rail renders "[object Object]".+function tocText(node: ReactNode): string {+ if (node == null || typeof node === "boolean") return "";+ if (typeof node === "string" || typeof node === "number") return String(node);+ if (Array.isArray(node)) return node.map(tocText).join("");+ if (typeof node === "object" && "props" in node) {+ return tocText(+ (node as { props?: { children?: ReactNode } }).props?.children+ );+ }+ return "";+}++// Chapters in reading order: flows are ordered by `flowIndex`, chapters within a+// flow by `index`. This keeps each flow's chapters contiguous in the flat list.+function orderedPages() {+ return guideSource+ .getPages()+ .slice()+ .sort(+ (a, b) =>+ (a.data.flowIndex ?? 0) - (b.data.flowIndex ?? 0) ||+ (a.data.index ?? 0) - (b.data.index ?? 0)+ );+}++export function generateStaticParams() {+ return orderedPages().map((p) => ({ chapter: p.slugs[0] }));+}++export async function generateMetadata(props: Params): Promise<Metadata> {+ const { chapter } = await props.params;+ const page = orderedPages().find((p) => p.slugs[0] === chapter);+ return {+ title: page ? `${page.data.title} — Carbon` : "Carbon Docs",+ description: page?.data.description+ };+}++export default async function GuidePage(props: Params) {+ const { chapter } = await props.params;+ const pages = orderedPages();+ if (!pages.some((p) => p.slugs[0] === chapter)) notFound();++ // Serializable chapter nav: slug/title/label + the section items (one per `##`+ // heading) pulled from each file's table of contents, anchored on its rehype id.+ const chapters: GuideChapter[] = pages.map((p) => ({+ slug: p.slugs[0],+ index: p.data.index,+ title: p.data.title,+ description: p.data.description,+ label: p.data.label,+ flow: p.data.flow,+ flowName: p.data.flowName,+ flowIndex: p.data.flowIndex,+ items: p.data.toc+ .filter((t) => t.depth === 2)+ .map((t) => ({+ title: tocText(t.title),+ id: t.url.replace(/^#/, "")+ }))+ }));++ // Render each chapter's MDX body once on the server; the client reader shows the+ // active one and cross-fades on switch — no route navigation, no remount flash.+ const bodies = pages.map((p) => {+ const MDX = p.data.body;+ return <MDX key={p.slugs[0]} components={editorialMdxComponents} />;+ });++ return (+ <GuideProvider chapters={chapters} initialSlug={chapter}>+ <MainHeader active="guides" />+ <GuideSubnav />+ <HowToLayout bodies={bodies} />+ </GuideProvider>+ );+}diff --git a/apps/docs/app/guides/page.tsx b/apps/docs/app/guides/page.tsxnew file mode 100644index 0000000000..ccbaf1baf1--- /dev/null+++ b/apps/docs/app/guides/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function GuideIndex() {+ redirect("/guides/order");+}diff --git a/apps/docs/app/layout.tsx b/apps/docs/app/layout.tsxnew file mode 100644index 0000000000..2ca28f68b4--- /dev/null+++ b/apps/docs/app/layout.tsx@@ -0,0 +1,29 @@+import "./global.css";+import "./editorial.css";+import { RootProvider } from "fumadocs-ui/provider/next";+import type { ReactNode } from "react";+import { SiteFooter } from "@/components/site-footer";++export default function Layout({ children }: { children: ReactNode }) {+ return (+ <html lang="en" suppressHydrationWarning>+ <head>+ <link rel="preconnect" href="https://fonts.googleapis.com" />+ <link+ rel="preconnect"+ href="https://fonts.gstatic.com"+ crossOrigin="anonymous"+ />+ <link+ rel="stylesheet"+ href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Fira+Code:wght@400;500;600&display=swap"+ />+ </head>+ <body className="flex min-h-screen flex-col antialiased">+ {/* Light-only — the editorial design is a warm paper theme, no dark mode */}+ <RootProvider theme={{ enabled: false }}>{children}</RootProvider>+ <SiteFooter />+ </body>+ </html>+ );+}diff --git a/apps/docs/app/mcp/authentication/page.tsx b/apps/docs/app/mcp/authentication/page.tsxnew file mode 100644index 0000000000..2720decbfb--- /dev/null+++ b/apps/docs/app/mcp/authentication/page.tsx@@ -0,0 +1,78 @@+import type { Metadata } from "next";+import { ApiKeysLink, AuthHeader } from "@/components/api/config-inline";+import {+ Code,+ DocEyebrow,+ DocPage,+ DocTitle,+ H2,+ Lead,+ P,+ Row,+ Table+} from "@/components/api/doc";+import { ContentFooter } from "@/components/api/page-footer";++export const metadata: Metadata = {+ title: "MCP Authentication — Carbon",+ description:+ "How MCP clients authenticate — connector OAuth or a scoped API key."+};++export default function McpAuthenticationPage() {+ return (+ <DocPage>+ <DocEyebrow>MCP</DocEyebrow>+ <DocTitle>Authentication</DocTitle>+ <Lead>+ An MCP client inherits exactly the identity it authenticates as — and+ can only do what that identity can. There are two flows, by client type.+ </Lead>++ <H2 id="connector">Connector (OAuth)</H2>+ <P>+ Claude.ai, Claude Desktop, and ChatGPT authorize over OAuth — add the+ server URL and approve the connection in your browser. There's no key to+ manage. The connection inherits the <strong>role and company</strong> of+ whoever authorized it.+ </P>++ <H2 id="api-key">API key</H2>+ <P>+ Claude Code, Cursor, VS Code, Codex, and any headless or CI client send+ a scoped key as a bearer token: <AuthHeader />. Create one in{" "}+ <ApiKeysLink>Settings → API Keys</ApiKeysLink>; the key carries its own+ scopes. stdio-only clients bridge through <Code>mcp-remote</Code>.+ </P>++ <H2 id="permissions">Permissions</H2>+ <P>+ Either way, the assistant can only do what that identity can — a+ connector inherits your role and company, a key carries the scopes you+ granted it. Use a separate key per client, so revoking one doesn't break+ the rest.+ </P>++ <H2 id="errors">Errors</H2>+ <Table>+ <Row head cols="72px 1fr" cells={["Status", "When it happens"]} />+ <Row+ cols="72px 1fr"+ cells={[+ <Code key="a">401</Code>,+ "Connector: re-authorize from your client. Key: it's missing, malformed, expired, or deleted — recreate it and update the Authorization header."+ ]}+ />+ <Row+ cols="72px 1fr"+ cells={[+ <Code key="b">403</Code>,+ "The identity lacks the required module permission (or the company is on the Starter plan)."+ ]}+ />+ </Table>++ <ContentFooter prev={{ label: "Introduction", url: "/mcp" }} />+ </DocPage>+ );+}diff --git a/apps/docs/app/mcp/layout.tsx b/apps/docs/app/mcp/layout.tsxnew file mode 100644index 0000000000..d159977f67--- /dev/null+++ b/apps/docs/app/mcp/layout.tsx@@ -0,0 +1,30 @@+import type { ReactNode } from "react";+import { ApiConfigProvider } from "@/components/api/config-context";+import { Configurator } from "@/components/api/configurator";+import { McpNav } from "@/components/api/mcp-nav";+import { TableOfContents } from "@/components/api/toc";+import { MainHeader } from "@/components/main-header";+import { toolsNavTree } from "@/lib/tools-data";++export default function McpLayout({ children }: { children: ReactNode }) {+ return (+ <div className="min-h-screen w-full bg-[#FBFBF9]">+ <MainHeader active="mcp" />++ <ApiConfigProvider>+ <div className="mx-auto flex w-full max-w-[1480px] pt-[64px]">+ <aside className="sticky top-[64px] hidden h-[calc(100dvh-64px)] w-[280px] shrink-0 overflow-y-auto border-r border-[#E7E7E3] px-[20px] py-[28px] scrollbar-hidden-until-scroll nav-scroll-fade lg:block">+ <Configurator />+ <McpNav tools={toolsNavTree} />+ </aside>+ <main className="min-w-0 flex-1 px-[24px] pb-[140px] pt-[40px] lg:px-[56px]">+ {children}+ </main>+ <aside className="hidden w-[232px] shrink-0 px-[28px] pt-[40px] xl:block">+ <TableOfContents />+ </aside>+ </div>+ </ApiConfigProvider>+ </div>+ );+}diff --git a/apps/docs/app/mcp/page.tsx b/apps/docs/app/mcp/page.tsxnew file mode 100644index 0000000000..ec3e54f313--- /dev/null+++ b/apps/docs/app/mcp/page.tsx@@ -0,0 +1,152 @@+import type { Metadata } from "next";+import { CodeBlock } from "@/components/api/code-block";+import { McpEndpoint } from "@/components/api/config-inline";+import {+ DocEyebrow,+ DocLink,+ DocPage,+ DocTitle,+ H2,+ Lead,+ P+} from "@/components/api/doc";+import { Faq, type FaqEntry } from "@/components/api/faq";+import { ContentFooter } from "@/components/api/page-footer";+import { highlight } from "@/lib/highlight";++export const metadata: Metadata = {+ title: "MCP — Carbon",+ description:+ "Connect Carbon's MCP server from Claude Code, Claude Desktop, Cursor, and other AI clients."+};++const ENDPOINT = "https://app.carbon.ms/api/mcp";++const CLAUDE_CODE = `claude mcp add --transport http carbon \\+ ${ENDPOINT} \\+ --header "Authorization: Bearer <api-key>"`;++const CURSOR = `{+ "mcpServers": {+ "carbon": {+ "url": "${ENDPOINT}",+ "headers": { "Authorization": "Bearer <api-key>" }+ }+ }+}`;++const PROMPTS = [+ "Show all open sales orders due to ship this week.",+ "Which purchase orders are past their promised receipt date?",+ "What's the on-hand quantity and reorder point for a part across locations?",+ "Draft a quote for a customer for 200 aluminum housings.",+ "List every job behind schedule and who's assigned."+];++const FAQ: FaqEntry[] = [+ {+ q: "What can the assistant actually do?",+ a: "Read and write across every module the identity can reach — query orders and inventory, create jobs, draft quotes, update statuses. It acts as that user, so it can only touch what you've granted."+ },+ {+ q: "Do I need an API key?",+ a: "Not for connector clients — Claude.ai, Claude Desktop, and ChatGPT add the URL and authorize in your browser. Keys are for command and config clients (Claude Code, Cursor, VS Code, Codex) and any headless or CI use."+ },+ {+ q: "Does it respect my Carbon permissions?",+ a: "Yes — there's no way around them. A connector inherits the role and company of whoever authorized it; a key carries its own scopes. The assistant can never do what that identity can't."+ },+ {+ q: "Can I give it read-only access?",+ a: "Yes. Scope a key to only the modules and actions it needs — View with no Create, Update, or Delete makes it read-only. Use a separate key per client so you can re-scope or revoke one without touching the rest."+ },+ {+ q: "Where does my data go?",+ a: "Carbon doesn't send it anywhere new — your MCP client does, to whatever model provider it runs on, under that provider's terms. Scope keys tightly and prefer a read-only key when you only need to read."+ },+ {+ q: "Is MCP available on my plan?",+ a: "On Carbon Cloud, API and MCP access is a Business-plan feature — Starter keys are rejected with 403. Self-hosted instances aren't gated."+ },+ {+ q: "Is there a rate limit?",+ a: "Each key has its own limit and window, set in Settings → API Keys. Go over it and calls return 429 with X-RateLimit-* headers telling the client when to retry."+ },+ {+ q: "I'm getting 401 Unauthorized",+ a: "Key clients: the key is missing, malformed, expired, or deleted — recreate it in Settings → API Keys and update the Authorization header. Connector clients: re-authorize the connection from your client."+ },+ {+ q: "I'm getting 403 Forbidden",+ a: "The identity is authenticated but lacks the module permission for that action — or, on Cloud, the company is on the Starter plan. Grant the scope, or switch to a key that has it."+ },+ {+ q: "How do I manage or revoke a key?",+ a: "Each key in Settings → API Keys shows its scopes, rate limit, expiry, and who created it. Delete a key to revoke it instantly; nothing else breaks if you key each client separately."+ }+];++export default async function McpPage() {+ const [code, cursor] = await Promise.all([+ highlight(CLAUDE_CODE, "curl"),+ highlight(CURSOR, "json")+ ]);++ return (+ <DocPage>+ <DocEyebrow>MCP</DocEyebrow>+ <DocTitle>Model Context Protocol</DocTitle>+ <Lead>+ Carbon runs an MCP server, so AI clients — Claude Code, Claude Desktop,+ Cursor, ChatGPT — can read and write your manufacturing data in plain+ language.+ </Lead>+ <P>+ The server lives at <McpEndpoint />. Connect it one of two ways,+ depending on your client.+ </P>++ <H2 id="connect">Connect</H2>+ <P>+ <strong>Connector clients</strong> — Claude.ai, Claude Desktop, ChatGPT+ — add the URL and authorize in your browser. No key needed.+ </P>+ <P>+ <strong>Command & key clients</strong> — Claude Code, Cursor, VS+ Code, Codex — paste a snippet carrying a scoped API key.+ </P>+ <CodeBlock+ html={code}+ code={CLAUDE_CODE}+ label="Terminal · Claude Code"+ />+ <CodeBlock html={cursor} code={CURSOR} label=".cursor/mcp.json" />++ <H2 id="ask">What you can ask</H2>+ <P>Once connected, ask in natural language:</P>+ <ul className="m-0 mt-[12px] flex list-none flex-col gap-[8px] p-0">+ {PROMPTS.map((p) => (+ <li+ key={p}+ className="flex gap-[10px] text-[15px] leading-[160%] text-[rgba(38,35,35,0.82)]"+ >+ <span className="mt-[9px] h-[5px] w-[5px] shrink-0 rounded-full bg-[rgba(38,35,35,0.4)]" />+ <span>{p}</span>+ </li>+ ))}+ </ul>+ <P>+ Next: <DocLink href="/mcp/authentication">Authentication</DocLink> for+ the auth flows, and <DocLink href="/mcp/tools">Tools</DocLink> for how+ the assistant finds what it needs.+ </P>++ <H2 id="faq">FAQ</H2>+ <Faq items={FAQ} />++ <ContentFooter+ next={{ label: "Authentication", url: "/mcp/authentication" }}+ />+ </DocPage>+ );+}diff --git a/apps/docs/app/mcp/tools/[tool]/page.tsx b/apps/docs/app/mcp/tools/[tool]/page.tsxnew file mode 100644index 0000000000..17aa94090a--- /dev/null+++ b/apps/docs/app/mcp/tools/[tool]/page.tsx@@ -0,0 +1,168 @@+import type { Metadata } from "next";+import { notFound } from "next/navigation";+import { CodeBlock } from "@/components/api/code-block";+import { Code, DocEyebrow, DocPage, H2, P } from "@/components/api/doc";+import { highlight } from "@/lib/highlight";+import { allToolParams, getTool, type ToolClass } from "@/lib/tools-data";++type Params = { params: Promise<{ tool: string }> };++export function generateStaticParams() {+ return allToolParams();+}++export async function generateMetadata(props: Params): Promise<Metadata> {+ const { tool } = await props.params;+ const found = getTool(tool);+ return {+ title: found ? `${found.tool.name} — Carbon MCP` : "Carbon MCP",+ description: found?.tool.description+ };+}++const BADGE: Record<ToolClass, string> = {+ READ: "bg-[#E4F8DA] text-[#3F9142] border-[#A8DB91]",+ WRITE: "bg-[#DFF5FF] text-[#1E84B0] border-[#A9DAF3]",+ DESTRUCTIVE: "bg-[#FCE8E6] text-[#B3261E] border-[#F2C0BC]"+};++type JsonProp = {+ type?: string;+ description?: string;+ enum?: unknown[];+ format?: string;+ items?: { type?: string };+};+type JsonSchema = {+ properties?: Record<string, JsonProp>;+ required?: string[];+};++function propType(p: JsonProp): string {+ if (Array.isArray(p.enum) && p.enum.length) return "enum";+ if (p.type === "array") return `${p.items?.type ?? "any"}[]`;+ return p.format ?? p.type ?? "any";+}++/** Render a tool's input schema as a readable parameter list (required first). */+function Parameters({ schema }: { schema: unknown }) {+ const s = (schema ?? {}) as JsonSchema;+ const props = s.properties ?? {};+ const required = new Set(s.required ?? []);+ const names = Object.keys(props).sort(+ (a, b) => Number(required.has(b)) - Number(required.has(a))+ );+ if (names.length === 0) return <P>This tool takes no arguments.</P>;++ return (+ <div className="mt-[10px] divide-y divide-[#E7E7E3] border-t border-[#E7E7E3]">+ {names.map((name) => {+ const p = props[name];+ return (+ <div key={name} className="py-[13px]">+ <div className="flex flex-wrap items-center gap-[8px]">+ <code className="font-[family-name:var(--font-mono)] text-[13.5px] text-[#262323]">+ {name}+ </code>+ <span className="font-[family-name:var(--font-mono)] text-[12px] text-[rgba(38,35,35,0.54)]">+ {propType(p)}+ </span>+ {required.has(name) ? (+ <span className="text-[11px] font-medium text-[#9C7136]">+ required+ </span>+ ) : (+ <span className="text-[11px] font-medium text-[rgba(38,35,35,0.48)]">+ optional+ </span>+ )}+ </div>+ {p.description && (+ <p className="m-0 mt-[6px] text-[14.5px] leading-[150%] text-[rgba(38,35,35,0.74)]">+ {p.description}+ </p>+ )}+ </div>+ );+ })}+ </div>+ );+}++function exampleArg(prop: unknown): unknown {+ if (!prop || typeof prop !== "object") return "string";+ switch ((prop as { type?: string }).type) {+ case "number":+ case "integer":+ return 0;+ case "boolean":+ return true;+ case "array":+ return [];+ case "object":+ return {};+ default:+ return "string";+ }+}++function exampleArgs(schema: unknown): Record<string, unknown> {+ const s = (schema ?? {}) as {+ properties?: Record<string, unknown>;+ required?: string[];+ };+ const props = s.properties ?? {};+ const required = s.required ?? Object.keys(props);+ const out: Record<string, unknown> = {};+ for (const key of required) out[key] = exampleArg(props[key]);+ return out;+}++export default async function ToolPage(props: Params) {+ const { tool } = await props.params;+ const found = getTool(tool);+ if (!found) notFound();+ const { module: mod, tool: t } = found;++ const schemaJson = JSON.stringify(t.schema, null, 2);+ const callSnippet = `call_tool(${JSON.stringify({ name: t.name, arguments: exampleArgs(t.schema) }, null, 2)})`;+ const [callHtml, schemaHtml] = await Promise.all([+ highlight(callSnippet, "javascript"),+ highlight(schemaJson, "json")+ ]);++ const description = t.description+ ? t.description.charAt(0).toUpperCase() + t.description.slice(1)+ : "";++ return (+ <DocPage>+ <DocEyebrow>MCP · {mod.name}</DocEyebrow>+ <div className="mt-[8px] flex flex-wrap items-center gap-[12px]">+ <h1 className="m-0 break-all font-[family-name:var(--font-mono)] text-[25px] font-[560] leading-[120%] text-[#262323]">+ {t.name}+ </h1>+ <span+ className={`inline-flex shrink-0 items-center rounded-[6px] border px-[8px] py-[2px] font-[family-name:var(--font-mono)] text-[11px] font-semibold ${BADGE[t.classification]}`}+ >+ {t.classification}+ </span>+ </div>+ {description && <P>{description}.</P>}++ <H2 id="parameters">Parameters</H2>+ <Parameters schema={t.schema} />++ <H2 id="call">Call it</H2>+ <P>+ Invoke it through the <Code>call_tool</Code> meta-tool with its+ arguments:+ </P>+ <CodeBlock html={callHtml} code={callSnippet} label="call_tool" />++ <H2 id="schema">Input schema</H2>+ <P>The raw JSON Schema the tool validates its arguments against.</P>+ <CodeBlock html={schemaHtml} code={schemaJson} label="schema" />+ </DocPage>+ );+}diff --git a/apps/docs/app/mcp/tools/page.tsx b/apps/docs/app/mcp/tools/page.tsxnew file mode 100644index 0000000000..0e2e182293--- /dev/null+++ b/apps/docs/app/mcp/tools/page.tsx@@ -0,0 +1,113 @@+import type { Metadata } from "next";+import {+ Code,+ DocEyebrow,+ DocPage,+ DocTitle,+ H2,+ Lead,+ P,+ Row,+ Table+} from "@/components/api/doc";++export const metadata: Metadata = {+ title: "MCP Tools — Carbon",+ description:+ "Carbon's MCP server exposes 1,200+ tools through a lean discovery pattern."+};++const MODULES: [string, number][] = [+ ["Sales", 181],+ ["Items", 147],+ ["Production", 132],+ ["Inventory", 113],+ ["Purchasing", 109],+ ["Resources", 96],+ ["Quality", 85],+ ["Settings", 83],+ ["Accounting", 81],+ ["Shared", 50],+ ["People", 46],+ ["Invoicing", 34],+ ["Users", 26],+ ["Documents", 14],+ ["Account", 10]+];++export default function McpToolsPage() {+ return (+ <DocPage>+ <DocEyebrow>MCP</DocEyebrow>+ <DocTitle>Tools</DocTitle>+ <Lead>+ Carbon's MCP server exposes more than 1,200 tools across 15 modules —+ without flooding the assistant's context with all of them at once.+ </Lead>++ <H2 id="discovery">Tool discovery</H2>+ <P>+ Rather than list every tool, the server presents three meta-tools. The+ model uses them to find and load only the tools a task needs:+ </P>+ <Table>+ <Row head cols="150px 1fr" cells={["Meta-tool", "What it does"]} />+ <Row+ cols="150px 1fr"+ cells={[+ <Code key="s">search_tools</Code>,+ "Find tools by query, module, or classification."+ ]}+ />+ <Row+ cols="150px 1fr"+ cells={[+ <Code key="d">describe_tool</Code>,+ "Get a tool's input schema and description."+ ]}+ />+ <Row+ cols="150px 1fr"+ cells={[+ <Code key="c">call_tool</Code>,+ "Invoke a tool by name with its arguments."+ ]}+ />+ </Table>+ <P>+ A typical flow is <Code>search_tools</Code> → <Code>describe_tool</Code>{" "}+ → <Code>call_tool</Code>, which keeps the model's context lean no matter+ how large the catalog grows.+ </P>++ <H2 id="classification">Classification</H2>+ <P>Every tool is classified, so a client can gate actions by risk:</P>+ <Table>+ <Row head cols="130px 1fr 72px" cells={["Class", "Grants", "Count"]} />+ <Row+ cols="130px 1fr 72px"+ cells={[<Code key="r">READ</Code>, "Read rows", "617"]}+ />+ <Row+ cols="130px 1fr 72px"+ cells={[<Code key="w">WRITE</Code>, "Create & update rows", "438"]}+ />+ <Row+ cols="130px 1fr 72px"+ cells={[<Code key="x">DESTRUCTIVE</Code>, "Delete rows", "152"]}+ />+ </Table>++ <H2 id="modules">Modules</H2>+ <P>+ The catalog is grouped into 15 modules — browse them in the sidebar:+ </P>+ <Table>+ <Row head cols="1fr 72px" cells={["Module", "Tools"]} />+ {MODULES.map(([name, count]) => (+ <Row key={name} cols="1fr 72px" cells={[name, String(count)]} />+ ))}+ </Table>+ </DocPage>+ );+}diff --git a/apps/docs/app/not-found.tsx b/apps/docs/app/not-found.tsxnew file mode 100644index 0000000000..fd8f5c62e1--- /dev/null+++ b/apps/docs/app/not-found.tsx@@ -0,0 +1,120 @@+import type { Metadata } from "next";+import Link from "next/link";+import { MainHeader } from "@/components/main-header";++export const metadata: Metadata = {+ title: "Page not found — Carbon",+ description: "The page you’re looking for doesn’t exist or has moved."+};++const LINKS = [+ {+ label: "Guides",+ desc: "Hands-on tours of the core flows",+ href: "/guides/order"+ },+ {+ label: "Reference",+ desc: "Concepts, methods, and platform docs",+ href: "/docs"+ },+ {+ label: "API",+ desc: "REST resources for every table and view",+ href: "/api-reference"+ },+ { label: "MCP", desc: "Connect AI clients to your data", href: "/mcp" }+];++function Arrow() {+ return (+ <svg+ width="16"+ height="16"+ viewBox="0 0 16 16"+ fill="none"+ aria-hidden+ className="shrink-0 -translate-x-[2px] text-[rgba(38,35,35,0.38)] transition-all duration-200 group-hover:translate-x-0 group-hover:text-[#262323]"+ >+ <path+ d="M3 8h9M8.5 4.5 12 8l-3.5 3.5"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ );+}++export default function NotFound() {+ return (+ <div className="min-h-screen w-full bg-[#FBFBF9] pt-[64px]">+ <MainHeader />+ <main className="mx-auto flex min-h-[calc(100vh-64px)] w-full max-w-[720px] flex-col items-center justify-center px-[24px] pb-[100px] text-center">+ <p className="font-[family-name:var(--font-mono)] text-[12.5px] font-[600] uppercase tracking-[0.18em] text-[rgba(38,35,35,0.5)]">+ Error 404+ </p>++ {/* Ghosted numeral behind the headline for depth — the type-forward editorial look. */}+ <div className="relative mt-[12px] flex items-center justify-center">+ <span+ aria-hidden+ className="pointer-events-none absolute select-none font-[600] leading-none text-[180px] text-[rgba(38,35,35,0.05)] sm:text-[240px]"+ >+ 404+ </span>+ <h1 className="relative m-0 text-[clamp(34px,6vw,52px)] font-normal leading-[110%] text-ink">+ This page isn’t here+ </h1>+ </div>++ <p className="mt-[20px] max-w-[460px] text-[16px] leading-[165%] text-[rgba(38,35,35,0.7)]">+ The link may be broken or the page may have moved. Jump back into the+ docs below, or press{" "}+ <kbd className="inline-flex items-center rounded-[5px] border border-[#DEDEDA] bg-[#F5F5F2] px-[5px] py-[1px] font-[family-name:var(--font-mono)] text-[12px] text-[rgba(38,35,35,0.55)]">+ ⌘K+ </kbd>{" "}+ to search everything.+ </p>++ <div className="mt-[40px] grid w-full grid-cols-1 gap-[12px] sm:grid-cols-2">+ {LINKS.map((l) => (+ <Link+ key={l.href}+ href={l.href}+ className="group flex items-center justify-between gap-[12px] rounded-[12px] border border-[#E7E7E3] bg-[#FBFBF8] px-[18px] py-[15px] text-left no-underline shadow-[inset_0_1px_0_#fff] transition-colors hover:border-[#D9D9D3] hover:bg-white"+ >+ <span className="min-w-0">+ <span className="block text-[15px] font-[560] text-ink">+ {l.label}+ </span>+ <span className="mt-[3px] block text-[13.5px] leading-[150%] text-[rgba(38,35,35,0.6)]">+ {l.desc}+ </span>+ </span>+ <Arrow />+ </Link>+ ))}+ </div>++ <Link+ href="/guides/order"+ className="group relative mt-[36px] inline-flex h-[44px] items-center justify-center rounded-[8px] px-[20px] no-underline"+ >+ <span+ aria-hidden+ className="pointer-events-none absolute inset-0 rounded-[8px] cta-btn-dark"+ />+ <span+ aria-hidden+ className="pointer-events-none absolute inset-0 rounded-[8px] btn-dark-hover opacity-0 transition-opacity duration-200 ease-out group-hover:opacity-100"+ />+ <span className="text-on-dark relative z-10 text-[14px] font-[460] tracking-[0.15px]">+ Back to the guide+ </span>+ </Link>+ </main>+ </div>+ );+}diff --git a/apps/docs/app/reference.css b/apps/docs/app/reference.cssnew file mode 100644index 0000000000..3ba09cfca9--- /dev/null+++ b/apps/docs/app/reference.css@@ -0,0 +1,281 @@+/* ───────────────────────────────────────────────────────────────────────────+ * Editorial skin for the Reference (Fumadocs /docs) — make it read like the Guide:+ * warm paper, DM Sans, IBM Plex Mono warm-pill code, custom dot bullets, editorial+ * tables/cards/callouts, and a calmer brand-accented sidebar + TOC. The Fumadocs+ * `--fd-*` tokens are already mapped to the warm palette in global.css; this layers+ * the editorial *feel* on top. Content rules are scoped to `.prose` (Reference only);+ * chrome rules to the `#nd-*` layout ids — neither touches the Guide surface.+ * ─────────────────────────────────────────────────────────────────────────── */++/* ── Title + description (Fumadocs <DocsTitle>/<DocsDescription>) ───────────── */+.reference-title {+ font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;+ font-size: clamp(2rem, 4vw, 2.5rem) !important;+ line-height: 1.12 !important;+ letter-spacing: -0.005em;+ font-weight: 530 !important;+ color: #262323;+}+.reference-desc {+ font-size: 1.0625rem !important;+ line-height: 1.6;+ color: rgba(38, 35, 35, 0.62) !important;+}++/* ── Body headings ─────────────────────────────────────────────────────────── */+.prose :where(h2):not(:where([class~="not-prose"] *)) {+ font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;+ font-size: 1.5rem;+ font-weight: 560;+ letter-spacing: 0.005em;+ color: #262323;+ margin-top: 3rem;+}+.prose :where(h3):not(:where([class~="not-prose"] *)) {+ font-size: 1.125rem;+ font-weight: 560;+ color: #262323;+}++/* ── Body text ─────────────────────────────────────────────────────────────── */+.prose :where(p, li):not(:where([class~="not-prose"] *)) {+ font-size: 0.97rem;+ line-height: 1.72;+ color: rgba(38, 35, 35, 0.78);+}++/* ── Custom dot bullets (matches the Guide's list style) ───────────────────── */+.prose :where(ul):not(:where([class~="not-prose"] *)) {+ list-style: none;+ padding-left: 0;+}+.prose :where(ul) > li {+ position: relative;+ padding-left: 22px;+}+.prose :where(ul) > li::before {+ content: "";+ position: absolute;+ left: 0;+ top: 0.62em;+ width: 8px;+ height: 8px;+ border-radius: 24px;+ border: 1.5px solid rgba(190, 190, 190, 0.5);+ background: #f5f5f2;+ box-shadow: 0 1px 1px 0 #fff, inset 0 0 0.357px 1.071px #fff, inset 0 1.429px 0 0 #fff;+}+.prose :where(ul) > li::marker {+ content: none;+}++/* ── Inline code → a calm, low-contrast chip. Dense technical prose can have a+ * dozen identifiers per line; a solid dark fill turns that into a ransom note, so+ * inline stays quiet (ink on a whisper tint) while code blocks carry the dark. ── */+.prose :not(pre) > code {+ font-family: "Fira Code", ui-monospace, monospace;+ font-size: 0.82em;+ font-weight: 450;+ color: #2b2825;+ background: rgba(38, 35, 35, 0.055);+ border: 1px solid rgba(38, 35, 35, 0.08);+ border-radius: 5px;+ padding: 0.08em 0.36em;+ white-space: nowrap;+}+.prose :not(pre) > code::before,+.prose :not(pre) > code::after {+ content: none !important;+}++/* Fenced code → our dark API-playground panel. The MDX `pre` is overridden by+ * <MdxCodeBlock>, which wraps the shiki output in `pre.mdx-shiki`; the token+ * colors come from github-dark-default-default spans, the panel chrome from the wrapper. */+.prose pre.mdx-shiki {+ margin: 0 !important;+ padding: 11px 16px !important;+ padding-right: 64px !important;+ background: transparent !important;+ font-family: "Fira Code", ui-monospace, monospace !important;+ font-size: 12.5px !important;+ line-height: 1.55 !important;+ scrollbar-width: none;+}+.prose pre.mdx-shiki::-webkit-scrollbar {+ display: none;+}+.prose pre.mdx-shiki code {+ font-family: inherit !important;+ background: transparent !important;+ border: 0 !important;+ padding: 0 !important;+ box-shadow: none !important;+}+/* Dual-theme shiki tags each token with --shiki-light/--shiki-dark CSS vars instead+ * of a direct color (this is our own panel, not a fumadocs CodeBlock). Resolve the+ * var to the actual color so tokens aren't invisible on the dark panel. */+.prose pre.mdx-shiki code,+.prose pre.mdx-shiki code span {+ color: var(--shiki-light);+}++/* ── Tables → rounded warm frame, cream header, hairline rows ───────────────── */+.prose :where(table):not(:where([class~="not-prose"] *)) {+ border: 1px solid #e7e7e3;+ border-radius: 12px;+ border-collapse: separate;+ border-spacing: 0;+ overflow: hidden;+ font-size: 0.92rem;+ box-shadow: inset 0 1px 0 #fff;+}+.prose thead {+ background: #fbfbf8;+}+.prose th {+ text-align: left;+ font-weight: 560;+ color: #262323;+ padding: 0.7rem 1rem;+ border-bottom: 1px solid #e7e7e3;+}+.prose td {+ padding: 0.7rem 1rem;+ border-bottom: 1px solid #efefeb;+ color: rgba(38, 35, 35, 0.78);+}+.prose tbody tr:last-child td {+ border-bottom: none;+}++/* ── Blockquote + rule ─────────────────────────────────────────────────────── */+.prose :where(blockquote):not(:where([class~="not-prose"] *)) {+ border-left: 2px solid #d5d5d3;+ padding-left: 16px;+ font-style: italic;+ font-weight: 460;+ color: rgba(38, 35, 35, 0.62);+}+.prose blockquote p:first-of-type::before,+.prose blockquote p:last-of-type::after {+ content: none;+}+.prose :where(hr):not(:where([class~="not-prose"] *)) {+ border: none;+ border-top: 1px solid #e7e7e3;+ margin: 48px 0;+}++/* ── Links — ink, hairline underline that warms on hover ───────────────────── */+.prose :where(a):not(:where([class~="not-prose"] *)) {+ color: #262323;+ text-decoration: none;+ font-weight: inherit;+}+.prose :where(p, li) a {+ text-decoration: underline;+ text-decoration-color: #d5d5d3;+ text-underline-offset: 2px;+}+.prose :where(p, li) a:hover {+ text-decoration-color: #262323;+}++/* ═══ Chrome ════════════════════════════════════════════════════════════════ */++#nd-sidebar,+#nd-subnav,+#nd-toc {+ font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;+}++/* MainHeader is fixed at 64px. Reserve that height via Fumadocs' own variable so the+ * content padding, sidebar, and TOC all sit cleanly below the header. */+#nd-docs-layout {+ --fd-header-height: 64px;+}+#nd-sidebar {+ top: 64px !important;+ height: calc(100dvh - 64px) !important;+}+#nd-toc {+ top: 64px !important;+}+/* The content column starts behind the fixed 64px header (Fumadocs only pads it+ * 56px). Clear the header and leave a comfortable gap above the title. */+#nd-page {+ padding-top: 88px !important;+}++/* With nav: {} the sidebar wordmark is gone, leaving an orphaned "Collapse Sidebar"+ * toggle in an empty top row. Hide that row so search sits at the very top — the+ * conductor-style clean header. (Search is a separate row, unaffected.) */+#nd-sidebar :has(> button[aria-label="Collapse Sidebar"]) {+ display: none !important;+}++/* Sidebar: hairline divider + brand-accented active item */+#nd-sidebar {+ border-inline-end: 1px solid #e8e7e6;+}+#nd-sidebar a[data-active="true"] {+ color: #1e84b0 !important;+ background: rgba(0, 176, 255, 0.08) !important;+}+#nd-sidebar a[data-active="true"]::before {+ background: #00b0ff !important;+}++/* "Open Carbon" → dark CTA pill, mirroring the Guide header */+#nd-sidebar a[href^="https://app.carbon.ms"],+#nd-subnav a[href^="https://app.carbon.ms"] {+ justify-content: center;+ margin: 4px 8px;+ border-radius: 8px;+ background: linear-gradient(180deg, #3a3835 0%, #262323 100%);+ color: rgba(255, 255, 255, 0.92) !important;+ font-weight: 500;+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.45), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08),+ inset 0 1px 0 0 rgba(255, 255, 255, 0.1);+}+#nd-sidebar a[href^="https://app.carbon.ms"]:hover,+#nd-subnav a[href^="https://app.carbon.ms"]:hover {+ background: linear-gradient(180deg, #4a4845 0%, #363333 100%);+ color: #fff !important;+}++/* Sidebar wordmark — match the Guide logo weight */+#nd-sidebar a[href="/"] span,+#nd-subnav a[href="/"] span {+ font-weight: 580;+ letter-spacing: 0.16px;+ color: #262323;+}++/* Table of contents: mono eyebrow heading + brand-accented active line */+#nd-toc [data-toc] > p,+#nd-toc h3 {+ font-family: "IBM Plex Mono", ui-monospace, monospace !important;+ font-size: 10px !important;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: rgba(38, 35, 35, 0.42) !important;+}+#nd-toc a {+ color: rgba(38, 35, 35, 0.55);+ transition: color 150ms ease;+}+#nd-toc a:hover {+ color: #262323;+}+#nd-toc a[data-active="true"] {+ color: #1e84b0 !important;+}++/* Nav sidebar scroll affordance — fade the top edge so items dissolve under it as the+ * list scrolls up. (The bottom fade + chevron come from <NavScrollChevron>; only the+ * top is masked so the chevron at the bottom stays crisp.) */+.nav-scroll-fade {+ -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px);+ mask-image: linear-gradient(to bottom, transparent 0, #000 24px);+}diff --git a/apps/docs/components/api/api-nav.tsx b/apps/docs/components/api/api-nav.tsxnew file mode 100644index 0000000000..ec1f13da6c--- /dev/null+++ b/apps/docs/components/api/api-nav.tsx@@ -0,0 +1,177 @@+"use client";++import Link from "next/link";+import { usePathname } from "next/navigation";+import { useEffect, useRef, useState } from "react";+import type { NavModule } from "@/lib/api-data";++const METHOD_COLOR: Record<string, string> = {+ GET: "text-[#3F9142]",+ POST: "text-[#1E84B0]",+ PATCH: "text-[#9C7136]",+ DELETE: "text-[#B3261E]",+};+const METHOD_ABBR: Record<string, string> = {+ GET: "GET",+ POST: "POST",+ PUT: "PUT",+ PATCH: "PATCH",+ DELETE: "DEL",+};++const REST_API = [+ { label: "Introduction", href: "/api-reference" },+ { label: "Authentication", href: "/api-reference/authentication" },+];++const GS_ACTIVE = "bg-[rgba(0,176,255,0.10)] font-[530] text-[#1E84B0]";+const GS_IDLE = "text-[rgba(38,35,35,0.8)] hover:bg-[rgba(231,231,227,0.55)] hover:text-[#262323]";+const SECTION_LABEL =+ "m-0 mb-[3px] px-[8px] py-[6px] font-[family-name:var(--font-mono)] text-[12.5px] font-[600] uppercase tracking-[0.06em] text-[rgba(38,35,35,0.6)]";+const GS_LINK = "block rounded-[6px] px-[8px] py-[3.5px] text-[14.5px] leading-[135%] transition-colors";++function Chevron({ open }: { open: boolean }) {+ return (+ <svg+ width="11"+ height="11"+ viewBox="0 0 12 12"+ fill="none"+ className={`shrink-0 transition-transform duration-200 ${open ? "rotate-90" : ""}`}+ aria-hidden="true"+ >+ <path d="M4.5 3L7.5 6L4.5 9" stroke="rgba(38,35,35,0.48)" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ );+}++function ResourceIcon({ kind, active }: { kind: "table" | "view"; active?: boolean }) {+ const color = active ? "#1E84B0" : "rgba(38,35,35,0.46)";+ if (kind === "view") {+ return (+ <svg width="13" height="13" viewBox="0 0 16 16" fill="none" className="shrink-0" aria-label="view">+ <path d="M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8Z" stroke={color} strokeWidth="1.2" />+ <circle cx="8" cy="8" r="1.7" stroke={color} strokeWidth="1.2" />+ </svg>+ );+ }+ return (+ <svg width="13" height="13" viewBox="0 0 16 16" fill="none" className="shrink-0" aria-label="table">+ <rect x="2" y="2.5" width="12" height="11" rx="1.6" stroke={color} strokeWidth="1.2" />+ <path d="M2 6.1h12M2 9.9h12M6.2 6.1v7.4" stroke={color} strokeWidth="1.05" />+ </svg>+ );+}++export function ApiNav({ tree }: { tree: NavModule[] }) {+ const pathname = usePathname();+ const parts = pathname.split("/");+ const activeModule = parts[2];+ const activeResource = parts[3];++ const [open, setOpen] = useState<Set<string>>(() => new Set(activeModule ? [activeModule] : []));+ const activeRef = useRef<HTMLAnchorElement>(null);++ useEffect(() => {+ if (!activeModule) return;+ setOpen((prev) => (prev.has(activeModule) ? prev : new Set(prev).add(activeModule)));+ }, [activeModule]);+ useEffect(() => {+ activeRef.current?.scrollIntoView({ block: "center" });+ }, []);++ return (+ <div>+ <nav className="flex flex-col gap-[2px]">+ <div className="mb-[10px]">+ <p className={SECTION_LABEL}>REST API</p>+ {REST_API.map((item) => (+ <Link+ key={item.href}+ href={item.href}+ className={`${GS_LINK} ${pathname === item.href ? GS_ACTIVE : GS_IDLE}`}+ >+ {item.label}+ </Link>+ ))}+ </div>++ <p className={SECTION_LABEL}>Resources</p>+ {tree.map((m) => {+ const isOpen = open.has(m.slug);+ return (+ <div key={m.slug}>+ <button+ type="button"+ onClick={() =>+ setOpen((prev) => {+ const next = new Set(prev);+ if (next.has(m.slug)) next.delete(m.slug);+ else next.add(m.slug);+ return next;+ })+ }+ className="flex w-full items-center justify-between gap-[8px] rounded-[7px] px-[8px] py-[5px] transition-colors hover:bg-[rgba(231,231,227,0.5)]"+ >+ <span className="flex items-center gap-[7px]">+ <Chevron open={isOpen} />+ <span className="font-[family-name:var(--font-mono)] text-[12.5px] font-[600] uppercase tracking-[0.06em] text-[rgba(38,35,35,0.6)]">+ {m.name}+ </span>+ </span>+ <span className="font-[family-name:var(--font-mono)] text-[12px] tabular-nums text-[rgba(38,35,35,0.42)]">+ {m.resources.length}+ </span>+ </button>++ {isOpen && (+ <ul className="mt-[2px] mb-[6px] ml-[13px] list-none border-l border-[#ECECE7] py-[2px] pl-[8px]">+ {m.resources.map((r) => {+ const isActive = activeModule === m.slug && activeResource === r.slug;+ const href = `/api-reference/${m.slug}/${r.slug}`;+ return (+ <li key={r.slug}>+ <Link+ ref={isActive ? activeRef : undefined}+ href={href}+ title={`${r.name} · ${r.kind}`}+ className={`flex items-center gap-[7px] rounded-[6px] px-[8px] py-[3.5px] text-[14.5px] leading-[135%] transition-colors ${+ isActive ? GS_ACTIVE : GS_IDLE+ }`}+ >+ <ResourceIcon kind={r.kind} active={isActive} />+ <span className="truncate">{r.name}</span>+ </Link>+ {isActive && r.endpoints.length > 0 && (+ <ul className="m-0 mt-[2px] mb-[6px] list-none p-0">+ {r.endpoints.map((e) => (+ <li key={e.id}>+ <a+ href={`${href}#${e.id}`}+ className="flex items-center gap-[9px] rounded-[6px] py-[3px] pr-[8px] pl-[12px] text-[13px] text-[rgba(38,35,35,0.66)] transition-colors hover:text-[#262323]"+ >+ <span+ className={`w-[30px] shrink-0 font-[family-name:var(--font-mono)] text-[10px] font-semibold tracking-[0.03em] ${+ METHOD_COLOR[e.method] || ""+ }`}+ >+ {METHOD_ABBR[e.method] ?? e.method}+ </span>+ <span className="truncate">{e.title}</span>+ </a>+ </li>+ ))}+ </ul>+ )}+ </li>+ );+ })}+ </ul>+ )}+ </div>+ );+ })}+ </nav>+ </div>+ );+}diff --git a/apps/docs/components/api/base-url.tsx b/apps/docs/components/api/base-url.tsxnew file mode 100644index 0000000000..c72db547ff--- /dev/null+++ b/apps/docs/components/api/base-url.tsx@@ -0,0 +1,15 @@+"use client";++import { useApiConfig } from "./config-context";++/** Resource "Base URL" chip — reflects the configured API instance. */+export function BaseUrl({ path }: { path: string }) {+ const { base } = useApiConfig();+ return (+ <div className="mt-[18px] inline-flex items-center gap-[10px] rounded-[8px] border border-[#E7E7E3] bg-white px-[12px] py-[8px] font-[family-name:var(--font-mono)] text-[13.5px] text-[rgba(38,35,35,0.8)]">+ <span className="text-[rgba(38,35,35,0.5)]">Base</span>+ {base}+ {path}+ </div>+ );+}diff --git a/apps/docs/components/api/code-block.tsx b/apps/docs/components/api/code-block.tsxnew file mode 100644index 0000000000..a4cdf191f1--- /dev/null+++ b/apps/docs/components/api/code-block.tsx@@ -0,0 +1,42 @@+"use client";++import { useState } from "react";+import { applyConfig, useApiConfig } from "./config-context";++function CopyButton({ text }: { text: string }) {+ const [copied, setCopied] = useState(false);+ return (+ <button+ type="button"+ onClick={() => {+ navigator.clipboard?.writeText(text);+ setCopied(true);+ setTimeout(() => setCopied(false), 1400);+ }}+ className="absolute top-[10px] right-[10px] z-10 rounded-[6px] border border-[#3A3A38] bg-[#262624] px-[8px] py-[3px] font-[family-name:var(--font-mono)] text-[11px] text-[#C9C9C5] transition-colors hover:border-[#4A4A47] hover:text-white"+ >+ {copied ? "Copied" : "Copy"}+ </button>+ );+}++/** A standalone shiki-highlighted code block (intro / prose), dark panel + copy. */+export function CodeBlock({ html, code, label }: { html: string; code: string; label?: string }) {+ const { base, apiKey } = useApiConfig();+ return (+ <div className="my-[18px] overflow-hidden rounded-[12px] border border-[#2A2A28] bg-[#1B1B1A]">+ {label && (+ <div className="flex h-[38px] items-center border-b border-[#2A2A28] px-[14px]">+ <span className="font-[family-name:var(--font-mono)] text-[11.5px] tracking-[0.03em] text-[#9A9A96]">+ {label}+ </span>+ </div>+ )}+ <div className="relative">+ <CopyButton text={applyConfig(code, base, apiKey)} />+ {/* biome-ignore lint/security/noDangerouslySetInnerHtml: build-time shiki HTML */}+ <div className="api-shiki" dangerouslySetInnerHTML={{ __html: applyConfig(html, base, apiKey, true) }} />+ </div>+ </div>+ );+}diff --git a/apps/docs/components/api/code-panel.tsx b/apps/docs/components/api/code-panel.tsxnew file mode 100644index 0000000000..b46375d503--- /dev/null+++ b/apps/docs/components/api/code-panel.tsx@@ -0,0 +1,107 @@+"use client";++import { useState } from "react";+import type { ApiSamples } from "@/lib/api-types";+import { applyBase, applyConfig, useApiConfig } from "./config-context";+import { MethodBadge } from "./method-badge";++const LANGS: { key: keyof ApiSamples; label: string }[] = [+ { key: "curl", label: "cURL" },+ { key: "javascript", label: "JavaScript" },+ { key: "python", label: "Python" },+ { key: "go", label: "Go" },+];++function CopyButton({ text }: { text: string }) {+ const [copied, setCopied] = useState(false);+ return (+ <button+ type="button"+ onClick={() => {+ navigator.clipboard?.writeText(text);+ setCopied(true);+ setTimeout(() => setCopied(false), 1400);+ }}+ className="absolute top-[10px] right-[10px] z-10 rounded-[6px] border border-[#3A3A38] bg-[#262624] px-[8px] py-[3px] font-[family-name:var(--font-mono)] text-[11px] text-[#C9C9C5] transition-colors hover:border-[#4A4A47] hover:text-white"+ >+ {copied ? "Copied" : "Copy"}+ </button>+ );+}++function Panel({ children }: { children: React.ReactNode }) {+ return (+ <div className="overflow-hidden rounded-[12px] border border-[#0e2a3f] bg-[#011627] shadow-[0_1px_2px_rgba(0,0,0,0.06)]">+ {children}+ </div>+ );+}++export function CodePanel({+ samples,+ highlighted,+ method,+ fullPath,+ response,+ responseHtml,+}: {+ samples: ApiSamples;+ highlighted: Record<keyof ApiSamples, string>;+ method: string;+ fullPath: string;+ response: string;+ responseHtml: string;+}) {+ const [lang, setLang] = useState<keyof ApiSamples>("curl");+ const { base, apiKey } = useApiConfig();++ return (+ <div className="sticky top-[88px] flex flex-col gap-[16px]">+ <Panel>+ <div className="flex h-[44px] items-center justify-between gap-[8px] border-b border-[#0e2a3f] pr-[10px] pl-[14px]">+ <div className="flex min-w-0 items-center gap-[8px]">+ <MethodBadge method={method} />+ <span className="truncate font-[family-name:var(--font-mono)] text-[12px] text-[#9A9A96]">+ {applyBase(fullPath, base)}+ </span>+ </div>+ <div className="flex shrink-0 items-center gap-[2px]">+ {LANGS.map((l) => (+ <button+ key={l.key}+ type="button"+ onClick={() => setLang(l.key)}+ className={`rounded-[6px] px-[8px] py-[4px] text-[12px] transition-colors ${+ lang === l.key ? "bg-[#2E2E2B] text-white" : "text-[#8C8C88] hover:text-[#C9C9C5]"+ }`}+ >+ {l.label}+ </button>+ ))}+ </div>+ </div>+ <div className="relative">+ <CopyButton text={applyConfig(samples[lang], base, apiKey)} />+ {/* biome-ignore lint/security/noDangerouslySetInnerHtml: build-time shiki HTML */}+ <div className="api-shiki" dangerouslySetInnerHTML={{ __html: applyConfig(highlighted[lang], base, apiKey, true) }} />+ </div>+ </Panel>++ {response ? (+ <Panel>+ <div className="flex h-[40px] items-center border-b border-[#0e2a3f] px-[14px]">+ <span className="font-[family-name:var(--font-mono)] text-[12px] tracking-[0.04em] text-[#9A9A96]">+ Response+ </span>+ </div>+ {/* biome-ignore lint/security/noDangerouslySetInnerHtml: build-time shiki HTML */}+ <div className="api-shiki-response" dangerouslySetInnerHTML={{ __html: responseHtml }} />+ </Panel>+ ) : (+ <div className="rounded-[10px] border border-[#E7E7E3] bg-[#FBFBF8] px-[14px] py-[12px] font-[family-name:var(--font-mono)] text-[13px] text-[rgba(38,35,35,0.63)]">+ 204 No Content+ </div>+ )}+ </div>+ );+}diff --git a/apps/docs/components/api/config-context.tsx b/apps/docs/components/api/config-context.tsxnew file mode 100644index 0000000000..5904228919--- /dev/null+++ b/apps/docs/components/api/config-context.tsx@@ -0,0 +1,119 @@+"use client";++import { createContext, useContext, useEffect, useState } from "react";++export const DEFAULT_API_BASE = "https://rest.carbon.ms";+const BASE_STORAGE_KEY = "carbon-api-base";+const KEY_STORAGE_KEY = "carbon-api-key";+const API_KEY_PLACEHOLDER = "<api-key>";++type Ctx = {+ base: string;+ setBase: (v: string) => void;+ isDefault: boolean;+ apiKey: string;+ setApiKey: (v: string) => void;+};+const ApiConfigCtx = createContext<Ctx>({+ base: DEFAULT_API_BASE,+ setBase: () => {},+ isDefault: true,+ apiKey: "",+ setApiKey: () => {},+});++export function ApiConfigProvider({ children }: { children: React.ReactNode }) {+ const [base, setBaseState] = useState(DEFAULT_API_BASE);+ const [apiKey, setApiKeyState] = useState("");++ useEffect(() => {+ try {+ const savedBase = localStorage.getItem(BASE_STORAGE_KEY);+ if (savedBase) setBaseState(savedBase);+ const savedKey = localStorage.getItem(KEY_STORAGE_KEY);+ if (savedKey) setApiKeyState(savedKey);+ } catch {}+ }, []);++ const setBase = (v: string) => {+ const val = (v || "").trim().replace(/\/+$/, "") || DEFAULT_API_BASE;+ setBaseState(val);+ try {+ localStorage.setItem(BASE_STORAGE_KEY, val);+ } catch {}+ };++ const setApiKey = (v: string) => {+ const val = (v || "").trim();+ setApiKeyState(val);+ try {+ if (val) localStorage.setItem(KEY_STORAGE_KEY, val);+ else localStorage.removeItem(KEY_STORAGE_KEY);+ } catch {}+ };++ return (+ <ApiConfigCtx.Provider+ value={{ base, setBase, isDefault: base === DEFAULT_API_BASE, apiKey, setApiKey }}+ >+ {children}+ </ApiConfigCtx.Provider>+ );+}++export const useApiConfig = () => useContext(ApiConfigCtx);++/** Rewrite the default base URL in a sample to the configured instance. */+export function applyBase(text: string, base: string): string {+ if (!text || base === DEFAULT_API_BASE) return text;+ return text.split(DEFAULT_API_BASE).join(base);+}++// The MCP server lives on the app host (app.carbon.ms), a sibling of the REST API+// host (rest.carbon.ms) the configurator controls. Derive the instance's MCP+// endpoint from the configured base by swapping the `rest.` subdomain for `app.`.+export const DEFAULT_MCP_ENDPOINT = "https://app.carbon.ms/api/mcp";++/** App host for the configured instance (where Settings and the MCP server live).+ * The configurator controls the REST host (rest.*); the app host swaps that subdomain. */+export function appOrigin(base: string): string {+ if (base === DEFAULT_API_BASE) return "https://app.carbon.ms";+ try {+ const u = new URL(base);+ u.hostname = u.hostname.replace(/^rest\./, "app.");+ return u.origin;+ } catch {+ return "https://app.carbon.ms";+ }+}++function mcpEndpointFor(base: string): string {+ return `${appOrigin(base)}/api/mcp`;+}++function escapeHtml(s: string): string {+ return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");+}++/**+ * Apply the configured base URL and API key to a sample. Pass `html: true` when `text`+ * is shiki-highlighted HTML — there the `<api-key>` placeholder is entity-escaped to+ * `<api-key>`, and the substituted key must be escaped too.+ */+export function applyConfig(text: string, base: string, apiKey: string, html = false): string {+ let out = applyBase(text, base);+ out = out.split(DEFAULT_MCP_ENDPOINT).join(mcpEndpointFor(base));+ if (apiKey) {+ if (html) {+ const keyEsc = escapeHtml(apiKey);+ // Shiki encodes the placeholder's angle brackets as hex entities (<);+ // also cover decimal (<) and named (<) so substitution is encoding-proof.+ for (const needle of ["<api-key>", "<api-key>", "<api-key>"]) {+ out = out.split(needle).join(keyEsc);+ }+ } else {+ out = out.split(API_KEY_PLACEHOLDER).join(apiKey);+ }+ }+ return out;+}diff --git a/apps/docs/components/api/config-inline.tsx b/apps/docs/components/api/config-inline.tsxnew file mode 100644index 0000000000..5695dec6ae--- /dev/null+++ b/apps/docs/components/api/config-inline.tsx@@ -0,0 +1,27 @@+"use client";++import type { ReactNode } from "react";+import { appOrigin, useApiConfig } from "./config-context";+import { Code, DocLink } from "./doc";++/* Reactive inline references for prose — they read the Configurator (api key + base+ * URL) so the MCP endpoint, auth header, and Settings link match the instance the+ * reader configured, everywhere they appear (not just in the code blocks). */++/** Inline MCP endpoint for the configured instance. */+export function McpEndpoint() {+ const { base } = useApiConfig();+ return <Code>{`${appOrigin(base)}/api/mcp`}</Code>;+}++/** Inline bearer-auth header carrying the configured API key (placeholder if unset). */+export function AuthHeader() {+ const { apiKey } = useApiConfig();+ return <Code>Authorization: Bearer {apiKey || "<api-key>"}</Code>;+}++/** Settings → API Keys link on the configured instance's app host. */+export function ApiKeysLink({ children }: { children: ReactNode }) {+ const { base } = useApiConfig();+ return <DocLink href={`${appOrigin(base)}/x/settings/api-keys`}>{children}</DocLink>;+}diff --git a/apps/docs/components/api/configurator.tsx b/apps/docs/components/api/configurator.tsxnew file mode 100644index 0000000000..f9c0178842--- /dev/null+++ b/apps/docs/components/api/configurator.tsx@@ -0,0 +1,295 @@+"use client";++import * as Dialog from "@radix-ui/react-dialog";+import { useState } from "react";+import { DEFAULT_API_BASE, useApiConfig } from "./config-context";++function ServerIcon({ className }: { className?: string }) {+ return (+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" className={`shrink-0 ${className ?? ""}`}>+ <rect x="2" y="2.5" width="12" height="4.5" rx="1.2" stroke="currentColor" strokeWidth="1.2" />+ <rect x="2" y="9" width="12" height="4.5" rx="1.2" stroke="currentColor" strokeWidth="1.2" />+ <circle cx="4.6" cy="4.75" r="0.7" fill="currentColor" />+ <circle cx="4.6" cy="11.25" r="0.7" fill="currentColor" />+ </svg>+ );+}++function KeyIcon({ className }: { className?: string }) {+ return (+ <svg width="13" height="13" viewBox="0 0 16 16" fill="none" className={`shrink-0 ${className ?? ""}`}>+ <circle cx="5.5" cy="5.5" r="3" stroke="currentColor" strokeWidth="1.3" />+ <path d="M7.6 7.6 13 13M11 11l1.4-1.4M9.6 9.6 11 8.2" stroke="currentColor" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ );+}++function Check({ className }: { className?: string }) {+ return (+ <svg width="13" height="13" viewBox="0 0 14 14" fill="none" className={`shrink-0 ${className ?? ""}`}>+ <path d="M3 7.2l2.6 2.6L11 4.4" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ );+}++function EyeIcon({ off }: { off: boolean }) {+ return (+ <svg width="15" height="15" viewBox="0 0 16 16" fill="none" aria-hidden>+ <path d="M1.5 8S3.8 3.8 8 3.8 14.5 8 14.5 8 12.2 12.2 8 12.2 1.5 8 1.5 8Z" stroke="currentColor" strokeWidth="1.2" />+ <circle cx="8" cy="8" r="1.9" stroke="currentColor" strokeWidth="1.2" />+ {off && <path d="M2.5 2.5l11 11" stroke="currentColor" strokeWidth="1.2" strokeLinecap="round" />}+ </svg>+ );+}++/** Validate/normalize a user-entered base URL. Returns the cleaned URL or an error message. */+function parseBaseUrl(raw: string): { url: string } | { error: string } {+ const v = raw.trim();+ if (!v) return { error: "Enter a URL" };+ const withScheme = /^https?:\/\//i.test(v) ? v : `https://${v}`;+ let u: URL;+ try {+ u = new URL(withScheme);+ } catch {+ return { error: "Not a valid URL" };+ }+ if (u.protocol !== "http:" && u.protocol !== "https:") {+ return { error: "Use http:// or https://" };+ }+ const host = u.hostname;+ const isIp = /^\d{1,3}(\.\d{1,3}){3}$/.test(host);+ if (host !== "localhost" && !isIp && !host.includes(".")) {+ return { error: "Enter a valid host (e.g. rest.carbon.ms)" };+ }+ return { url: (u.origin + u.pathname).replace(/\/+$/, "") };+}++function ModeCard({+ active,+ onClick,+ title,+ sub,+}: {+ active: boolean;+ onClick: () => void;+ title: string;+ sub: string;+}) {+ return (+ <button+ type="button"+ onClick={onClick}+ className={`relative flex flex-col items-start gap-[2px] rounded-[10px] border px-[12px] py-[10px] text-left transition-colors ${+ active+ ? "border-[#00B0FF] bg-[rgba(0,176,255,0.07)]"+ : "border-[#E3E3DF] bg-white hover:border-[#CFCFC9]"+ }`}+ >+ <span className={`text-[13.5px] font-[560] ${active ? "text-[#1E84B0]" : "text-[#262323]"}`}>+ {title}+ </span>+ <span className="font-[family-name:var(--font-mono)] text-[11.5px] text-[rgba(38,35,35,0.5)]">+ {sub}+ </span>+ {active && <Check className="absolute right-[10px] top-[10px] text-[#1E84B0]" />}+ </button>+ );+}++export function Configurator() {+ const { base, setBase, isDefault, apiKey, setApiKey } = useApiConfig();+ const [open, setOpen] = useState(false);+ const [mode, setMode] = useState<"cloud" | "self">("cloud");+ const [url, setUrl] = useState("");+ const [key, setKey] = useState("");+ const [showKey, setShowKey] = useState(false);+ const [urlError, setUrlError] = useState("");+ const host = base.replace(/^https?:\/\//, "");++ // Seed the draft from current config whenever the dialog opens.+ const onOpenChange = (next: boolean) => {+ if (next) {+ setMode(isDefault ? "cloud" : "self");+ setUrl(isDefault ? "" : base);+ setKey(apiKey);+ setShowKey(false);+ setUrlError("");+ }+ setOpen(next);+ };++ const save = () => {+ if (mode === "self") {+ const result = parseBaseUrl(url);+ if ("error" in result) {+ setUrlError(result.error);+ return;+ }+ setBase(result.url);+ } else {+ setBase(DEFAULT_API_BASE);+ }+ setApiKey(key);+ setOpen(false);+ };++ const reset = () => {+ setMode("cloud");+ setUrl("");+ setKey("");+ setUrlError("");+ };++ return (+ <Dialog.Root open={open} onOpenChange={onOpenChange}>+ <Dialog.Trigger asChild>+ <button+ type="button"+ className="group mb-[14px] flex w-full items-center gap-[8px] rounded-[8px] border border-[#E3E3DF] bg-white px-[10px] py-[8px] text-left text-[rgba(38,35,35,0.58)] transition-colors hover:border-[#CFCFC9] data-[state=open]:border-[#CFCFC9]"+ >+ <ServerIcon />+ <span className="min-w-0 flex-1 truncate font-[family-name:var(--font-mono)] text-[13px] text-[#262323]">+ {host}+ </span>+ {apiKey && (+ <span+ title="API key set"+ className="inline-flex items-center gap-[3px] rounded-[5px] bg-[rgba(79,145,64,0.12)] px-[5px] py-[2px] text-[#4F9140]"+ >+ <KeyIcon />+ </span>+ )}+ <svg+ className="shrink-0 text-[rgba(38,35,35,0.48)] transition-transform group-data-[state=open]:rotate-180"+ width="11"+ height="11"+ viewBox="0 0 12 12"+ fill="none"+ >+ <path d="M3 4.5L6 7.5L9 4.5" stroke="currentColor" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ </button>+ </Dialog.Trigger>++ <Dialog.Portal>+ <Dialog.Overlay className="fixed inset-0 z-[100] bg-[rgba(38,35,35,0.32)] backdrop-blur-[2px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" />+ <Dialog.Content className="fixed left-1/2 top-[50%] z-[101] flex w-[calc(100vw-32px)] max-w-[440px] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-[14px] border border-[#E3E3DF] bg-[#FBFBF8] shadow-[0_24px_60px_-12px_rgba(38,35,35,0.28)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95">+ {/* Header */}+ <div className="flex items-start justify-between gap-[12px] border-b border-[#EAEAE6] px-[20px] py-[16px]">+ <div>+ <Dialog.Title className="m-0 text-[16px] font-[560] text-ink">API configuration</Dialog.Title>+ <Dialog.Description className="m-0 mt-[3px] text-[13px] leading-[150%] text-[rgba(38,35,35,0.6)]">+ Tune the base URL and key used across the code samples.+ </Dialog.Description>+ </div>+ <Dialog.Close+ aria-label="Close"+ className="-mr-[4px] -mt-[2px] shrink-0 rounded-[7px] p-[5px] text-[rgba(38,35,35,0.5)] transition-colors hover:bg-[rgba(231,231,227,0.7)] hover:text-[#262323]"+ >+ <svg width="15" height="15" viewBox="0 0 16 16" fill="none" aria-hidden>+ <path d="M4 4l8 8M12 4l-8 8" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" />+ </svg>+ </Dialog.Close>+ </div>++ {/* Body */}+ <div className="flex flex-col gap-[18px] px-[20px] py-[18px]">+ <section>+ <p className="m-0 mb-[8px] font-[family-name:var(--font-mono)] text-[11px] font-[600] uppercase tracking-[0.07em] text-[rgba(38,35,35,0.5)]">+ Environment+ </p>+ <div className="grid grid-cols-2 gap-[8px]">+ <ModeCard active={mode === "cloud"} onClick={() => setMode("cloud")} title="Carbon Cloud" sub="rest.carbon.ms" />+ <ModeCard active={mode === "self"} onClick={() => setMode("self")} title="Self-hosted" sub="Your instance" />+ </div>+ {mode === "self" && (+ <div className="mt-[8px]">+ <input+ value={url}+ autoFocus+ onChange={(e) => {+ setUrl(e.target.value);+ if (urlError) setUrlError("");+ }}+ onKeyDown={(e) => {+ if (e.key === "Enter") save();+ }}+ placeholder="https://api.your-domain.com"+ aria-invalid={!!urlError}+ className={`w-full rounded-[8px] border bg-white px-[11px] py-[9px] font-[family-name:var(--font-mono)] text-[12.5px] text-[#262323] outline-none placeholder:text-[rgba(38,35,35,0.42)] ${+ urlError ? "border-[#E5484D] focus:border-[#E5484D]" : "border-[#E3E3DF] focus:border-[#00B0FF]"+ }`}+ />+ {urlError && (+ <p className="mt-[5px] text-[11.5px] leading-[1.3] text-[#E5484D]">{urlError}</p>+ )}+ </div>+ )}+ </section>++ <section>+ <p className="m-0 mb-[8px] font-[family-name:var(--font-mono)] text-[11px] font-[600] uppercase tracking-[0.07em] text-[rgba(38,35,35,0.5)]">+ API key+ </p>+ <div className="relative">+ <input+ value={key}+ onChange={(e) => setKey(e.target.value)}+ onKeyDown={(e) => {+ if (e.key === "Enter") save();+ }}+ type={showKey ? "text" : "password"}+ placeholder="crbn_…"+ autoComplete="off"+ spellCheck={false}+ className="w-full rounded-[8px] border border-[#E3E3DF] bg-white py-[9px] pl-[11px] pr-[38px] font-[family-name:var(--font-mono)] text-[12.5px] text-[#262323] outline-none transition-colors placeholder:text-[rgba(38,35,35,0.42)] focus:border-[#00B0FF]"+ />+ {key && (+ <button+ type="button"+ aria-label={showKey ? "Hide key" : "Show key"}+ onClick={() => setShowKey((s) => !s)}+ className="absolute right-[6px] top-1/2 -translate-y-1/2 rounded-[6px] p-[5px] text-[rgba(38,35,35,0.5)] transition-colors hover:bg-[rgba(231,231,227,0.7)] hover:text-[#262323]"+ >+ <EyeIcon off={showKey} />+ </button>+ )}+ </div>+ <p className="m-0 mt-[7px] text-[12px] leading-[150%] text-[rgba(38,35,35,0.55)]">+ Stored in this browser only and dropped into the samples. Never sent to Carbon.{" "}+ <a+ href="https://app.carbon.ms/x/settings/api-keys"+ target="_blank"+ rel="noreferrer"+ className="text-[#1E84B0] no-underline hover:underline"+ >+ Create a key ↗+ </a>+ </p>+ </section>+ </div>++ {/* Footer */}+ <div className="flex items-center justify-between gap-[10px] border-t border-[#EAEAE6] px-[20px] py-[14px]">+ <button+ type="button"+ onClick={reset}+ className="rounded-[8px] px-[10px] py-[8px] text-[13px] font-[460] text-[rgba(38,35,35,0.6)] transition-colors hover:bg-[rgba(231,231,227,0.7)] hover:text-[#262323]"+ >+ Reset to defaults+ </button>+ <button+ type="button"+ onClick={save}+ className="group relative inline-flex h-[38px] items-center justify-center rounded-[8px] px-[18px]"+ >+ <span aria-hidden className="pointer-events-none absolute inset-0 rounded-[8px] cta-btn-dark" />+ <span aria-hidden className="pointer-events-none absolute inset-0 rounded-[8px] btn-dark-hover opacity-0 transition-opacity duration-200 ease-out group-hover:opacity-100" />+ <span className="text-on-dark relative z-10 text-[13.5px] font-[460] tracking-[0.15px]">Save</span>+ </button>+ </div>+ </Dialog.Content>+ </Dialog.Portal>+ </Dialog.Root>+ );+}diff --git a/apps/docs/components/api/doc.tsx b/apps/docs/components/api/doc.tsxnew file mode 100644index 0000000000..24fc3a07ff--- /dev/null+++ b/apps/docs/components/api/doc.tsx@@ -0,0 +1,87 @@+import type { ReactNode } from "react";++export function DocPage({ children }: { children: ReactNode }) {+ return <div className="max-w-[760px]">{children}</div>;+}++export function DocEyebrow({ children }: { children: ReactNode }) {+ return (+ <p className="m-0 font-[family-name:var(--font-mono)] text-[12px] font-medium uppercase tracking-[0.08em] text-[rgba(38,35,35,0.5)]">+ {children}+ </p>+ );+}++export function DocTitle({ children }: { children: ReactNode }) {+ return <h1 className="m-0 mt-[8px] text-[34px] font-[560] leading-[120%] text-[#262323]">{children}</h1>;+}++export function Lead({ children }: { children: ReactNode }) {+ return (+ <p className="m-0 mt-[12px] max-w-[640px] text-[16.5px] leading-[170%] text-[rgba(38,35,35,0.82)]">+ {children}+ </p>+ );+}++export function H2({ children, id }: { children: ReactNode; id?: string }) {+ return (+ <h2+ id={id}+ className="m-0 mt-[44px] mb-[2px] scroll-mt-[88px] text-[22px] font-[560] leading-[130%] text-[#262323]"+ >+ {children}+ </h2>+ );+}++export function P({ children }: { children: ReactNode }) {+ return <p className="m-0 mt-[12px] text-[15.5px] leading-[170%] text-[rgba(38,35,35,0.82)]">{children}</p>;+}++export function Code({ children }: { children: ReactNode }) {+ return <code className="font-[family-name:var(--font-mono)] text-[13.5px] text-[#a76451]">{children}</code>;+}++export function DocLink({ href, children }: { href: string; children: ReactNode }) {+ return (+ <a+ href={href}+ className="text-[#1E84B0] underline decoration-[#A9DAF3] underline-offset-2 hover:decoration-[#1E84B0]"+ >+ {children}+ </a>+ );+}++export function Warn({ title, children }: { title: string; children: ReactNode }) {+ return (+ <div className="my-[18px] rounded-[12px] border border-[#E6CFA3] bg-[#FFF8EC] px-[16px] py-[13px]">+ <p className="m-0 text-[14.5px] font-[560] text-[#8a5a1f]">{title}</p>+ <p className="m-0 mt-[4px] text-[14px] leading-[155%] text-[rgba(38,35,35,0.78)]">{children}</p>+ </div>+ );+}++export function Table({ children }: { children: ReactNode }) {+ return (+ <div className="my-[18px] overflow-hidden rounded-[10px] border border-[#E3E3DF]">{children}</div>+ );+}++export function Row({ cells, cols, head = false }: { cells: ReactNode[]; cols: string; head?: boolean }) {+ return (+ <div className="grid border-t border-[#E3E3DF] first:border-t-0" style={{ gridTemplateColumns: cols }}>+ {cells.map((c, i) => (+ <div+ key={i}+ className={`px-[12px] py-[9px] text-[14px] leading-[150%] ${+ head ? "font-[560] text-[#262323]" : "text-[rgba(38,35,35,0.82)]"+ } ${i > 0 ? "border-l border-[#E3E3DF]" : ""}`}+ >+ {c}+ </div>+ ))}+ </div>+ );+}diff --git a/apps/docs/components/api/docs-nav.tsx b/apps/docs/components/api/docs-nav.tsxnew file mode 100644index 0000000000..1c857aa2f8--- /dev/null+++ b/apps/docs/components/api/docs-nav.tsx@@ -0,0 +1,99 @@+"use client";++import Link from "next/link";+import { usePathname } from "next/navigation";+import { useState } from "react";++export type DocsNavNode = { label: string; url?: string; children?: DocsNavNode[] };++const GS_ACTIVE = "bg-[rgba(0,176,255,0.10)] font-[530] text-[#1E84B0]";+const GS_IDLE = "text-[rgba(38,35,35,0.8)] hover:bg-[rgba(231,231,227,0.55)] hover:text-[#262323]";+const GS_LINK = "block rounded-[6px] px-[8px] py-[4px] text-[14.5px] leading-[135%] transition-colors";+const SECTION_LABEL =+ "font-[family-name:var(--font-mono)] text-[12.5px] font-[600] uppercase tracking-[0.06em] text-[rgba(38,35,35,0.6)]";++function Chevron({ open }: { open: boolean }) {+ return (+ <svg+ width="11"+ height="11"+ viewBox="0 0 12 12"+ fill="none"+ className={`shrink-0 transition-transform duration-200 ${open ? "rotate-90" : ""}`}+ aria-hidden="true"+ >+ <path d="M4.5 3L7.5 6L4.5 9" stroke="rgba(38,35,35,0.48)" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ );+}++export function DocsNav({ tree }: { tree: DocsNavNode[] }) {+ const pathname = usePathname();+ const [collapsed, setCollapsed] = useState<Set<string>>(() => new Set());++ const isActive = (url?: string) => !!url && pathname === url;++ return (+ <nav className="flex flex-col gap-[2px]">+ {tree.map((node) => {+ if (!node.children?.length) {+ return (+ <Link+ key={node.label}+ href={node.url ?? "#"}+ className={`${GS_LINK} ${isActive(node.url) ? GS_ACTIVE : GS_IDLE}`}+ >+ {node.label}+ </Link>+ );+ }++ const isOpen = !collapsed.has(node.label);+ return (+ <div key={node.label} className="mt-[8px] first:mt-[2px]">+ <button+ type="button"+ onClick={() =>+ setCollapsed((prev) => {+ const next = new Set(prev);+ if (next.has(node.label)) next.delete(node.label);+ else next.add(node.label);+ return next;+ })+ }+ className="flex w-full items-center gap-[7px] rounded-[7px] px-[8px] py-[5px] transition-colors hover:bg-[rgba(231,231,227,0.5)]"+ >+ <Chevron open={isOpen} />+ <span className={SECTION_LABEL}>{node.label}</span>+ </button>++ {isOpen && (+ <ul className="mt-[2px] mb-[2px] ml-[13px] list-none border-l border-[#ECECE7] py-[2px] pl-[8px]">+ {node.url && (+ <li>+ <Link+ href={node.url}+ className={`${GS_LINK} ${isActive(node.url) ? GS_ACTIVE : GS_IDLE}`}+ >+ Overview+ </Link>+ </li>+ )}+ {node.children.map((child) => (+ <li key={child.label}>+ <Link+ href={child.url ?? "#"}+ className={`${GS_LINK} ${isActive(child.url) ? GS_ACTIVE : GS_IDLE}`}+ >+ {child.label}+ </Link>+ </li>+ ))}+ </ul>+ )}+ </div>+ );+ })}+ </nav>+ );+}diff --git a/apps/docs/components/api/endpoint-section.tsx b/apps/docs/components/api/endpoint-section.tsxnew file mode 100644index 0000000000..9fd15b43a0--- /dev/null+++ b/apps/docs/components/api/endpoint-section.tsx@@ -0,0 +1,53 @@+import type { ApiEndpoint } from "@/lib/api-types";+import { highlight } from "@/lib/highlight";+import { CodePanel } from "./code-panel";+import { Fields } from "./fields";+import { MethodBadge } from "./method-badge";++export async function EndpointSection({ endpoint, base }: { endpoint: ApiEndpoint; base: string }) {+ const [curl, javascript, python, go, responseHtml] = await Promise.all([+ highlight(endpoint.samples.curl, "curl"),+ highlight(endpoint.samples.javascript, "javascript"),+ highlight(endpoint.samples.python, "python"),+ highlight(endpoint.samples.go, "go"),+ highlight(endpoint.response, "json"),+ ]);++ const bodyTitle =+ endpoint.kind === "create" || endpoint.kind === "update" ? "Body parameters" : "Attributes";++ return (+ <section+ id={endpoint.id}+ className="grid scroll-mt-[88px] grid-cols-1 gap-x-[56px] gap-y-[24px] border-t border-[#E7E7E3] py-[44px] lg:grid-cols-2"+ >+ <div className="min-w-0">+ <div className="flex items-center gap-[10px]">+ <MethodBadge method={endpoint.method} />+ <code className="font-[family-name:var(--font-mono)] text-[13.5px] text-[rgba(38,35,35,0.63)]">+ {endpoint.path}+ </code>+ </div>+ <h2 className="m-0 mt-[14px] text-[24px] font-[560] leading-[130%] text-[#262323]">+ {endpoint.title}+ </h2>+ <p className="m-0 mt-[10px] text-[15.5px] leading-[160%] text-[rgba(38,35,35,0.8)]">+ {endpoint.description}+ </p>+ <Fields title="Query parameters" query={endpoint.query} />+ <Fields title={bodyTitle} attributes={endpoint.attributes} />+ </div>++ <div className="min-w-0">+ <CodePanel+ samples={endpoint.samples}+ highlighted={{ curl, javascript, python, go }}+ method={endpoint.method}+ fullPath={`${base}${endpoint.path}`}+ response={endpoint.response}+ responseHtml={responseHtml}+ />+ </div>+ </section>+ );+}diff --git a/apps/docs/components/api/faq.tsx b/apps/docs/components/api/faq.tsxnew file mode 100644index 0000000000..3488f8cf56--- /dev/null+++ b/apps/docs/components/api/faq.tsx@@ -0,0 +1,48 @@+"use client";++import { useState } from "react";++export type FaqEntry = { q: string; a: string };++function FaqItem({ q, a }: FaqEntry) {+ const [open, setOpen] = useState(false);+ return (+ <div className="rounded-[10px] border border-[#E7E7E3] bg-white transition-colors hover:border-[#D6D6D0]">+ <button+ type="button"+ aria-expanded={open}+ onClick={() => setOpen((o) => !o)}+ className="flex w-full items-center justify-between gap-[12px] px-[16px] py-[13px] text-left"+ >+ <span className="text-[14.5px] font-[560] text-[#262323]">{q}</span>+ <span+ className={`shrink-0 text-[19px] leading-none text-[#1E84B0] transition-transform duration-200 ${+ open ? "rotate-45" : ""+ }`}+ aria-hidden="true"+ >+ ++ </span>+ </button>+ <div+ className={`grid overflow-hidden transition-[grid-template-rows] duration-200 ease-out ${+ open ? "grid-rows-[1fr]" : "grid-rows-[0fr]"+ }`}+ >+ <div className="min-h-0 overflow-hidden">+ <p className="m-0 px-[16px] pb-[14px] text-[14px] leading-[165%] text-[rgba(38,35,35,0.7)]">{a}</p>+ </div>+ </div>+ </div>+ );+}++export function Faq({ items }: { items: FaqEntry[] }) {+ return (+ <div className="mt-[16px] flex flex-col gap-[8px]">+ {items.map((it) => (+ <FaqItem key={it.q} q={it.q} a={it.a} />+ ))}+ </div>+ );+}diff --git a/apps/docs/components/api/fields.tsx b/apps/docs/components/api/fields.tsxnew file mode 100644index 0000000000..eef62c78bb--- /dev/null+++ b/apps/docs/components/api/fields.tsx@@ -0,0 +1,85 @@+import type { ApiAttribute, ApiQueryParam } from "@/lib/api-types";++export function prettyType(a: { type: string; format?: string }): string {+ if (a.format) {+ const enumName = a.format.match(/"([^"]+)"/);+ if (enumName) return enumName[1];+ if (a.format.includes("timestamp")) return "timestamp";+ if (["integer", "bigint", "numeric", "smallint", "double precision", "real"].includes(a.format))+ return "number";+ if (a.format === "date") return "date";+ if (a.format === "uuid") return "uuid";+ if (a.format === "boolean") return "boolean";+ if (a.format.startsWith("json")) return "object";+ }+ return a.type;+}++type Field = {+ name: string;+ type: string;+ format?: string;+ description?: string;+ required?: boolean;+ pk?: boolean;+ fk?: { table: string; column: string };+};++function Row({ field }: { field: Field }) {+ return (+ <div className="py-[14px]">+ <div className="flex items-center gap-[8px] flex-wrap">+ <code className="font-[family-name:var(--font-mono)] text-[13.5px] text-[#262323]">+ {field.name}+ </code>+ <span className="font-[family-name:var(--font-mono)] text-[12px] text-[rgba(38,35,35,0.54)]">+ {prettyType(field)}+ </span>+ {field.required && (+ <span className="text-[11px] font-medium text-[#9C7136]">required</span>+ )}+ {field.pk && (+ <span className="text-[11px] font-medium text-[#1E84B0]">primary key</span>+ )}+ </div>+ {field.description && (+ <p className="m-0 mt-[6px] text-[14.5px] leading-[150%] text-[rgba(38,35,35,0.74)]">+ {field.description}+ </p>+ )}+ {field.fk && (+ <p className="m-0 mt-[4px] text-[13px] text-[rgba(38,35,35,0.58)]">+ References{" "}+ <code className="font-[family-name:var(--font-mono)]">+ {field.fk.table}.{field.fk.column}+ </code>+ </p>+ )}+ </div>+ );+}++export function Fields({+ title,+ attributes,+ query,+}: {+ title: string;+ attributes?: ApiAttribute[];+ query?: ApiQueryParam[];+}) {+ const fields: Field[] = attributes ?? query?.map((q) => ({ ...q })) ?? [];+ if (!fields.length) return null;+ return (+ <div className="mt-[28px]">+ <h3 className="m-0 mb-[2px] text-[13.5px] font-[560] uppercase tracking-[0.05em] text-[rgba(38,35,35,0.58)]">+ {title}+ </h3>+ <div className="divide-y divide-[#E7E7E3] border-t border-[#E7E7E3]">+ {fields.map((f) => (+ <Row key={f.name} field={f} />+ ))}+ </div>+ </div>+ );+}diff --git a/apps/docs/components/api/mcp-nav.tsx b/apps/docs/components/api/mcp-nav.tsxnew file mode 100644index 0000000000..e658a2951a--- /dev/null+++ b/apps/docs/components/api/mcp-nav.tsx@@ -0,0 +1,150 @@+"use client";++import Link from "next/link";+import { usePathname } from "next/navigation";+import { useEffect, useMemo, useRef, useState } from "react";+import type { ToolNavModule } from "@/lib/tools-data";++const CLASS_DOT: Record<string, string> = {+ READ: "bg-[#3F9142]",+ WRITE: "bg-[#1E84B0]",+ DESTRUCTIVE: "bg-[#B3261E]",+};++const MCP_LINKS = [+ { label: "Introduction", href: "/mcp" },+ { label: "Authentication", href: "/mcp/authentication" },+ { label: "Tools", href: "/mcp/tools" },+];++const GS_ACTIVE = "bg-[rgba(0,176,255,0.10)] font-[530] text-[#1E84B0]";+const GS_IDLE = "text-[rgba(38,35,35,0.8)] hover:bg-[rgba(231,231,227,0.55)] hover:text-[#262323]";+const SECTION_LABEL =+ "m-0 mb-[3px] px-[8px] py-[6px] font-[family-name:var(--font-mono)] text-[12.5px] font-[600] uppercase tracking-[0.06em] text-[rgba(38,35,35,0.6)]";+const GS_LINK = "block rounded-[6px] px-[8px] py-[3.5px] text-[14.5px] leading-[135%] transition-colors";++function Chevron({ open }: { open: boolean }) {+ return (+ <svg+ width="11"+ height="11"+ viewBox="0 0 12 12"+ fill="none"+ className={`shrink-0 transition-transform duration-200 ${open ? "rotate-90" : ""}`}+ aria-hidden="true"+ >+ <path d="M4.5 3L7.5 6L4.5 9" stroke="rgba(38,35,35,0.48)" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ );+}++/** Tools are grouped under their module, so drop the redundant `<module>_` prefix from the label. */+function toolLabel(name: string, moduleSlug: string): string {+ return name.startsWith(`${moduleSlug}_`) ? name.slice(moduleSlug.length + 1) : name;+}++function ClassDot({ c }: { c: string }) {+ return (+ <span+ className={`h-[6px] w-[6px] shrink-0 rounded-full ${CLASS_DOT[c] || "bg-[rgba(38,35,35,0.4)]"}`}+ aria-label={c}+ />+ );+}++export function McpNav({ tools }: { tools: ToolNavModule[] }) {+ const pathname = usePathname();+ const parts = pathname.split("/");+ const activeTool = parts[1] === "mcp" && parts[2] === "tools" ? parts[3] : undefined;++ const activeToolModule = useMemo(() => {+ if (!activeTool) return undefined;+ return tools.find((m) => m.tools.some((t) => t.slug === activeTool))?.slug;+ }, [tools, activeTool]);++ const [open, setOpen] = useState<Set<string>>(() => new Set(activeToolModule ? [activeToolModule] : []));+ const activeRef = useRef<HTMLAnchorElement>(null);++ useEffect(() => {+ if (activeToolModule)+ setOpen((p) => (p.has(activeToolModule) ? p : new Set(p).add(activeToolModule)));+ }, [activeToolModule]);+ useEffect(() => {+ activeRef.current?.scrollIntoView({ block: "center" });+ }, []);++ return (+ <div>+ <nav className="flex flex-col gap-[2px]">+ <div className="mb-[10px]">+ <p className={SECTION_LABEL}>Getting Started</p>+ {MCP_LINKS.map((item) => (+ <Link+ key={item.href}+ href={item.href}+ className={`${GS_LINK} ${pathname === item.href ? GS_ACTIVE : GS_IDLE}`}+ >+ {item.label}+ </Link>+ ))}+ </div>++ <p className={SECTION_LABEL}>Tools</p>+ {tools.map((m) => {+ const isOpen = open.has(m.slug);+ return (+ <div key={m.slug}>+ <button+ type="button"+ onClick={() =>+ setOpen((prev) => {+ const next = new Set(prev);+ if (next.has(m.slug)) next.delete(m.slug);+ else next.add(m.slug);+ return next;+ })+ }+ className="flex w-full items-center justify-between gap-[8px] rounded-[7px] px-[8px] py-[5px] transition-colors hover:bg-[rgba(231,231,227,0.5)]"+ >+ <span className="flex items-center gap-[7px]">+ <Chevron open={isOpen} />+ <span className="font-[family-name:var(--font-mono)] text-[12.5px] font-[600] uppercase tracking-[0.06em] text-[rgba(38,35,35,0.6)]">+ {m.name}+ </span>+ </span>+ <span className="font-[family-name:var(--font-mono)] text-[12px] tabular-nums text-[rgba(38,35,35,0.42)]">+ {m.tools.length}+ </span>+ </button>++ {isOpen && (+ <ul className="mt-[2px] mb-[6px] ml-[13px] list-none border-l border-[#ECECE7] py-[2px] pl-[8px]">+ {m.tools.map((t) => {+ const isActive = activeTool === t.slug;+ return (+ <li key={t.slug}>+ <Link+ ref={isActive ? activeRef : undefined}+ href={`/mcp/tools/${t.slug}`}+ title={`${t.name} · ${t.classification}`}+ className={`flex items-center gap-[8px] rounded-[6px] px-[8px] py-[3.5px] leading-[135%] transition-colors ${+ isActive ? GS_ACTIVE : GS_IDLE+ }`}+ >+ <ClassDot c={t.classification} />+ <span className="truncate font-[family-name:var(--font-mono)] text-[13px]">+ {toolLabel(t.name, m.slug)}+ </span>+ </Link>+ </li>+ );+ })}+ </ul>+ )}+ </div>+ );+ })}+ </nav>+ </div>+ );+}diff --git a/apps/docs/components/api/mdx-code-block.tsx b/apps/docs/components/api/mdx-code-block.tsxnew file mode 100644index 0000000000..3a54231d97--- /dev/null+++ b/apps/docs/components/api/mdx-code-block.tsx@@ -0,0 +1,41 @@+"use client";++import type { ReactNode } from "react";+import { useRef, useState } from "react";++/** Renders MDX fenced code in the same dark panel as the API playground CodeBlock. */+export function MdxCodeBlock({ title, children }: { title?: string; children?: ReactNode }) {+ const ref = useRef<HTMLPreElement>(null);+ const [copied, setCopied] = useState(false);++ const copy = () => {+ const text = ref.current?.textContent ?? "";+ navigator.clipboard?.writeText(text);+ setCopied(true);+ setTimeout(() => setCopied(false), 1400);+ };++ return (+ <div className="my-[18px] overflow-hidden rounded-[12px] border border-[#2A2A28] bg-[#1B1B1A]">+ {title && (+ <div className="flex h-[38px] items-center border-b border-[#2A2A28] px-[14px]">+ <span className="font-[family-name:var(--font-mono)] text-[11.5px] tracking-[0.03em] text-[#9A9A96]">+ {title}+ </span>+ </div>+ )}+ <div className="relative">+ <button+ type="button"+ onClick={copy}+ className="absolute top-[10px] right-[10px] z-10 rounded-[6px] border border-[#3A3A38] bg-[#262624] px-[8px] py-[3px] font-[family-name:var(--font-mono)] text-[11px] text-[#C9C9C5] transition-colors hover:border-[#4A4A47] hover:text-white"+ >+ {copied ? "Copied" : "Copy"}+ </button>+ <pre ref={ref} className="mdx-shiki m-0 overflow-x-auto">+ {children}+ </pre>+ </div>+ </div>+ );+}diff --git a/apps/docs/components/api/method-badge.tsx b/apps/docs/components/api/method-badge.tsxnew file mode 100644index 0000000000..6bae760897--- /dev/null+++ b/apps/docs/components/api/method-badge.tsx@@ -0,0 +1,18 @@+const TONE: Record<string, string> = {+ GET: "text-[#3F9142] bg-[#E4F8DA] border-[#A8DB91]",+ POST: "text-[#1E84B0] bg-[#DFF5FF] border-[#A9DAF3]",+ PATCH: "text-[#9C7136] bg-[#FFF2D8] border-[#E6CFA3]",+ DELETE: "text-[#B3261E] bg-[#FCE8E6] border-[#F2C0BC]",+};++export function MethodBadge({ method, className = "" }: { method: string; className?: string }) {+ return (+ <span+ className={`inline-flex items-center rounded-[6px] border px-[7px] py-[2px] font-[family-name:var(--font-mono)] text-[11px] font-semibold leading-[14px] tracking-[0.04em] ${+ TONE[method] || TONE.GET+ } ${className}`}+ >+ {method}+ </span>+ );+}diff --git a/apps/docs/components/api/page-feedback.tsx b/apps/docs/components/api/page-feedback.tsxnew file mode 100644index 0000000000..53b2beacd9--- /dev/null+++ b/apps/docs/components/api/page-feedback.tsx@@ -0,0 +1,68 @@+"use client";++import { useState } from "react";++// Negative feedback routes to GitHub Discussions so the reader can say what's wrong.+const DISCUSSIONS_URL = "https://github.com/crbnos/carbon/discussions/new?category=q-a";++const PILL_BASE =+ "inline-flex items-center gap-[6px] rounded-[8px] px-[12px] py-[6px] text-[13.5px] font-[500] no-underline transition-colors";+// `docs` — white card on paper; `editorial` — warm glass pill for the Guide surface.+const PILL_DOCS = `${PILL_BASE} border border-[#E3E3DF] bg-white text-[rgba(38,35,35,0.8)] hover:border-[#CFCFC9] hover:text-[#262323]`;+const PILL_EDITORIAL = `${PILL_BASE} glass-pill text-ink-ui hover:text-[#262323]`;++function ThumbUp() {+ return (+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden="true" className="shrink-0">+ <path+ d="M5 7.5L7.5 2c1 0 1.7.8 1.7 1.8V6h3.1c.8 0 1.4.7 1.2 1.5l-1 4.2c-.1.7-.8 1.1-1.5 1.1H5m0-5.3V13M5 7.5H3.2c-.6 0-1.1.5-1.1 1.1v3.1c0 .6.5 1.1 1.1 1.1H5"+ stroke="currentColor"+ strokeWidth="1.2"+ strokeLinejoin="round"+ />+ </svg>+ );+}++function ThumbDown() {+ return (+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden="true" className="shrink-0">+ <path+ d="M11 8.5L8.5 14c-1 0-1.7-.8-1.7-1.8V10H3.7c-.8 0-1.4-.7-1.2-1.5l1-4.2C3.6 3.6 4.3 3.2 5 3.2h6m0 5.3V3M11 8.5h1.8c.6 0 1.1-.5 1.1-1.1V4.3c0-.6-.5-1.1-1.1-1.1H11"+ stroke="currentColor"+ strokeWidth="1.2"+ strokeLinejoin="round"+ />+ </svg>+ );+}++export function PageFeedback({ variant = "docs" }: { variant?: "docs" | "editorial" }) {+ const [thanked, setThanked] = useState(false);+ const editorial = variant === "editorial";+ const pill = editorial ? PILL_EDITORIAL : PILL_DOCS;++ if (thanked) {+ return (+ <p className={`m-0 text-[14px] ${editorial ? "text-ink-faint" : "text-[rgba(38,35,35,0.66)]"}`}>+ Thanks for your feedback!+ </p>+ );+ }++ return (+ <div className="flex flex-wrap items-center gap-x-[14px] gap-y-[10px]">+ <span className={`text-[14px] font-[560] ${editorial ? "text-ink-ui" : "text-[#262323]"}`}>+ Was this page helpful?+ </span>+ <div className="flex items-center gap-[8px]">+ <button type="button" onClick={() => setThanked(true)} className={pill}>+ <ThumbUp /> Yes+ </button>+ <a href={DISCUSSIONS_URL} target="_blank" rel="noreferrer" className={pill}>+ <ThumbDown /> No+ </a>+ </div>+ </div>+ );+}diff --git a/apps/docs/components/api/page-footer.tsx b/apps/docs/components/api/page-footer.tsxnew file mode 100644index 0000000000..c03494103f--- /dev/null+++ b/apps/docs/components/api/page-footer.tsx@@ -0,0 +1,80 @@+import { findNeighbour } from "fumadocs-core/page-tree";+import Link from "next/link";+import type { ReactNode } from "react";+import { source } from "@/lib/source";+import { PageFeedback } from "./page-feedback";++export type NavLink = { label: string; url: string };++/** Fumadocs tree names are ReactNode (often elements) — pull the plain text out. */+function text(node: ReactNode): string {+ if (node == null || typeof node === "boolean") return "";+ if (typeof node === "string" || typeof node === "number") return String(node);+ if (Array.isArray(node)) return node.map(text).join("");+ if (typeof node === "object" && "props" in node) {+ return text((node as { props?: { children?: ReactNode } }).props?.children);+ }+ return "";+}++function Chevron({ dir }: { dir: "left" | "right" }) {+ return (+ <svg width="13" height="13" viewBox="0 0 14 14" fill="none" aria-hidden="true" className="shrink-0">+ <path+ d={dir === "left" ? "M8.5 3.5L5 7l3.5 3.5" : "M5.5 3.5L9 7l-3.5 3.5"}+ stroke="rgba(38,35,35,0.55)"+ strokeWidth="1.5"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ );+}++function Card({ dir, link }: { dir: "prev" | "next"; link: NavLink }) {+ const next = dir === "next";+ return (+ <Link+ href={link.url}+ className={`group flex items-center gap-[10px] rounded-[10px] border border-[#E7E7E3] bg-white px-[14px] py-[11px] no-underline transition-colors hover:border-[#D6D6D0] ${+ next ? "flex-row-reverse text-right" : ""+ }`}+ >+ <Chevron dir={next ? "right" : "left"} />+ <span className="flex min-w-0 flex-1 flex-col">+ <span className="font-[family-name:var(--font-mono)] text-[10.5px] font-[600] uppercase tracking-[0.07em] text-[rgba(38,35,35,0.45)]">+ {next ? "Next" : "Previous"}+ </span>+ <span className="truncate text-[14px] font-[560] text-[#262323] group-hover:text-[#1E84B0]">+ {link.label}+ </span>+ </span>+ </Link>+ );+}++/** Page footer: feedback prompt, then optional prev / next cards. */+export function ContentFooter({ prev, next }: { prev?: NavLink; next?: NavLink }) {+ return (+ <footer className="mt-[56px] border-t border-[#E7E7E3] pt-[24px]">+ <PageFeedback />+ {(prev || next) && (+ <nav className="mt-[22px] grid grid-cols-1 gap-[12px] sm:grid-cols-2">+ <div>{prev && <Card dir="prev" link={prev} />}</div>+ <div>{next && <Card dir="next" link={next} />}</div>+ </nav>+ )}+ </footer>+ );+}++/** ContentFooter with prev/next derived from the Fumadocs page tree (Reference pages). */+export function DocsFooter({ url }: { url: string }) {+ const { previous, next } = findNeighbour(source.getPageTree(), url);+ return (+ <ContentFooter+ prev={previous ? { label: text(previous.name), url: previous.url } : undefined}+ next={next ? { label: text(next.name), url: next.url } : undefined}+ />+ );+}diff --git a/apps/docs/components/api/sdk-cards.tsx b/apps/docs/components/api/sdk-cards.tsxnew file mode 100644index 0000000000..0d60f49613--- /dev/null+++ b/apps/docs/components/api/sdk-cards.tsx@@ -0,0 +1,98 @@+import type { ReactNode } from "react";+import { siFlutter, siPython, siSwift, siTypescript } from "simple-icons";++/** A simple-icons brand glyph (filled path on a 24×24 viewBox). */+function Brand({ path }: { path: string }) {+ return (+ <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">+ <path d={path} />+ </svg>+ );+}++function Tile({ glyph, tone }: { glyph: ReactNode; tone: string }) {+ return (+ <span className={`flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-[8px] ${tone}`}>+ {glyph}+ </span>+ );+}++function Arrow() {+ return (+ <svg+ width="13"+ height="13"+ viewBox="0 0 14 14"+ fill="none"+ className="transition-transform group-hover:translate-x-[2px]"+ >+ <path+ d="M3 7h8M7.5 3.5L11 7l-3.5 3.5"+ stroke="currentColor"+ strokeWidth="1.4"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ );+}++// Supabase's official client libraries — https://supabase.com/docs/guides/api/rest/client-libs+const CARDS = [+ {+ glyph: <Brand path={siTypescript.path} />,+ tone: "bg-[#E8F0FB] text-[#3178C6]",+ name: "JavaScript & TypeScript",+ desc: "The recommended client — supabase-js. Read and write Carbon with carbon.from('…').",+ href: "#quickstart",+ cta: "Quickstart",+ },+ {+ glyph: <Brand path={siFlutter.path} />,+ tone: "bg-[#E5EFF9] text-[#02569B]",+ name: "Dart & Flutter",+ desc: "The official supabase-flutter SDK for Dart and Flutter apps.",+ href: "https://supabase.com/docs/reference/dart/introduction",+ cta: "Supabase Dart",+ },+ {+ glyph: <Brand path={siSwift.path} />,+ tone: "bg-[#FCEAE2] text-[#E0431F]",+ name: "Swift",+ desc: "The official supabase-swift SDK for iOS, macOS, and server-side Swift.",+ href: "https://supabase.com/docs/reference/swift/introduction",+ cta: "Supabase Swift",+ },+ {+ glyph: <Brand path={siPython.path} />,+ tone: "bg-[#EAF1F8] text-[#3776AB]",+ name: "Python",+ desc: "The official supabase-py client, or call the REST API directly with requests.",+ href: "https://supabase.com/docs/reference/python/introduction",+ cta: "Supabase Python",+ },+];++export function SdkCards() {+ return (+ <div className="mt-[18px] grid grid-cols-1 gap-[14px] sm:grid-cols-2">+ {CARDS.map((c) => (+ <a+ key={c.name}+ href={c.href}+ className="group rounded-[12px] border border-[#E7E7E3] bg-white p-[16px] no-underline transition-colors hover:border-[#D6D6D0]"+ >+ <div className="flex items-center gap-[11px]">+ <Tile glyph={c.glyph} tone={c.tone} />+ <span className="text-[15.5px] font-[560] text-[#262323]">{c.name}</span>+ </div>+ <p className="m-0 mt-[10px] text-[14px] leading-[160%] text-[rgba(38,35,35,0.74)]">{c.desc}</p>+ <span className="mt-[12px] inline-flex items-center gap-[5px] text-[13.5px] font-[500] text-[#1E84B0]">+ {c.cta} <Arrow />+ </span>+ </a>+ ))}+ </div>+ );+}diff --git a/apps/docs/components/api/toc.tsx b/apps/docs/components/api/toc.tsxnew file mode 100644index 0000000000..27cec87f2a--- /dev/null+++ b/apps/docs/components/api/toc.tsx@@ -0,0 +1,64 @@+"use client";++import { usePathname } from "next/navigation";+import { useEffect, useState } from "react";++type Heading = { id: string; text: string; level: number };++/** "On this page" rail. Scans the rendered <main> for headings and scroll-spies the active one. */+export function TableOfContents() {+ const pathname = usePathname();+ const [headings, setHeadings] = useState<Heading[]>([]);+ const [active, setActive] = useState("");++ useEffect(() => {+ const nodes = Array.from(document.querySelectorAll<HTMLElement>("main h2[id], main h3[id]"));+ setHeadings(+ nodes.map((n) => ({ id: n.id, text: n.textContent ?? "", level: n.tagName === "H3" ? 3 : 2 }))+ );+ setActive(nodes[0]?.id ?? "");++ if (nodes.length === 0) return;+ const observer = new IntersectionObserver(+ (entries) => {+ const visible = entries.filter((e) => e.isIntersecting);+ if (visible.length === 0) return;+ const top = visible.reduce((a, b) =>+ a.boundingClientRect.top < b.boundingClientRect.top ? a : b+ );+ setActive(top.target.id);+ },+ { rootMargin: "-88px 0px -68% 0px", threshold: 0 }+ );+ for (const n of nodes) observer.observe(n);+ return () => observer.disconnect();+ }, [pathname]);++ if (headings.length === 0) return null;++ return (+ <nav className="sticky top-[88px] max-h-[calc(100dvh-120px)] overflow-y-auto scrollbar-hidden-until-scroll">+ <p className="m-0 mb-[10px] font-[family-name:var(--font-mono)] text-[11px] font-medium uppercase tracking-[0.08em] text-[rgba(38,35,35,0.5)]">+ On this page+ </p>+ <ul className="m-0 list-none border-l border-[#E7E7E3] p-0">+ {headings.map((h) => (+ <li key={h.id}>+ <a+ href={`#${h.id}`}+ className={`-ml-px block border-l py-[5px] text-[13.5px] leading-[140%] transition-colors ${+ h.level === 3 ? "pl-[24px]" : "pl-[14px]"+ } ${+ active === h.id+ ? "border-[#1E84B0] text-[#1E84B0]"+ : "border-transparent text-[rgba(38,35,35,0.68)] hover:text-[#262323]"+ }`}+ >+ {h.text}+ </a>+ </li>+ ))}+ </ul>+ </nav>+ );+}diff --git a/apps/docs/components/chapter-nav.tsx b/apps/docs/components/chapter-nav.tsxnew file mode 100644index 0000000000..fac9ea8057--- /dev/null+++ b/apps/docs/components/chapter-nav.tsx@@ -0,0 +1,94 @@+"use client";++/**+ * ChapterNav — the editorial Guide sidebar: roman-numeral chapters, each a+ * vertical line of connected step-dots. The current step is filled with the+ * brand accent; completed steps are solid foreground; upcoming steps hollow.+ *+ * Reads as a *journey*, not a file tree. Mount in the Guide layout.+ *+ * The `chapters` prop should be derived from the Fumadocs page tree so it stays+ * in sync with meta.json (one source of truth). In your Guide layout:+ *+ * import { source } from "@/lib/source";+ * // walk source.pageTree: folders → chapters, pages → steps {title, url}+ * <ChapterNav chapters={chapters} title="How to run your shop with Carbon" />+ *+ * Keeping it presentational (chapters passed in) makes it trivial to test and+ * avoids coupling to a specific Fumadocs tree shape.+ */+import Link from "next/link";+import { usePathname } from "next/navigation";++export type Step = { title: string; url: string };+export type Chapter = { label: string; steps: Step[] };++const ROMAN = ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X"];++function dotClass(state: "active" | "done" | "todo") {+ if (state === "active") return "bg-brand";+ if (state === "done") return "bg-foreground";+ return "border border-border bg-transparent";+}++export function ChapterNav({+ chapters,+ title = "How to run your shop with Carbon",+}: {+ chapters: Chapter[];+ title?: string;+}) {+ const pathname = usePathname();++ const flat = chapters.flatMap((c) => c.steps);+ const activeIndex = flat.findIndex((s) => s.url === pathname);++ let i = -1; // running index across all steps++ return (+ <nav className="text-sm">+ <p className="mb-6 max-w-[14rem] text-[13px] leading-snug text-muted-foreground">{title}</p>++ <ol className="space-y-7">+ {chapters.map((chapter, ci) => (+ <li key={chapter.label}>+ <div className="mb-2 flex items-baseline gap-2">+ <span className="font-mono text-xs text-muted-foreground">{ROMAN[ci] ?? ci + 1}.</span>+ <span className="font-medium text-foreground">{chapter.label}</span>+ </div>++ <ul className="ml-1 space-y-0.5 border-l border-border pl-4">+ {chapter.steps.map((step) => {+ i += 1;+ const state =+ i === activeIndex ? "active" : activeIndex !== -1 && i < activeIndex ? "done" : "todo";++ return (+ <li key={step.url} className="relative">+ <span+ aria-hidden+ className={`absolute -left-[1.3rem] top-2 size-2 rounded-full ring-2 ring-[hsl(var(--background))] ${dotClass(+ state,+ )}`}+ />+ <Link+ href={step.url}+ aria-current={state === "active" ? "page" : undefined}+ className={`block rounded-md px-2 py-1 transition-colors ${+ state === "active"+ ? "text-foreground"+ : "text-muted-foreground hover:text-foreground"+ }`}+ >+ {step.title}+ </Link>+ </li>+ );+ })}+ </ul>+ </li>+ ))}+ </ol>+ </nav>+ );+}diff --git a/apps/docs/components/checklist.tsx b/apps/docs/components/checklist.tsxnew file mode 100644index 0000000000..769decefe0--- /dev/null+++ b/apps/docs/components/checklist.tsx@@ -0,0 +1,80 @@+"use client";++/**+ * Checklist / Check — a stateful, tickable checklist. State persists per page+ * in localStorage; checked items strike through. Turns "read these N things"+ * into "did these N things".+ *+ * Usage in MDX:+ * <Checklist>+ * <Check>Item has an active revision</Check>+ * <Check>Routing has at least one operation</Check>+ * </Checklist>+ */+import { Children, cloneElement, isValidElement, useEffect, useState } from "react";+import type { ReactNode } from "react";+import { usePathname } from "next/navigation";++export function Checklist({ children }: { children: ReactNode }) {+ let index = 0;+ return (+ <ul className="not-prose my-6 space-y-2">+ {Children.map(children, (child) =>+ isValidElement(child) ? cloneElement(child, { _index: index++ } as { _index: number }) : child,+ )}+ </ul>+ );+}++export function Check({ children, _index = 0 }: { children: ReactNode; _index?: number }) {+ const pathname = usePathname();+ const key = `carbon-docs:check:${pathname}:${_index}`;+ const [done, setDone] = useState(false);++ // Read persisted state after mount (avoids SSR/client mismatch).+ useEffect(() => {+ setDone(window.localStorage.getItem(key) === "1");+ }, [key]);++ function toggle() {+ const next = !done;+ setDone(next);+ window.localStorage.setItem(key, next ? "1" : "0");+ }++ return (+ <li>+ <button+ type="button"+ onClick={toggle}+ aria-pressed={done}+ className="group flex w-full items-start gap-3 text-left"+ >+ <span+ className={`mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-md border transition-colors ${+ done ? "border-brand bg-brand text-primary-foreground" : "border-border bg-card group-hover:border-brand/60"+ }`}+ >+ {done && (+ <svg viewBox="0 0 16 16" fill="none" className="size-3.5" aria-hidden>+ <path+ d="M3.5 8.5l3 3 6-6"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ )}+ </span>+ <span+ className={`text-[15px] leading-relaxed ${+ done ? "text-muted-foreground line-through" : "text-foreground"+ }`}+ >+ {children}+ </span>+ </button>+ </li>+ );+}diff --git a/apps/docs/components/editorial/custom-scrollbar.tsx b/apps/docs/components/editorial/custom-scrollbar.tsxnew file mode 100644index 0000000000..013e1035ab--- /dev/null+++ b/apps/docs/components/editorial/custom-scrollbar.tsx@@ -0,0 +1,161 @@+"use client";++import { type ReactNode, useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";++const TRACK_COLOR = [208, 209, 210];+const ACTIVE_COLOR = [0, 176, 255];++interface ScrollAreaProps {+ children: ReactNode;+ className?: string;+ scrollbarOffset?: number;+ onScrollElement?: (el: HTMLDivElement | null) => void;+}++export function ScrollArea({+ children,+ className = "",+ scrollbarOffset = 20,+ onScrollElement,+}: ScrollAreaProps) {+ const scrollRef = useRef<HTMLDivElement>(null);+ const trackRef = useRef<HTMLDivElement>(null);+ const [thumbPos, setThumbPos] = useState(0);+ const [dotCount, setDotCount] = useState(0);+ const [hoverDot, setHoverDot] = useState<number | null>(null);++ useLayoutEffect(() => {+ onScrollElement?.(scrollRef.current);+ return () => onScrollElement?.(null);+ }, [onScrollElement]);++ const recalc = useCallback(() => {+ const el = scrollRef.current;+ const track = trackRef.current;+ if (!el || !track) return;++ const { scrollTop, scrollHeight, clientHeight } = el;+ const dots = Math.floor(track.clientHeight / 7);+ setDotCount(dots);++ if (scrollHeight <= clientHeight) {+ setThumbPos(0);+ } else {+ setThumbPos(Math.round((scrollTop / (scrollHeight - clientHeight)) * (dots - 1)));+ }+ }, []);++ const scrollTo = useCallback((y: number) => {+ const el = scrollRef.current;+ const track = trackRef.current;+ if (!el || !track) return;++ const rect = track.getBoundingClientRect();+ const pct = Math.max(0, Math.min(1, (y - rect.top) / rect.height));+ const max = el.scrollHeight - el.clientHeight;+ if (max <= 0) return;+ el.scrollTop = pct * max;+ }, []);++ const handlePointerDown = useCallback(+ (e: React.PointerEvent<HTMLDivElement>) => {+ e.preventDefault();+ const target = e.currentTarget;+ target.setPointerCapture(e.pointerId);+ scrollTo(e.clientY);++ const onMove = (ev: PointerEvent) => scrollTo(ev.clientY);+ const onUp = (ev: PointerEvent) => {+ target.releasePointerCapture(ev.pointerId);+ target.removeEventListener("pointermove", onMove);+ target.removeEventListener("pointerup", onUp);+ target.removeEventListener("pointercancel", onUp);+ };++ target.addEventListener("pointermove", onMove);+ target.addEventListener("pointerup", onUp);+ target.addEventListener("pointercancel", onUp);+ },+ [scrollTo],+ );++ useEffect(() => {+ const el = scrollRef.current;+ if (!el) return;++ recalc();+ el.addEventListener("scroll", recalc, { passive: true });+ const observer = new ResizeObserver(recalc);+ observer.observe(el);++ return () => {+ el.removeEventListener("scroll", recalc);+ observer.disconnect();+ };+ }, [recalc]);++ const getDotIndex = useCallback(+ (clientY: number) => {+ const track = trackRef.current;+ if (!track || dotCount <= 0) return null;+ const rect = track.getBoundingClientRect();+ return Math.round(+ Math.max(0, Math.min(1, (clientY - rect.top) / rect.height)) * (dotCount - 1),+ );+ },+ [dotCount],+ );++ return (+ <div className="flex-1 min-w-0 flex min-h-0 my-8">+ <div+ ref={scrollRef}+ className={`flex-1 min-w-0 min-h-0 overflow-y-auto scrollbar-none ${className}`}+ style={{ paddingRight: `${scrollbarOffset}px` }}+ >+ {children}+ </div>++ {/* Custom magnetic tick scrollbar */}+ <div className="shrink-0 hidden min-[1000px]:block">+ <div+ ref={trackRef}+ onPointerDown={handlePointerDown}+ onPointerMove={(e) => setHoverDot(getDotIndex(e.clientY))}+ onPointerLeave={() => setHoverDot(null)}+ className="h-[80vh] flex flex-col items-end cursor-pointer touch-none"+ style={{ gap: "5px", width: 14 }}+ >+ {Array.from({ length: dotCount }).map((_, i) => {+ const dist = Math.abs(i - thumbPos) / 3;+ const isNear = dist <= 1;+ const influence = isNear ? Math.cos((dist * Math.PI) / 2) ** 2 : 0;+ const isHovered = hoverDot === i;++ const lerp = (a: number, b: number) => Math.round(a + (b - a) * influence);++ const color = isHovered+ ? `rgb(${ACTIVE_COLOR[0]}, ${ACTIVE_COLOR[1]}, ${ACTIVE_COLOR[2]})`+ : isNear+ ? `rgb(${lerp(TRACK_COLOR[0], ACTIVE_COLOR[0])}, ${lerp(TRACK_COLOR[1], ACTIVE_COLOR[1])}, ${lerp(TRACK_COLOR[2], ACTIVE_COLOR[2])})`+ : "rgba(32, 32, 32, 0.16)";++ return (+ <span+ key={i}+ className="shrink-0 rounded-full"+ style={{+ width: isHovered ? 14 : isNear ? 7 + 7 * influence : 7,+ height: 2,+ background: color,+ transition:+ "background 120ms linear, width 120ms cubic-bezier(0.22, 1, 0.36, 1)",+ }}+ />+ );+ })}+ </div>+ </div>+ </div>+ );+}diff --git a/apps/docs/components/editorial/guide-context.tsx b/apps/docs/components/editorial/guide-context.tsxnew file mode 100644index 0000000000..96f3d346de--- /dev/null+++ b/apps/docs/components/editorial/guide-context.tsx@@ -0,0 +1,193 @@+"use client";++/**+ * GuideProvider owns the editorial reader's active-chapter/section state and all+ * scroll orchestration, so BOTH the header and the sidebar switch chapters with+ * pure client state — no Next route navigation, no remount, no flash.+ *+ * Chapter content is authored in MDX; the server passes down a serializable+ * `chapters` list (slug/title/label + the section items derived from each file's+ * table of contents) plus the rendered bodies. Section anchors are the heading ids+ * Fumadocs' rehype-slug already injected, so the rail, scrollspy, and deep links all+ * key off the same id.+ *+ * Chapter changes animate via the View Transitions API; reduced-motion users get an+ * instant swap. The URL is kept in sync silently via history.replaceState.+ */+import {+ createContext,+ useCallback,+ useContext,+ useEffect,+ useRef,+ useState,+ type ReactNode,+} from "react";+import { flushSync } from "react-dom";++export type GuideItem = { title: string; id: string };++export type GuideChapter = {+ slug: string;+ index: number;+ title: string;+ description: string;+ label: string;+ flow: string;+ flowName: string;+ flowIndex: number;+ items: GuideItem[];+};++export type GuideFlow = { slug: string; name: string; firstIndex: number };++/** Distinct flows in reading order, each with the global index of its first chapter.+ * `chapters` is already sorted by (flowIndex, index), so each flow is contiguous. */+export function flowsOf(chapters: GuideChapter[]): GuideFlow[] {+ const out: GuideFlow[] = [];+ chapters.forEach((c, i) => {+ if (!out.some((f) => f.slug === c.flow)) out.push({ slug: c.flow, name: c.flowName, firstIndex: i });+ });+ return out;+}++/** The chapters belonging to one flow, each paired with its global index. */+export function chaptersInFlow(+ chapters: GuideChapter[],+ flow: string,+): { chapter: GuideChapter; index: number }[] {+ return chapters+ .map((chapter, index) => ({ chapter, index }))+ .filter((x) => x.chapter.flow === flow);+}++type Pos = { chapter: number; item: number };++type GuideCtx = {+ active: Pos;+ goTo: (pos: Pos) => void;+ registerScrollEl: (el: HTMLDivElement | null) => void;+ chapters: GuideChapter[];+};++const Ctx = createContext<GuideCtx | null>(null);++type DocWithVT = Document & { startViewTransition?: (cb: () => void) => unknown };++export function GuideProvider({+ chapters,+ initialSlug,+ children,+}: {+ chapters: GuideChapter[];+ initialSlug: string;+ children: ReactNode;+}) {+ const initialChapter = Math.max(+ 0,+ chapters.findIndex((c) => c.slug === initialSlug),+ );+ const [active, setActive] = useState<Pos>({ chapter: initialChapter, item: 0 });++ const activeRef = useRef(active);+ activeRef.current = active;++ const scrollElRef = useRef<HTMLDivElement | null>(null);+ const isUserScrolling = useRef(false);+ const guardTimer = useRef<ReturnType<typeof setTimeout> | null>(null);++ const registerScrollEl = useCallback((el: HTMLDivElement | null) => {+ scrollElRef.current = el;+ }, []);++ const scrollToAnchor = useCallback((id: string, smooth: boolean) => {+ const el = scrollElRef.current;+ if (!el || !id) return;+ const target = el.querySelector(`#${CSS.escape(id)}`);+ if (!(target instanceof HTMLElement)) return;+ const top =+ target.getBoundingClientRect().top - el.getBoundingClientRect().top + el.scrollTop - 32;+ el.scrollTo({ top: Math.max(0, top), behavior: smooth ? "smooth" : "auto" });+ }, []);++ const goTo = useCallback(+ (pos: Pos) => {+ const chapter = chapters[pos.chapter];+ if (!chapter) return;++ const prev = activeRef.current;+ const isNewChapter = pos.chapter !== prev.chapter;+ const anchor = chapter.items[pos.item]?.id ?? "";++ // Suppress the scrollspy while we drive the scroll programmatically.+ isUserScrolling.current = true;+ if (guardTimer.current) clearTimeout(guardTimer.current);+ guardTimer.current = setTimeout(() => {+ isUserScrolling.current = false;+ }, 700);++ if (!isNewChapter) {+ // Same chapter — just glide to the section, no transition.+ setActive(pos);+ requestAnimationFrame(() => scrollToAnchor(anchor, true));+ return;+ }++ // New chapter — swap content + jump to its top inside a view transition.+ const apply = () => {+ flushSync(() => setActive(pos));+ scrollToAnchor(anchor, false);+ };++ const reduce =+ typeof window !== "undefined" &&+ window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;+ const doc = document as DocWithVT;++ if (!reduce && typeof doc.startViewTransition === "function") {+ doc.startViewTransition(apply);+ } else {+ apply();+ }++ window.history.replaceState(null, "", `/guides/${chapter.slug}`);+ },+ [chapters, scrollToAnchor],+ );++ // Scrollspy: update the active section as the reader scrolls.+ useEffect(() => {+ const el = scrollElRef.current;+ if (!el) return;++ const handleScroll = () => {+ if (isUserScrolling.current) return;+ const rect = el.getBoundingClientRect();+ const threshold = rect.top + rect.height * 0.4;+ const chapter = chapters[activeRef.current.chapter];+ if (!chapter) return;++ let closestItem = 0;+ for (let i = 0; i < chapter.items.length; i++) {+ const heading = el.querySelector(`#${CSS.escape(chapter.items[i].id)}`);+ if (heading instanceof HTMLElement && heading.getBoundingClientRect().top <= threshold) {+ closestItem = i;+ }+ }+ setActive((p) => (p.item === closestItem ? p : { ...p, item: closestItem }));+ };++ el.addEventListener("scroll", handleScroll, { passive: true });+ return () => el.removeEventListener("scroll", handleScroll);+ }, [chapters, active.chapter]);++ return (+ <Ctx.Provider value={{ active, goTo, registerScrollEl, chapters }}>{children}</Ctx.Provider>+ );+}++export function useGuide() {+ const ctx = useContext(Ctx);+ if (!ctx) throw new Error("useGuide must be used within a GuideProvider");+ return ctx;+}diff --git a/apps/docs/components/editorial/guide-subnav.tsx b/apps/docs/components/editorial/guide-subnav.tsxnew file mode 100644index 0000000000..30c37d130a--- /dev/null+++ b/apps/docs/components/editorial/guide-subnav.tsx@@ -0,0 +1,71 @@+"use client";++import { flowsOf, useGuide } from "./guide-context";++function Divider() {+ return (+ <span className="relative mx-[7px] h-[16px] w-[1px] shrink-0 self-center">+ <span+ className="absolute inset-0 opacity-40"+ style={{+ background:+ "linear-gradient(180deg, transparent 0%, rgba(32,32,32,0.18) 50%, transparent 100%)",+ }}+ />+ </span>+ );+}++/** Guide-only sticky sub-header: How to · <Flow> · <Flow> · …+ * Each tab is a flow (a self-contained tour); selecting one jumps to its first+ * chapter. The flow's chapters then live in the sidebar (and mobile selector). */+export function GuideSubnav() {+ const { active, goTo, chapters } = useGuide();+ const flows = flowsOf(chapters);+ const activeFlow = chapters[active.chapter]?.flow;++ return (+ <div+ className="fixed inset-x-0 top-[64px] z-[55]"+ style={{ background: "#F5F5F2", borderBottom: "1px solid #E8E7E6", boxShadow: "0 1px 0 0 #fff" }}+ >+ <div className="mx-auto flex h-[52px] w-full max-w-[1440px] items-center overflow-x-auto px-[24px] scrollbar-none md:px-[32px]">+ <nav className="flex items-center">+ <span+ className="nav-link whitespace-nowrap px-[6px] text-[15px] font-[460] leading-[150%] tracking-[0.15px]"+ style={{ color: "rgba(32, 32, 32, 0.40)" }}+ >+ How to+ </span>+ {flows.map((flow) => {+ const isActive = activeFlow === flow.slug;+ return (+ <span className="contents" key={flow.slug}>+ <Divider />+ <span className="group relative inline-flex items-center justify-center rounded-[4px] px-[5px] py-[2px]">+ <span+ aria-hidden="true"+ className={`pointer-events-none absolute inset-0 rounded-[4px] transition-opacity duration-200 ease-out ${+ isActive ? "opacity-100" : "opacity-0 group-hover:opacity-100"+ } bg-[rgba(231,231,227,0.80)]`}+ />+ <a+ className="nav-link relative z-10 whitespace-nowrap px-[6px] text-[15px] font-[460] leading-[150%] tracking-[0.15px] text-ink-ui no-underline"+ href={`/guides/${chapters[flow.firstIndex]?.slug ?? ""}`}+ aria-current={isActive ? "page" : undefined}+ onClick={(e) => {+ e.preventDefault();+ goTo({ chapter: flow.firstIndex, item: 0 });+ }}+ >+ {flow.name}+ </a>+ </span>+ </span>+ );+ })}+ </nav>+ </div>+ </div>+ );+}diff --git a/apps/docs/components/editorial/how-to-layout.tsx b/apps/docs/components/editorial/how-to-layout.tsxnew file mode 100644index 0000000000..516a43bf97--- /dev/null+++ b/apps/docs/components/editorial/how-to-layout.tsx@@ -0,0 +1,149 @@+"use client";++import type { ReactNode } from "react";+import { PageFeedback } from "@/components/api/page-feedback";+import { ScrollArea } from "./custom-scrollbar";+import { chaptersInFlow, useGuide } from "./guide-context";+import { SidebarNav } from "./sidebar-nav";++function FooterChevron({ dir }: { dir: "left" | "right" }) {+ return (+ <svg width="13" height="13" viewBox="0 0 14 14" fill="none" aria-hidden="true" className="shrink-0">+ <path+ d={dir === "left" ? "M8.5 3.5L5 7l3.5 3.5" : "M5.5 3.5L9 7l-3.5 3.5"}+ stroke="rgba(38,35,35,0.55)"+ strokeWidth="1.5"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ );+}++/** Prev/next chapter card — mirrors the ContentFooter cards, but switches chapter via goTo. */+function ChapterCard({ dir, title, onSelect }: { dir: "prev" | "next"; title: string; onSelect: () => void }) {+ const next = dir === "next";+ return (+ <button+ type="button"+ onClick={onSelect}+ className={`group flex w-full items-center gap-[10px] rounded-[12px] border border-[#E7E7E3] bg-[rgba(251,251,248,0.6)] px-[16px] py-[12px] text-left shadow-[inset_0_1px_0_#fff] transition-colors hover:border-[#D9D9D3] hover:bg-[rgba(255,255,255,0.7)] ${+ next ? "flex-row-reverse text-right" : ""+ }`}+ >+ <FooterChevron dir={next ? "right" : "left"} />+ <span className="flex min-w-0 flex-1 flex-col">+ <span className="font-[family-name:var(--font-mono)] text-[10.5px] font-[600] uppercase tracking-[0.08em] text-[rgba(38,35,35,0.5)]">+ {next ? "Next" : "Previous"}+ </span>+ <span className="truncate text-[15px] font-[560] text-ink-ui transition-colors group-hover:text-[#262323]">+ {title}+ </span>+ </span>+ </button>+ );+}++export function HowToLayout({ bodies }: { bodies: ReactNode[] }) {+ const { active, goTo, registerScrollEl, chapters } = useGuide();++ const currentChapter = chapters[active.chapter];+ if (!currentChapter) return null;++ // Chapters of the current flow (with global indices) for the mobile selector and+ // the "read next" link — navigation stays within a flow, never spilling into the next.+ const flowChapters = chaptersInFlow(chapters, currentChapter.flow);+ const posInFlow = flowChapters.findIndex((c) => c.index === active.chapter);+ const prevInFlow = flowChapters[posInFlow - 1];+ const nextInFlow = flowChapters[posInFlow + 1];++ return (+ <main+ className="bg-[#F5F5F2] overflow-hidden min-h-0"+ style={{ height: "100dvh", paddingTop: "116px" }}+ >+ <div className="mx-auto w-full max-w-[1440px] px-[20px] flex h-full min-h-0 overflow-hidden">+ {/* Sidebar (desktop) */}+ <div className="hidden min-[1000px]:flex shrink-0 w-[260px] flex-col overflow-y-auto scrollbar-hidden-until-scroll nav-scroll-fade pl-[50px] pr-[10px] pt-[40px] pb-[40px]">+ <SidebarNav chapters={chapters} active={active} onActiveChange={goTo} />+ </div>++ {/* Content area */}+ <div className="flex-1 min-w-0 flex flex-col min-h-0">+ {/* Mobile chapter selector */}+ <div className="min-[1000px]:hidden px-[20px] pt-[20px] pb-[10px]">+ <div className="flex gap-[8px] overflow-x-auto scrollbar-none">+ {flowChapters.map(({ chapter, index }) => (+ <button+ key={chapter.slug}+ type="button"+ onClick={() => goTo({ chapter: index, item: 0 })}+ className={`shrink-0 whitespace-nowrap px-[14px] py-[8px] rounded-[8px] border-none cursor-pointer text-[14px] font-[460] tracking-[0.14px] transition-all duration-200 ${+ active.chapter === index+ ? "bg-[rgba(231,231,227,0.80)] text-ink-ui"+ : "bg-transparent text-ink-faint hover:bg-[rgba(231,231,227,0.40)]"+ }`}+ >+ {chapter.title}+ </button>+ ))}+ </div>+ </div>++ {/* Main content with custom scrollbar */}+ <div className="flex-1 min-h-0 flex">+ <ScrollArea scrollbarOffset={20} onScrollElement={registerScrollEl}>+ <div className="px-[20px] min-[476px]:pl-[32px] min-[1000px]:pl-[130px] min-[1000px]:pr-[20px] pb-[100px]">+ <div className="max-w-[620px]">+ <div className="pt-[44px]">+ <span+ className="inline-flex items-center justify-center rounded-[100px] px-[8px] py-[4px] font-[family-name:var(--font-mono)] text-[12px] font-medium leading-[16px] text-[rgba(38,35,35,0.5)] whitespace-nowrap"+ style={{+ background:+ "linear-gradient(180deg, rgba(251, 251, 248, 0.50) 0%, rgba(251, 251, 248, 0.00) 100%)",+ boxShadow:+ "0 0 0 1px #FFF inset, 0 0 0 1px rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.02)",+ }}+ >+ {currentChapter.label} — {currentChapter.slug.toUpperCase()}+ </span>+ </div>++ {/* MDX body for the active chapter */}+ {bodies[active.chapter]}++ {/* Footer — feedback + within-flow prev/next, matching the docs pages. */}+ <footer className="mt-[64px] border-t border-[rgba(38,35,35,0.12)] pt-[26px]">+ <PageFeedback key={active.chapter} variant="editorial" />+ {(prevInFlow || nextInFlow) && (+ <nav className="mt-[22px] grid grid-cols-1 gap-[12px] sm:grid-cols-2">+ <div>+ {prevInFlow && (+ <ChapterCard+ dir="prev"+ title={prevInFlow.chapter.title}+ onSelect={() => goTo({ chapter: prevInFlow.index, item: 0 })}+ />+ )}+ </div>+ <div>+ {nextInFlow && (+ <ChapterCard+ dir="next"+ title={nextInFlow.chapter.title}+ onSelect={() => goTo({ chapter: nextInFlow.index, item: 0 })}+ />+ )}+ </div>+ </nav>+ )}+ </footer>+ </div>+ </div>+ </ScrollArea>+ </div>+ </div>+ </div>+ </main>+ );+}diff --git a/apps/docs/components/editorial/illustrations.tsx b/apps/docs/components/editorial/illustrations.tsxnew file mode 100644index 0000000000..ec2c2bf4c7--- /dev/null+++ b/apps/docs/components/editorial/illustrations.tsx@@ -0,0 +1,775 @@+export type IllustrationKey =+ | "flow-overview"+ | "order-split"+ | "bom-tree"+ | "demand-forecast"+ | "planning-engine"+ | "shopfloor-loop"+ | "eight-d"+ | "traceability-graph"+ | "method-types"+ | "kit-vs-subassembly"+ | "reorder-policy"+ | "outside-processing"+ | "mes-station"+ | "issue-workflow"+ | "schedule-board"+ | "get-method"+ | "conversion-factor";++/* On-brand editorial illustrations — warm paper palette, DM Sans (inherited),+ * #00B0FF accent, made=blue / bought=amber tags matching the content badges.+ * Each is a responsive SVG (w-full h-auto) sized for the 620px reading column. */++const INK = "#262323";+const INK_60 = "rgba(38,35,35,0.6)";+const INK_45 = "rgba(38,35,35,0.45)";+const LINE = "#D8D7D2";+const BRAND = "#00B0FF";+const BRAND_INK = "#1E84B0";++const TAG = {+ made: { fill: "#DFF5FF", stroke: "#A9DAF3", text: "#3583A8" },+ bought: { fill: "#FFF2D8", stroke: "#E6CFA3", text: "#9C7136" },+ neutral: { fill: "#EFEFEB", stroke: "#DADAD5", text: "rgba(38,35,35,0.55)" },+};++function Box({+ x,+ y,+ w,+ h,+ label,+ sub,+ accent,+}: {+ x: number;+ y: number;+ w: number;+ h: number;+ label: string;+ sub?: string;+ accent?: boolean;+}) {+ return (+ <g>+ <rect+ x={x}+ y={y}+ width={w}+ height={h}+ rx={10}+ fill={accent ? "#EAF8FF" : "#FBFBF8"}+ stroke={accent ? BRAND : LINE}+ strokeWidth={1.4}+ />+ <text+ x={x + w / 2}+ y={sub ? y + h / 2 - 4 : y + h / 2 + 5}+ textAnchor="middle"+ fontSize="14"+ fontWeight={530}+ fill={accent ? BRAND_INK : INK}+ >+ {label}+ </text>+ {sub && (+ <text x={x + w / 2} y={y + h / 2 + 14} textAnchor="middle" fontSize="11.5" fill={INK_45}>+ {sub}+ </text>+ )}+ </g>+ );+}++function Arrow({ x1, y1, x2, y2 }: { x1: number; y1: number; x2: number; y2: number }) {+ const ang = Math.atan2(y2 - y1, x2 - x1);+ const ah = 5;+ return (+ <g stroke={INK_45} strokeWidth={1.4} fill="none">+ <line x1={x1} y1={y1} x2={x2} y2={y2} />+ <path+ d={`M ${x2 - ah * Math.cos(ang - 0.5)} ${y2 - ah * Math.sin(ang - 0.5)} L ${x2} ${y2} L ${x2 - ah * Math.cos(ang + 0.5)} ${y2 - ah * Math.sin(ang + 0.5)}`}+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </g>+ );+}++function Tag({ x, y, kind, label }: { x: number; y: number; kind: keyof typeof TAG; label: string }) {+ const t = TAG[kind];+ const w = label.length * 6.4 + 16;+ return (+ <g>+ <rect x={x} y={y} width={w} height={18} rx={9} fill={t.fill} stroke={t.stroke} strokeWidth={1} />+ <text x={x + w / 2} y={y + 12.5} textAnchor="middle" fontSize="10" fontWeight={500} fill={t.text}>+ {label}+ </text>+ </g>+ );+}++function FlowOverview() {+ const steps = ["Order", "Build", "Plan", "Floor", "Quality", "Ship"];+ const w = 132;+ const pitch = 150;+ const y = 30;+ return (+ <svg viewBox="0 0 912 92" className="w-full h-auto" role="img" aria-label="Carbon flow overview">+ {steps.map((s, i) => {+ const x = 6 + i * pitch;+ return (+ <g key={s}>+ {i > 0 && <Arrow x1={x - 18} y1={y + 26} x2={x - 2} y2={y + 26} />}+ <Box x={x} y={y} w={w} h={52} label={s} accent={i === 0} />+ <text x={x + 14} y={y + 16} fontSize="10" fontWeight={500} fill={INK_45} fontFamily="var(--font-mono)">+ {i + 1}+ </text>+ </g>+ );+ })}+ </svg>+ );+}++function OrderSplit() {+ const weeks = [+ { label: "Week 1 · 30 units", sub: "Released", accent: true },+ { label: "Week 2 · 30 units", sub: "Planned" },+ { label: "Week 3 · 30 units", sub: "Planned" },+ ];+ return (+ <svg viewBox="0 0 720 210" className="w-full h-auto" role="img" aria-label="Order split into jobs">+ <Box x={14} y={75} w={170} h={60} label="90 units" sub="1 sales order" />+ {weeks.map((wk, i) => {+ const y = 16 + i * 64;+ return (+ <g key={wk.label}>+ <path+ d={`M 184 105 C 280 105, 300 ${y + 24}, 392 ${y + 24}`}+ fill="none"+ stroke={LINE}+ strokeWidth={1.4}+ />+ <Box x={394} y={y} w={312} h={48} label={wk.label} sub={wk.sub} accent={wk.accent} />+ </g>+ );+ })}+ </svg>+ );+}++function BomTree() {+ return (+ <svg viewBox="0 0 720 312" className="w-full h-auto" role="img" aria-label="Robot bill of materials">+ {/* edges */}+ <g stroke={LINE} strokeWidth={1.4} fill="none">+ <path d="M 360 56 L 360 84 M 170 84 L 550 84 M 170 84 L 170 104 M 550 84 L 550 104" />+ <path d="M 170 156 L 170 184 M 80 184 L 260 184 M 80 184 L 80 208 M 260 184 L 260 208" />+ <path d="M 550 156 L 550 184 M 460 184 L 640 184 M 460 184 L 460 208 M 640 184 L 640 208" />+ </g>+ <Box x={290} y={12} w={140} h={44} label="Robot" sub="assembly" accent />+ <Box x={100} y={104} w={140} h={52} label="Arm" sub="made · to order" />+ <Box x={480} y={104} w={140} h={52} label="Leg" sub="made" />+ {[+ { x: 12, label: "Arm part", kind: "made" as const },+ { x: 188, label: "Arm motor", kind: "bought" as const },+ { x: 392, label: "Leg part", kind: "made" as const },+ { x: 568, label: "Leg motor", kind: "bought" as const },+ ].map((leaf) => (+ <g key={leaf.label}>+ <rect x={leaf.x} y={208} width={140} height={56} rx={9} fill="#FBFBF8" stroke={LINE} strokeWidth={1.4} />+ <text x={leaf.x + 70} y={230} textAnchor="middle" fontSize="13.5" fontWeight={530} fill={INK}>+ {leaf.label}+ </text>+ <g transform={`translate(${leaf.x + 70 - (leaf.kind === "made" ? 58 : 64)}, 240)`}>+ <Tag x={0} y={0} kind={leaf.kind} label={leaf.kind} />+ <Tag x={leaf.kind === "made" ? 52 : 58} y={0} kind="neutral" label="picked" />+ </g>+ </g>+ ))}+ </svg>+ );+}++function DemandForecast() {+ const data = [+ { wk: "Wk 1", qty: 30, forecast: false },+ { wk: "Wk 2", qty: 30, forecast: false },+ { wk: "Wk 3", qty: 30, forecast: false },+ { wk: "Wk 4", qty: 50, forecast: true },+ { wk: "Wk 5", qty: 70, forecast: true },+ ];+ const base = 196;+ const scale = 1.7;+ return (+ <svg viewBox="0 0 720 248" className="w-full h-auto" role="img" aria-label="Demand forecast by week">+ <line x1={40} y1={base} x2={700} y2={base} stroke={LINE} strokeWidth={1.4} />+ {data.map((d, i) => {+ const x = 70 + i * 126;+ const h = d.qty * scale;+ return (+ <g key={d.wk}>+ <rect+ x={x}+ y={base - h}+ width={84}+ height={h}+ rx={6}+ fill={d.forecast ? "#EAF8FF" : "#E7E7E1"}+ stroke={d.forecast ? BRAND : "#C9C8C2"}+ strokeWidth={1.4}+ strokeDasharray={d.forecast ? "4 3" : undefined}+ />+ <text x={x + 42} y={base - h - 8} textAnchor="middle" fontSize="13" fontWeight={600} fill={d.forecast ? BRAND_INK : INK}>+ {d.qty}+ </text>+ <text x={x + 42} y={base + 18} textAnchor="middle" fontSize="11.5" fill={INK_60}>+ {d.wk}+ </text>+ </g>+ );+ })}+ {/* legend */}+ <g>+ <rect x={430} y={14} width={16} height={12} rx={3} fill="#E7E7E1" stroke="#C9C8C2" strokeWidth={1.2} />+ <text x={452} y={24} fontSize="11.5" fill={INK_60}>Confirmed orders</text>+ <rect x={560} y={14} width={16} height={12} rx={3} fill="#EAF8FF" stroke={BRAND} strokeWidth={1.2} strokeDasharray="3 2" />+ <text x={582} y={24} fontSize="11.5" fill={INK_60}>Forecast</text>+ </g>+ </svg>+ );+}++function PlanningEngine() {+ return (+ <svg viewBox="0 0 720 212" className="w-full h-auto" role="img" aria-label="Planning engine">+ <Box x={16} y={78} w={188} h={56} label="Demand" sub="orders + forecast" accent />+ <Arrow x1={204} y1={70} x2={438} y2={48} />+ <Arrow x1={204} y1={120} x2={438} y2={160} />+ <Box x={440} y={22} w={266} h={52} label="Production planning" sub="→ jobs to build" />+ <Box x={440} y={134} w={266} h={52} label="Purchasing planning" sub="→ POs to raise" />+ </svg>+ );+}++function ShopfloorLoop() {+ const spokes = [+ { y: 14, label: "Backflush inventory", kind: "green" },+ { y: 74, label: "Log labor & cost", kind: "neutral" },+ { y: 134, label: "Scan serial / lot", kind: "brand" },+ ];+ return (+ <svg viewBox="0 0 720 200" className="w-full h-auto" role="img" aria-label="Shop floor reporting">+ <Box x={20} y={74} w={196} h={56} label="Operation" sub="reports complete" accent />+ {spokes.map((s) => (+ <g key={s.label}>+ <Arrow x1={216} y1={102} x2={446} y2={s.y + 24} />+ <rect x={448} y={s.y} width={258} height={48} rx={9} fill="#FBFBF8" stroke={LINE} strokeWidth={1.4} />+ <text x={468} y={s.y + 29} fontSize="13.5" fontWeight={500} fill={INK}>+ {s.label}+ </text>+ </g>+ ))}+ </svg>+ );+}++function EightD() {+ const steps = ["D1", "D2", "D3", "D4", "D5", "D6", "D7", "D8"];+ const subs = ["Team", "Define", "Contain", "Root cause", "Correct", "Implement", "Prevent", "Close"];+ const w = 78;+ const pitch = 88;+ const y = 46;+ return (+ <svg viewBox="0 0 720 124" className="w-full h-auto" role="img" aria-label="8D quality flow">+ {steps.map((s, i) => {+ const x = 8 + i * pitch;+ const active = i === 2;+ return (+ <g key={s}>+ {i > 0 && <Arrow x1={x - 10} y1={y + 23} x2={x - 1} y2={y + 23} />}+ <Box x={x} y={y} w={w} h={46} label={s} sub={subs[i]} accent={active} />+ </g>+ );+ })}+ <text x={8} y={26} fontSize="11.5" fill={INK_60}>+ Containment (D3) shows on the shop floor immediately.+ </text>+ </svg>+ );+}++function TraceabilityGraph() {+ return (+ <svg viewBox="0 0 720 300" className="w-full h-auto" role="img" aria-label="Traceability graph">+ <g stroke={LINE} strokeWidth={1.4} fill="none">+ <path d="M 360 58 L 360 84 M 175 84 L 545 84 M 175 84 L 175 104 M 545 84 L 545 104" />+ <path d="M 175 156 L 175 182 M 90 182 L 260 182 M 90 182 L 90 204 M 260 182 L 260 204" />+ <path d="M 545 156 L 545 182 M 460 182 L 630 182 M 460 182 L 460 204 M 630 182 L 630 204" />+ </g>+ <Box x={278} y={12} w={164} h={46} label="Robot #0001" sub="serial" accent />+ <Box x={105} y={104} w={140} h={52} label="Arm" sub="built 2026-06-18" />+ <Box x={475} y={104} w={140} h={52} label="Leg" sub="built 2026-06-19" />+ {[+ { x: 20, label: "Arm part", sub: "heat H-22" },+ { x: 190, label: "Arm motor", sub: "lot M-4471" },+ { x: 390, label: "Leg part", sub: "heat H-22" },+ { x: 560, label: "Leg motor", sub: "lot M-4472" },+ ].map((leaf) => (+ <Box key={leaf.label} x={leaf.x} y={204} w={140} h={50} label={leaf.label} sub={leaf.sub} />+ ))}+ </svg>+ );+}++function MethodTypes() {+ const lanes = [+ { method: "Make", box: "Becomes a job", sub: "its own routing", kind: "made" as const, y: 12 },+ { method: "Purchase", box: "Becomes a PO", sub: "from a supplier", kind: "bought" as const, y: 86 },+ { method: "Pull", box: "Pulled from stock", sub: "on hand", kind: "neutral" as const, y: 160 },+ ];+ return (+ <svg viewBox="0 0 720 220" className="w-full h-auto" role="img" aria-label="Method types: make, buy, pick">+ <Box x={16} y={82} w={150} h={56} label="Part" sub="method type" accent />+ {lanes.map((l) => {+ const ex = 442;+ const ey = l.y + 24;+ const mx = (166 + ex) / 2;+ const my = (110 + ey) / 2;+ const tagW = l.method.length * 6.4 + 16;+ return (+ <g key={l.method}>+ <Arrow x1={166} y1={110} x2={ex - 2} y2={ey} />+ <rect x={mx - tagW / 2} y={my - 9} width={tagW} height={18} rx={9} fill="#F5F5F2" />+ <Tag x={mx - tagW / 2} y={my - 9} kind={l.kind} label={l.method} />+ <Box x={ex} y={l.y} w={264} h={48} label={l.box} sub={l.sub} />+ </g>+ );+ })}+ </svg>+ );+}++function KitVsSubassembly() {+ return (+ <svg viewBox="0 0 720 250" className="w-full h-auto" role="img" aria-label="Kit versus subassembly">+ <line x1={360} y1={18} x2={360} y2={232} stroke={LINE} strokeWidth={1.2} strokeDasharray="4 5" />++ {/* Subassembly — builds as its own job */}+ <text x={24} y={26} fontSize="11.5" fontWeight={600} fill={INK_60} fontFamily="var(--font-mono)">+ SUBASSEMBLY+ </text>+ <Box x={110} y={42} w={150} h={46} label="Arm" sub="make to order" />+ <Arrow x1={185} y1={88} x2={185} y2={118} />+ <Box x={100} y={118} w={170} h={48} label="Arm job" sub="own routing" accent />+ <g stroke={LINE} strokeWidth={1.4} fill="none">+ <path d="M 185 166 L 185 184 M 145 184 L 265 184 M 145 184 L 145 198 M 265 184 L 265 198" />+ </g>+ <Box x={90} y={198} w={110} h={38} label="Part" />+ <Box x={210} y={198} w={110} h={38} label="Motor" />++ {/* Kit — components issued straight into the parent */}+ <text x={400} y={26} fontSize="11.5" fontWeight={600} fill={INK_60} fontFamily="var(--font-mono)">+ KIT+ </text>+ <Box x={465} y={42} w={150} h={46} label="Arm" sub="make to order" />+ <Arrow x1={540} y1={88} x2={540} y2={116} />+ <rect x={442} y={116} width={196} height={106} rx={12} fill="#EAF8FF" stroke={BRAND} strokeWidth={1.4} strokeDasharray="5 4" />+ <text x={540} y={137} textAnchor="middle" fontSize="10.5" fontWeight={600} fill={BRAND_INK} fontFamily="var(--font-mono)">+ ISSUED TOGETHER+ </text>+ <rect x={462} y={148} width={156} height={28} rx={7} fill="#FBFBF8" stroke={LINE} strokeWidth={1.3} />+ <text x={540} y={166} textAnchor="middle" fontSize="12.5" fontWeight={500} fill={INK}>+ Part+ </text>+ <rect x={462} y={184} width={156} height={28} rx={7} fill="#FBFBF8" stroke={LINE} strokeWidth={1.3} />+ <text x={540} y={202} textAnchor="middle" fontSize="12.5" fontWeight={500} fill={INK}>+ Motor+ </text>+ </svg>+ );+}++function ReorderPolicy() {+ const maxY = 58;+ const ropY = 150;+ const baseY = 204;+ const x0 = 92;+ const xEnd = 620;+ const pts = "96,58 220,150 220,58 348,150 348,58 476,150 476,58 612,150";+ return (+ <svg viewBox="0 0 720 240" className="w-full h-auto" role="img" aria-label="Reorder point policy">+ {/* axes */}+ <line x1={x0} y1={28} x2={x0} y2={baseY} stroke={LINE} strokeWidth={1.4} />+ <line x1={x0} y1={baseY} x2={668} y2={baseY} stroke={LINE} strokeWidth={1.4} />+ {/* thresholds */}+ <line x1={x0} y1={maxY} x2={xEnd} y2={maxY} stroke={INK_45} strokeWidth={1.2} strokeDasharray="5 4" />+ <line x1={x0} y1={ropY} x2={xEnd} y2={ropY} stroke={BRAND} strokeWidth={1.2} strokeDasharray="5 4" />+ {/* on-hand sawtooth */}+ <polyline+ points={pts}+ fill="none"+ stroke={BRAND}+ strokeWidth={2}+ strokeLinejoin="round"+ strokeLinecap="round"+ />+ {/* order placements at reorder crossings */}+ {[220, 348, 476].map((x) => (+ <circle key={x} cx={x} cy={ropY} r={3.6} fill={BRAND} />+ ))}+ {/* labels */}+ <text x={xEnd + 6} y={maxY + 4} fontSize="11.5" fill={INK_60}>+ Maximum+ </text>+ <text x={xEnd + 6} y={ropY + 4} fontSize="11.5" fill={BRAND_INK}>+ Reorder point+ </text>+ <text+ x={x0 - 8}+ y={34}+ textAnchor="end"+ fontSize="11"+ fill={INK_45}+ fontFamily="var(--font-mono)"+ transform={`rotate(-90 ${x0 - 8} 34)`}+ >+ on hand+ </text>+ <text x={x0 + 4} y={224} fontSize="11" fill={INK_45} fontFamily="var(--font-mono)">+ time →+ </text>+ {/* order annotation */}+ <rect x={232} y={118} width={94} height={18} rx={9} fill="#F5F5F2" />+ <Tag x={232} y={118} kind="neutral" label="order placed" />+ </svg>+ );+}++function OutsideProcessing() {+ return (+ <svg viewBox="0 0 720 188" className="w-full h-auto" role="img" aria-label="Outside processing operation">+ <Box x={16} y={30} w={168} h={52} label="Mill" sub="in-house" />+ <Arrow x1={184} y1={56} x2={210} y2={56} />+ {/* the outside step */}+ <rect x={212} y={30} width={168} height={52} rx={10} fill="#FFF8EC" stroke={TAG.bought.stroke} strokeWidth={1.5} strokeDasharray="5 4" />+ <text x={296} y={52} textAnchor="middle" fontSize="14" fontWeight={530} fill={INK}>+ Anodize+ </text>+ <text x={296} y={68} textAnchor="middle" fontSize="11.5" fill={TAG.bought.text}>+ outside+ </text>+ <Arrow x1={380} y1={56} x2={406} y2={56} />+ <Box x={408} y={30} w={168} h={52} label="Assemble" sub="in-house" />+ {/* branch out to the supplier PO */}+ <Arrow x1={296} y1={82} x2={296} y2={116} />+ <rect x={196} y={118} width={200} height={50} rx={10} fill="#FFF8EC" stroke={TAG.bought.stroke} strokeWidth={1.4} />+ <text x={296} y={140} textAnchor="middle" fontSize="13" fontWeight={530} fill={INK}>+ Outside Processing PO+ </text>+ <text x={296} y={157} textAnchor="middle" fontSize="11" fill={TAG.bought.text}>+ supplier rate + lead time+ </text>+ </svg>+ );+}++function MesStation() {+ const pills = [+ { label: "Setup", active: false },+ { label: "Labor", active: true },+ { label: "Machine", active: false },+ ];+ const qty = ["Log Completed", "Log Scrap", "Log Rework"];+ return (+ <svg viewBox="0 0 720 232" className="w-full h-auto" role="img" aria-label="MES operation station">+ <rect x={120} y={12} width={480} height={208} rx={16} fill="#FBFBF8" stroke={LINE} strokeWidth={1.6} />+ <text x={142} y={44} fontSize="11" fontWeight={600} fill={INK_45} fontFamily="var(--font-mono)">+ ARM · MILL OD+ </text>+ {/* setup / labor / machine time toggles */}+ {pills.map((p, i) => {+ const x = 142 + i * 150;+ return (+ <g key={p.label}>+ <rect+ x={x}+ y={58}+ width={140}+ height={42}+ rx={21}+ fill={p.active ? "#EAF8FF" : "#FFFFFF"}+ stroke={p.active ? BRAND : LINE}+ strokeWidth={1.4}+ />+ <circle+ cx={x + 24}+ cy={79}+ r={6}+ fill={p.active ? BRAND : "none"}+ stroke={p.active ? BRAND : INK_45}+ strokeWidth={1.4}+ />+ <text x={x + 40} y={84} fontSize="14" fontWeight={530} fill={p.active ? BRAND_INK : INK}>+ {p.label}+ </text>+ </g>+ );+ })}+ {/* quantity actions */}+ {qty.map((q, i) => {+ const x = 142 + i * 150;+ return (+ <g key={q}>+ <rect x={x} y={114} width={140} height={38} rx={9} fill="#FFFFFF" stroke={LINE} strokeWidth={1.3} />+ <text x={x + 70} y={138} textAnchor="middle" fontSize="12.5" fontWeight={500} fill={INK_60}>+ {q}+ </text>+ </g>+ );+ })}+ {/* finish */}+ <rect x={142} y={166} width={440} height={40} rx={11} fill={INK} />+ <text x={362} y={191} textAnchor="middle" fontSize="14" fontWeight={560} fill="#F5F5F2">+ Finish+ </text>+ </svg>+ );+}++function IssueWorkflow() {+ const life = [+ { label: "Registered", x: 40, accent: false },+ { label: "In Progress", x: 285, accent: true },+ { label: "Closed", x: 530, accent: false },+ ];+ const actions = [+ { label: "Containment", floor: true },+ { label: "Corrective", floor: false },+ { label: "Preventive", floor: false },+ { label: "Verification", floor: false },+ { label: "Communication", floor: false },+ ];+ return (+ <svg viewBox="0 0 720 214" className="w-full h-auto" role="img" aria-label="Issue workflow and actions">+ {/* lifecycle */}+ {life.map((s, i) => (+ <g key={s.label}>+ {i > 0 && <Arrow x1={life[i - 1].x + 156} y1={43} x2={s.x - 6} y2={43} />}+ <Box x={s.x} y={20} w={150} h={46} label={s.label} accent={s.accent} />+ </g>+ ))}+ {/* connector from In Progress down to the action bar */}+ <g stroke={LINE} strokeWidth={1.4} fill="none">+ <path d="M 360 66 L 360 104 M 84 104 L 628 104" />+ {[84, 220, 356, 492, 628].map((x) => (+ <path key={x} d={`M ${x} 104 L ${x} 128`} />+ ))}+ </g>+ {/* required-action tasks */}+ {actions.map((a, i) => {+ const x = 20 + i * 136;+ return (+ <g key={a.label}>+ <rect+ x={x}+ y={128}+ width={128}+ height={42}+ rx={10}+ fill={a.floor ? "#FFF2D8" : "#FBFBF8"}+ stroke={a.floor ? TAG.bought.stroke : LINE}+ strokeWidth={1.4}+ />+ <text+ x={x + 64}+ y={154}+ textAnchor="middle"+ fontSize="11.5"+ fontWeight={530}+ fill={a.floor ? TAG.bought.text : INK}+ >+ {a.label}+ </text>+ {a.floor && (+ <text x={x + 64} y={186} textAnchor="middle" fontSize="10" fill={INK_45} fontFamily="var(--font-mono)">+ on the floor+ </text>+ )}+ </g>+ );+ })}+ </svg>+ );+}++function ScheduleBoard() {+ const wc = [+ { name: "CNC", cards: ["Arm op", "Leg op"], accentLast: false },+ { name: "Deburr", cards: ["Arm op"], accentLast: false },+ { name: "Assembly", cards: ["Robot"], accentLast: true },+ ];+ const wk = [+ { name: "Wk 1", card: "Job · 30", accent: true },+ { name: "Wk 2", card: "Job · 30", accent: false },+ { name: "Wk 3", card: "Job · 30", accent: false },+ ];+ return (+ <svg viewBox="0 0 720 222" className="w-full h-auto" role="img" aria-label="Schedule boards by work center and by date">+ <text x={16} y={22} fontSize="11" fontWeight={600} fill={INK_45} fontFamily="var(--font-mono)">+ BY WORK CENTER+ </text>+ {wc.map((c, i) => {+ const x = 16 + i * 112;+ return (+ <g key={c.name}>+ <rect x={x} y={34} width={104} height={172} rx={9} fill="#F1F1EC" stroke={LINE} strokeWidth={1.2} />+ <text x={x + 52} y={52} textAnchor="middle" fontSize="11.5" fontWeight={530} fill={INK_60}>+ {c.name}+ </text>+ {c.cards.map((cd, j) => {+ const acc = c.accentLast && j === c.cards.length - 1;+ return (+ <g key={cd}>+ <rect+ x={x + 8}+ y={64 + j * 40}+ width={88}+ height={32}+ rx={7}+ fill={acc ? "#EAF8FF" : "#FFFFFF"}+ stroke={acc ? BRAND : LINE}+ strokeWidth={1.3}+ />+ <text+ x={x + 52}+ y={84 + j * 40}+ textAnchor="middle"+ fontSize="11.5"+ fontWeight={500}+ fill={acc ? BRAND_INK : INK}+ >+ {cd}+ </text>+ </g>+ );+ })}+ </g>+ );+ })}+ <line x1={372} y1={18} x2={372} y2={208} stroke={LINE} strokeWidth={1.2} strokeDasharray="4 5" />+ <text x={388} y={22} fontSize="11" fontWeight={600} fill={INK_45} fontFamily="var(--font-mono)">+ BY DATE+ </text>+ {wk.map((c, i) => {+ const x = 388 + i * 110;+ return (+ <g key={c.name}>+ <rect x={x} y={34} width={104} height={172} rx={9} fill="#F1F1EC" stroke={LINE} strokeWidth={1.2} />+ <text x={x + 52} y={52} textAnchor="middle" fontSize="11.5" fontWeight={530} fill={INK_60}>+ {c.name}+ </text>+ <rect+ x={x + 8}+ y={64}+ width={88}+ height={36}+ rx={7}+ fill={c.accent ? "#EAF8FF" : "#FFFFFF"}+ stroke={c.accent ? BRAND : LINE}+ strokeWidth={1.3}+ />+ <text+ x={x + 52}+ y={86}+ textAnchor="middle"+ fontSize="11.5"+ fontWeight={500}+ fill={c.accent ? BRAND_INK : INK}+ >+ {c.card}+ </text>+ </g>+ );+ })}+ </svg>+ );+}++function GetMethod() {+ return (+ <svg viewBox="0 0 720 150" className="w-full h-auto" role="img" aria-label="Get Method copies the recipe into the job">+ <Box x={40} y={40} w={190} h={66} label="Part" sub="master method" />+ <Box x={490} y={40} w={190} h={66} label="Job" sub="working copy" accent />+ {/* copy down */}+ <Arrow x1={232} y1={62} x2={488} y2={62} />+ <text x={360} y={52} textAnchor="middle" fontSize="12" fontWeight={600} fill={BRAND_INK} fontFamily="var(--font-mono)">+ Get Method+ </text>+ {/* push proven change back up (dashed, reversed) */}+ <g stroke={INK_45} strokeWidth={1.4} fill="none">+ <line x1={488} y1={92} x2={238} y2={92} strokeDasharray="5 4" />+ <path d="M 248 87 L 238 92 L 248 97" strokeLinecap="round" strokeLinejoin="round" />+ </g>+ <text x={360} y={108} textAnchor="middle" fontSize="11" fill={INK_45}>+ push a proven change back up+ </text>+ </svg>+ );+}++function ConversionFactor() {+ const units = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];+ return (+ <svg viewBox="0 0 720 150" className="w-full h-auto" role="img" aria-label="Conversion factor turns a purchased box into stocked units">+ {/* purchased box */}+ <rect x={70} y={44} width={160} height={62} rx={10} fill="#FFF8EC" stroke={TAG.bought.stroke} strokeWidth={1.5} />+ <text x={150} y={72} textAnchor="middle" fontSize="15" fontWeight={530} fill={INK}>+ 1 Box+ </text>+ <text x={150} y={90} textAnchor="middle" fontSize="11.5" fill={TAG.bought.text}>+ purchase unit+ </text>+ {/* conversion */}+ <Arrow x1={232} y1={75} x2={384} y2={75} />+ <text x={308} y={66} textAnchor="middle" fontSize="15" fontWeight={600} fill={BRAND_INK}>+ × 10+ </text>+ <text x={308} y={94} textAnchor="middle" fontSize="10.5" fill={INK_45} fontFamily="var(--font-mono)">+ conversion factor+ </text>+ {/* stocked units */}+ {units.map((n) => {+ const x = 410 + (n % 5) * 29;+ const y = 46 + Math.floor(n / 5) * 29;+ return <rect key={n} x={x} y={y} width={22} height={22} rx={5} fill="#EAF8FF" stroke={BRAND} strokeWidth={1.2} />;+ })}+ <line x1={404} y1={106} x2={560} y2={106} stroke={LINE} strokeWidth={1.6} />+ <text x={482} y={126} textAnchor="middle" fontSize="11.5" fill={INK_60}>+ 10 Each · stocked+ </text>+ </svg>+ );+}++export const illustrations: Record<IllustrationKey, () => React.ReactElement> = {+ "flow-overview": FlowOverview,+ "order-split": OrderSplit,+ "bom-tree": BomTree,+ "demand-forecast": DemandForecast,+ "planning-engine": PlanningEngine,+ "shopfloor-loop": ShopfloorLoop,+ "eight-d": EightD,+ "traceability-graph": TraceabilityGraph,+ "method-types": MethodTypes,+ "kit-vs-subassembly": KitVsSubassembly,+ "reorder-policy": ReorderPolicy,+ "outside-processing": OutsideProcessing,+ "mes-station": MesStation,+ "issue-workflow": IssueWorkflow,+ "schedule-board": ScheduleBoard,+ "get-method": GetMethod,+ "conversion-factor": ConversionFactor,+};diff --git a/apps/docs/components/editorial/mdx.tsx b/apps/docs/components/editorial/mdx.tsxnew file mode 100644index 0000000000..493f97dcc6--- /dev/null+++ b/apps/docs/components/editorial/mdx.tsx@@ -0,0 +1,193 @@+import type { ComponentPropsWithoutRef, ReactNode } from "react";+import { type IllustrationKey, illustrations } from "./illustrations";+import { Zoomable } from "./zoomable";++/* The editorial MDX component map. Guide chapters are authored as MDX and rendered+ * through these — markdown elements get the warm-paper prose styling, and the custom+ * <Figure>/<Screenshot>/<Callout> components carry the structured pieces the design+ * needs. Section headings stay as `##` so Fumadocs' rehype-slug gives every section a+ * stable id, which the rail and scrollspy key off. */++function ImageGlyph() {+ return (+ <svg width="26" height="26" viewBox="0 0 24 24" fill="none" aria-hidden>+ <rect x="3" y="5" width="18" height="14" rx="2.5" stroke="rgba(38,35,35,0.35)" strokeWidth="1.4" />+ <circle cx="8.5" cy="10" r="1.6" fill="rgba(38,35,35,0.3)" />+ <path d="M5 17l4.5-4.5 3 3L16 11l3 3.2" stroke="rgba(38,35,35,0.35)" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ );+}++const badgeToneClasses: Record<string, string> = {+ neutral: "border-[#DADAD5] bg-[#EFEFEB] text-[rgba(38,35,35,0.55)]",+ blue: "border-[#A9DAF3] bg-[#DFF5FF] text-[#3583A8]",+ green: "border-[#A8DB91] bg-[#E4F8DA] text-[#4F9140]",+ amber: "border-[#E6CFA3] bg-[#FFF2D8] text-[#9C7136]",+};++function Badge({ children, tone = "neutral" }: { children: ReactNode; tone?: string }) {+ return (+ <span+ className={`inline-flex items-center rounded-[100px] border px-[10px] py-[4px] font-[family-name:var(--font-mono)] text-[11.5px] leading-[14px] tracking-[0.03em] ${badgeToneClasses[tone] || badgeToneClasses.neutral}`}+ >+ {children}+ </span>+ );+}++export function Figure({ illustration, caption }: { illustration: IllustrationKey; caption?: string }) {+ const Illustration = illustrations[illustration];+ return (+ <figure className="my-[40px]">+ <Zoomable>+ <div className="rounded-[12px] border border-[#E7E7E3] bg-[#FBFBF8] px-[24px] py-[28px] shadow-[inset_0_1px_0_#fff]">+ {Illustration ? <Illustration /> : null}+ </div>+ </Zoomable>+ {caption && (+ <figcaption className="mt-[12px] text-center text-[12px] text-ink-faint">{caption}</figcaption>+ )}+ </figure>+ );+}++export function Screenshot({+ label,+ caption,+ ratio = "wide",+}: {+ label: string;+ caption?: string;+ ratio?: "wide" | "tall" | "square";+}) {+ const aspect =+ ratio === "tall" ? "aspect-[3/4]" : ratio === "square" ? "aspect-square" : "aspect-[16/9]";+ return (+ <figure className="my-[40px]">+ <Zoomable>+ <div+ className={`relative w-full ${aspect} rounded-[12px] border border-dashed border-[#CCCBC4] bg-[#F1F1EC] overflow-hidden`}+ >+ <div className="absolute inset-0 flex flex-col items-center justify-center gap-[10px] px-6 text-center">+ <ImageGlyph />+ <span className="font-[family-name:var(--font-mono)] text-[10px] tracking-[0.08em] uppercase text-[rgba(38,35,35,0.42)]">+ Carbon screenshot+ </span>+ <span className="text-[14px] font-[500] text-[rgba(38,35,35,0.68)] max-w-[360px]">{label}</span>+ </div>+ </div>+ </Zoomable>+ {caption && (+ <figcaption className="mt-[12px] text-center text-[12px] text-ink-faint">{caption}</figcaption>+ )}+ </figure>+ );+}++export function Callout({+ tone = "neutral",+ badge,+ title,+ children,+}: {+ tone?: "neutral" | "blue" | "green" | "amber";+ badge: string;+ title: string;+ children: ReactNode;+}) {+ return (+ <div className="my-[48px] callout-box p-[8px]">+ <div className="w-full callout-box-inner px-[22px] py-[20px]">+ <Badge tone={tone}>{badge}</Badge>+ <p className="m-0 mt-[10px] text-[18px] font-[530] leading-[140%] text-ink">{title}</p>+ {/* div, not p: MDX already wraps the callout body in a paragraph, so a <p> here+ would nest <p><p>…</p></p> (invalid → hydration mismatch). */}+ <div className="m-0 mt-[12px] text-[15px] font-[460] leading-[160%] tracking-[0.15px] text-[rgba(38,35,35,0.70)] [&>p]:m-0">+ {children}+ </div>+ </div>+ </div>+ );+}++export function Divider() {+ return <hr className="my-[48px] border-none border-t border-[#E7E7E3]" />;+}++function Paragraph(props: ComponentPropsWithoutRef<"p">) {+ return (+ <p+ {...props}+ className="m-0 mt-[20px] text-[15px] font-[460] leading-[160%] tracking-[0.15px] text-[rgba(38,35,35,0.70)]"+ />+ );+}++function UnorderedList(props: ComponentPropsWithoutRef<"ul">) {+ return <ul {...props} className="m-0 mt-[20px] flex flex-col gap-[12px] list-none pl-0" />;+}++function ListItem({ children, ...props }: ComponentPropsWithoutRef<"li">) {+ return (+ <li+ {...props}+ className="flex gap-[12px] items-start text-[15px] font-[460] leading-[160%] tracking-[0.15px] text-[rgba(38,35,35,0.70)]"+ >+ <span className="mt-[8px] shrink-0 w-[8px] h-[8px] rounded-[24px] border-[1.5px] border-[rgba(190,190,190,0.50)] bg-[#F5F5F2] shadow-[0_1px_1px_0_#FFF,inset_0_0_0.357px_1.071px_#FFF,inset_0_0_0.357px_1.071px_rgba(255,255,255,0.35),inset_0_1.429px_0_0_#FFF]" />+ <span className="flex-1">{children}</span>+ </li>+ );+}++// `##` section headings — the big editorial title each rail item links to. Spread+// props first so rehype-slug's injected `id` survives (anchors + scrollspy need it).+function Heading2(props: ComponentPropsWithoutRef<"h2">) {+ return (+ <h2+ {...props}+ className="scroll-mt-[32px] m-0 pt-[50px] text-[32px] md:text-[40px] font-normal leading-[115%] text-ink"+ />+ );+}++function Heading3(props: ComponentPropsWithoutRef<"h3">) {+ return <h3 {...props} className="m-0 mt-[48px] text-[24px] font-[530] leading-[140%] tracking-[0.24px] text-ink" />;+}++function Heading4(props: ComponentPropsWithoutRef<"h4">) {+ return <h4 {...props} className="m-0 mt-[32px] text-[15px] font-[530] leading-[140%] tracking-[0.15px] text-ink" />;+}++function Blockquote(props: ComponentPropsWithoutRef<"blockquote">) {+ return (+ <blockquote+ {...props}+ className="m-0 mt-[20px] pl-[16px] border-l-[2px] border-[#D5D5D3] text-[15px] font-[460] leading-[160%] tracking-[0.15px] text-ink-faint italic"+ />+ );+}++function Anchor(props: ComponentPropsWithoutRef<"a">) {+ return <a {...props} className="text-[#1E84B0] no-underline hover:underline" />;+}++function HorizontalRule() {+ return <Divider />;+}++export const editorialMdxComponents = {+ p: Paragraph,+ ul: UnorderedList,+ li: ListItem,+ h1: Heading2,+ h2: Heading2,+ h3: Heading3,+ h4: Heading4,+ blockquote: Blockquote,+ hr: HorizontalRule,+ a: Anchor,+ Figure,+ Screenshot,+ Callout,+ Divider,+};diff --git a/apps/docs/components/editorial/reference-components.tsx b/apps/docs/components/editorial/reference-components.tsxnew file mode 100644index 0000000000..456356de9b--- /dev/null+++ b/apps/docs/components/editorial/reference-components.tsx@@ -0,0 +1,163 @@+import type { ReactNode } from "react";++/* Editorial replacements for Fumadocs' default MDX Callout/Card, so the Reference+ * reads in the same warm-paper language as the Guide: cream callout boxes with a+ * mono badge, and warm cards with a hover arrow. Wired in via getMDXComponents. */++const toneClasses: Record<string, string> = {+ neutral: "border-[#DADAD5] bg-[#EFEFEB] text-[rgba(38,35,35,0.55)]",+ blue: "border-[#A9DAF3] bg-[#DFF5FF] text-[#3583A8]",+ green: "border-[#A8DB91] bg-[#E4F8DA] text-[#4F9140]",+ amber: "border-[#E6CFA3] bg-[#FFF2D8] text-[#9C7136]",+};++const calloutKinds: Record<string, { badge: string; tone: keyof typeof toneClasses }> = {+ info: { badge: "NOTE", tone: "blue" },+ note: { badge: "NOTE", tone: "blue" },+ warn: { badge: "HEADS UP", tone: "amber" },+ warning: { badge: "HEADS UP", tone: "amber" },+ error: { badge: "IMPORTANT", tone: "amber" },+ success: { badge: "GOOD TO KNOW", tone: "green" },+ tip: { badge: "TIP", tone: "green" },+};++export function Callout({+ type = "info",+ title,+ children,+}: {+ type?: string;+ title?: ReactNode;+ children?: ReactNode;+}) {+ const kind = calloutKinds[type] ?? calloutKinds.info;+ return (+ <div className="my-[32px] callout-box p-[8px]">+ <div className="w-full callout-box-inner px-[20px] py-[16px]">+ <span+ className={`inline-flex items-center rounded-[100px] border px-[7px] py-[3px] font-[family-name:var(--font-mono)] text-[10px] leading-[12px] ${toneClasses[kind.tone]}`}+ >+ {kind.badge}+ </span>+ {title && (+ <p className="m-0 mt-[10px] text-[16px] font-[560] leading-[140%] text-[#262323]">{title}</p>+ )}+ <div className="m-0 mt-[8px] text-[14.5px] font-[460] leading-[160%] text-[rgba(38,35,35,0.72)] [&>p]:m-0 [&>p+p]:mt-[10px]">+ {children}+ </div>+ </div>+ </div>+ );+}++export function Cards({ children }: { children?: ReactNode }) {+ return <div className="my-[28px] grid gap-[14px] sm:grid-cols-2">{children}</div>;+}++export function Card({+ title,+ href,+ icon,+ children,+}: {+ title?: ReactNode;+ href?: string;+ icon?: ReactNode;+ children?: ReactNode;+}) {+ return (+ <a+ href={href}+ className="group relative flex flex-col rounded-[14px] border border-[#E7E7E3] bg-[linear-gradient(180deg,#FFFFFF_0%,#FBFBF8_100%)] px-[18px] py-[15px] no-underline shadow-[0_1px_2px_rgba(0,0,0,0.03),inset_0_1px_0_#fff] transition-[transform,box-shadow,border-color] duration-200 hover:-translate-y-px hover:border-[#D2D2CC] hover:shadow-[0_12px_28px_-16px_rgba(0,0,0,0.22)]"+ >+ <div className="flex items-start justify-between gap-[10px]">+ <div className="flex min-w-0 items-center gap-[10px]">+ {icon && (+ <span className="flex h-[26px] w-[26px] shrink-0 items-center justify-center rounded-[8px] border border-[#E7E7E3] bg-white text-[rgba(38,35,35,0.6)] shadow-[inset_0_1px_0_#fff]">+ {icon}+ </span>+ )}+ <span className="truncate text-[15px] font-[560] tracking-[0.1px] text-[#262323]">{title}</span>+ </div>+ <svg+ width="14"+ height="14"+ viewBox="0 0 14 14"+ fill="none"+ aria-hidden+ className="mt-[4px] shrink-0 text-[rgba(38,35,35,0.3)] transition-all duration-200 group-hover:translate-x-[2px] group-hover:text-[rgba(38,35,35,0.62)]"+ >+ <path+ d="M5.5 3.5L9 7l-3.5 3.5"+ stroke="currentColor"+ strokeWidth="1.4"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ </div>+ {children && (+ // div, not p: MDX wraps the card's text child in its own <p>, so a <p> here+ // would nest <p><p> (hydration error). Re-apply the description styles to that+ // inner <p> so .prose's paragraph rules don't resize it.+ <div className="mt-[7px] text-[13.5px] font-[450] leading-[155%] text-[rgba(38,35,35,0.56)] [&>p]:m-0 [&>p]:text-[13.5px] [&>p]:font-[450] [&>p]:leading-[155%] [&>p]:text-[rgba(38,35,35,0.56)]">+ {children}+ </div>+ )}+ </a>+ );+}++/* Field-style reference rows (env vars, parameters) — name · type · default ·+ * required badge, with a description beneath. Hairline-divided list. */+export function EnvVars({ children }: { children?: ReactNode }) {+ return (+ <div className="my-[24px] divide-y divide-[#E7E7E3] border-y border-[#E7E7E3]">{children}</div>+ );+}++export function EnvVar({+ name,+ type,+ default: defaultValue,+ required,+ children,+}: {+ name: string;+ type?: string;+ default?: string;+ required?: boolean;+ children?: ReactNode;+}) {+ return (+ <div className="py-[16px]">+ <div className="flex flex-wrap items-center gap-x-[10px] gap-y-[4px]">+ <span className="font-[family-name:var(--font-mono)] text-[14px] font-[500] text-[#262323]">+ {name}+ </span>+ {type && (+ <span className="font-[family-name:var(--font-mono)] text-[12px] text-[rgba(38,35,35,0.45)]">+ {type}+ </span>+ )}+ {defaultValue != null && (+ <span className="font-[family-name:var(--font-mono)] text-[12px] text-[rgba(38,35,35,0.4)]">+ default: {defaultValue}+ </span>+ )}+ {required ? (+ <span className="inline-flex items-center rounded-[5px] border border-[#E6CFA3] bg-[#FFF2D8] px-[6px] py-[1px] text-[10.5px] font-medium tracking-[0.02em] text-[#9C7136]">+ required+ </span>+ ) : (+ <span className="text-[11px] text-[rgba(38,35,35,0.38)]">optional</span>+ )}+ </div>+ {children && (+ <div className="mt-[7px] text-[14px] leading-[155%] text-[rgba(38,35,35,0.66)] [&>p]:m-0 [&>p]:text-[14px] [&>p]:leading-[155%] [&>p]:text-[rgba(38,35,35,0.66)] [&>p+p]:mt-[8px]">+ {children}+ </div>+ )}+ </div>+ );+}diff --git a/apps/docs/components/editorial/sidebar-nav.tsx b/apps/docs/components/editorial/sidebar-nav.tsxnew file mode 100644index 0000000000..3f5c45c41a--- /dev/null+++ b/apps/docs/components/editorial/sidebar-nav.tsx@@ -0,0 +1,55 @@+import { chaptersInFlow, type GuideChapter } from "./guide-context";++interface SidebarNavProps {+ chapters: GuideChapter[];+ active: { chapter: number; item: number };+ onActiveChange: (pos: { chapter: number; item: number }) => void;+}++// Show only the active flow's chapters; `chapterIdx` stays the GLOBAL index so it+// keeps addressing the right body/scroll position in the flat chapter list.+export function SidebarNav({ chapters, active, onActiveChange }: SidebarNavProps) {+ const activeFlow = chapters[active.chapter]?.flow;+ const visible = activeFlow ? chaptersInFlow(chapters, activeFlow) : [];++ return (+ <nav className="flex flex-col gap-[40px]">+ {visible.map(({ chapter, index: chapterIdx }) => (+ <div key={chapter.slug}>+ <div className="relative flex items-center">+ <span className="absolute right-[calc(100%+10px)] top-1/2 -translate-y-1/2 font-[family-name:var(--font-mono)] text-[12px] font-[500] text-ink-faint leading-[140%] tracking-[0.12px] whitespace-nowrap">+ {chapter.label}+ </span>+ <span className="text-[rgba(32,32,32,0.80)] text-[15px] font-[530] leading-[140%] tracking-[0.15px]">+ {chapter.title}+ </span>+ </div>+ <div className="mt-[24px] flex flex-col gap-[12px]">+ {chapter.items.map((item, itemIdx) => {+ const isActive = active.chapter === chapterIdx && active.item === itemIdx;+ return (+ <button+ key={item.id}+ type="button"+ onClick={() => onActiveChange({ chapter: chapterIdx, item: itemIdx })}+ className="flex gap-[14px] text-left cursor-pointer bg-transparent border-none p-0 items-center"+ >+ <div+ className={`w-[8px] h-[8px] rounded-[5.5px] shrink-0 transition-all duration-200 ${+ isActive+ ? "bg-[#B2E7FF] shadow-[0_1px_1px_0_rgba(0,126,183,0.70),inset_0_0.5px_0.2px_0_#FFF,0_0_0_3px_#96DEFF]"+ : "bg-[#F3F3F0] shadow-[0_1px_1px_0_rgba(0,0,0,0.25),0_0_0_3px_rgba(213,213,211,0.50),inset_0_0.5px_0.2px_0_#FFF]"+ }`}+ />+ <span className="text-[rgba(75,75,74,0.80)] text-[15px] font-[460] leading-[140%] tracking-[0.15px] whitespace-pre-line">+ {item.title}+ </span>+ </button>+ );+ })}+ </div>+ </div>+ ))}+ </nav>+ );+}diff --git a/apps/docs/components/editorial/site-header.tsx b/apps/docs/components/editorial/site-header.tsxnew file mode 100644index 0000000000..2e65e9bad8--- /dev/null+++ b/apps/docs/components/editorial/site-header.tsx@@ -0,0 +1,122 @@+"use client";++import Link from "next/link";+import { useGuide } from "./guide-context";++function Divider() {+ return (+ <span className="relative mx-[7px] self-center shrink-0 w-[1px] h-[16px] translate-y-[4px]">+ <span+ className="absolute inset-0 opacity-40"+ style={{+ background:+ "linear-gradient(180deg, transparent 0%, rgba(32,32,32,0.18) 50%, transparent 100%)",+ }}+ />+ </span>+ );+}++export function SiteHeader() {+ const { active, goTo, chapters } = useGuide();++ return (+ <header+ className="site-header fixed top-0 left-0 right-0 z-[201] flex justify-center"+ style={{+ background: "#F5F5F2",+ borderBottom: "1px solid",+ borderColor: "#E8E7E6",+ boxShadow: "0 1px 0 0 #fff",+ }}+ >+ <div className="w-full max-w-[1440px] mx-auto px-[20px] min-[476px]:px-[32px] md:px-[20px] py-[18px] min-[1000px]:py-0 min-[1000px]:pt-[26px] min-[1000px]:pb-[23px] flex items-center justify-between">+ {/* Logo */}+ <Link className="shrink-0 flex items-center gap-[10px] no-underline" aria-label="Home" href="/">+ <img src="/carbon-mark-light.svg" alt="" width={22} height={22} className="block" />+ <span className="hidden min-[480px]:inline text-ink-ui text-[16px] font-[580] tracking-[0.16px]">+ Carbon+ </span>+ </Link>++ {/* Desktop Navigation */}+ <div className="hidden min-[1000px]:block">+ <nav className="flex items-center gap-3">+ <div className="relative flex h-[41px] items-center pl-[14px] pr-[10px] rounded-[8px]">+ <span className="group relative inline-flex items-center justify-center rounded-[4px] py-[2px] px-[5px] pointer-events-none">+ <span+ className="nav-link relative z-10 no-underline whitespace-nowrap px-[6px] text-[15px] leading-[150%] tracking-[0.15px] font-[460] cursor-default"+ style={{ color: "rgba(32, 32, 32, 0.40)" }}+ >+ How to+ </span>+ </span>++ {chapters.map((chapter) => {+ const isActive = active.chapter === chapter.index;+ return (+ <span className="contents" key={chapter.slug}>+ <Divider />+ <span className="group relative inline-flex items-center justify-center rounded-[4px] py-[2px] px-[5px]">+ <span+ aria-hidden="true"+ className={`pointer-events-none absolute inset-0 rounded-[4px] transition-opacity duration-200 ease-out ${+ isActive ? "opacity-100" : "opacity-0 group-hover:opacity-100"+ } bg-[rgba(231,231,227,0.80)]`}+ />+ <a+ className="nav-link relative z-10 no-underline whitespace-nowrap px-[6px] text-[15px] leading-[150%] tracking-[0.15px] transition-[color,font-weight] duration-200 ease-in-out text-ink-ui font-[460]"+ href={`/guides/${chapter.slug}`}+ aria-current={isActive ? "page" : undefined}+ onClick={(e) => {+ e.preventDefault();+ goTo({ chapter: chapter.index, item: 0 });+ }}+ >+ {chapter.slug.charAt(0).toUpperCase() + chapter.slug.slice(1)}+ </a>+ </span>+ </span>+ );+ })}+ </div>++ {/* Reference (Fumadocs surface) */}+ <div className="relative flex h-[41px] items-center justify-center px-[8px] rounded-[8px]">+ <span className="relative inline-flex items-center justify-center rounded-[4px] py-[2px] px-[5px] group">+ <span+ aria-hidden="true"+ className="pointer-events-none absolute inset-0 rounded-[4px] bg-[rgba(231,231,227,0.80)] transition-opacity duration-200 ease-out opacity-0 group-hover:opacity-100"+ />+ <Link+ className="nav-link relative z-10 no-underline whitespace-nowrap px-[6px] text-[15px] leading-[150%] tracking-[0.15px] text-ink-ui font-[460]"+ href="/docs"+ >+ Reference+ </Link>+ </span>+ </div>++ {/* CTA */}+ <a+ className="group relative inline-flex items-center justify-center no-underline whitespace-nowrap cursor-pointer h-[41px] px-3 rounded-[8px] w-[140px]"+ href="https://app.carbon.ms"+ >+ <span+ aria-hidden="true"+ className="pointer-events-none absolute inset-0 rounded-[8px] cta-btn-dark opacity-100"+ />+ <span+ aria-hidden="true"+ className="pointer-events-none absolute inset-0 rounded-[8px] btn-dark-hover opacity-0 duration-200 ease-out group-hover:opacity-100 transition-opacity"+ />+ <span className="relative z-10 inline-flex items-center justify-center gap-[6px]">+ <span className="font-[460] text-[15px] tracking-[0.15px] text-on-dark">Open Carbon</span>+ </span>+ </a>+ </nav>+ </div>+ </div>+ </header>+ );+}diff --git a/apps/docs/components/editorial/zoomable.tsx b/apps/docs/components/editorial/zoomable.tsxnew file mode 100644index 0000000000..0856fcc832--- /dev/null+++ b/apps/docs/components/editorial/zoomable.tsx@@ -0,0 +1,92 @@+"use client";++/* Click-to-enlarge for guide figures and screenshots. The thumbnail and the+ * fullscreen overlay share a Framer Motion `layoutId`, so opening morphs the image+ * up into a centered lightbox and closing morphs it back — no cut, no reload. Esc or+ * a backdrop click closes it; body scroll is locked while open. */++import { AnimatePresence, motion } from "framer-motion";+import { type ReactNode, useEffect, useId, useState } from "react";+import { createPortal } from "react-dom";++const spring = { type: "spring", stiffness: 280, damping: 32 } as const;++export function Zoomable({ children }: { children: ReactNode }) {+ const [open, setOpen] = useState(false);+ const [mounted, setMounted] = useState(false);+ const id = useId();++ useEffect(() => setMounted(true), []);++ useEffect(() => {+ if (!open) return;+ const onKey = (e: KeyboardEvent) => {+ if (e.key === "Escape") setOpen(false);+ };+ window.addEventListener("keydown", onKey);+ const prev = document.body.style.overflow;+ document.body.style.overflow = "hidden";+ return () => {+ window.removeEventListener("keydown", onKey);+ document.body.style.overflow = prev;+ };+ }, [open]);++ return (+ <>+ <motion.button+ type="button"+ layoutId={id}+ transition={spring}+ onClick={() => setOpen(true)}+ aria-label="Enlarge"+ style={{ opacity: open ? 0 : 1 }}+ className="group relative block w-full cursor-zoom-in appearance-none border-0 bg-transparent p-0 text-left"+ >+ {children}+ <span className="pointer-events-none absolute right-[14px] top-[14px] flex h-[28px] w-[28px] items-center justify-center rounded-[8px] border border-[#E7E7E3] bg-[#FBFBF8]/90 opacity-0 shadow-sm backdrop-blur-sm transition-opacity duration-200 group-hover:opacity-100">+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden>+ <path+ d="M6 2H2v4M10 2h4v4M6 14H2v-4M10 14h4v-4"+ stroke="rgba(38,35,35,0.55)"+ strokeWidth="1.4"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ </span>+ </motion.button>++ {mounted &&+ createPortal(+ <AnimatePresence>+ {open && (+ <motion.div+ key="zoom-overlay"+ className="fixed inset-0 z-[300] flex items-center justify-center p-[20px] md:p-[56px]"+ onClick={() => setOpen(false)}+ >+ <motion.div+ aria-hidden+ className="absolute inset-0 bg-[rgba(38,35,35,0.55)] backdrop-blur-[3px]"+ initial={{ opacity: 0 }}+ animate={{ opacity: 1 }}+ exit={{ opacity: 0 }}+ transition={{ duration: 0.2 }}+ />+ <motion.div+ layoutId={id}+ transition={spring}+ onClick={(e) => e.stopPropagation()}+ className="relative z-10 w-full max-w-[min(1100px,92vw)] max-h-[88vh] cursor-zoom-out overflow-auto"+ >+ {children}+ </motion.div>+ </motion.div>+ )}+ </AnimatePresence>,+ document.body,+ )}+ </>+ );+}diff --git a/apps/docs/components/feature-callout.tsx b/apps/docs/components/feature-callout.tsxnew file mode 100644index 0000000000..2974e07781--- /dev/null+++ b/apps/docs/components/feature-callout.tsx@@ -0,0 +1,56 @@+/**+ * FeatureCallout — the two-column "bridge to product" card. Left: the+ * explanation + a CTA. Right: a muted aside. Use whenever a concept maps to a+ * direct action in Carbon. Server component (no client JS needed).+ *+ * Usage in MDX:+ * <FeatureCallout title="Try in Carbon" href="https://app.carbon.ms"+ * cta="Open the routing builder →" aside="Templated per item revision.">+ * Lay out operations and assign each to a work center...+ * </FeatureCallout>+ */+import Link from "next/link";+import type { ReactNode } from "react";++export function FeatureCallout({+ title = "Try in Carbon",+ href,+ cta = "Open Carbon →",+ aside,+ children,+}: {+ title?: string;+ href?: string;+ cta?: string;+ aside?: ReactNode;+ children: ReactNode;+}) {+ return (+ <div className="not-prose my-8 rounded-xl border border-border bg-card p-6 shadow-sm">+ <div className="grid gap-6 sm:grid-cols-[1fr_minmax(0,12rem)]">+ <div>+ <div className="mb-3 flex items-center justify-between gap-4">+ <span className="inline-flex items-center rounded-full bg-brand/10 px-2.5 py-0.5 text-xs font-medium text-brand">+ {title}+ </span>+ {href && (+ <Link+ href={href}+ className="inline-flex shrink-0 items-center rounded-lg bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground transition-opacity hover:opacity-90"+ >+ {cta}+ </Link>+ )}+ </div>+ <div className="text-[15px] leading-relaxed text-foreground [&>p]:m-0">{children}</div>+ </div>++ {aside && (+ <p className="text-xs leading-relaxed text-muted-foreground sm:border-l sm:border-border sm:pl-5">+ {aside}+ </p>+ )}+ </div>+ </div>+ );+}diff --git a/apps/docs/components/frame.tsx b/apps/docs/components/frame.tsxnew file mode 100644index 0000000000..2646a79828--- /dev/null+++ b/apps/docs/components/frame.tsx@@ -0,0 +1,24 @@+/**+ * Frame — wraps a screenshot/diagram in a rounded, hairline-bordered frame with+ * an optional caption, so media reads as a deliberate figure rather than a raw+ * pasted image. Server component.+ *+ * Usage in MDX:+ * <Frame caption="The routing builder, mid-edit.">+ * + * </Frame>+ */+import type { ReactNode } from "react";++export function Frame({ children, caption }: { children: ReactNode; caption?: string }) {+ return (+ <figure className="not-prose my-8">+ <div className="overflow-hidden rounded-xl border border-border bg-card shadow-sm [&_img]:m-0 [&_img]:block [&_img]:w-full">+ {children}+ </div>+ {caption && (+ <figcaption className="mt-3 text-center text-xs text-muted-foreground">{caption}</figcaption>+ )}+ </figure>+ );+}diff --git a/apps/docs/components/main-header.tsx b/apps/docs/components/main-header.tsxnew file mode 100644index 0000000000..5f25016d0e--- /dev/null+++ b/apps/docs/components/main-header.tsx@@ -0,0 +1,58 @@+import Link from "next/link";+import { SearchCommand } from "./search/search-command";++const NAV = [+ { key: "guides", label: "Guides", href: "/guides/order" },+ { key: "reference", label: "Reference", href: "/docs" },+ { key: "api", label: "API", href: "/api-reference" },+ { key: "mcp", label: "MCP", href: "/mcp" },+] as const;++type Active = (typeof NAV)[number]["key"];++/** The single site-wide header: Carbon · Guide · Reference · API · Open Carbon. */+export function MainHeader({ active }: { active?: Active }) {+ return (+ <header+ className="fixed inset-x-0 top-0 z-[60] flex h-[64px] items-center justify-between px-[24px] md:px-[32px]"+ style={{ background: "#F5F5F2", borderBottom: "1px solid #E8E7E6", boxShadow: "0 1px 0 0 #fff" }}+ >+ <div className="flex items-center gap-[26px]">+ <Link href="/" className="flex shrink-0 items-center no-underline" aria-label="Carbon home">+ <img src="/carbon-word-light.svg" alt="Carbon" width={99} height={24} className="block" />+ </Link>+ <nav className="hidden items-center gap-[2px] md:flex">+ {NAV.map((item) => (+ <Link+ key={item.key}+ href={item.href}+ aria-current={active === item.key ? "page" : undefined}+ className={`nav-link rounded-[7px] px-[10px] py-[6px] text-[15px] leading-[150%] tracking-[0.15px] no-underline transition-colors ${+ active === item.key+ ? "text-ink-ui font-[530]"+ : "text-ink-faint font-[460] hover:text-ink-ui hover:bg-[rgba(231,231,227,0.55)]"+ }`}+ >+ {item.label}+ </Link>+ ))}+ </nav>+ </div>++ <div className="flex items-center gap-[10px]">+ <SearchCommand />+ <a+ className="group relative inline-flex h-[40px] items-center justify-center rounded-[8px] px-[16px] no-underline"+ href="https://app.carbon.ms"+ >+ <span aria-hidden="true" className="pointer-events-none absolute inset-0 rounded-[8px] cta-btn-dark" />+ <span+ aria-hidden="true"+ className="pointer-events-none absolute inset-0 rounded-[8px] btn-dark-hover opacity-0 transition-opacity duration-200 ease-out group-hover:opacity-100"+ />+ <span className="text-on-dark relative z-10 text-[14px] font-[460] tracking-[0.15px]">Open Carbon</span>+ </a>+ </div>+ </header>+ );+}diff --git a/apps/docs/components/mdx.tsx b/apps/docs/components/mdx.tsxnew file mode 100644index 0000000000..4046b2f3bc--- /dev/null+++ b/apps/docs/components/mdx.tsx@@ -0,0 +1,41 @@+import { Step, Steps } from "fumadocs-ui/components/steps";+import { Tab, Tabs } from "fumadocs-ui/components/tabs";+import defaultMdxComponents from "fumadocs-ui/mdx";+import type { MDXComponents } from "mdx/types";+import type { ComponentProps } from "react";+import { MdxCodeBlock } from "@/components/api/mdx-code-block";+import { Checklist, Check } from "@/components/checklist";+// Editorial Callout/Card so the Reference matches the Guide (not Fumadocs defaults).+import { Callout, Card, Cards, EnvVar, EnvVars } from "@/components/editorial/reference-components";+import { FeatureCallout } from "@/components/feature-callout";+import { Frame } from "@/components/frame";+import { Eyebrow } from "@/components/prose";+import { ScrollReveal } from "@/components/scroll-reveal";++export function getMDXComponents(components?: MDXComponents) {+ return {+ ...defaultMdxComponents,+ // Fenced code → our dark API-playground panel (not Fumadocs' default block).+ pre: ({ title, children }: ComponentProps<"pre">) => (+ <MdxCodeBlock title={typeof title === "string" ? title : undefined}>{children}</MdxCodeBlock>+ ),+ Card,+ Cards,+ Callout,+ EnvVar,+ EnvVars,+ Step,+ Steps,+ Tab,+ Tabs,+ ScrollReveal,+ FeatureCallout,+ Checklist,+ Check,+ Frame,+ Eyebrow,+ ...components,+ } satisfies MDXComponents;+}++export const useMDXComponents = getMDXComponents;diff --git a/apps/docs/components/nav-scroll-chevron.tsx b/apps/docs/components/nav-scroll-chevron.tsxnew file mode 100644index 0000000000..e69aff58e9--- /dev/null+++ b/apps/docs/components/nav-scroll-chevron.tsx@@ -0,0 +1,51 @@+"use client";++import { useEffect, useRef, useState } from "react";++/* Sits at the bottom of the nav sidebar (its closest scrolling <aside>) and shows a+ * fade + down-chevron whenever there's more nav below the fold. Hides once the list+ * is scrolled to the end. The top-edge fade is handled by the `.nav-scroll-fade`+ * mask in reference.css. */+export function NavScrollChevron() {+ const ref = useRef<HTMLDivElement>(null);+ const [more, setMore] = useState(false);++ useEffect(() => {+ const scroller = ref.current?.closest("aside");+ if (!scroller) return;+ const update = () => {+ setMore(scroller.scrollHeight - scroller.scrollTop - scroller.clientHeight > 8);+ };+ update();+ scroller.addEventListener("scroll", update, { passive: true });+ const ro = new ResizeObserver(update);+ ro.observe(scroller);+ return () => {+ scroller.removeEventListener("scroll", update);+ ro.disconnect();+ };+ }, []);++ return (+ <div+ ref={ref}+ aria-hidden+ className={`pointer-events-none sticky bottom-[-28px] z-10 -mx-[20px] flex h-[48px] items-end justify-center pb-[12px] transition-opacity duration-200 ${+ more ? "opacity-100" : "opacity-0"+ }`}+ style={{ background: "linear-gradient(to top, #FBFBF9 42%, rgba(251,251,249,0))" }}+ >+ <span className="flex h-[22px] w-[22px] items-center justify-center rounded-full border border-[#E7E7E3] bg-[#FBFBF8] text-[rgba(38,35,35,0.5)] shadow-[0_2px_6px_-2px_rgba(0,0,0,0.2)]">+ <svg width="13" height="13" viewBox="0 0 16 16" fill="none" aria-hidden>+ <path+ d="M4 6l4 4 4-4"+ stroke="currentColor"+ strokeWidth="1.7"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ </span>+ </div>+ );+}diff --git a/apps/docs/components/prose.tsx b/apps/docs/components/prose.tsxnew file mode 100644index 0000000000..2bfe54308c--- /dev/null+++ b/apps/docs/components/prose.tsx@@ -0,0 +1,20 @@+/**+ * Small editorial primitives for the Guide surface.+ *+ * Eyebrow — the small pill above a chapter H1 ("Chapter III"). Register it in+ * mdx-components.tsx and use <Eyebrow> (capitalized — lowercase tags are treated+ * as plain HTML in MDX and won't resolve to a component).+ *+ * Usage in MDX:+ * <Eyebrow>Chapter III</Eyebrow>+ * # Run production+ */+import type { ReactNode } from "react";++export function Eyebrow({ children }: { children: ReactNode }) {+ return (+ <span className="not-prose mb-3 inline-flex items-center rounded-full border border-border px-3 py-1 text-xs font-medium tracking-wide text-muted-foreground">+ {children}+ </span>+ );+}diff --git a/apps/docs/components/reading-progress.tsx b/apps/docs/components/reading-progress.tsxnew file mode 100644index 0000000000..f49ac2cacb--- /dev/null+++ b/apps/docs/components/reading-progress.tsx@@ -0,0 +1,46 @@+"use client";++/**+ * ReadingProgress — the right-edge tick ruler that fills as the reader scrolls.+ * Mount once in the Guide layout (not inside MDX). Hidden below lg.+ *+ * Design intent: make the page's length *finite and visible*. A reader who can+ * see they're 40% through keeps going. See references/design-language.md.+ */+import { motion, useScroll, useTransform } from "framer-motion";++const TICKS = 32;++function Ticks({ className }: { className?: string }) {+ return (+ <div className={`flex h-full flex-col justify-between ${className ?? ""}`}>+ {Array.from({ length: TICKS }).map((_, i) => (+ <span key={i} className="h-px w-3 rounded-full bg-current" />+ ))}+ </div>+ );+}++export function ReadingProgress() {+ const { scrollYProgress } = useScroll();+ // Reveal the brand-colored copy of the ruler from the top down to scroll depth.+ const height = useTransform(scrollYProgress, (v) => `${Math.min(Math.max(v, 0), 1) * 100}%`);++ return (+ <div+ aria-hidden+ className="pointer-events-none fixed right-5 top-1/2 z-30 hidden h-56 -translate-y-1/2 lg:block"+ >+ <div className="relative h-full">+ {/* Base ticks (inactive) */}+ <Ticks className="text-border" />+ {/* Accent overlay clipped to scroll progress; inner copy is full-height so ticks align */}+ <motion.div className="absolute inset-x-0 top-0 overflow-hidden text-brand" style={{ height }}>+ <div className="h-56">+ <Ticks className="text-brand" />+ </div>+ </motion.div>+ </div>+ </div>+ );+}diff --git a/apps/docs/components/scroll-hints.tsx b/apps/docs/components/scroll-hints.tsxnew file mode 100644index 0000000000..fb12631e4a--- /dev/null+++ b/apps/docs/components/scroll-hints.tsx@@ -0,0 +1,40 @@+"use client";++import { useEffect, useState } from "react";++/* Back-to-top button for the docs (window-scrolled content). Appears once you've+ * scrolled down and smooth-scrolls to the top. The scroll *fade* affordance lives on+ * the navigation sidebar (see .scrollbar-hidden-until-scroll), not the content —+ * a paper gradient looks wrong over the dark footer. */++export function ScrollHints() {+ const [scrolled, setScrolled] = useState(false);++ useEffect(() => {+ const update = () => setScrolled(window.scrollY > 380);+ update();+ window.addEventListener("scroll", update, { passive: true });+ return () => window.removeEventListener("scroll", update);+ }, []);++ return (+ <button+ type="button"+ aria-label="Back to top"+ onClick={() => window.scrollTo({ top: 0, behavior: "smooth" })}+ className={`fixed bottom-[22px] right-[22px] z-[60] flex h-[40px] w-[40px] items-center justify-center rounded-full border border-[#E7E7E3] bg-[rgba(251,251,248,0.92)] text-[rgba(38,35,35,0.55)] shadow-[0_6px_18px_-6px_rgba(0,0,0,0.25)] backdrop-blur transition-all duration-200 hover:-translate-y-px hover:border-[#D2D2CC] hover:text-[#262323] ${+ scrolled ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0"+ }`}+ >+ <svg width="15" height="15" viewBox="0 0 16 16" fill="none" aria-hidden>+ <path+ d="M4 10l4-4 4 4"+ stroke="currentColor"+ strokeWidth="1.6"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ </button>+ );+}diff --git a/apps/docs/components/scroll-reveal.tsx b/apps/docs/components/scroll-reveal.tsxnew file mode 100644index 0000000000..a980351826--- /dev/null+++ b/apps/docs/components/scroll-reveal.tsx@@ -0,0 +1,39 @@+"use client";++/**+ * ScrollReveal — fade + gentle rise as a section enters the viewport, once.+ * Wrap Guide sections to pace a long page. Honors prefers-reduced-motion:+ * when the user opts out, it renders the final state with no animation.+ *+ * Usage in MDX:+ * <ScrollReveal>+ * ## Why routings matter+ * ...+ * </ScrollReveal>+ */+import { motion, useReducedMotion } from "framer-motion";+import type { ReactNode } from "react";++export function ScrollReveal({+ children,+ className,+}: {+ children: ReactNode;+ className?: string;+}) {+ const reduce = useReducedMotion();++ if (reduce) return <div className={className}>{children}</div>;++ return (+ <motion.div+ className={className}+ initial={{ opacity: 0, y: 12 }}+ whileInView={{ opacity: 1, y: 0 }}+ viewport={{ once: true, margin: "0px 0px -12% 0px" }}+ transition={{ duration: 0.4, ease: [0.22, 1, 0.36, 1] }}+ >+ {children}+ </motion.div>+ );+}diff --git a/apps/docs/components/search/search-command.tsx b/apps/docs/components/search/search-command.tsxnew file mode 100644index 0000000000..3e9f77774b--- /dev/null+++ b/apps/docs/components/search/search-command.tsx@@ -0,0 +1,361 @@+"use client";++import * as Dialog from "@radix-ui/react-dialog";+import { useDocsSearch } from "fumadocs-core/search/client";+import { fetchClient } from "fumadocs-core/search/client/fetch";+import { useRouter } from "next/navigation";+import { useCallback, useEffect, useMemo, useRef, useState } from "react";++/* Site-wide ⌘K search. Headless fumadocs `useDocsSearch` over the single /api/search+ * endpoint; the surface pills set the Orama `tag` filter. Everything visual here is the+ * warm-paper design — fumadocs-ui's dialog is intentionally not used. */++// Don't query orama below this — a single letter just substring-matches everything.+const MIN_QUERY = 3;+// Strip markdown emphasis/code markers from snippet text. Underscores stay: tool names use them.+const clean = (s: string) => s.replace(/[*`]/g, "");++// Keep the palette scannable. Fumadocs has no server-side limit, so cap here: results come+// back grouped by page (a page row then its heading/text rows), so keep the first N groups+// and a few rows each.+const MAX_PAGES = 8;+const MAX_ROWS_PER_PAGE = 4;+function capResults<T extends { url: string }>(rows: T[]): T[] {+ const out: T[] = [];+ const perPage = new Map<string, number>();+ for (const r of rows) {+ const base = r.url.split("#")[0];+ let n = perPage.get(base);+ if (n === undefined) {+ if (perPage.size >= MAX_PAGES) continue;+ n = 0;+ perPage.set(base, 0);+ }+ if (n >= MAX_ROWS_PER_PAGE) continue;+ perPage.set(base, n + 1);+ out.push(r);+ }+ return out;+}++const SURFACES = [+ { key: "all", label: "All", tag: undefined },+ { key: "guide", label: "Guide", tag: "guide" },+ { key: "docs", label: "Reference", tag: "docs" },+ { key: "resources", label: "API", tag: "resources" },+ { key: "tools", label: "MCP", tag: "tools" },+] as const;++const surfaceToneClasses: Record<string, string> = {+ guide: "border-[#A9DAF3] bg-[#DFF5FF] text-[#3583A8]",+ api: "border-[#A8DB91] bg-[#E4F8DA] text-[#4F9140]",+ mcp: "border-[#E6CFA3] bg-[#FFF2D8] text-[#9C7136]",+ docs: "border-[#DADAD5] bg-[#EFEFEB] text-[rgba(38,35,35,0.6)]",+};++// Which surface a result belongs to is read back off its URL — the flat result list+// from fetchClient doesn't echo the index `tag`.+function surfaceOf(url: string): { label: string; key: string } {+ if (url.startsWith("/guides")) return { label: "Guide", key: "guide" };+ if (url.startsWith("/api-reference")) return { label: "API", key: "api" };+ if (url.startsWith("/mcp")) return { label: "MCP", key: "mcp" };+ return { label: "Reference", key: "docs" };+}++function SearchGlyph({ className }: { className?: string }) {+ return (+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" aria-hidden className={className}>+ <circle cx="11" cy="11" r="7" stroke="currentColor" strokeWidth="1.8" />+ <path d="m20 20-3.2-3.2" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" />+ </svg>+ );+}++export function SearchCommand() {+ const [open, setOpen] = useState(false);+ const [tag, setTag] = useState<string | undefined>(undefined);+ const [active, setActive] = useState(0);+ const [modKey, setModKey] = useState("⌘");+ const router = useRouter();+ const listRef = useRef<HTMLDivElement>(null);++ // Recreated only when the surface filter changes; `customDeps` re-queries on tag switch.+ const client = useMemo(() => fetchClient({ api: "/api/search", tag }), [tag]);+ const { setSearch, query } = useDocsSearch({ client, delayMs: 80 }, [tag]);++ // Local input value; the orama query only fires at >= MIN_QUERY chars.+ const [value, setValue] = useState("");+ const onChange = useCallback(+ (v: string) => {+ setValue(v);+ setSearch(v.trim().length >= MIN_QUERY ? v.trim() : "");+ },+ [setSearch],+ );++ const results = capResults(query.data && query.data !== "empty" ? query.data : []);+ const ready = value.trim().length >= MIN_QUERY;++ // ⌘K / Ctrl+K toggles the palette from anywhere.+ useEffect(() => {+ if (navigator.platform && !/mac/i.test(navigator.platform)) setModKey("Ctrl ");+ function onKey(e: KeyboardEvent) {+ if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k") {+ e.preventDefault();+ setOpen((o) => !o);+ }+ }+ window.addEventListener("keydown", onKey);+ return () => window.removeEventListener("keydown", onKey);+ }, []);++ // Keep the highlighted row in range and scrolled into view as results change.+ useEffect(() => {+ setActive(0);+ }, [results.length, tag]);++ useEffect(() => {+ listRef.current?.querySelector<HTMLElement>(`[data-row="${active}"]`)?.scrollIntoView({ block: "nearest" });+ }, [active]);++ const go = useCallback(+ (url: string) => {+ setOpen(false);+ router.push(url);+ },+ [router],+ );++ function onInputKey(e: React.KeyboardEvent) {+ if (e.key === "ArrowDown") {+ e.preventDefault();+ setActive((a) => Math.min(a + 1, results.length - 1));+ } else if (e.key === "ArrowUp") {+ e.preventDefault();+ setActive((a) => Math.max(a - 1, 0));+ } else if (e.key === "Enter" && results[active]) {+ e.preventDefault();+ go(results[active].url);+ }+ }++ return (+ <Dialog.Root open={open} onOpenChange={setOpen}>+ <Dialog.Trigger asChild>+ <button+ type="button"+ aria-label="Search docs"+ className="group inline-flex h-[38px] items-center gap-[8px] rounded-[8px] border border-[rgba(32,32,32,0.1)] bg-[#F5F5F2] pl-[10px] pr-[8px] text-ink-faint shadow-[0_1px_2px_0_rgba(0,0,0,0.04)] transition-colors hover:text-ink-ui sm:w-[260px] sm:justify-between"+ >+ <span className="flex items-center gap-[8px]">+ <SearchGlyph />+ <span className="hidden text-[14px] font-[460] tracking-[0.15px] sm:inline">Search</span>+ </span>+ <kbd className="hidden items-center rounded-[5px] border border-[#DEDEDA] bg-[#FBFBF8] px-[5px] py-[1px] font-[family-name:var(--font-mono)] text-[11px] leading-[16px] text-[rgba(38,35,35,0.5)] sm:inline-flex">+ {modKey}K+ </kbd>+ </button>+ </Dialog.Trigger>++ <Dialog.Portal>+ <Dialog.Overlay className="fixed inset-0 z-[100] bg-[rgba(38,35,35,0.32)] backdrop-blur-[2px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" />+ <Dialog.Content+ onOpenAutoFocus={(e) => {+ // Focus the input, not Radix's default first-focusable.+ e.preventDefault();+ (e.currentTarget as HTMLElement).querySelector<HTMLInputElement>("input")?.focus();+ }}+ className="fixed left-1/2 top-[11vh] z-[101] flex max-h-[72vh] w-[calc(100vw-32px)] max-w-[600px] -translate-x-1/2 flex-col overflow-hidden rounded-[14px] border border-[#E3E3DF] bg-[#FBFBF8] shadow-[0_24px_60px_-12px_rgba(38,35,35,0.28)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95"+ >+ <Dialog.Title className="sr-only">Search Carbon docs</Dialog.Title>+ <Dialog.Description className="sr-only">+ Search the guide, reference, API resources, and MCP tools.+ </Dialog.Description>++ {/* Search field */}+ <div className="flex h-[56px] shrink-0 items-center gap-[12px] border-b border-[#EAEAE6] px-[18px]">+ <SearchGlyph className="shrink-0 text-[rgba(38,35,35,0.4)]" />+ <input+ value={value}+ onChange={(e) => onChange(e.target.value)}+ onKeyDown={onInputKey}+ placeholder="Search docs, API resources, MCP tools…"+ className="h-full flex-1 border-0 bg-transparent text-[16px] leading-[150%] text-ink outline-none placeholder:text-[rgba(38,35,35,0.42)]"+ spellCheck={false}+ autoComplete="off"+ />+ <kbd className="shrink-0 rounded-[5px] border border-[#DEDEDA] bg-[#F5F5F2] px-[6px] py-[2px] font-[family-name:var(--font-mono)] text-[11px] text-[rgba(38,35,35,0.5)]">+ esc+ </kbd>+ </div>++ {/* Surface filter pills */}+ <div className="flex shrink-0 items-center gap-[6px] border-b border-[#EAEAE6] px-[14px] py-[9px]">+ {SURFACES.map((s) => {+ const on = tag === s.tag;+ return (+ <button+ key={s.key}+ type="button"+ onClick={() => setTag(s.tag)}+ className={`rounded-[100px] px-[11px] py-[4px] text-[12.5px] font-[460] leading-[16px] transition-colors ${+ on+ ? "bg-[#262323] text-[#F5F5F2]"+ : "text-ink-faint hover:bg-[rgba(231,231,227,0.7)] hover:text-ink-ui"+ }`}+ >+ {s.label}+ </button>+ );+ })}+ </div>++ {/* Results */}+ <div ref={listRef} className="scrollbar-hidden-until-scroll min-h-[120px] flex-1 overflow-y-auto p-[8px]">+ {!ready ? (+ <Hint />+ ) : query.isLoading && results.length === 0 ? (+ <Status>Searching…</Status>+ ) : results.length === 0 ? (+ <Status>+ No results for <span className="text-ink">“{value.trim()}”</span>+ </Status>+ ) : (+ results.map((r, i) => (+ <ResultRow+ key={r.id}+ result={r}+ index={i}+ active={i === active}+ onHover={() => setActive(i)}+ onClick={() => go(r.url)}+ />+ ))+ )}+ </div>++ {/* Footer */}+ <div className="flex h-[40px] shrink-0 items-center gap-[16px] border-t border-[#EAEAE6] px-[16px] text-[12px] text-[rgba(38,35,35,0.5)]">+ <FooterKey k="↑↓" label="navigate" />+ <FooterKey k="↵" label="open" />+ <FooterKey k="esc" label="close" />+ </div>+ </Dialog.Content>+ </Dialog.Portal>+ </Dialog.Root>+ );+}++type Result = { id: string; url: string; type: "page" | "heading" | "text"; content: string };++function ResultRow({+ result,+ index,+ active,+ onHover,+ onClick,+}: {+ result: Result;+ index: number;+ active: boolean;+ onHover: () => void;+ onClick: () => void;+}) {+ const isPage = result.type === "page";+ const surface = surfaceOf(result.url);+ return (+ <button+ type="button"+ data-row={index}+ onMouseMove={onHover}+ onClick={onClick}+ className={`flex w-full items-center gap-[12px] rounded-[8px] px-[12px] text-left transition-colors ${+ isPage ? "mt-[6px] py-[10px] first:mt-0" : "py-[7px] pl-[34px]"+ } ${active ? "bg-[rgba(231,231,227,0.75)]" : ""}`}+ >+ {!isPage && (+ <span className="shrink-0 text-[rgba(38,35,35,0.32)]" aria-hidden>+ ↳+ </span>+ )}+ <span+ className={`min-w-0 flex-1 truncate ${+ isPage+ ? "text-[14.5px] font-[530] text-ink"+ : result.type === "heading"+ ? "text-[13.5px] font-[460] text-[rgba(38,35,35,0.82)]"+ : "text-[13px] font-[440] text-[rgba(38,35,35,0.62)]"+ }`}+ >+ <Highlighted content={result.content} />+ </span>+ {isPage && (+ <span+ className={`shrink-0 rounded-[100px] border px-[7px] py-[2px] font-[family-name:var(--font-mono)] text-[10px] leading-[12px] ${surfaceToneClasses[surface.key]}`}+ >+ {surface.label}+ </span>+ )}+ </button>+ );+}++function Highlighted({ content }: { content: string }) {+ // fumadocs wraps matched substrings in literal <mark> tags inside the result string.+ // Split on the tags and style the marked parts — rendered as escaped text, never raw HTML.+ const parts = content.split(/(<mark>|<\/mark>)/g);+ let marked = false;+ return (+ <>+ {parts.map((part, i) => {+ if (part === "<mark>") {+ marked = true;+ return null;+ }+ if (part === "</mark>") {+ marked = false;+ return null;+ }+ const text = clean(part);+ if (!text) return null;+ return marked ? (+ <mark key={i} className="bg-transparent font-[600] text-[#A76451]">+ {text}+ </mark>+ ) : (+ <span key={i}>{text}</span>+ );+ })}+ </>+ );+}++function Hint() {+ return (+ <div className="flex flex-col items-center justify-center gap-[8px] px-6 py-[40px] text-center">+ <SearchGlyph className="text-[rgba(38,35,35,0.28)]" />+ <p className="m-0 text-[14px] leading-[150%] text-[rgba(38,35,35,0.55)]">+ Search the guide, reference, API resources, and MCP tools.+ </p>+ </div>+ );+}++function Status({ children }: { children: React.ReactNode }) {+ return (+ <div className="px-[12px] py-[36px] text-center text-[14px] leading-[150%] text-[rgba(38,35,35,0.55)]">+ {children}+ </div>+ );+}++function FooterKey({ k, label }: { k: string; label: string }) {+ return (+ <span className="inline-flex items-center gap-[6px]">+ <kbd className="inline-flex items-center rounded-[5px] border border-[#DEDEDA] bg-[#F5F5F2] px-[5px] py-[1px] font-[family-name:var(--font-mono)] text-[11px] leading-[14px]">+ {k}+ </kbd>+ {label}+ </span>+ );+}diff --git a/apps/docs/components/site-footer.tsx b/apps/docs/components/site-footer.tsxnew file mode 100644index 0000000000..b95234f6c0--- /dev/null+++ b/apps/docs/components/site-footer.tsx@@ -0,0 +1,133 @@+import { siGithub, siX } from "simple-icons";++// LinkedIn was removed from simple-icons v16, so its 24×24 glyph is inlined here.+const LINKEDIN_PATH =+ "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z";++const SOCIAL = [+ { label: "X", href: "https://x.com/carbon_ms", path: siX.path },+ {+ label: "LinkedIn",+ href: "https://www.linkedin.com/company/carbon-manufacturing-systems",+ path: LINKEDIN_PATH,+ },+ { label: "GitHub", href: "https://github.com/crbnos", path: siGithub.path },+];++const COLUMNS = [+ {+ heading: "Company",+ links: [+ { label: "Brand Assets", href: "https://carbon.ms/brand" },+ { label: "Blog", href: "https://carbon.ms/learn" },+ { label: "Contact", href: "https://carbon.ms/contact" },+ { label: "OSS Friends", href: "https://carbon.ms/oss" },+ { label: "Sales", href: "https://carbon.ms/sales" },+ ],+ },+ {+ heading: "Product",+ links: [+ { label: "Learning", href: "https://learn.carbon.ms" },+ { label: "License", href: "https://github.com/crbnos/carbon/blob/main/LICENSE" },+ { label: "Pricing", href: "https://carbon.ms/pricing" },+ { label: "Source Code", href: "https://github.com/crbnos/carbon" },+ ],+ },+ {+ heading: "Legal",+ links: [+ { label: "Privacy", href: "https://carbon.ms/privacy" },+ { label: "Terms", href: "https://carbon.ms/terms" },+ ],+ },+];++function SocialIcon({ label, href, path }: { label: string; href: string; path: string }) {+ return (+ <a+ href={href}+ target="_blank"+ rel="noreferrer noopener"+ aria-label={label}+ className="text-white/55 transition-colors hover:text-white"+ >+ <svg width="17" height="17" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">+ <path d={path} />+ </svg>+ </a>+ );+}++/** Site-wide footer, mirroring carbon.ms: brand · social · status, link columns, ITAR, copyright. */+export function SiteFooter() {+ const year = new Date().getFullYear();+ return (+ <footer className="w-full border-t border-white/10 bg-[#1A1816] text-white">+ <div className="mx-auto w-full max-w-[1280px] px-[24px] py-[48px] md:px-[32px]">+ <div className="flex flex-col justify-between gap-[40px] lg:flex-row">+ {/* Brand block */}+ <div className="flex flex-col gap-[18px]">+ <img src="/carbon-word-dark.svg" alt="Carbon" width={116} height={28} className="block" />+ <div className="flex items-center gap-[16px]">+ {SOCIAL.map((s) => (+ <SocialIcon key={s.label} {...s} />+ ))}+ </div>+ <div className="mt-[2px]">+ <p className="m-0 text-[13px] text-white/45">System Status:</p>+ <a+ href="https://status.carbon.ms"+ target="_blank"+ rel="noreferrer noopener"+ className="mt-[3px] inline-flex items-center gap-[7px] text-[14px] text-white/85 transition-colors hover:text-white"+ >+ Operational+ <span className="inline-block h-[7px] w-[7px] rounded-full bg-[#3FB950] shadow-[0_0_6px_rgba(63,185,80,0.7)]" />+ </a>+ </div>+ </div>++ {/* Link columns */}+ <div className="flex flex-1 flex-wrap gap-x-[56px] gap-y-[32px] lg:justify-center">+ {COLUMNS.map((col) => (+ <nav key={col.heading} className="flex min-w-[120px] flex-col gap-[12px]">+ <p className="m-0 text-[13px] font-medium text-white/40">{col.heading}</p>+ {col.links.map((link) => (+ <a+ key={link.label}+ href={link.href}+ target="_blank"+ rel="noreferrer noopener"+ className="text-[14px] text-white/70 no-underline transition-colors hover:text-white"+ >+ {link.label}+ </a>+ ))}+ </nav>+ ))}+ </div>++ {/* ITAR badge — the shared lockup is dark-inked (made for light backgrounds), so its text+ would vanish on the dark footer. Sit it on a light chip to keep it legible. */}+ <div className="flex items-center">+ <span className="inline-flex items-center rounded-[10px] bg-white px-[16px] py-[11px]">+ <img+ src="https://carbon.ms/logos/itar.svg"+ alt="ITAR Registered & Compliant"+ className="block h-[36px] w-auto"+ />+ </span>+ </div>+ </div>++ {/* Copyright */}+ <div className="mt-[40px] border-t border-white/10 pt-[20px]">+ <p className="m-0 text-[13px] text-white/40">+ © {year} Carbon Manufacturing Systems Corp. All rights reserved.+ </p>+ </div>+ </div>+ </footer>+ );+}diff --git a/apps/docs/content/docs/index.mdx b/apps/docs/content/docs/index.mdxnew file mode 100644index 0000000000..00aeeecac0--- /dev/null+++ b/apps/docs/content/docs/index.mdx@@ -0,0 +1,29 @@+---+title: Introduction+description: Carbon is a manufacturing system — ERP, MES, and training in one platform. These are the technical docs.+---++Carbon is a manufacturing system: **ERP** for the office (orders, purchasing, planning, accounting),+**MES** for the floor (jobs, operations, tracking), and **Academy** for training — one platform over one+data model.++These are the **technical docs**: exact behavior, fields, and operations. If you're new, start with the+narrated [**Guide**](/guides/order), which walks one order from the sales desk to a shipped, traceable robot.+Come here when you already know the noun you need and want the precise detail behind it.++## How the docs are organized++<Cards>+ <Card title="Architecture" href="/docs/platform/architecture">+ How Carbon is built — apps, packages, database, events, jobs, and auth.+ </Card>+ <Card title="Deployment" href="/docs/platform/deployment">+ Self-host Carbon on AWS with SST, plus the local development setup.+ </Card>+ <Card title="Environment variables" href="/docs/platform/environment-variables">+ Every variable that configures a Carbon instance, grouped by concern.+ </Card>+ <Card title="Reference" href="/docs/reference/methods">+ The entities behind the Guide — methods, reordering, routings, and more.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/integrate/app-connections.mdx b/apps/docs/content/docs/integrate/app-connections.mdxnew file mode 100644index 0000000000..9d70a7df3e--- /dev/null+++ b/apps/docs/content/docs/integrate/app-connections.mdx@@ -0,0 +1,47 @@+---+title: App connections+description: Connect Carbon to your accounting, CAD, project-management, and messaging tools.+---++Carbon ships a set of first-party **integrations** to third-party apps. Each one is enabled per company under **Settings → Integrations**, where you flip it on and supply its credentials or settings.++## Available integrations++| Integration | Category | What it does |+| --- | --- | --- |+| Email | Email | Sends outbound email — Carbon-managed via Resend, or your own SMTP server. |+| Exchange Rates | Accounting | Keeps currency exchange rates up to date automatically. |+| Xero | Accounting | Posts sales and purchase invoices to Xero, with account mapping and an initial backfill. |+| Slack | Assistant | Brings the Carbon Assistant into Slack and sends nonconformance notifications. |+| Onshape | CAD | Syncs CAD data from Onshape. |+| Paperless Parts | Estimating & Quoting | Syncs quotes and BOMs with Paperless Parts. |+| Jira | Project Management | Links quality issues to Jira. |+| Linear | Project Management | Syncs issues with Linear. |++<Callout type="note">+Xero, Slack, Onshape, and Jira authenticate over OAuth; Exchange Rates, Linear, and Paperless Parts use an API key; Email is configured with provider settings. A few connectors need server-side credentials to appear at all — **Jira** and **Onshape** require their OAuth client to be configured, and **Slack** is unavailable in controlled (ITAR) environments.+</Callout>++## How configuration works++An integration has two parts: a system-wide definition and a per-company activation.++- The **definition** carries a JSON schema describing the fields that integration needs (API keys, OAuth tokens, mapping options).+- The **activation** is a `companyIntegration` row — an `active` flag plus a `metadata` object holding your credentials and settings. Carbon validates that metadata against the integration's schema, so an integration can't be switched on with incomplete configuration.++That's the whole model: turning an integration on is writing a validated `metadata` blob and setting `active = true` for your company.++## How syncing works++Integrations that mirror data — Xero, Linear, Jira, Paperless Parts — keep a mapping between each Carbon record and its counterpart in the external system, so a Carbon customer, item, or invoice always resolves to the same remote id on the next sync. The work itself runs in the background: an initial backfill when you connect, then continuous syncing as records change.++## Related++<Cards>+ <Card title="Webhooks" href="/docs/integrate/webhooks">+ Push record changes to your own endpoints instead of a packaged integration.+ </Card>+ <Card title="Environment variables" href="/docs/platform/environment-variables">+ The server-side credentials that gate OAuth integrations.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/integrate/meta.json b/apps/docs/content/docs/integrate/meta.jsonnew file mode 100644index 0000000000..5f694e1df6--- /dev/null+++ b/apps/docs/content/docs/integrate/meta.json@@ -0,0 +1,5 @@+{+ "title": "Integrate",+ "defaultOpen": true,+ "pages": ["app-connections", "webhooks"]+}diff --git a/apps/docs/content/docs/integrate/webhooks.mdx b/apps/docs/content/docs/integrate/webhooks.mdxnew file mode 100644index 0000000000..9cae3f5598--- /dev/null+++ b/apps/docs/content/docs/integrate/webhooks.mdx@@ -0,0 +1,69 @@+---+title: Webhooks+description: Get an HTTP callback the moment a Carbon record is created, changed, or deleted.+---++A **webhook** sends an HTTP `POST` to a URL you choose whenever a record in a subscribed table is inserted, updated, or deleted. It's the lightest way to react to Carbon in your own systems without polling the API.++## Subscribable tables++You subscribe a webhook to exactly one table. The tables you can watch, by module:++| Module | Tables |+| --- | --- |+| Sales | `customer`, `quote`, `salesOrder`, `salesRfq` |+| Purchasing | `purchaseOrder`, `supplier`, `supplierQuote` |+| Invoicing | `salesInvoice`, `purchaseInvoice` |+| Production | `job` |+| Inventory | `receipt` |+| Items | `item` |+| Users | `employee` |++For each webhook you choose which operations fire it — **insert**, **update**, **delete** — and at least one must be selected.++## The payload++Carbon `POST`s a JSON body to your URL. `type` is the operation, `record` is the affected row, and `old` carries the previous row on updates and deletes.++```json+{+ "type": "UPDATE",+ "table": "salesOrder",+ "companyId": "abc123",+ "record": { "id": "...", "salesOrderId": "SO000042", "status": "To Ship and Invoice" },+ "old": { "id": "...", "salesOrderId": "SO000042", "status": "Draft" }+}+```++On an insert, `old` is omitted; on a delete, `record` is the row as it last existed. The only request header is `Content-Type: application/json`.++## Configuration++Create and manage webhooks under **Settings → Webhooks**. A webhook has:++- **Name** — a label, unique within your company.+- **Table** — the one table to watch.+- **URL** — where the `POST` is sent; must be a valid URL.+- **Triggers** — any of insert, update, delete (at least one).+- **Active** — webhooks are on by default; switch off to pause delivery.++Carbon tracks a success and error count per webhook, with the timestamp of the last of each, so you can see at a glance whether your endpoint is healthy.++## Delivery & reliability++Delivery is **at-most-once**: Carbon fires a single `POST` per change and records the outcome. There are no automatic retries, no backoff, and no rate limiting on outbound calls — if your endpoint is down when the event fires, that delivery is missed (the success/error counters will show it). Build your consumer to tolerate the occasional gap, and reconcile against the API when it matters.++<Callout type="warn">+Carbon does **not** sign webhook payloads — there is no shared secret or signature header to verify against. Treat the webhook URL itself as the secret: serve it over HTTPS and include an unguessable token in the path or query so you can reject anything that doesn't carry it.+</Callout>++## Related++<Cards>+ <Card title="App connections" href="/docs/integrate/app-connections">+ Prefer a packaged connector? See the first-party integrations.+ </Card>+ <Card title="Authentication" href="/api-reference/authentication">+ Pull the full record from the API after a webhook tells you it changed.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/meta.json b/apps/docs/content/docs/meta.jsonnew file mode 100644index 0000000000..cdff224d4f--- /dev/null+++ b/apps/docs/content/docs/meta.json@@ -0,0 +1,3 @@+{+ "pages": ["index", "platform", "reference", "integrate"]+}diff --git a/apps/docs/content/docs/platform/architecture.mdx b/apps/docs/content/docs/platform/architecture.mdxnew file mode 100644index 0000000000..b73af54666--- /dev/null+++ b/apps/docs/content/docs/platform/architecture.mdx@@ -0,0 +1,70 @@+---+title: Architecture+description: How Carbon is built — the apps, packages, database, event system, background jobs, and auth behind a deployment.+---++Carbon is a TypeScript monorepo: a handful of apps over a shared set of packages, backed by a single+Postgres database.++## Apps++| App | Stack | What it is |+| --- | --- | --- |+| `erp` | React Router 7 + Vite | The ERP — orders, purchasing, planning, accounting. Also hosts the API, the MCP server, and the OAuth endpoints. |+| `mes` | React Router 7 + Vite | The Manufacturing Execution System — shop-floor job execution. |+| `academy` | React Router 7 + Vite | The training app. |+| `docs` | Next.js (Fumadocs) | This documentation site. |++## Packages++Shared libraries live in `packages/` — including `database` (Supabase schema + generated types), `react`+(the UI component library), `jobs` (background jobs), `auth`, `ee` (enterprise edition + integrations),+`stripe`, `kv` (Redis), `documents`, `printing`, `locale`, and `dev` (the `crbn` CLI).++## The stack++- **Framework** — React Router 7 for the apps; Next.js for these docs.+- **Monorepo** — pnpm workspaces + Turborepo.+- **Tooling** — Vite, Biome (lint + format), tsup, strict TypeScript.++## Database++Carbon runs on **Supabase / PostgreSQL**. Multi-tenancy is enforced in the database: every row is scoped+to a company, and **Row Level Security** policies gate access. Types are generated from the schema. Local+development runs Supabase in Docker.++<Callout type="note">+Carbon is multi-company. One deployment can host many companies; isolation is enforced by RLS, not by+application code.+</Callout>++## Events & background jobs++- **Event system** — Postgres triggers enqueue change events into a PGMQ queue; an **Inngest** cron drains+ the queue and routes each event to its handlers (webhook, workflow, sync, search).+- **Background jobs** — run on **Inngest** (`packages/jobs`): MRP, scheduling, exchange-rate updates,+ integration syncs, and notifications. App code fires jobs with `trigger()` / `batchTrigger()`.+- **Edge functions** — transactional work runs as **Supabase edge functions** (Deno): posting receipts,+ shipments, and invoices; running MRP; importing CSV; issuing and picking material.++<Callout type="warn">+Older notes attribute jobs and events to Trigger.dev — that migration is done. Jobs and the event queue+run on **Inngest**; edge functions run on **Supabase / Deno**.+</Callout>++## Authentication++Carbon uses **Supabase Auth** with HTTP-only cookie sessions and Redis-cached permissions (role- and+attribute-based). Sign-in is by magic link or Google. Programmatic access uses **API keys** (a `carbon-key`+header), and a full **OAuth 2.0 server** backs the Claude remote connector.++## Related++<Cards>+ <Card title="Deployment" href="/docs/platform/deployment">+ Provision and run the apps on AWS.+ </Card>+ <Card title="Environment variables" href="/docs/platform/environment-variables">+ The full configuration surface.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/platform/deployment.mdx b/apps/docs/content/docs/platform/deployment.mdxnew file mode 100644index 0000000000..5d9cd39806--- /dev/null+++ b/apps/docs/content/docs/platform/deployment.mdx@@ -0,0 +1,32 @@+---+title: Deployment+description: Self-host Carbon on AWS with SST, and run it locally with the crbn CLI.+---++Carbon deploys to **AWS** with **SST**. The two apps — ERP and MES — run as containers on **ECS Fargate** behind load balancers, defined in `sst.config.ts` (app `carbon`, home `aws`).++## What gets provisioned++| Resource | Details |+| --- | --- |+| VPC + ECS cluster | `CarbonVpc2` and `CarbonCluster`. |+| `CarbonERPService` | 2 vCPU / 4 GB · port 3000 · health check `/health` · autoscaling 1–10 tasks on CPU and memory. |+| `CarbonMESService` | The same shape, for the MES. |+| WAF web ACL | `AppAlbWebAcl` — a 1000 requests/IP rate-limit rule plus the AWS managed common rule set. |++Container images are pulled from **ECR** (`carbon/erp` and `carbon/mes`), built and pushed by CI — SST does not build them.++## Prerequisites++| Requirement | Details |+| --- | --- |+| AWS account | With `AWS_REGION` and `AWS_ACCOUNT_ID`. |+| ECR images | Pre-built and tagged with `IMAGE_TAG`. |+| TLS certificates | `CERT_ARN_ERP` and `CERT_ARN_MES`; optionally custom domains `URL_ERP` and `URL_MES`. |+| Supabase instance | Provisioned out of band, not by SST. Supplies `SUPABASE_URL`, `SUPABASE_DB_URL`, the keys, and `SUPABASE_JWT_SECRET`. |++<Callout type="warn">+The WAF web ACL must be **manually associated** with the application load balancer after the first deploy — SST creates it but does not attach it.+</Callout>++See [Environment variables](/docs/platform/environment-variables) for the full configuration surface, or [Local development](/docs/platform/local-development) to run Carbon locally with the `crbn` CLI.diff --git a/apps/docs/content/docs/platform/environment-variables.mdx b/apps/docs/content/docs/platform/environment-variables.mdxnew file mode 100644index 0000000000..911c2b8d12--- /dev/null+++ b/apps/docs/content/docs/platform/environment-variables.mdx@@ -0,0 +1,116 @@+---+title: Environment variables+description: Every variable that configures a Carbon instance, grouped by concern. The source of truth is packages/env.+---++Carbon reads its configuration from environment variables. The registry lives in `packages/env`;+`.env.example` is the template; infrastructure-only variables are read by `sst.config.ts`. A minimal+instance needs the Supabase connection, a session secret, and Redis — everything else activates features+as you need them.++## Core++Platform-wide behavior and edition.++<EnvVars>+<EnvVar name="CARBON_EDITION" type="enum">One of `community`, `cloud`, `enterprise`, or `test` — gates edition-specific features.</EnvVar>+<EnvVar name="CONTROLLED_ENVIRONMENT" type="boolean">Enables ITAR / controlled-environment restrictions.</EnvVar>+<EnvVar name="AUTH_PROVIDERS" type="enum[]">Allowed sign-in methods: `email`, `google`, `azure`, `passkey`.</EnvVar>+<EnvVar name="DOMAIN" type="string">Base domain the apps are served from.</EnvVar>+<EnvVar name="ERP_URL" type="url">Public URL of the ERP app.</EnvVar>+<EnvVar name="MES_URL" type="url">Public URL of the MES app.</EnvVar>+<EnvVar name="DEFAULT_LANGUAGE" type="string">Default UI language.</EnvVar>+<EnvVar name="RATE_LIMIT" type="number">Requests per window allowed against the API.</EnvVar>+</EnvVars>++## Database — Supabase++Carbon's single Postgres database. All five are required.++<EnvVars>+<EnvVar name="SUPABASE_URL" type="url" required>Supabase project URL.</EnvVar>+<EnvVar name="SUPABASE_ANON_KEY" type="string" required>Public anon key — browser-safe.</EnvVar>+<EnvVar name="SUPABASE_SERVICE_ROLE_KEY" type="string" required>Service-role key — server only, never exposed to the client.</EnvVar>+<EnvVar name="SUPABASE_DB_URL" type="url" required>Direct Postgres connection string.</EnvVar>+<EnvVar name="SUPABASE_JWT_SECRET" type="string" required>Secret used to sign and verify session JWTs.</EnvVar>+</EnvVars>++## Auth & sessions++<EnvVars>+<EnvVar name="SESSION_SECRET" type="string" required>Signs the session cookie.</EnvVar>+<EnvVar name="SUPABASE_AUTH_EXTERNAL_GOOGLE_CLIENT_ID" type="string">Google OAuth client id, when `google` is in `AUTH_PROVIDERS`.</EnvVar>+<EnvVar name="SUPABASE_AUTH_EXTERNAL_GOOGLE_CLIENT_SECRET" type="string">Google OAuth client secret.</EnvVar>+<EnvVar name="SUPABASE_AUTH_EXTERNAL_AZURE_CLIENT_ID" type="string">Azure OAuth client id, when `azure` is enabled.</EnvVar>+<EnvVar name="SUPABASE_AUTH_EXTERNAL_AZURE_CLIENT_SECRET" type="string">Azure OAuth client secret.</EnvVar>+<EnvVar name="DEV_BYPASS_EMAIL" type="string">Local only — sign in as this email without a magic link.</EnvVar>+</EnvVars>++Sign-in bot protection uses Cloudflare Turnstile: `CLOUDFLARE_TURNSTILE_SITE_KEY` and+`CLOUDFLARE_TURNSTILE_SECRET_KEY`.++## Jobs & cache++<EnvVars>+<EnvVar name="REDIS_URL" type="url" required>Redis connection (ioredis URL) for the permission cache and queues.</EnvVar>+<EnvVar name="INNGEST_SIGNING_KEY" type="string">Signs requests to the Inngest jobs runner.</EnvVar>+<EnvVar name="INNGEST_EVENT_KEY" type="string">Key for sending events to Inngest.</EnvVar>+<EnvVar name="INNGEST_BASE_URL" type="url">Override the Inngest endpoint (self-hosted or dev).</EnvVar>+</EnvVars>++## Email & billing++<EnvVars>+<EnvVar name="RESEND_API_KEY" type="string">Resend API key for transactional email.</EnvVar>+<EnvVar name="RESEND_DOMAIN" type="string">Verified sending domain.</EnvVar>+<EnvVar name="STRIPE_SECRET_KEY" type="string">Stripe secret key — Cloud / Enterprise billing.</EnvVar>+<EnvVar name="STRIPE_WEBHOOK_SECRET" type="string">Verifies inbound Stripe webhooks.</EnvVar>+</EnvVars>++## AI & analytics++<EnvVars>+<EnvVar name="OPENAI_API_KEY" type="string">Powers AI features (embeddings, assist).</EnvVar>+<EnvVar name="ANTHROPIC_API_KEY" type="string">Anthropic key for Claude-backed features.</EnvVar>+<EnvVar name="POSTHOG_API_HOST" type="url">PostHog host for product analytics.</EnvVar>+<EnvVar name="POSTHOG_PROJECT_PUBLIC_KEY" type="string">PostHog project key.</EnvVar>+</EnvVars>++## Integrations++OAuth credentials for each connector — all optional, set only the ones you use.++<EnvVars>+<EnvVar name="XERO_CLIENT_ID" type="string">Xero OAuth client id.</EnvVar>+<EnvVar name="XERO_CLIENT_SECRET" type="string">Xero OAuth client secret.</EnvVar>+<EnvVar name="XERO_WEBHOOK_SECRET" type="string">Verifies inbound Xero webhooks.</EnvVar>+<EnvVar name="QUICKBOOKS_CLIENT_ID" type="string">QuickBooks OAuth client id.</EnvVar>+<EnvVar name="QUICKBOOKS_CLIENT_SECRET" type="string">QuickBooks OAuth client secret.</EnvVar>+<EnvVar name="JIRA_CLIENT_ID" type="string">Jira OAuth client id.</EnvVar>+<EnvVar name="JIRA_CLIENT_SECRET" type="string">Jira OAuth client secret.</EnvVar>+<EnvVar name="SLACK_CLIENT_ID" type="string">Slack OAuth client id.</EnvVar>+<EnvVar name="SLACK_CLIENT_SECRET" type="string">Slack OAuth client secret.</EnvVar>+<EnvVar name="ONSHAPE_CLIENT_ID" type="string">Onshape OAuth client id.</EnvVar>+<EnvVar name="ONSHAPE_CLIENT_SECRET" type="string">Onshape OAuth client secret.</EnvVar>+<EnvVar name="EXCHANGE_RATES_API_KEY" type="string">Currency exchange-rate feed.</EnvVar>+<EnvVar name="GOOGLE_PLACES_API_KEY" type="string">Address autocomplete.</EnvVar>+</EnvVars>++## Infrastructure — SST++Read by `sst.config.ts` at deploy time, not by the app.++<EnvVars>+<EnvVar name="AWS_REGION" type="string" required>Region to deploy into.</EnvVar>+<EnvVar name="AWS_ACCOUNT_ID" type="string" required>Target AWS account.</EnvVar>+<EnvVar name="IMAGE_TAG" type="string" required>ECR image tag to deploy.</EnvVar>+<EnvVar name="CERT_ARN_ERP" type="string">ACM certificate ARN for the ERP domain.</EnvVar>+<EnvVar name="CERT_ARN_MES" type="string">ACM certificate ARN for the MES domain.</EnvVar>+<EnvVar name="URL_ERP" type="url">Custom ERP domain — overrides the default.</EnvVar>+<EnvVar name="URL_MES" type="url">Custom MES domain — overrides the default.</EnvVar>+</EnvVars>++<Callout type="warn">+Older notes list `TRIGGER_*` (Trigger.dev) and `UPSTASH_REDIS_*` variables — those are gone. Jobs run on+Inngest and the cache uses a plain `REDIS_URL`.+</Callout>diff --git a/apps/docs/content/docs/platform/local-development.mdx b/apps/docs/content/docs/platform/local-development.mdxnew file mode 100644index 0000000000..dc027dd192--- /dev/null+++ b/apps/docs/content/docs/platform/local-development.mdx@@ -0,0 +1,85 @@+---+title: Local development+description: Run the full Carbon stack locally with the crbn CLI — isolated per-worktree environments.+---++Carbon is a **pnpm + Turborepo** monorepo — the ERP and MES apps plus their shared packages. Local development runs on the **`crbn` CLI** (in `packages/dev`), a per-worktree environment manager: every git worktree gets its own compose stack — Postgres, Kong, Supabase, Inngest, and Inbucket (mail) — with its own ports, Redis database, and JWT credentials. So you can work several branches at once without their stacks colliding.++## Setup++Add `crbn` to your `PATH` (it installs a small shell wrapper):++```bash+source ./setup.sh+```++## Bring up the stack++From any worktree:++```bash+crbn up+```++This boots the compose stack and the ERP and MES dev servers, and generates a `.env.local` with per-worktree ports, local Supabase keys, `REDIS_URL`, Inngest dev settings, and `DEV_BYPASS_EMAIL` so you can sign in without a magic link. Reach the apps at their portless `.dev` URLs or at `localhost:<port>`.++<Callout type="warn">+`DEV_BYPASS_EMAIL` is local-only — it signs you in as that email with no magic link. Never set it in a deployed environment.+</Callout>++### Stack commands++| Command | What it does |+| --- | --- |+| `crbn up` | Boot the compose stack and apps. |+| `crbn up --no-portless` | Localhost mode — fixed ports (API `54321`, ERP `3000`, MES `3001`). |+| `crbn up --no-apps` | Services only — Postgres, Kong, Supabase, Inngest, mail. |+| `crbn up --no-migrate` | Skip database migrations on boot. |+| `crbn up --no-regen` | Skip type and Swagger regeneration. |+| `crbn up --borrow` | Reuse another worktree's already-running containers. |+| `crbn up --pull` | Force `docker compose pull` even if images exist locally. |+| `crbn down` | Stop the stack (volumes preserved). |+| `crbn reset` | Wipe volumes and flush the Redis db, then boot again. |+| `crbn migrate` | Apply database migrations against the running stack. |+| `crbn status` | Show port assignments and container health. |++<Callout type="note">+`pnpm dev` is shorthand for `crbn up --no-portless` — localhost mode on fixed ports.+</Callout>++## Worktrees++Each branch gets an isolated worktree and stack, so several can run side by side.++| Command | What it does |+| --- | --- |+| `crbn checkout <branch>` | Switch into a branch's worktree, creating it if missing (auto-fetches from origin). |+| `crbn checkout -b <branch>` | Create a new branch and worktree from `--base` (default HEAD). |+| `crbn checkout <pr-number>` | Fetch a PR's head into a `pr-<num>` branch and worktree. |+| `crbn checkout main` | Return to the main checkout (never a separate worktree). |+| `crbn new [branch]` | Create a worktree interactively. |+| `crbn list` | List all worktrees with their stack status. |+| `crbn remove` | Multi-select worktrees to tear down; add `--prune` to delete the branch too. |++## Portless vs localhost++By default `crbn up` uses **portless** to serve a TLS `.dev` URL per app (for example `erp.<branch>.dev`), giving each worktree stable, shareable hostnames. Pass `--no-portless` — or set `CARBON_PORTLESS=0` — for **localhost** mode on fixed ports:++| Service | Port |+| --- | --- |+| Supabase API (Kong) | `54321` |+| ERP | `3000` |+| MES | `3001` |++## Sync files from main++A fresh worktree doesn't carry your gitignored local files. Pull them across from the main checkout:++| Command | What it does |+| --- | --- |+| `crbn copy <file…>` | Copy specific file(s) from the main checkout into this worktree. |+| `crbn env sync` | Copy the files listed in `package.json` under `crbn.copy`. |++## Configuration++Your local settings live in the generated `.env.local`. See [Environment variables](/docs/platform/environment-variables) for the full configuration surface, and [Deployment](/docs/platform/deployment) to self-host on AWS.diff --git a/apps/docs/content/docs/platform/meta.json b/apps/docs/content/docs/platform/meta.jsonnew file mode 100644index 0000000000..c975fd1df8--- /dev/null+++ b/apps/docs/content/docs/platform/meta.json@@ -0,0 +1,10 @@+{+ "title": "Platform",+ "defaultOpen": true,+ "pages": [+ "architecture",+ "deployment",+ "environment-variables",+ "local-development"+ ]+}diff --git a/apps/docs/content/docs/reference/accounting.mdx b/apps/docs/content/docs/reference/accounting.mdxnew file mode 100644index 0000000000..978325df52--- /dev/null+++ b/apps/docs/content/docs/reference/accounting.mdx@@ -0,0 +1,60 @@+---+title: Accounting & the ledger+description: How operations become journal entries — accounts, periods, and the postings behind every flow.+---++Carbon's flows all end the same way: shipping, receiving, finishing a job, depreciating an asset each post to the **general ledger**. This page covers the machinery they share.++## Accounting is a switch++A company setting, **accounting enabled**, is **off by default**. With it off, the physical world still moves — the item ledger records quantities, orders and jobs change status — but no journal entries are written. Every posting below is gated on it.++<Callout type="warn">+A shop can run operationally — receiving, building, shipping — before it keeps books. Turn accounting on and those same actions begin posting to the ledger; until then the financial entries are simply skipped.+</Callout>++## The journal++Every posting is a **journal** with balanced **journal lines** — debits positive, credits negative. The journal carries a **source type** naming what produced it; each line carries an account and can be tagged with dimensions. A journal is *Posted* (the normal state), *Draft*, or *Reversed* — voiding writes a reversing journal rather than deleting one.++| Source type | Posted by |+| --- | --- |+| Sales Shipment | Posting a shipment — relieves inventory to COGS. |+| Sales Invoice | Posting a sales invoice — receivable against revenue. |+| Purchase Receipt | Posting a receipt — inventory or WIP against GR/IR. |+| Purchase Invoice | Posting a supplier bill — payables, clearing GR/IR. |+| Job Consumption / Production Event / Job Receipt | A job consuming material, logging time, and finishing into inventory. |+| Job Close | Sweeping a job's residual work-in-process to variance. |+| Asset Depreciation / Asset Disposal | Depreciation runs and asset write-offs. |++## Accounts come from one place++Carbon resolves the accounts to post to from a **single company-level set of defaults** — there are no per-group posting groups. The ones that recur across the flows:++| Account | Used for |+| --- | --- |+| Inventory | Value of stock on hand. |+| Work in process | Cost accumulating on open jobs. |+| Cost of goods sold | Cost relieved when goods are sold. |+| Accounts receivable / payable | Customer and supplier balances. |+| Goods received, not invoiced | The accrual between receiving goods and being billed for them. |+| Variance | Differences swept at job close or from purchase price. |++## Dimensions++A journal line can be tagged with **dimensions** — location, department, cost center, item posting group, work center, process, fixed-asset class. The same handful of accounts can then be sliced for reporting without multiplying the chart of accounts.++## Periods++Every posting lands in an **accounting period**. A period is a current-period pointer — *Active* or *Inactive* — created and activated on demand as you post. There's no hard period-close that blocks posting; the period simply follows the postings.++## Related++<Cards>+ <Card title="Manufacturing accounting" href="/guides/job-costing">+ The job-cost postings — consumption, production events, close.+ </Card>+ <Card title="Ship, invoice, get paid" href="/guides/order-to-cash">+ Where the sales shipment and invoice postings come from.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/fixed-assets.mdx b/apps/docs/content/docs/reference/fixed-assets.mdxnew file mode 100644index 0000000000..b88b1241df--- /dev/null+++ b/apps/docs/content/docs/reference/fixed-assets.mdx@@ -0,0 +1,65 @@+---+title: Fixed assets+description: Capital equipment on the books — acquired, depreciated, and retired.+---++A **fixed asset** is a piece of capital equipment you capitalize and depreciate rather than expense — a press, a CNC, a forklift. It's an accounting record of value over time, distinct from the work center that represents the same machine on the floor. Every asset belongs to an **asset class**, which supplies the general-ledger accounts it posts to.++## Lifecycle++| Status | Meaning |+| --- | --- |+| Draft | Created, not yet on the books. |+| Active | Capitalized and depreciating. |+| Fully Depreciated | Written down to its residual value; no longer accruing. |+| Disposed | Retired or sold off the books. |++## Acquiring++An asset comes onto the books two ways, both starting at **Draft**:++- **Register** one you already own — supply its acquisition cost and depreciation start date, and it moves to **Active**. No money posts; you're recording something you have.+- **Buy** one through purchasing — a purchase-order line of type *Fixed Asset* that, when the receipt posts, debits the asset account, **adds** the cost to the asset, and flips it to **Active**.++<Callout type="note">+The purchase-receipt path activates the asset and posts its acquisition entry **only when accounting is enabled** for the company. Cost is added cumulatively, so an asset can accrue value across several receipts; with accounting off, the line is received but the asset is left in Draft.+</Callout>++## Depreciating++Depreciation runs as a **monthly batch you trigger** — there's no background poster. You create a run for a period, Carbon pulls every Active asset and computes each charge, you review it as a draft, then post: debit depreciation expense, credit accumulated depreciation. Carbon keeps a separate **tax** book too, including MACRS, when tax depreciation is enabled. When an asset's net book value reaches its residual, posting flips it to **Fully Depreciated**.++Book depreciation follows the asset's method — straight line, declining balance, or units of production.++## Selling vs. disposing++An Active or Fully Depreciated asset leaves the books two different ways:++| | Sell | Dispose |+| --- | --- | --- |+| Who | A sales action | An accounting action |+| What happens | Drafts a **sales order** for the asset at its net book value | Posts a **write-off** — clears accumulated depreciation, removes the asset at cost |+| Asset status | Unchanged (stays Active) | **Disposed** |+| Money | Collected through the invoice, like any sale | Remaining book value booked as a loss |++<Callout type="warn">+Selling and disposing are **not** two names for one thing. Selling hands the asset to the normal quote-to-cash flow at book value and leaves it on the books; disposing retires it directly as a write-off. Disposal today is scrapping at a loss — there's no proceeds-based gain calculation wired up.+</Callout>++<Callout type="info">+A fixed asset is **not** the same record as a work center. The machine you schedule production on and the machine you depreciate are tracked independently — Carbon keeps no link between them.+</Callout>++## Related++<Cards>+ <Card title="Manufacturing accounting" href="/guides/fixed-assets-acquire">+ The narrative — putting a machine on the books and writing it down.+ </Card>+ <Card title="Accounting" href="/docs/reference/accounting">+ Where an asset's acquisition, depreciation, and disposal entries land.+ </Card>+ <Card title="Work centers" href="/docs/reference/work-centers">+ The same machine as a production resource — a separate record.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/inventory.mdx b/apps/docs/content/docs/reference/inventory.mdxnew file mode 100644index 0000000000..939e17befa--- /dev/null+++ b/apps/docs/content/docs/reference/inventory.mdx@@ -0,0 +1,48 @@+---+title: Inventory & locations+description: Where stock lives, how on-hand is tracked, and how it moves.+---++Stock in Carbon lives at a **location** and, within it, in a **storage unit**. What's actually on hand is derived from a ledger of movements — not a single editable number — so every quantity has a trail behind it.++## Locations and storage units++A **location** is a site or warehouse. Within one, stock sits in **storage units** — bins and shelves that can nest (aisle › shelf › bin) and be typed (cold, hazardous, returns). A storage unit attached to a work center is a **lineside** bin, used to stage material at the point of use; everything else is a warehouse bin.++## On hand is a ledger++The **item ledger** is the source of truth. On-hand is the sum of its signed movements — receipts and outputs add, sales and consumption subtract, transfers move between places. A cached per-location quantity exists for quick reads, but the ledger is what's authoritative.++| Entry type | Effect |+| --- | --- |+| Purchase / Output | Goods received or produced into stock. |+| Sale / Consumption | Goods shipped or issued to a job. |+| Positive / Negative Adjustment | Manual corrections. |+| Transfer | Movement between locations or storage units. |++<Callout type="note">+Read on-hand from the **ledger**, not the cached quantity table — the ledger is the truth, and it's status-aware (it can separate what's on hold or rejected from what's truly available).+</Callout>++<Callout type="warn">+On hand can go **negative**. Shipping, issuing to a job, and picking all post their movements without first checking availability — Carbon would rather let the work proceed and reconcile later than block the floor. Only manual negative adjustments are guarded against overdraw.+</Callout>++## Movements++Two kinds of transfer move stock. A **warehouse transfer** moves it between locations, and is carried out as a shipment out of one and a receipt into the other. A **stock transfer** moves it within a single location, between storage units. A manual **adjustment** writes straight to the ledger as a positive or negative entry — or a *Set Quantity* that books the difference to a target.++## Value++Inventory value is on-hand quantity times the item's unit cost, summed per item and location.++## Related++<Cards>+ <Card title="Items" href="/docs/reference/items">+ The tracking type that decides how an item's stock is counted.+ </Card>+ <Card title="Receipts" href="/docs/reference/receipts">+ How goods enter inventory in the first place.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/invoices.mdx b/apps/docs/content/docs/reference/invoices.mdxnew file mode 100644index 0000000000..85df5d6f36--- /dev/null+++ b/apps/docs/content/docs/reference/invoices.mdx@@ -0,0 +1,55 @@+---+title: Invoices+description: The billing documents — what you charge customers, and what suppliers charge you.+---++An **invoice** records money owed. Carbon has two kinds that behave almost identically: a **sales invoice** is what you bill a customer, and a **purchase invoice** is the bill a supplier sends you. Both are drawn from an upstream document, both post to the ledger, and in both, payment is a state on the invoice rather than a separate record.++## Where they come from++A **sales invoice** is raised from a sales order, or from a **posted shipment** — billing on the order or billing on what actually shipped. A **purchase invoice** is raised from a purchase order, keeping the lines that still have something to bill. Either way the new invoice opens at **Draft**, fully editable, and links each line back to the order line it bills.++<Callout type="note">+A purchase invoice reconciles on the **purchase order line**, not on a receipt — there's no direct receipt link, and a receipt isn't even required to bill. Posting clears the goods-received-not-invoiced accrual against the shared order line and books any price difference to variance.+</Callout>++## Status lifecycle++Both start at **Draft** and lock the moment they leave it — numbers that have entered the books can't be edited in place.++| | Sales invoice | Purchase invoice |+| --- | --- | --- |+| Drafting | Draft, Pending | Draft, Pending |+| Posted | **Submitted** | **Open** |+| Paying | Partially Paid → Paid | Partially Paid → Paid |+| Reversed | Voided | Voided |+| Credit | Credit Note Issued | Debit Note Issued, Return |+| Past due | Overdue | Overdue |++The posted state has a different name on each side — **Submitted** for sales, **Open** for purchase — but means the same thing: posted to the ledger, awaiting payment. **Overdue** isn't set by hand; it's computed when an unpaid invoice passes its due date.++## Posting++Posting an invoice writes its general-ledger entries — receivables against sales for a sale, payables against inventory or WIP for a purchase — but only when accounting is enabled for the company. Posting also bumps the invoiced quantity on each order line and stamps the posting date.++<Callout type="warn">+Posting never marks an invoice **Paid** — it lands on **Submitted** or **Open**. Recording payment is a separate, deliberate step. A posted invoice can't be deleted either; to undo one you **void** it, which writes reversing entries rather than erasing history.+</Callout>++## Payment++Payment in Carbon is **field-based**: an invoice carries its own status, paid date, and balance. There's no separate payment transaction — marking an invoice **Paid** stamps the date and settles the balance. That keeps the whole money story on one record, from draft through posted to paid.++## Related++<Cards>+ <Card title="Sales orders" href="/docs/reference/sales-orders">+ The order a sales invoice bills against.+ </Card>+ <Card title="Purchase orders" href="/docs/reference/purchase-orders">+ The order a purchase invoice reconciles to, line by line.+ </Card>+ <Card title="Accounting" href="/docs/reference/accounting">+ Where a posted invoice's ledger entries land.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/items.mdx b/apps/docs/content/docs/reference/items.mdxnew file mode 100644index 0000000000..d69fa399c0--- /dev/null+++ b/apps/docs/content/docs/reference/items.mdx@@ -0,0 +1,49 @@+---+title: Items+description: The master record for everything you make, buy, or stock — parts, materials, tools, and more.+---++An **item** is the master record for anything Carbon tracks: a finished part, a raw material, a tool, a consumable. Orders, methods, jobs, and inventory all point back to it. Its human-facing **part number** is the readable id — the underlying id is an internal key you rarely see.++## Why it matters++An item's type, how it's replenished, and how it's tracked decide how it behaves everywhere downstream — whether it can be made or only bought, whether stock is counted, whether each unit needs a serial. Get the item right and the rest of the system follows.++## Fields++| Field | Type | Description |+| --- | --- | --- |+| Part number | text | The readable id; with a non-zero revision it reads as `id.rev`. |+| Type | enum | *Part*, *Material*, *Tool*, *Consumable*, *Service*, or *Fixture*. |+| Replenishment system | enum | How it's sourced overall — *Buy*, *Make*, or *Buy and Make*. |+| Default method type | enum | The default per-line fulfillment — *Purchase to Order*, *Pull from Inventory*, or *Make to Order*. |+| Tracking type | enum | *Inventory*, *Non-Inventory*, *Serial*, or *Batch*. |+| Unit of measure | reference | The stock unit. |+| Active | boolean | Whether it can be used on new documents. |++<Callout type="note">+**Replenishment system** is the high-level strategy; **default method type** is the line-level default it allows. A *Buy* item defaults to purchasing; a *Make* item can be built to order or pulled from stock. The two are related but distinct.+</Callout>++## Tracking++The tracking type sets how units are counted. *Inventory* items are quantity-tracked stock; *Non-Inventory* items aren't counted; *Serial* items carry one record per unit; *Batch* items are lot-tracked with their own batch numbers and dates.++## Revisions++Each revision of a part is its **own item record**, sharing the same part number but a different revision. A design change creates a new revision rather than rewriting the old one, so jobs built against an earlier revision keep their history.++<Callout type="info">+An item's costing method — *Standard*, *Average*, *FIFO*, or *LIFO* — lives on its cost record, not the item itself, and decides how consumption is valued.+</Callout>++## Related++<Cards>+ <Card title="Methods & sourcing" href="/docs/reference/methods">+ How an item's bill of materials and routing are defined.+ </Card>+ <Card title="Jobs" href="/docs/reference/jobs">+ A make-to-order item becomes a job that builds it.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/jobs.mdx b/apps/docs/content/docs/reference/jobs.mdxnew file mode 100644index 0000000000..db398a51ec--- /dev/null+++ b/apps/docs/content/docs/reference/jobs.mdx@@ -0,0 +1,64 @@+---+title: Jobs+description: One run of production — a single item, a quantity to make, and its own copy of the method.+---++A **job** is the unit of production work in Carbon. It pins down one item, how many to make, where, and by when — and carries its own copy of the manufacturing method (the materials and operations) so the floor always builds from a fixed recipe, even as the part master changes underneath it.++## Why it matters++Everything on the shop floor hangs off a job: the schedule board places its operations, material is issued against it, time is logged to it, and cost accumulates into its work-in-process. A sales order line that's made to order becomes a job; planning turns a stock shortfall into one. It's the bridge between demand and the floor.++## Fields++| Field | Type | Description |+| --- | --- | --- |+| Item | reference | What's being made. The job copies this item's method on release. |+| Quantity | number | Good units to produce. |+| Scrap quantity | number | Units expected lost; `production quantity` = quantity + scrap. |+| Quantity complete | number | Good units finished so far. |+| Location | reference | The site the job runs at and receives into. |+| Due date | date | When it's needed; paired with a deadline type that tells the scheduler how hard the date is. |+| Source | reference | The sales order line or quote line it was raised for, if any. |+| Assignee | reference | The person responsible for the job. |++## Status lifecycle++A job's status drives what you can do with it and what the floor sees.++| Status | Meaning |+| --- | --- |+| Draft | Created and editable; not yet planned or scheduled. |+| Planned | Demand is visible to planning, but no work is on the board yet. |+| Ready | Released — operations are scheduled and material requirements raised. |+| In Progress | The first production event has been logged against it. |+| Paused | Work is temporarily halted. |+| Completed | Every operation is done; finished goods have been received into inventory. |+| Closed | The books are settled — any residual work-in-process is swept to variance. |+| Cancelled | Abandoned before completion. |++<Callout type="info">+A **Completed**, **Closed**, or **Cancelled** job is locked — its method, quantity, and dates can no longer be edited. Closing is what makes a job's work-in-process provably zero.+</Callout>++## Make to order vs. make to stock++A job is identical whichever way it's raised — only its source differs. A **make-to-order** job links back to a sales order line; a **make-to-stock** job comes from planning with no order behind it. Either way the job completes into inventory first, and the sale (if any) ships from stock — the job never ships directly to a customer.++<Callout type="note">+Releasing a job copies the part's method into a job-specific copy. Editing that copy never touches the part master, and updating the part never disturbs a job already in flight.+</Callout>++## Related++<Cards>+ <Card title="Start with the order" href="/guides/order">+ Watch a sales order become batched jobs, each with its own method.+ </Card>+ <Card title="Manufacturing accounting" href="/guides/job-costing">+ How a job accumulates cost in work-in-process and settles at close.+ </Card>+ <Card title="Routings" href="/docs/reference/routings">+ The operations a job schedules onto the floor.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/maintenance.mdx b/apps/docs/content/docs/reference/maintenance.mdxnew file mode 100644index 0000000000..d9eadd4823--- /dev/null+++ b/apps/docs/content/docs/reference/maintenance.mdx@@ -0,0 +1,62 @@+---+title: Maintenance+description: Keeping work centers running — reactive and preventive maintenance dispatches.+---++Maintenance in Carbon keeps the machines on the floor running. The unit of work is a **dispatch** — a work-order-like record raised against a **work center**, either reactively when something breaks or on a recurring preventive schedule. Execution happens on the floor in MES; authoring and reporting live in the back office under Resources.++## Dispatches++A **maintenance dispatch** is one job of upkeep: what's wrong, which work center, who's on it, and the time and parts it took. It moves through a short lifecycle:++| Status | Meaning |+| --- | --- |+| Open | Raised, not yet picked up. |+| Assigned | Given to someone. |+| In Progress | Being worked, with the clock running. |+| Completed | Done — any running time entries are closed automatically. |+| Cancelled | Dropped without completing. |++Every dispatch carries a **priority** (Low, Medium, High, Critical) and a **source** that says where it came from: **Reactive** (a breakdown — the default), **Scheduled** (generated from a preventive schedule), or **Non-Conformance** (raised from a quality issue). Time is tracked as events against the dispatch, and parts as dispatch items.++## What it's against++A dispatch is attached to a **work center** and its location — the machine being maintained.++<Callout type="note">+Maintenance targets a **work center**, not a fixed asset or an equipment record. The same physical machine may also be a depreciable fixed asset, but Carbon keeps those independent — maintenance is about keeping the *production resource* available, not about the asset's book value.+</Callout>++## Preventive schedules++Recurring upkeep is defined as a **maintenance schedule**: a work center, a **frequency** (Daily, Weekly, Monthly, Quarterly, Annual), the parts it needs, and how far in advance to raise the work. A daily background job reads the active schedules and, when one is due within the advance window, generates an **Open** dispatch — tagged `Scheduled` and `Preventive`, with the schedule's parts copied onto it. Daily schedules honor per-weekday flags and can skip holidays.++## Blocking and OEE impact++Each dispatch declares its **OEE impact** — `Down`, `Planned`, `Impact`, or `No Impact`. This is an **availability gate**, not a metric.++<Callout type="warn">+A dispatch marked **Down** or **Planned** blocks its work center: on the floor, a blocked work center **cannot start a production operation** until the maintenance clears. There is no OEE percentage or uptime ratio in Carbon — the impact value exists to gate work, not to score it. Maintenance analytics are reliability KPIs (MTTR, MTBF, spare-part cost) computed from dispatch event durations.+</Callout>++## Material and cost++Parts used in maintenance are issued from inventory, drawing stock down through the item ledger as a *Maintenance Consumption* movement.++<Callout type="info">+Maintenance material is an **inventory movement only** — it posts to the item ledger but writes **no** general-ledger entry, regardless of whether accounting is enabled. It reduces what's on hand; it doesn't hit the books.+</Callout>++## Related++<Cards>+ <Card title="Work centers" href="/docs/reference/work-centers">+ The machine a dispatch maintains — and that a Down dispatch blocks.+ </Card>+ <Card title="Jobs" href="/docs/reference/jobs">+ The production a blocked work center can't run until maintenance clears.+ </Card>+ <Card title="Quality" href="/docs/reference/quality">+ Where a Non-Conformance dispatch originates.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/meta.json b/apps/docs/content/docs/reference/meta.jsonnew file mode 100644index 0000000000..e08e11f2da--- /dev/null+++ b/apps/docs/content/docs/reference/meta.json@@ -0,0 +1,26 @@+{+ "title": "Product reference",+ "defaultOpen": true,+ "pages": [+ "items",+ "methods",+ "routings",+ "work-centers",+ "maintenance",+ "jobs",+ "reordering",+ "planning",+ "quotes",+ "sales-orders",+ "purchase-orders",+ "shipments",+ "receipts",+ "invoices",+ "accounting",+ "fixed-assets",+ "quality",+ "suppliers-and-customers",+ "inventory",+ "traceability"+ ]+}diff --git a/apps/docs/content/docs/reference/methods.mdx b/apps/docs/content/docs/reference/methods.mdxnew file mode 100644index 0000000000..3d46beabf2--- /dev/null+++ b/apps/docs/content/docs/reference/methods.mdx@@ -0,0 +1,67 @@+---+title: Methods & sourcing+description: How Carbon decides whether each part is made, bought, or pulled from stock — and how a job gets its own copy of the recipe.+---++A part's **manufacturing method** is its recipe: the **method materials** (its bill of materials) and the+**method operations** (its routing). Every made part has one, and it's where the answer to "how is this+built?" actually lives.++## Method type++Every item carries a **method type** that routes it down one of three paths. You set it on the item; every+bill of materials that uses the item mirrors it.++| Method type | What happens |+| --- | --- |+| Make to Order | Manufactured in-house — becomes its own job with a routing. |+| Purchase to Order | Purchased — flows through purchasing as a purchase order. |+| Pull from Inventory | Pulled from stock when its parent is built. |++<Callout type="info">+The method type lives on the **item**, not on each BoM line. Change it once and it cascades to every+method that references the part — draft methods only; active and archived methods stay frozen.+</Callout>++## Method type vs replenishment system++These are two different questions, and Carbon keeps them separate:++- **Method type** answers *how does this part get into its parent?* — Make to Order, Purchase to Order, or Pull from Inventory.+- **Replenishment system** answers *how is this part replenished overall, and which planning queue does it+ land in?* — `Buy`, `Make`, or `Buy and Make`.++A part can be made for one parent and pulled from stock for another; the replenishment system is what+planning reads to decide between a job and a purchase order.++## Kit or subassembly++A **Make to Order** item inside a bill of materials is one of two things:++| | Subassembly | Kit |+| --- | --- | --- |+| Built as | its own job + routing | nothing separate |+| Components | consumed by the subassembly job | issued together into the parent job |+| Use when | the thing is genuinely manufactured | a group of parts always goes in as a set |++## Get Method++When you create a job, Carbon runs **Get Method** — it copies the part's method into a job-specific copy.+The job edits that copy; the part master is never touched silently. Push a proven change back up and the+next job inherits it.++<Callout type="info">+Methods are versioned — **Draft**, **Active**, or **Archived**. Only a Draft is editable; an Active method+is frozen so jobs already running against it don't shift mid-build.+</Callout>++## Related++<Cards>+ <Card title="Inside the build" href="/guides/build">+ See method types, kits, and Get Method in the story of a robot build.+ </Card>+ <Card title="Reordering policy" href="/docs/reference/reordering">+ How the replenishment system pairs with a part's reordering policy.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/planning.mdx b/apps/docs/content/docs/reference/planning.mdxnew file mode 100644index 0000000000..277ced7559--- /dev/null+++ b/apps/docs/content/docs/reference/planning.mdx@@ -0,0 +1,58 @@+---+title: Planning (MRP)+description: How demand turns into suggested jobs and purchase orders — and where that ends and scheduling begins.+---++Planning answers one question: *what should we make or buy, and how much?* Carbon's MRP looks at everything you owe and everything you have coming, and turns the gap into suggested orders — which you choose to act on.++## Why it matters++Without planning you'd reorder by hand. MRP nets demand against supply across the whole bill of materials, so a shortfall on a top-level robot surfaces as the right quantity of every component, offset for its lead time — before you're caught short.++## Two stages++Planning runs in two distinct passes, and conflating them is the usual mistake:++1. **MRP — explode and net.** The engine explodes demand through bills of material, nets it against on-hand plus open jobs and purchase orders, and writes period-bucketed demand and supply forecasts. It does **not** apply reorder points and does **not** create orders.+2. **Planning views — suggest a quantity.** The production and purchasing planning pages read those forecasts, project running stock week by week, and apply each item's **reorder policy** to propose a quantity to order.++<Callout type="note">+MRP **suggests, it never auto-orders.** The engine only writes forecasts; turning a suggestion into a real job or PO is an explicit action you take on the planning page.+</Callout>++## What feeds it++| Input | Source |+| --- | --- |+| Customer demand | Open sales-order lines, by promised date. |+| Production demand | Job material still to issue, offset by lead time. |+| Forecast demand | Manually entered demand projections. |+| Open supply | Open jobs and open purchase-order lines. |+| On hand | The item ledger balance. |++## Reorder policy++Each item, per location, carries a **reordering policy** that decides how a suggestion is sized — *Manual Reorder* (suggests nothing), *Demand-Based Reorder* (the default), *Fixed Reorder Quantity*, or *Maximum Quantity* — tuned by reorder point, order quantity, accumulation period, and min/max/multiple rounding. See [Reordering](/docs/reference/reordering) for the parameters in full.++## From suggestion to order++An item's **replenishment system** routes where its shortfall shows up: *Make* items surface on the production planning page as suggested jobs, *Buy* items on the purchasing page as suggested POs. Choosing **Order** creates a real job or purchase order at status **"Planned"** — persisted from planning, but not yet released into the normal lifecycle.++<Callout type="info">+**"Planned"** is a real, saved job or PO that came from a planning suggestion and is waiting to be released — distinct from a hand-started **"Draft"**.+</Callout>++## Planning vs scheduling++Planning decides *what and how much*; **scheduling** decides *when and where*. Once a job exists, the scheduling engine places its operations onto work centers and computes their dates — it never changes quantities. The two are separate subsystems that meet at the job: planning finalizes it, scheduling sequences it onto the floor.++## Related++<Cards>+ <Card title="Reordering" href="/docs/reference/reordering">+ The replenishment policies and parameters that size a suggestion.+ </Card>+ <Card title="Jobs" href="/docs/reference/jobs">+ What a Make suggestion becomes once you order it.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/purchase-orders.mdx b/apps/docs/content/docs/reference/purchase-orders.mdxnew file mode 100644index 0000000000..59c206a9da--- /dev/null+++ b/apps/docs/content/docs/reference/purchase-orders.mdx@@ -0,0 +1,48 @@+---+title: Purchase orders+description: A commitment to a supplier — what to receive, and what you'll be billed for.+---++A **purchase order** is a commitment to buy from a supplier. It may come from comparing supplier quotes or be raised directly, and it's the document receipts and supplier invoices reconcile against.++## Why it matters++Like a sales order in reverse, a purchase order line keeps two independent counters — how much has been received, and how much has been invoiced — and only closes when both are satisfied. Receiving and billing advance the same order along separate axes.++## Line fields++| Field | Type | Description |+| --- | --- | --- |+| Item | reference | What's being bought. |+| Purchase quantity | number | Ordered quantity. |+| Quantity received | number | Received so far; `quantity to receive` is the remainder. |+| Quantity invoiced | number | Billed so far; `quantity to invoice` is the remainder. |+| Conversion factor | number | Converts the supplier's purchase unit to the stock unit. |++## Types++A purchase order is one of three kinds: a plain **Purchase**, a **Return** to the supplier, or **Outside Processing** — sending parts out to a vendor for a production step, where the line links to a job operation.++## Status++The status is computed from the state of its lines, never set by hand.++| Status | Meaning |+| --- | --- |+| Draft / Planned | Being built, or suggested by planning. |+| Needs Approval | Held for sign-off (amount-gated); rejection lands on *Rejected*. |+| To Receive and Invoice | Confirmed; nothing received or billed yet. |+| To Receive | Fully invoiced, still owes receipt. |+| To Invoice | Fully received, still owes invoice. |+| Completed / Closed | Fully received and invoiced, or ended. |++## Related++<Cards>+ <Card title="RFQ to bill" href="/guides/rfq-to-po">+ Shop suppliers, place the order, receive and bill against it.+ </Card>+ <Card title="Receipts" href="/docs/reference/receipts">+ How goods are received against a purchase order.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/quality.mdx b/apps/docs/content/docs/reference/quality.mdxnew file mode 100644index 0000000000..8b8516b89e--- /dev/null+++ b/apps/docs/content/docs/reference/quality.mdx@@ -0,0 +1,45 @@+---+title: Quality+description: Issues and corrective-action workflows, plus incoming inspection that gates received goods.+---++Carbon's quality module turns on two things: **issues** you raise against a defect and drive to closure, and **inbound inspection** that holds received goods until they're checked. Both leave a trail back to the document that went wrong.++## Issues++An **issue** — a non-conformance, or NCR — records something that went wrong and the work to resolve it. It moves through three states: **Registered**, **In Progress**, **Closed** (closed is terminal and locked). Each carries a **priority** (Low / Medium / High / Critical), a **source** (Internal or External), a type, and links to whatever it concerns — a job operation, a purchase or sales order line, a receipt, a supplier.++Issues open from several places: by hand, from the shop floor in MES, from Slack, or **automatically** when an inbound inspection is rejected.++### Workflows and actions++An issue can run a configurable workflow — often an **8D**. The workflow attaches **required actions** and **approvals** as tasks; each task advances *Pending → In Progress → Completed* as the team works it. Adding a **Material Review Board** approval gates closing the issue: it can't close until a **disposition** is chosen for the affected material — *Return to Supplier*, *Rework*, *Scrap*, or *Use As Is*.++<Callout type="note">+There's no dedicated supplier scorecard in Carbon — **supplier quality is a derived metric**, counted from the issues linked to each supplier. The data comes from the issues themselves, not a separate record.+</Callout>++## Inbound inspection++When goods arrive for an item that **requires inspection**, posting the receipt opens an inbound inspection and holds the received units **On Hold** — they're not available stock yet. Inspection is lot-based, with sample sizes drawn from AQL standards (ANSI / ISO).++Dispositioning the lot decides what happens: **Accept** passes it and the units become available; **Reject** fails it, marks the units rejected, and opens an issue automatically; **Partial** clears some and holds the rest.++<Callout type="info">+Inbound inspection only fires on **purchase-order receipts** of items flagged to require it. Until a lot is dispositioned, its units sit On Hold — received, but not yet stock you can sell or consume.+</Callout>++## Also in quality++The module also covers **gauges and calibration** (with calibration-due tracking), **controlled documents** — versioned procedures and work instructions, with one active version at a time — **inspection documents** (ballooned FAI drawings and their characteristics), and a **risk register**.++## Related++<Cards>+ <Card title="Receive, match, bill" href="/guides/receive-and-bill">+ Where inbound inspection sits in the receiving flow.+ </Card>+ <Card title="Receipts" href="/docs/reference/receipts">+ How received goods are posted — and held for inspection.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/quotes.mdx b/apps/docs/content/docs/reference/quotes.mdxnew file mode 100644index 0000000000..15648ffa37--- /dev/null+++ b/apps/docs/content/docs/reference/quotes.mdx@@ -0,0 +1,61 @@+---+title: Quotes+description: A priced offer to a customer — the front of the sales flow.+---++A **quote** is a priced offer to a customer: the line items they asked about, what each costs, and for how long. It's where a sale begins, before there's any commitment to build or ship. Accept it and it becomes a sales order; let it lapse and it closes on its own.++## Why it matters++A quote is where pricing is negotiated and recorded. Lines support quantity breaks, so the price for ten can differ from the price for a hundred, and the number you settle on is what carries forward to the order. Quotes are optional — an order can be raised directly — but when used, a quote and its eventual order are tied together through a shared opportunity rather than a rigid link.++## Fields++| Field | Type | Description |+| --- | --- | --- |+| Customer | reference | Who the offer is for. |+| Lines | list | The items quoted, each with quantity-break pricing. |+| Revision | number | Bumped as the quote is reworked, so history isn't overwritten. |+| Expiration | date | When the offer lapses. |+| Status | enum | Where the quote is in its lifecycle (below). |++## Status lifecycle++| Status | Meaning |+| --- | --- |+| Draft | Being prepared; pricing still in progress. |+| Sent | Finalized and issued to the customer — the state that unlocks digital acceptance. |+| Ordered | Converted into a sales order. |+| Partial | Some lines converted to an order, others not. |+| Lost | The customer declined. |+| Cancelled | Withdrawn before a decision. |+| Expired | Lapsed past its expiration date. |++Each line tracks its own progress too — **Not Started**, **In Progress**, **Complete**, or **No Quote** for a line you decline to bid. Finalizing a quote moves it to **Sent** and marks its lines **Complete**.++## Digital quotes++A **Sent** quote can be shared with the customer over a private link — no login. From it the customer **accepts**, optionally attaching their PO, and the quote converts straight to a sales order; or they **reject**, and it moves to **Lost**. Internal notes are stripped before anything reaches the customer.++<Callout type="note">+Digital acceptance is gated: the quote must be **Sent** and the company must have digital quotes enabled. A companion customer portal then shows the buyer live order and job status as the work proceeds.+</Callout>++## Becoming an order++Converting a quote — internally, or by the customer accepting — builds a sales order from its lines at the negotiated price and opens it at **To Ship and Invoice**. The quote itself flips to **Ordered**, or **Partial** if only some lines converted.++<Callout type="info">+There's no path from a quote straight to a production job. A job is raised from a *sales order* line, so the sequence is always quote → order → job.+</Callout>++## Related++<Cards>+ <Card title="Sales orders" href="/docs/reference/sales-orders">+ What a quote becomes once it's accepted.+ </Card>+ <Card title="Quote to cash" href="/guides/quote-to-cash">+ The full narrative — quote, order, ship, invoice, paid.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/receipts.mdx b/apps/docs/content/docs/reference/receipts.mdxnew file mode 100644index 0000000000..a642a60379--- /dev/null+++ b/apps/docs/content/docs/reference/receipts.mdx@@ -0,0 +1,43 @@+---+title: Receipts+description: Goods coming in — receiving against a purchase order and posting to inventory.+---++A **receipt** brings goods in. Like shipments, one receipt model serves several sources — most often a purchase order, but also inbound transfers — and posting is what turns a delivery into stock on hand.++## Why it matters++A receipt line soft-links back to the purchase order line it fulfills. Posting adds the quantity to inventory, raises the order line's received quantity, and advances the order — and, when accounting is enabled, debits inventory (or work-in-process, for outside processing) against a goods-received-not-invoiced accrual that the supplier invoice later clears.++## Fields++| Field | Type | Description |+| --- | --- | --- |+| Source document | reference | The purchase order (or transfer) being received. |+| Received quantity | number | Units on this receipt, per line. |+| Conversion factor | number | Converts the supplier's purchase unit to the stock unit. |+| Location | reference | Where the goods land. |++## Status++| Status | Meaning |+| --- | --- |+| Draft | Being prepared; nothing posted. |+| Pending | Queued to post. |+| Posted | Inventory increased and the order advanced. |+| Voided | Reversed after posting. |++<Callout type="info">+Receive an item flagged for inspection and its units land **On Hold**, with an inbound inspection opened at *Pending* — they don't become available stock until the inspection clears.+</Callout>++## Related++<Cards>+ <Card title="Receive, match, bill" href="/guides/receive-and-bill">+ Posting a receipt in the RFQ-to-bill flow.+ </Card>+ <Card title="Purchase orders" href="/docs/reference/purchase-orders">+ The document a receipt advances.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/reordering.mdx b/apps/docs/content/docs/reference/reordering.mdxnew file mode 100644index 0000000000..8ddf3f9d32--- /dev/null+++ b/apps/docs/content/docs/reference/reordering.mdx@@ -0,0 +1,43 @@+---+title: Reordering policy+description: How each part decides when and how much to replenish — the policy and the numbers that drive planning.+---++Every part carries a **reordering policy** that tells planning how to replenish it. The policy decides+*when and how much*; the **replenishment system** decides whether that becomes a purchase order or a job.++## Policies++| Policy | Triggers when | Orders |+| --- | --- | --- |+| Manual Reorder | never automatically | nothing — you order by hand |+| Demand-Based Reorder | demand appears | exactly what demand needs, grouped by the demand accumulation period |+| Fixed Reorder Quantity | on-hand falls to the reorder point | a fixed reorder quantity |+| Maximum Quantity | on-hand falls to the reorder point | enough to reach the maximum inventory quantity |++## Fields++| Field | Applies to | Description |+| --- | --- | --- |+| Reorder point | Fixed Reorder Quantity, Maximum Quantity | On-hand level that triggers a new order. |+| Reorder quantity | Fixed Reorder Quantity | Fixed amount to order each time. |+| Maximum inventory quantity | Maximum Quantity | Level to top stock back up to. |+| Minimum / maximum order quantity | all | Clamp each suggested order into an orderable range. |+| Lot size | all | Round an order up to a multiple. |+| Demand accumulation period | Demand-Based Reorder | Window that groups demand into a single order. |++<Callout type="info">+Policies are set per part, and planning can run per location — so the same part can use demand-based+reorder at one site and simple min/max at another.+</Callout>++## Related++<Cards>+ <Card title="Plan ahead" href="/guides/plan">+ See reordering policies feed the planning run that proposes jobs and POs.+ </Card>+ <Card title="Methods & sourcing" href="/docs/reference/methods">+ The replenishment system that decides buy vs make.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/routings.mdx b/apps/docs/content/docs/reference/routings.mdxnew file mode 100644index 0000000000..3e6070d6c3--- /dev/null+++ b/apps/docs/content/docs/reference/routings.mdx@@ -0,0 +1,45 @@+---+title: Routings+description: The ordered operations and work centers a part flows through to get made.+---++A **routing** is the recipe the shop floor follows to make a part: the ordered list of operations and+the work center each one runs on. It's what turns "we have an order" into "here's exactly what happens,+in what order, where."++## Why it matters++Without a routing, a job can't be scheduled or costed — there's nothing to place on the board and+nothing to estimate run time from. The routing is the bridge between *what* you're making (the item) and+*how* it gets made (the schedule).++## Fields++| Field | Type | Description |+| --- | --- | --- |+| Operation | text | The step performed, in sequence (e.g. *Cut*, *Weld*, *Inspect*). |+| Work center | reference | Where the operation runs; supplies the rates used for scheduling. |+| Setup time | minutes | Fixed time to prepare the operation, independent of quantity. |+| Run time | minutes/unit | Time per unit produced. |+| Sequence | number | Order of operations; lower runs first. |++## Per-revision routings++Routings are defined per item revision, so a design change doesn't rewrite history. Jobs built against+an older revision keep the routing they were released with.++<Callout type="info">+A routing with no operations can't be scheduled — the job will sit in **Planned** until at least one+operation exists.+</Callout>++## Related++<Cards>+ <Card title="Run the floor" href="/guides/floor">+ See routings in context — how a job inherits one and turns it into a schedule.+ </Card>+ <Card title="Methods & sourcing" href="/docs/reference/methods">+ Where a routing's operations live alongside the part's materials.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/sales-orders.mdx b/apps/docs/content/docs/reference/sales-orders.mdxnew file mode 100644index 0000000000..f2d8e17a8d--- /dev/null+++ b/apps/docs/content/docs/reference/sales-orders.mdx@@ -0,0 +1,50 @@+---+title: Sales orders+description: A confirmed customer commitment — what to ship and invoice, tracked line by line.+---++A **sales order** is a confirmed commitment to deliver items to a customer. It may begin as a quote, or be entered directly; either way it's the document the rest of fulfillment keys off — shipments, invoices, and any make-to-order jobs all trace back to its lines.++## Why it matters++The order line is where fulfillment is scored. Each line tracks how much was sold against how much has shipped and how much has been invoiced, and it stays open until both are complete — which is what lets one order be delivered and billed in batches without losing the remainder.++## Line fields++| Field | Type | Description |+| --- | --- | --- |+| Item | reference | What's being sold. |+| Sale quantity | number | Ordered quantity. |+| Quantity sent | number | Shipped so far; `quantity to send` is the remainder. |+| Quantity invoiced | number | Billed so far; `quantity to invoice` is the remainder. |+| Unit price | number | Price per unit, net of discounts. |+| Method | enum | How the line is fulfilled — *Make to Order*, *Pull from Inventory*, or *Purchase to Order*. |++## Status++The stored status reflects what's outstanding, and the order list shows a computed **display status** on top of it.++| Status | Meaning |+| --- | --- |+| Draft | Being built; not yet committed. |+| Needs Approval | Held for sign-off (amount-gated). |+| To Ship and Invoice | Confirmed; nothing shipped or billed yet. |+| To Ship | Fully invoiced, still owes shipment. |+| To Invoice | Fully shipped, still owes invoice. |+| Completed | Every line shipped and invoiced. |+| Closed / Cancelled | Ended early or abandoned. |++<Callout type="note">+The order list can read **In Progress** even while the stored status is *To Ship and Invoice* — that's the display status reflecting a make-to-order line whose jobs aren't finished yet. The stored status still drives the flow.+</Callout>++## Related++<Cards>+ <Card title="Quote to cash" href="/guides/quote-to-cash">+ How a quote becomes a sales order, then ships and invoices.+ </Card>+ <Card title="Jobs" href="/docs/reference/jobs">+ A make-to-order line becomes a job that builds the item.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/shipments.mdx b/apps/docs/content/docs/reference/shipments.mdxnew file mode 100644index 0000000000..fa048d1df2--- /dev/null+++ b/apps/docs/content/docs/reference/shipments.mdx@@ -0,0 +1,42 @@+---+title: Shipments+description: Goods going out — one posting model serving sales orders, returns, and transfers.+---++A **shipment** moves goods out the door. One shipment model serves several source documents — a sales order, a purchase return, an outbound transfer — each tagged by what it came from, so the same posting logic handles them all.++## Why it matters++Creating a shipment changes nothing on hand. **Posting** it is the event that matters: it relieves inventory, advances the source document, and — when accounting is enabled — books the cost of what left. A shipment can be partial, so an order can go out in several.++## Fields++| Field | Type | Description |+| --- | --- | --- |+| Source document | reference | The order, return, or transfer being shipped. |+| Shipped quantity | number | Units on this shipment, per line. |+| Fulfillment | enum | Where a line is sourced — *Inventory* (from stock) or *Job* (from a production job). |++## Status++| Status | Meaning |+| --- | --- |+| Draft | Being prepared; nothing posted. |+| Pending | Queued to post. |+| Posted | Inventory relieved and the source document advanced. |+| Voided | Reversed after posting. |++<Callout type="info">+Posting decrements inventory and bumps the source line's sent quantity; a sales order line's *sent complete* flag flips only once the cumulative shipped quantity reaches the ordered quantity. Posting a shipment does **not** create the invoice — billing is a separate step.+</Callout>++## Related++<Cards>+ <Card title="Ship, invoice, get paid" href="/guides/order-to-cash">+ Posting a shipment in the quote-to-cash flow.+ </Card>+ <Card title="Sales orders" href="/docs/reference/sales-orders">+ The document a sales shipment advances.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/suppliers-and-customers.mdx b/apps/docs/content/docs/reference/suppliers-and-customers.mdxnew file mode 100644index 0000000000..31e8e624d9--- /dev/null+++ b/apps/docs/content/docs/reference/suppliers-and-customers.mdx@@ -0,0 +1,37 @@+---+title: Suppliers & customers+description: The parties you buy from and sell to — and the ways their records differ.+---++**Suppliers** and **customers** are the two trading parties. They look symmetrical, but Carbon models them through different modules with a few deliberate differences worth knowing.++## Suppliers++A supplier lives in purchasing and anchors the buy side — purchase orders, supplier quotes, and bills all reference it. Its **status** is a fixed set: *Active*, *Inactive*, *Pending*, *Rejected*. A supplier links to the items you buy through **supplier parts**, each carrying the supplier's own part number, a minimum order quantity, and a conversion factor from their pack to your stock unit.++<Callout type="note">+A supplier part has **no lead time** — purchasing lead time is set per item, not per supplier-part. The supplier part is about identity and pack size, not delivery time.+</Callout>++## Customers++A customer lives in sales and anchors the sell side — quotes, orders, and invoices reference it. Unlike supplier status, **customer status is a configurable list** you define, not a fixed enum. Customers don't have a supplier-part analog; pricing instead comes from **price overrides** and **pricing rules**, which can target a whole customer type and stack with quantity breaks.++<Callout type="info">+The asymmetry to remember: **supplier status is a fixed four-value set; customer status is a company-configurable lookup.** Their type catalogs (supplier type, customer type) are both user-defined.+</Callout>++## What they share++Both records carry the same satellite shape: **contacts**, **locations/addresses**, and **payment, shipping, and tax** defaults. Payment terms, currency, and tax settings live on those satellites — not on the core record. Both also have a human-readable id (`SUP…` / `CUS…`) on top of their internal key, and both can expose an external **portal**: suppliers respond to RFQs through a digital-quote link; customers track their orders through a customer portal.++## Related++<Cards>+ <Card title="Quote to cash" href="/guides/quote-to-cash">+ How a customer's quote becomes an order.+ </Card>+ <Card title="RFQ to bill" href="/guides/rfq-to-po">+ How a supplier quote becomes a purchase order.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/traceability.mdx b/apps/docs/content/docs/reference/traceability.mdxnew file mode 100644index 0000000000..4250758f8a--- /dev/null+++ b/apps/docs/content/docs/reference/traceability.mdx@@ -0,0 +1,45 @@+---+title: Traceability+description: Serial and batch tracking, and the genealogy that links what went into what.+---++For items that need it, Carbon tracks individual units and lots as **tracked entities**, and records every consume-and-produce as it happens — so you can prove what went into a finished unit, and trace a suspect lot forward to everything it touched.++## Tracked entities++A **tracked entity** is a tracked quantity of an item. A **Serial** item gets one entity per unit (quantity 1); a **Batch** item gets one entity per lot. The serial or batch number, and where it came from, live on the entity's attributes. An entity carries a status as it moves:++| Status | Meaning |+| --- | --- |+| Available | In stock, free to pick or consume. |+| Reserved | Allocated — e.g. a job's output before it's made. |+| On Hold | Received but not yet released (awaiting inspection). |+| Consumed | Issued to a job or shipped out. |+| Rejected | Failed inspection. |++## Where entities come from++Receiving a tracked item creates entities **On Hold**; posting the receipt releases them to **Available**, unless the item needs inspection — then they stay On Hold until it clears, or become **Rejected** if it fails. On the make side, a job reserves its output entity up front and flips it to **Available** when the unit is produced.++## Genealogy++Every material event — consume, produce, split, ship — is recorded as an **activity** with **inputs** (what was consumed) and **outputs** (what was produced). Parent and child link through the activity, so the genealogy graph is built as work happens and walked later to trace a unit's ancestry or descendants. Consuming part of a batch records a **split**, linking the original lot to the consumed portion and the remainder.++<Callout type="note">+There are no separate serial-number or batch-number tables — one tracked-entity model represents both, and the number itself is an attribute. Genealogy isn't a stored parent pointer; it's reconstructed by walking the activity graph from a unit outward.+</Callout>++## Shelf life++Tracked items can carry a **shelf life** — a fixed duration, a date set at receipt, or one calculated from the earliest-expiring component consumed. Carbon stamps the resulting expiration date on the entity, and picking favors the earliest expiry first (FEFO). Shelf life applies only to Serial and Batch items — there has to be a per-unit record to stamp.++## Related++<Cards>+ <Card title="Jobs" href="/docs/reference/jobs">+ Where entities are consumed and produced as a job runs.+ </Card>+ <Card title="Quality" href="/docs/reference/quality">+ Inspection holds and rejects tracked entities.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/work-centers.mdx b/apps/docs/content/docs/reference/work-centers.mdxnew file mode 100644index 0000000000..741bacd740--- /dev/null+++ b/apps/docs/content/docs/reference/work-centers.mdx@@ -0,0 +1,49 @@+---+title: Work centers+description: Where operations run — the stations and machines, their rates, and the processes they perform.+---++A **work center** is a place on the floor where operations run — a station, a machine, a cell — tied to a location. It carries the rates used to cost and schedule work, and performs one or more **processes** (the capabilities, like *cut* or *weld*).++## Why it matters++Routing operations are scheduled onto work centers, and a work center's rates price the labor and machine time logged against it. It's the link between an operation in the abstract and a real place with a cost and a calendar.++## Fields++| Field | Type | Description |+| --- | --- | --- |+| Name | text | Unique within its location. |+| Location | reference | The site it belongs to. |+| Labor rate | rate | Cost per labor hour. |+| Machine rate | rate | Cost per machine hour. |+| Overhead rate | rate | Cost per hour of overhead. |+| Default standard factor | enum | How time is expressed (e.g. *Minutes/Piece*). |+| Required ability | reference | A skill an operator must hold to run it. |++## Processes++A **process** is a capability a work center can perform; work centers and processes are many-to-many. A process is *Inside*, *Outside*, or both — **Outside** processes are subcontracted, and suppliers attach to them for outside-processing purchase orders.++<Callout type="note">+A work center is **not** a fixed asset. The machine you schedule production on (a work center) and the machine you depreciate (a fixed asset) are independent records in Carbon — there's no link between them, even when they're the same physical machine.+</Callout>++## Rates: estimate vs actual++Rates exist at two layers. When an operation picks a work center, that work center's rates are **copied onto the operation** as a snapshot — that's what drives the cost *estimate*. The **actual** labor and machine cost posted to the ledger reads the work center's *live* rate at the time the production event was logged. The two can diverge if a rate changes after an operation is planned.++## Capacity++Work centers have no fixed capacity field — load is derived from the durations of the operations scheduled onto them. Shifts in Carbon are an employee-and-location concept and aren't bound to work centers. A work center can also be temporarily **blocked** by an in-progress maintenance task that takes it down.++## Related++<Cards>+ <Card title="Routings" href="/docs/reference/routings">+ The operations that get scheduled onto work centers.+ </Card>+ <Card title="Manufacturing accounting" href="/guides/job-costing">+ How a work center's rates become a job's labor and machine cost.+ </Card>+</Cards>diff --git a/apps/docs/content/guides/build.mdx b/apps/docs/content/guides/build.mdxnew file mode 100644index 0000000000..e7483338aa--- /dev/null+++ b/apps/docs/content/guides/build.mdx@@ -0,0 +1,59 @@+---+title: Inside the build+description: How each robot part is made or bought.+label: "(II)"+index: 1+---++## Introduction++Open the job you just released and look at what it actually takes to build a robot. This is where the product structure you set up in PLM meets the reality of the floor.++> PLM specifies the parts. The method adds the clarity: how each part is obtained, and whether it's built, bought, or pulled from the shelf.++## The bill of materials++A robot's bill of materials (BoM) is a tree. The robot is built from an arm and a leg; each of those is built from a machined part and a motor. Carbon shows the whole structure at a glance, with every node carrying an icon for how it's obtained.++<Figure illustration="bom-tree" caption="The robot BoM — made parts in blue, bought parts in amber, every leaf pulled from stock." />++## Method types++Every item in that tree carries a method type, and it's the single most load-bearing field in your whole catalog. There are three values, and each one routes the item down a completely different path:++<Figure illustration="method-types" caption="One field, three values — Make to Order becomes a job, Purchase to Order a PO, Pull from Inventory a stock pull." />++- Make to Order — you manufacture it. The arm part and leg part are machined in-house, so each becomes its own job with its own operations.+- Purchase to Order — you purchase it. The motors come from a supplier, so they flow through [purchasing](/guides/rfq-to-po) as a purchase order, never touching the floor.+- Pull from Inventory — you pull it from stock when the parent is built, whether you originally made it or bought it.++You don't tag this on each BoM line by hand. The method type lives on the item itself, and every BoM that uses that item mirrors it. Switch a part's method type once, and it cascades everywhere the part appears.++<Callout tone="blue" badge="TWO DIFFERENT QUESTIONS" title="Method type and replenishment system aren't the same axis.">+Method type answers "how does this part get into its parent?" — Make to Order, Purchase to Order, or Pull from Inventory. The replenishment system — Buy, Make, or Buy and Make — answers "how is this part stocked overall, and which planning queue does it land in?" A part can be made for one parent and pulled from stock for another.+</Callout>++## Kits & subassemblies++Because the arm and leg are Make to Order parts, they aren't just line items — they're built things. But Carbon gives a made item in a BoM two flavors, and the choice changes how the floor handles it:++<Figure illustration="kit-vs-subassembly" caption="Same arm, two treatments — a Subassembly builds as its own job; a Kit is issued straight into the parent." />++- Subassembly — built as its own job, with its own routing and its own completion. You can release the left arm independently of the final robot, and Carbon keeps the hierarchy in sync.+- Kit — not built separately at all. Its components are issued together straight into the parent job, as a set. There's no kit job and no kit operation — just the parts, grouped.++Reach for a subassembly when the thing is genuinely manufactured and worth tracking on its own. Reach for a kit when a cluster of parts always goes in together and a separate build would just be ceremony.++<Screenshot label="BoM — Subassembly / Kit toggle" caption="Switching the arm between a tracked Subassembly and an issued-together Kit." ratio="wide" />++## Methods on the job++Back on the job, you're looking at that working copy of the method from the last chapter — and you can drill the whole way down. The robot's method lists the arm and leg; open the arm and you're in the arm's method, its machined part set to Make to Order and its motor set to Purchase to Order. The tree is as deep as the product.++Methods are versioned, which is what keeps a busy shop sane. A method is Draft, Active, or Archived, and only a Draft can be edited. An Active method is frozen — the jobs running against it won't shift under anyone's feet — so you revise by publishing a new version, not by editing a live one.++<Callout tone="amber" badge="FROZEN WHEN ACTIVE" title="Live work builds against a version that can't change mid-stream.">+Draft is the workbench; Active is the published, locked recipe; Archived is history. Changes flow forward into the next version and the next job — never backward into a build that's already moving.+</Callout>++<Screenshot label="Job method explorer" caption="The robot job's method expanded — arm and leg subassemblies, each with its own materials and operations." ratio="wide" />diff --git a/apps/docs/content/guides/fixed-assets-acquire.mdx b/apps/docs/content/guides/fixed-assets-acquire.mdxnew file mode 100644index 0000000000..617849a4cb--- /dev/null+++ b/apps/docs/content/guides/fixed-assets-acquire.mdx@@ -0,0 +1,51 @@+---+title: Acquire and depreciate+description: Put a machine on the books and write its value down over time.+label: "(III)"+index: 2+flow: manufacturing-accounting+flowName: Manufacturing accounting+flowIndex: 3+---++## Introduction++Job costing followed the money a job spends. The books also carry the machines that do the building — Carbon tracks those as **fixed assets**: a press, a CNC, a forklift, anything you capitalize and depreciate rather than expense. These last two chapters follow one asset from the day it lands on the books to the day it leaves them.++A fixed asset is an accounting record, not a production resource. It belongs to an **asset class**, which carries the general-ledger accounts every asset of that kind posts to — the asset account, accumulated depreciation, depreciation expense, and the accounts used when it's written off.++<Callout tone="amber" badge="ASSET ≠ WORK CENTER" title="A fixed asset is not the same record as a work center.">+The machine you schedule production on is a work center; the machine you depreciate is a fixed asset. Carbon keeps these independent — there's no link between them — so the same physical press can be a work center on the floor and a fixed asset in the books without the two being wired together.+</Callout>++## Onto the books++An asset comes onto the books one of two ways, and both start at **"Draft"**.++**Register one you already have.** Create the asset, then register it — supplying its acquisition cost, acquisition date, and the date depreciation should start. Registering moves it to **"Active"**. No money posts; you're recording something you already own.++**Buy one through purchasing.** Put a **"Fixed Asset"** line on a purchase order pointed at the asset, then receive it. When the receipt posts — and only if accounting is enabled — Carbon debits the asset account, credits goods-received-not-invoiced, **adds** the cost to the asset, stamps the dates, and flips it from **"Draft"** to **"Active"**. Because the cost is added, an asset can accumulate value across several receipts.++<Callout tone="blue" badge="ACCOUNTING GATES ACQUISITION" title="Receiving activates the asset only when accounting is on.">+The purchase-receipt path posts the acquisition entry and the Draft → Active flip inside the same gate as every other ledger posting. With accounting off, the PO line is received but the asset itself is left untouched — register it manually instead.+</Callout>++<Screenshot label="Fixed asset — register" caption="Bringing an asset to Active with its acquisition cost and depreciation start date." ratio="wide" />++## Depreciate it++Once an asset is **"Active"**, it depreciates. Carbon runs depreciation as a **monthly batch you trigger** — there's no background job quietly posting in the night. You create a depreciation run for a period, Carbon pulls every active asset and computes each one's charge, and you review it as a **"Draft"** before posting.++The book charge follows the asset's method — **straight line**, **declining balance**, or **units of production** — and posting the run debits depreciation expense and credits accumulated depreciation, period by period.++<Callout tone="neutral" badge="DRAFT THEN POST" title="Depreciation is computed at run time, reviewed, then posted.">+Each run's amounts are calculated when you create it and held as a draft, so you can check the period's charges before they hit the ledger. When an asset's net book value reaches its residual value, posting flips it to **"Fully Depreciated"** and it stops accruing.+</Callout>++<Screenshot label="Depreciation run" caption="A monthly run: every active asset's charge, computed and held as a draft for review before posting." ratio="wide" />++## Two books at once++The depreciation you report on the books and the depreciation you claim for tax rarely match, so Carbon keeps both. Every asset runs a **book** schedule and a separate **tax** schedule, each free to use its own method — the tax side including full **MACRS** with the IRS property-class tables. The two accumulate independently against the same asset.++With tax depreciation enabled, posting a run can also book the **deferred tax** the gap between the two creates, so that timing difference shows up in the ledger as it happens rather than as a year-end surprise.diff --git a/apps/docs/content/guides/fixed-assets-sell.mdx b/apps/docs/content/guides/fixed-assets-sell.mdxnew file mode 100644index 0000000000..ebb45b78fe--- /dev/null+++ b/apps/docs/content/guides/fixed-assets-sell.mdx@@ -0,0 +1,41 @@+---+title: Sell or dispose+description: Two ways an asset leaves the books — sold to a buyer, or scrapped.+label: "(IV)"+index: 3+flow: manufacturing-accounting+flowName: Manufacturing accounting+flowIndex: 3+---++## Introduction++Eventually an asset leaves the books. There are two ways out, and Carbon treats them as genuinely different actions — handled by different teams, with different effects. You **sell** an asset to a buyer, or you **dispose** of it when it's done. Both start from an asset that's **"Active"** or **"Fully Depreciated"**.++The number that anchors both is **net book value** — what the asset is still worth on the books: its acquisition cost minus the depreciation accumulated against it.++## Sell it++Selling a piece of equipment is a sales act, so it lives with the sales team. The **Sell** action drafts a real **sales order** with a single **"Fixed Asset"** line pointed at the asset, priced at its **net book value**. From there it's the ordinary quote-to-cash flow — ship it, invoice it, collect — with the order line carrying a link back to the asset it came from.++<Callout tone="blue" badge="SEEDS A SALES ORDER" title="Selling an asset hands it to quote-to-cash at book value.">+The Sell action doesn't invent a separate sale mechanism — it creates a normal sales order, lined up at net book value, that ships and invoices like any other. The fixed-asset line just remembers which asset was sold.+</Callout>++<Screenshot label="Sell fixed asset" caption="The Sell action drafts a sales order for the asset at its net book value." ratio="wide" />++## Dispose it++When an asset is retired rather than sold, you **dispose** of it — an accounting action. Carbon posts the disposal as a write-off: it clears the accumulated depreciation, removes the asset at its full acquisition cost, and books the remaining **net book value** as a loss. The asset moves to **"Disposed"**.++<Callout tone="amber" badge="DISPOSAL IS A WRITE-OFF" title="Disposing scraps the asset and books its remaining value as a loss.">+The disposal entry reverses the asset off the books — debit accumulated depreciation, debit the write-off account for whatever book value remains, credit the asset account for its cost — and records that remaining value as a loss. It's a retirement, not a sale: no proceeds are collected on this path.+</Callout>++<Callout tone="green" badge="SELL vs DISPOSE" title="They're separate exits, not two names for one thing.">+Selling drafts a sales order and leaves the accounting to the invoice; disposing posts the write-off directly and marks the asset **"Disposed"**. One is a sales action at book value, the other an accounting action that retires the asset — choose by whether money is coming in or the asset is simply going away.+</Callout>++<Divider />++That's the asset lifecycle end to end: capitalized onto the books through a register or a purchase receipt, written down month by month through depreciation runs, and finally either sold at book value through quote-to-cash or disposed of as a write-off — the financial half-life of every machine on the floor.diff --git a/apps/docs/content/guides/floor.mdx b/apps/docs/content/guides/floor.mdxnew file mode 100644index 0000000000..8549c851a2--- /dev/null+++ b/apps/docs/content/guides/floor.mdx@@ -0,0 +1,88 @@+---+title: Run the floor+description: Work hits the floor; the floor reports back.+label: "(IV)"+index: 3+---++## Introduction++Time to build. You release the first production job — the first 30 robots — to the shop floor, along with the subassembly jobs for the parts that feed it. This is the handoff most shops fumble; in Carbon it's a single, traceable step.++<Figure illustration="shopfloor-loop" caption="On the floor, every operation reports back: material consumed, labor logged, parts scanned." />++## The schedule++The released work lands on the schedule — a board you arrange, not a Gantt chart you fight. Carbon gives you two views of it:++- By work center — operations sit in columns, one per work center. Drag an operation to a different center, or reorder it within a column to set its priority. The only constraint is that the center can actually run that process.+- By date — jobs sit in columns by week or month. Drag a job to a different week and Carbon reschedules it in the background.++<Figure illustration="schedule-board" caption="Two views of one schedule — operations by work center, jobs by week. Drag to rebalance either." />++<Callout tone="neutral" badge="YOU HOLD THE BALANCE" title="The board shows the work; you decide the sequence.">+Carbon lays every released operation where it belongs and lets you rebalance by hand — dragging the week-one robots and their subassemblies into an order the floor can actually run.+</Callout>++<Screenshot label="Production schedule board" caption="The first 30-robot job and its subassemblies arranged across work centers." ratio="wide" />++## Operations & work centers++Open a job and its routing is an ordered list of operations. Each operation names a process — Mill, Deburr, Anodize, Assemble — and the work center that runs it, with separate setup, labor, and machine time so estimates and costs are honest about where the hours go.++Most operations run on your floor. But some don't, and Carbon plans for that explicitly:++- Inside operation — runs at one of your work centers, by your people.+- Outside operation — performed by a supplier. Anodizing the arm part, say: the step leaves your floor, goes out, and comes back to finish its routing.++<Figure illustration="outside-processing" caption="An outside step leaves the floor for a supplier and raises its own PO — then rejoins the routing." />++<Callout tone="blue" badge="OUTSIDE PROCESSING" title="A supplier-run step raises its own purchase order.">+Tie a process to a supplier and mark the operation Outside. Releasing the job raises an Outside Processing PO for that step, priced at the supplier's rate, and its lead time takes its place in the routing — so the schedule knows the arm is away being anodized.+</Callout>++<Screenshot label="Job routing with an outside operation" caption="The arm's routing — in-house milling, then an outside anodize step at a supplier." ratio="wide" />++## Work instructions++On the shop-floor view, an operator doesn't see a spreadsheet — they see rich work instructions: ordered steps, with images, for the exact operation in front of them. It reads like a great minimal manual, and it's always the current revision.++<Screenshot label="Shop-floor work instructions" caption="A step-by-step work instruction for assembling the arm, with reference images." ratio="wide" />++## At the station++When the operator opens their operation on the MES, the controls feel physical — closer to a machine panel than a form. Everything they do here flows straight back to the job:++- Clock time with the Setup, Labor, and Machine toggles — each starts and stops a production event, so the operation's estimated hours meet the actual ones.+- Issue Material to pull the operation's components onto the job as they're consumed.+- Log Completed, Log Scrap with a reason, or Log Rework as pieces come off the operation.+- Finish to close the operation — it ends every active production event in one move.++<Figure illustration="mes-station" caption="The operator's panel — Setup, Labor, and Machine time toggles, quantity logging, and Finish." />++<Callout tone="green" badge="HOURS BECOME COST" title="Every toggle and every issue lands on the job's real cost.">+Logged hours multiply by the work center's labor and machine rates; issued material posts at its cost. By the time the operation reads Done, the job already knows [what it actually took to build](/guides/job-costing).+</Callout>++<Screenshot label="MES operation screen" caption="An operator running the arm's mill operation — time toggles, quantities, and material." ratio="wide" />++## Backflush & issue++Material leaves inventory two ways in Carbon, and the BoM decides which one applies to each component — so stock stays accurate without busywork:++- Issued — tracked material, like the serialized or batch-tracked motors, is issued to the operation (or picked to the line) so every unit is accounted for by its lot.+- Backflushed — non-tracked material is pulled from stock automatically the moment the operation or job reports complete. No transactions, no keystrokes.++<Callout tone="green" badge="BACKFLUSH" title="The everyday consumables update themselves as the floor builds.">+Flag a material to backflush and you never reconcile it by hand. The moment an operation reports complete, what it consumed is gone from stock and [its cost is on the job](/guides/job-costing) — while the parts that truly need tracing stay explicitly issued.+</Callout>++## Scan & trace++For parts that demand a paper trail, operators scan as they build. Under the hood, every physical thing — a serial, a batch, a lot — is a tracked entity. Scanning a child into the unit you're building records a tracked activity: the child is marked consumed, the unit is marked produced, and the link between them is permanent.++<Callout tone="blue" badge="SERIAL vs BATCH" title="Two tracking modes, one genealogy.">+Serialize what you track one-by-one — the finished robot, its arm, its leg. Batch-track what moves in lots — motors, fasteners, raw stock. Scan a serial into a batch and Carbon records the link, so the robot's record knows exactly which motor lot it carries.+</Callout>++<Screenshot label="Shop-floor scan" caption="An operator scanning a motor lot into robot serial #0001 at the assembly station." ratio="wide" />diff --git a/apps/docs/content/guides/job-costing.mdx b/apps/docs/content/guides/job-costing.mdxnew file mode 100644index 0000000000..b2ce6b6648--- /dev/null+++ b/apps/docs/content/guides/job-costing.mdx@@ -0,0 +1,55 @@+---+title: How a job costs out+description: Where a job's cost comes from, and how it piles up in work-in-process.+label: "(I)"+index: 0+flow: manufacturing-accounting+flowName: Manufacturing accounting+flowIndex: 3+---++## Introduction++The [make-to-order tour](/guides/order) built robots. This flow follows the money those jobs spend. As a job is worked, Carbon accumulates its cost — materials consumed, labor and machine time — into work-in-process, then releases that cost into finished-goods inventory when the job completes. Every figure here is grounded in real ledger postings, so it's worth being precise about what posts, when, and to which account.++## Accounting is a switch++The first thing to know is that costing is gated. A company setting, **accounting enabled**, is **off by default**. With it off, the physical world still moves — the item ledger records quantities, job and operation statuses advance, material gets issued — but no general-ledger entries and no cost layers are written. Turn it on and the same operations also post money.++<Callout tone="amber" badge="OFF BY DEFAULT" title="Quantities always move; money only moves when accounting is on.">+Receiving, issuing, completing — the physical and status changes happen regardless. The GL postings described in this flow are written only when accounting is enabled for the company, so a shop can run operationally before it runs its books.+</Callout>++## Cost lands in WIP++As the job runs, cost flows **into** its work-in-process. Two streams feed it.++**Material.** When a job consumes a part — issued to an operation, or backflushed at completion — Carbon moves that part's cost out of inventory and into WIP. The ledger entry is a debit to the work-in-process account and a credit to inventory, tagged *Job Consumption*.++**Labor and machine.** Every production event a worker or machine logs carries a duration. Carbon prices it — hours times the **work center's** labor or machine rate — and posts it in real time: a debit to WIP, a credit to a labor-absorption account, tagged *Production Event*. The rate comes from the work center, not from the operation's estimate.++<Callout tone="blue" badge="NO OVERHEAD ABSORBED" title="WIP collects material, labor, and machine — not overhead.">+Only material and the labor/machine event rates post to WIP. Overhead rates exist on work centers and operations, but they drive estimating and quoting; Carbon does not absorb overhead into a job's actual cost. WIP is the sum of real material plus real time.+</Callout>++<Screenshot label="Job — production events" caption="Labor and machine events on a job; each posts to WIP at the work center's rate as it's logged." ratio="wide" />++## Issued or backflushed++That material reaches WIP one of two ways, and the difference is *when*. **Issuing** pushes a part to an operation as the work happens — the same move the picking list drives when it stages material to the line. **Backflushing** waits for the finish: when the job completes, Carbon consumes whatever the method called for that wasn't already issued, in a single sweep.++The posting is identical either way — cost out of inventory, into WIP — so the choice is about floor discipline, not accounting. Issue as you go when you need tight control over what's consumed; lean on backflush for the routine material you'd rather not hand-count.++<Callout tone="neutral" badge="SCRAP STAYS IN WIP" title="Scrapped material is consumed cost, too.">+Scrap and rework are recorded as their own production quantities, but scrapping a tracked part posts the same consumption — out of inventory, into the job's WIP. There's no separate scrap account; the cost of what you ruined rides along in the job until it settles at close.+</Callout>++## WIP isn't a table++Here's the part most ERPs hide. In Carbon, work-in-process is not a column or a table you can read off a job. It's a **balance in the general ledger** — the sum of every posting against the work-in-process account that carries this job's id. A job's WIP is a query, not a field.++The cost itself lives in the **cost ledger**, where each inbound entry opens a layer with a remaining quantity. How a consumed part is priced depends on the item's costing method — **FIFO** or **LIFO** walk the open layers, **Average** uses the running unit cost, **Standard** uses the standard cost. That choice changes the *amount* of the WIP entry, but the shape never changes: cost in from inventory, cost out to finished goods.++<Callout tone="neutral" badge="COST LAYERS" title="A layer is a cost-ledger row with quantity left on it.">+There is no separate cost-layer table — open layers are cost-ledger rows that still have remaining quantity. Consuming walks those layers by date for FIFO or LIFO; the costing method only decides which cost a consumption picks up, never whether WIP is tracked.+</Callout>diff --git a/apps/docs/content/guides/job-finish-close.mdx b/apps/docs/content/guides/job-finish-close.mdxnew file mode 100644index 0000000000..8b26c4e1ee--- /dev/null+++ b/apps/docs/content/guides/job-finish-close.mdx@@ -0,0 +1,53 @@+---+title: Finish, sell, close+description: WIP becomes finished goods, finished goods become COGS, and the job settles.+label: "(II)"+index: 1+flow: manufacturing-accounting+flowName: Manufacturing accounting+flowIndex: 3+---++## Introduction++A job has been collecting cost in work-in-process. Three events turn that running balance into a settled set of books: the job **finishes** into inventory, the goods are **sold** out of inventory, and the job is **closed**. Each is a distinct posting, and the order matters.++## Finish into inventory++When the last operation is done, Carbon completes the job. It backflushes any material still owed, catches up any labor that hasn't posted yet, and then **receives the finished goods into inventory** — a debit to inventory, a credit to work-in-process, tagged *Job Receipt*. The job moves to **"Completed"**.++The receipt is valued at the job's **actual accumulated WIP cost** — whatever really went in. Carbon does not receive finished goods at standard and book a variance; the finished unit's cost is simply the sum of what the job spent.++<Callout tone="blue" badge="ACTUAL, NOT STANDARD" title="Finished goods are valued at what the job actually cost.">+Completion moves the whole WIP balance into inventory one-for-one — equal debit and credit — so there's no variance at finish time. The item's costing method only decides how that cost is carried forward onto the part, not the value it's received at.+</Callout>++<Screenshot label="Job completion" caption="Completing the job: finished goods received into inventory at the job's accumulated cost." ratio="wide" />++## Make-to-order still goes through stock++It's tempting to think a make-to-order job ships straight to the customer. It doesn't. A make-to-order job is marked by its link to a sales order line, but its costing is **identical** to a stock job: it receives into inventory first, and the sales order then ships *from inventory*. The job and the shipment are separate postings.++<Callout tone="amber" badge="MTO = MTS, FOR COSTING" title="A make-to-order job receives to stock, then ships from stock.">+There is no path that ships finished goods directly off a job. Whether a job was raised for stock or for a specific order, it completes into inventory the same way — which keeps cost in one place and makes the sale a clean, separate event.+</Callout>++## Sell it++When the order ships, the cost of those goods comes **out of inventory**, not out of WIP. Posting the shipment reads the inventory cost layers, prices what left, and posts a debit to cost of goods sold and a credit to inventory, tagged *Sales Shipment*. This is the same shipment posting the [quote-to-cash flow](/guides/order-to-cash) covers — here we're just watching the cost side of it.++By the time a unit is sold, its WIP is long gone — relieved at completion. COGS is always drawn from the inventory layer, so the sale's margin reflects the real landed cost of that specific stock.++## Close the job++Completion zeroes WIP into finished goods one-for-one, so in the clean case a finished job's WIP balance is already nil. But rounding, late material, or a late event can leave a few cents stranded against the job's work-in-process account. **Closing** the job sweeps it.++Closing sums whatever remains in WIP for the job and, if it's more than a rounding sliver, posts it to a production-variance account — a debit to **Production Variance**, a credit to work-in-process — tagged *Job Close*. The job moves to **"Closed"**, and its WIP is provably zero. This is the one place a job's variance lands.++<Callout tone="green" badge="CLOSE = SWEEP WIP" title="Closing settles the residual to Production Variance.">+There's no standard-cost variance booked along the way — finish is at actual, and the only variance Carbon posts for a job is whatever WIP is left over at close. A closed job has zero work-in-process and a complete trail from material in to variance out.+</Callout>++<Divider />++That's the cost of a job, start to finish: cost flows into WIP as it's worked, out to inventory when it finishes, on to COGS when it sells, and any remainder swept to variance when it closes — every move a real ledger posting, gated on whether the shop is keeping books at all. The same ledger carries the machines that did the work — which is where this flow turns next.diff --git a/apps/docs/content/guides/order-to-cash.mdx b/apps/docs/content/guides/order-to-cash.mdxnew file mode 100644index 0000000000..145d60307a--- /dev/null+++ b/apps/docs/content/guides/order-to-cash.mdx@@ -0,0 +1,65 @@+---+title: Ship, invoice, get paid+description: Fulfill the order, post the shipment and invoice, then record payment.+label: "(II)"+index: 1+flow: quote-to-cash+flowName: Quote to cash+flowIndex: 1+---++## Introduction++You have a sales order sitting at **"To Ship and Invoice"**. Cash is four moves away: fulfill the lines, post a shipment, raise an invoice, record payment. None of them auto-chain — each is a discrete, posted step you take when the work is actually ready.++## The line stays open++A sales order line keeps score. It tracks `saleQuantity` against `quantitySent` and `quantityInvoiced`, with the remaining `quantityToSend` and `quantityToInvoice` computed for you. The line only closes when it is **both** fully sent and fully invoiced — that single rule is what lets one order ship and bill in pieces without losing the remainder.++## Three ways to fulfill a line++The method type on each line decides where the goods come from:++- **Make to Order** raises a production job for the line — the [make-to-order tour](/guides/order) in full.+- **Pull from Inventory** ships from stock you already hold — no job, just a pick.+- **Purchase to Order** buys it in for this order; its **drop-ship** variant has the supplier ship straight to your customer, so the goods never touch your dock.++However a line is sourced, every fulfillment resolves to one of two kinds — from **inventory** or from a **job** — and that's what the shipment posts against.++<Callout tone="blue" badge="STATUS vs DISPLAY" title="The list can read 'In Progress' before the stored status changes.">+The sales order list computes a display status: while a make-to-order line still has incomplete jobs, it shows **"In Progress"** even though the order's stored status is **"To Ship and Invoice"**. The raw status drives filtering and the flow; the display status reflects what's really happening on the floor.+</Callout>++## Post the shipment++Create a shipment against the order. One shipment table serves sales orders, purchase orders, and transfers alike, tagged here with a "Sales Order" source. It opens at **"Draft"**.++Creating it changes nothing on hand — **posting** is the event that matters. Post the shipment and four things happen at once: the shipment moves to **"Posted"**, inventory drops via the item ledger, the line's `quantitySent` rises, and the order advances to **"To Invoice"** (or **"Completed"** once everything is both shipped and billed). `sentComplete` flips only when the cumulative shipped quantity reaches the ordered quantity, so partial and repeated shipments are first-class.++<Callout tone="amber" badge="POSTING ≠ CREATING" title="Posting moves inventory and the order — and stops there.">+A posted shipment decrements stock and advances the order, and if accounting is enabled it writes the COGS journal entries. What it does **not** do is create the invoice. Fulfillment and billing are deliberately separate steps.+</Callout>++<Screenshot label="Post shipment" caption="Posting the shipment: inventory moves, the line's sent quantity rises, the order advances." ratio="wide" />++## Raise the invoice++A sales invoice has two possible sources. You can bill straight from the **sales order**, or from a **posted shipment** — the shipment path links the invoice back to that shipment and clamps the billed quantity to what actually shipped. Bill-on-ship or bill-on-order: Carbon supports both.++The invoice opens at **"Draft"**, fully editable. The moment it leaves "Draft" it locks — a guard against changing numbers that have already entered the books.++<Screenshot label="Sales invoice" caption="A draft invoice drawn from the posted shipment, quantities matched to what shipped." ratio="wide" />++## Post and get paid++Posting the invoice writes the general ledger — Accounts Receivable against Sales, and COGS against Inventory — but only when accounting is switched on for the company. Posting also bumps each line's `quantityInvoiced`, stamps the posting date, and sets the invoice to **"Submitted"**. Note what it is *not*: posting never marks an invoice **"Paid"**.++Payment isn't a separate record in Carbon. It's the invoice's own state — its status, `datePaid`, and `balance`. When you mark the invoice **"Paid"**, Carbon stamps the payment date. Need to undo a posted invoice? Voiding writes compensating reversing entries; you can't simply delete it.++<Callout tone="green" badge="PAYMENT IS A FIELD" title="There's no payment entity — settlement lives on the invoice.">+The invoice carries its own status, paid date, and balance. Posting lands it on **"Submitted"**; moving it to **"Paid"** is the deliberate act that records the cash. All ledger postings along the way are gated on accounting being enabled.+</Callout>++<Divider />++That's quote to cash end to end: an opportunity priced into a quote, accepted into an order, shipped, invoiced, and settled — each step its own posted move, each leaving a trail you can stand behind.diff --git a/apps/docs/content/guides/order.mdx b/apps/docs/content/guides/order.mdxnew file mode 100644index 0000000000..fda8e44698--- /dev/null+++ b/apps/docs/content/guides/order.mdx@@ -0,0 +1,67 @@+---+title: Start with the order+description: A 90-unit robot order becomes real work.+label: "(I)"+index: 0+---++## Introduction++Meet the shop we'll follow through this guide: an OEM that builds humanoid robots. One customer just placed an order for 90 units. By the end, you'll have followed that order all the way from the sales desk to a finished robot on the shipping dock — and seen most of Carbon along the way.++Carbon spans the office and the floor: ERP for orders, purchasing, and planning; MES for the people actually building. The thread that ties them together is a single order, so that's where we start.++<Figure illustration="flow-overview" caption="The path one order travels through Carbon — and the shape of this guide." />++## The sales order++Open the sales order dashboard. There's already an order on the books: 90 robots. But the customer doesn't want all 90 at once — they want 30 this week, 30 next week, and 30 the week after. That delivery schedule is going to shape everything downstream.++An order line doesn't close the moment you ship part of it. Carbon holds the line open — its status reads "To Ship and Invoice" — until every unit has both shipped and been invoiced. That single fact is what lets one order be fulfilled in batches without losing track of what's left.++<Screenshot label="Sales order dashboard" caption="The 90-unit robot order, with its three-week delivery schedule." ratio="wide" />++<Callout tone="neutral" badge="UPSTREAM" title="The order often starts as a quote.">+Carbon has a full Quote module with quantity-break pricing, so the 90-unit price could have been negotiated in [quote to cash](/guides/quote-to-cash) first. We'll pick the story up at the confirmed sales order, where the build truly begins.+</Callout>++## Batch it into jobs++You don't build 90 robots as one monolithic job. With a batch size of 30, Carbon splits the order into three jobs — one per delivery. Each can be scheduled, released, and shipped on its own timeline.++<Figure illustration="order-split" caption="One 90-unit order, batched into three 30-unit jobs across three weeks." />++<Callout tone="blue" badge="WHY BATCH" title="Batching matches your build to the delivery promise.">+Three jobs of 30 let you release week one now, keep weeks two and three in planning, and ship each batch the moment it's done — instead of waiting on all 90.+</Callout>++## Create the job++From the order, create the job. Carbon carries the part, quantity, and due date across automatically — the job inherits exactly what was sold, so the floor never works from a stale spec.++It carries one more thing across, and it's the most important: the robot's manufacturing method — its full recipe of materials and operations. The job doesn't point at the part's master recipe, though. It gets its own copy.++<Screenshot label="Create job from sales order" caption="Converting the first 30-unit batch into a production job." ratio="wide" />++## Get the method++Pulling that recipe into the job is an explicit action in Carbon called Get Method. It clones the part's method — every material, every operation — into a job-specific method that belongs to this job alone.++That copy is the whole point. Need a one-off substitution for this batch — a different fastener, an extra inspection step — you edit the job's method and the part master stays untouched. And when a change proves itself, you can push it back up to the part so every future job inherits it.++<Figure illustration="get-method" caption="Get Method copies the part's recipe into the job — edits stay local until you push a proven change back up." />++<Callout tone="blue" badge="GET METHOD" title="The part holds the master recipe; the job holds a working copy.">+Editing a job never silently rewrites your part library, and updating a part never disturbs a job already in flight. The link between them is a deliberate copy-up, copy-down — not a live wire.+</Callout>++## Release or plan++Now the key decision. You'll release one job — week one — and leave the other two in planning. The difference is exactly what each action sets in motion:++- Release — generates inventory alerts for any required material that isn't in stock, and adds the job's tasks to the shop-floor schedule. This is work the floor can start.+- Plan — generates the same inventory alerts, but does not schedule anything. It's how you see what a future job will need without committing the floor.++<Callout tone="amber" badge="RELEASE ≠ PLAN" title="Plan to see demand early; release to put work in motion.">+Planning weeks two and three now means you can order long-lead material today — without cluttering this week's schedule with jobs the floor can't touch yet.+</Callout>diff --git a/apps/docs/content/guides/plan.mdx b/apps/docs/content/guides/plan.mdxnew file mode 100644index 0000000000..afe37edbb5--- /dev/null+++ b/apps/docs/content/guides/plan.mdx@@ -0,0 +1,61 @@+---+title: Plan ahead+description: Orders and forecast become jobs and POs.+label: "(III)"+index: 2+---++## Introduction++Creating that first job created demand — Carbon now knows it needs arm parts, motors, and machine time. But your sales orders only show part of the picture. The pipeline says more robots are coming, even though no order exists yet.++Planning on confirmed orders alone means you're always reacting. Carbon lets you plan on what you expect, too — and lets each part decide for itself how aggressively to replenish.++## Demand forecasting++Under Production, open Projections and enter what you expect to need in the coming weeks. Here, the pipeline points to 50 robots in week four and 70 in week five — real demand with no order behind it yet. Forecasting puts it into the plan anyway.++<Figure illustration="demand-forecast" caption="Confirmed orders (weeks 1–3) plus forecasted demand (weeks 4–5) — the full picture Carbon plans against." />++<Screenshot label="Production → Projections" caption="Entering projected weekly quantities for the robot from the sales pipeline." ratio="wide" />++## Reordering policy++Not every part should wait for demand to pull it. A fast-moving fastener wants a standing buffer; a custom casting wants to be ordered only when a job needs it. Each part carries a reordering policy that tells planning exactly which behavior to use:++- Manual Reorder — planning stays hands-off. You decide when to order. Good for the parts a human should always eyeball.+- Demand-Based Reorder — order just what demand needs, when it needs it, grouped into a demand accumulation period so a week of small pulls becomes one sensible order.+- Fixed Reorder Quantity — when on-hand falls to the reorder point, order a fixed reorder quantity. Predictable, supplier-friendly batch sizes.+- Maximum Quantity — when on-hand falls to the reorder point, top back up to the maximum inventory quantity. Classic min/max for shelf stock.++<Figure illustration="reorder-policy" caption="Reorder point in action — on-hand falls to the trigger, and an order tops it back up." />++<Callout tone="blue" badge="BUY OR MAKE" title="The policy decides how much; the replenishment system decides what kind of order.">+A part set to Buy turns a replenishment into a purchase order; set to Make, it turns into a job. Lot size and minimum / maximum order quantities round the raw number into something you can actually order or build.+</Callout>++<Screenshot label="Part — Planning tab" caption="A part's reordering policy, reorder point, and lot size that drive every suggestion." ratio="wide" />++## Into jobs & POs++Now Carbon turns the whole picture — orders, forecast, and each part's policy — into the work that fulfills it. It nets demand against what you already have (on-hand stock plus open jobs and purchase orders) and proposes the difference: production planning suggests the jobs to build, purchasing planning suggests the purchase orders to raise.++<Figure illustration="planning-engine" caption="Demand in, plan out: production planning suggests jobs, purchasing planning suggests POs." />++Purchasing planning applies conversion factors as it goes, so a robot's worth of demand becomes the right quantity in the units you actually buy. Nothing is committed until you confirm a suggestion — that's the moment a proposed line becomes a real job or a real PO.++<Callout tone="neutral" badge="BY LOCATION" title="Demand and planning can differ by location.">+Run different plans for different sites, and let each part replenish the way that site needs — full demand-driven planning in one, simple min/max for high-runners in another.+</Callout>++<Screenshot label="Planning table" caption="Suggested jobs and purchase orders, ready to confirm." ratio="wide" />++## Receiving++When a purchase order arrives, you receive it. A receipt starts as a Draft against the PO, auto-fills its lines from what was ordered, and validates the quantities; posting it turns the goods into on-hand stock on a shelf.++For a batch-tracked part like the motors, Carbon captures the lot right on the receipt line — and a conversion factor converts what you bought into what you stock, so a box of ten motors becomes ten units on the shelf. Months later, you can answer exactly which lot of motors went into which robots.++<Figure illustration="conversion-factor" caption="A conversion factor reconciles units — one purchased box of ten lands as ten stocked Each." />++<Screenshot label="Receiving a purchase order" caption="Receiving a batch-tracked motor shipment against its PO, lot captured on the line." ratio="wide" />diff --git a/apps/docs/content/guides/quote-to-cash.mdx b/apps/docs/content/guides/quote-to-cash.mdxnew file mode 100644index 0000000000..770a876086--- /dev/null+++ b/apps/docs/content/guides/quote-to-cash.mdx@@ -0,0 +1,69 @@+---+title: From quote to order+description: An RFQ becomes a quote; an accepted quote becomes a sales order.+label: "(I)"+index: 0+flow: quote-to-cash+flowName: Quote to cash+flowIndex: 1+---++## Introduction++The make-to-order tour started at a confirmed sales order. This flow rewinds to where that order comes from: a customer asking for a price, a quote that answers it, an acceptance that turns it into work. Quote to cash is the commercial spine that runs alongside the build — pricing on one end, a settled invoice on the other.++We'll follow one inquiry from a blank quote all the way to an order Carbon is ready to ship.++## One opportunity, many documents++In Carbon, a request for quote, a quote, and a sales order aren't a rigid chain — they're three documents that hang off a single **opportunity**. The opportunity holds a slot for each (`salesRfqId`, `quoteId`, `salesOrderId`), and any of them can be empty.++That design has a practical consequence: none of the steps are mandatory. You can raise a sales order cold, quote without a formal RFQ, or carry one opportunity through all three. Carbon tracks the relationship through the opportunity, not through a foreign key that forces the sequence.++<Callout tone="neutral" badge="NO RIGID CHAIN" title="Quotes are optional — the opportunity is the thread.">+A sales order does not require a quote, and a quote does not require an RFQ. Each document links back to the same opportunity, so you can enter the flow at whatever point a deal actually starts.+</Callout>++## Build the quote++Open a new quote and add a line per item the customer asked about. Pricing lives on the line and supports quantity breaks, so the unit price for 10 can differ from the price for 100 — the negotiated number you land on is what carries forward later.++A fresh quote sits at **"Draft"**. Each line moves through its own state as you work it up: **"Not Started"**, **"In Progress"**, **"Complete"** — or **"No Quote"** for a line you decide not to bid. The line states let you quote a multi-item inquiry piecemeal instead of all at once.++<Screenshot label="Quote builder" caption="A multi-line quote with quantity-break pricing, each line worked up independently." ratio="wide" />++When the numbers are ready, finalizing the quote moves it to **"Sent"** and marks its lines **"Complete"**. That status is also the gate for the next step.++## Send it to the customer++Carbon can hand the customer the quote directly. With digital quotes enabled, a **"Sent"** quote exposes a private share link — an unguessable id, no login required. Internal notes are stripped before anything reaches the customer.++From that link the customer does one of two things. They **accept** — optionally attaching their PO as a PDF — and the quote converts straight into a sales order. Or they **reject**, and the quote moves to **"Lost"**. Either way the outcome lands back in Carbon without a single email thread.++<Callout tone="blue" badge="DIGITAL QUOTE" title="Acceptance is a first-class action, not an inbox.">+The customer-facing share link turns an accept into a real conversion and a reject into a recorded outcome. A companion customer portal then shows them live order and job status as the work proceeds.+</Callout>++<Screenshot label="Digital quote — customer view" caption="What the customer sees: line pricing, accept with an optional PO upload, or reject." ratio="wide" />++## When a quote doesn't land++Not every quote converts, and Carbon keeps a distinct status for each ending. A quote whose validity date passes turns **"Expired"**; one the customer rejects becomes **"Lost"**; one you withdraw yourself is **"Cancelled"**. Each is a real outcome on the record, not a quote left hanging.++None of them ends the conversation. A quote carries a **revision** number, so when a price needs reworking you re-quote rather than start over — the revision bumps, the customer sees the current terms, and the history of what changed stays intact.++<Callout tone="neutral" badge="REVISE, DON'T RESTART" title="Re-quoting bumps a revision and keeps the trail.">+A lost or expired quote isn't wasted work. Raise a new revision off it and the prior terms stay on the record, so a negotiation that runs three rounds leaves three readable versions, not three disconnected quotes.+</Callout>++## Into a sales order++Whether you convert internally or the customer accepts, the same thing happens: Carbon builds a sales order from the quote. The order lines carry the negotiated net unit price, the new order reuses the quote's opportunity, and the quote flips to **"Ordered"** — or **"Partial"** if only some lines converted. The order itself opens at **"To Ship and Invoice"**.++That status is the handoff. Everything from here — production, shipment, invoice — keys off the sales order, exactly where the make-to-order tour began.++<Callout tone="amber" badge="ORDER → JOB, NOT QUOTE → JOB" title="Jobs come from the order, never the quote.">+There is no path from a quote straight to a production job. A [make-to-order](/guides/order) line on the *sales order* is what spawns a job — so the sequence is always quote → order → job. The order is the source of truth the floor builds against.+</Callout>++<Screenshot label="Sales order" caption="The converted order at 'To Ship and Invoice', priced from the accepted quote." ratio="wide" />diff --git a/apps/docs/content/guides/receive-and-bill.mdx b/apps/docs/content/guides/receive-and-bill.mdxnew file mode 100644index 0000000000..fd9049d762--- /dev/null+++ b/apps/docs/content/guides/receive-and-bill.mdx@@ -0,0 +1,67 @@+---+title: Receive, match, bill+description: Goods come in, the supplier bill arrives, and Carbon reconciles the two.+label: "(II)"+index: 1+flow: rfq-to-bill+flowName: RFQ to bill+flowIndex: 2+---++## Introduction++The order is placed and sitting at **"To Receive and Invoice"**. Two things now happen on their own schedules: the goods show up, and the supplier's bill shows up. They rarely arrive together, and Carbon is built around that fact — receiving and invoicing are separate posted steps that reconcile against the order, not against each other directly.++## The line keeps score++A purchase order line tracks `purchaseQuantity` against two independent counters: `quantityReceived` and `quantityInvoiced`. The amounts still owed — `quantityToReceive` and `quantityToInvoice` — are computed for you. A line carries two flags, `receivedComplete` and `invoicedComplete`, and only when both are true is that line done.++Those two flags are exactly what the order's status rolls up. Receive everything and the order drops to **"To Invoice"**; bill everything and it drops to **"To Receive"**; once a line is both received and invoiced, it's **"Completed"**. Receiving and billing move the same order along two separate axes.++## Receive the goods++Create a receipt from the order and Carbon pre-fills it from the outstanding lines, linking each receipt line back to its purchase order line. The receipt opens at **"Draft"** — and like a shipment, creating it changes nothing on hand.++**Posting** is the event. Post the receipt and stock comes in through the item ledger as a *Purchase Receipt*, the order line's `quantityReceived` rises, `receivedComplete` flips once the full quantity is in, and the order advances. The receipt moves to **"Posted"**.++<Callout tone="amber" badge="INVENTORY vs LEDGER" title="Stock moves whether or not accounting is on.">+Posting a receipt always updates inventory. The accounting entries — debit inventory or WIP, credit the goods-received-not-invoiced (GR/IR) clearing account — are written only when accounting is enabled for the company. Inventory and the general ledger advance on different switches.+</Callout>++<Callout tone="green" badge="QUALITY HANDOFF" title="Inspected parts land on hold, not on the shelf.">+Receive an item flagged for inspection and its tracked units come in **"On Hold"**, with an inbound inspection opened at **"Pending"** — received, but quarantined until quality clears them for use.+</Callout>++<Screenshot label="Post receipt" caption="Posting the receipt: stock enters the item ledger, the line's received quantity rises, the order advances." ratio="wide" />++## Buy by the box, stock by the each++Suppliers rarely sell in your stock unit. You might buy fasteners by the thousand-count box but stock and issue them as eaches. Every purchase order line carries a **conversion factor** between the two units, so the price and quantity you agree with the supplier stay in *their* terms while inventory moves in *yours*.++Posting the receipt does the translation: the quantity the supplier shipped is converted through the factor before it lands in stock, while the line's received count stays in the purchase unit. You reconcile against the supplier in the unit you ordered, and the floor pulls stock in the unit it builds with — neither side has to do the arithmetic in its head.++## The supplier bill++When the invoice arrives, draw a purchase invoice from the order. Carbon keeps the lines that still have something to bill and opens the invoice at **"Draft"**. Each invoice line links back to its **purchase order line** — and that is the only structural link in the chain.++There is, deliberately, no direct link from an invoice to a receipt. A receipt isn't even required before you bill: a direct invoice can create its own receipt as it posts. Carbon reconciles on the shared order line, not on a receipt-to-invoice match.++<Callout tone="blue" badge="THREE-WAY MATCH" title="The match is on the order line, not a receipt record.">+Order, receipt, and bill are reconciled through the quantities on their shared purchase order line. Posting the invoice clears the GR/IR accrual the receipt booked — at the receipt's cost — and books any difference between order price and bill to a purchase price-variance account.+</Callout>++<Screenshot label="Purchase invoice" caption="A draft supplier invoice drawn from the order, lines matched on the purchase order line." ratio="wide" />++## Match and post++Posting the purchase invoice writes the payable side of the ledger — credit Accounts Payable, debit inventory or WIP, reverse the GR/IR clearing the receipt set up, and send any price difference to variance — all gated on accounting being enabled. It bumps each order line's `quantityInvoiced`, flips `invoicedComplete`, and recomputes the order's status. The invoice itself lands on **"Open"**.++Note what posting does *not* do: it never marks the invoice **"Paid"**. As on the sales side, payment in Carbon is field-based — a status and a paid date on the invoice — not a separate transaction. Voiding a posted invoice writes reversing entries rather than deleting it.++<Callout tone="green" badge="POSTED ≠ PAID" title="A posted bill is 'Open', awaiting payment.">+Posting settles the accounting against the order and receipt; it doesn't disburse cash. The invoice waits at **"Open"** until it's marked paid — the deliberate act that records the outflow.+</Callout>++<Divider />++That's RFQ to bill end to end: one part shopped to several suppliers, ordered from the best, received into stock, and billed against the very same order line — the buy-side mirror of quote to cash, reconciled on the order, not on paperwork.diff --git a/apps/docs/content/guides/rfq-to-po.mdx b/apps/docs/content/guides/rfq-to-po.mdxnew file mode 100644index 0000000000..84306a4d83--- /dev/null+++ b/apps/docs/content/guides/rfq-to-po.mdx@@ -0,0 +1,61 @@+---+title: From RFQ to PO+description: Shop one item to many suppliers, then turn the winning quote into an order.+label: "(I)"+index: 0+flow: rfq-to-bill+flowName: RFQ to bill+flowIndex: 2+---++## Introduction++Every robot the shop builds is mostly parts it buys. RFQ to bill is the procurement side of the house — the mirror image of quote to cash, run from the buyer's chair. You ask suppliers for a price, you place an order, the goods arrive, and a supplier bill lands that you reconcile against what you actually ordered and received.++We'll follow one purchased part from a blank request all the way to a posted supplier invoice.++## One RFQ, many suppliers++Start with a purchasing RFQ. Unlike a sales quote — which is one document for one customer — a purchasing RFQ is built to fan out: one request, the same lines, sent to several suppliers at once so you can compare what comes back. A fresh RFQ sits at **"Draft"**.++When you finalize it, Carbon does the fan-out for you. It creates one **supplier quote** per supplier off the RFQ's lines, links each back to the request, and — if you want — emails the supplier a private link to respond. The RFQ moves to **"Requested"**; each new supplier quote opens at **"Draft"**.++<Callout tone="neutral" badge="LOOSELY COUPLED" title="RFQ and supplier quote are both optional.">+You can start at the purchase order and skip the shopping-around entirely. When you do use them, the RFQ, the supplier quotes, and the eventual PO are tied together by junction records — not a rigid chain — so one request can spread across many suppliers and many orders.+</Callout>++<Screenshot label="Purchasing RFQ — supplier comparison" caption="One request, the same lines, fanned out to several suppliers to compare." ratio="wide" />++## Suppliers quote back++Each supplier quote carries a private share link. The supplier opens it — no login — and enters their pricing, including quantity breaks and lead times. Submitting moves their quote to **"Active"** and writes the prices back into Carbon; declining moves it to **"Declined"**.++It's the same digital-quote machinery as the sales side, pointed the other way: there, customers accept your price; here, suppliers send you theirs.++<Callout tone="blue" badge="SUPPLIER PORTAL" title="The portal hangs off the quote, not the request.">+The share link lives on each supplier quote, so every supplier responds in their own document. You see the bids side by side and pick the one to turn into an order.+</Callout>++<Screenshot label="Supplier quote portal" caption="The supplier's view: enter unit price, quantity breaks, and lead time, then submit." ratio="wide" />++## Into a purchase order++Convert the winning supplier quote and Carbon builds a purchase order from it — carrying the supplier, the lines, the negotiated pricing (converted through the line's conversion factor and exchange rate), and the same supplier-interaction thread. A PO can also be one of three kinds: a plain **"Purchase"**, a **"Return"**, or **"Outside Processing"** for sending parts out to a vendor for a step.++A purchase order's status is never typed in by hand — Carbon computes it from the state of its lines. Finalize a fresh order and it lands at **"To Receive and Invoice"**: nothing has arrived, nothing has been billed. If the order's value crosses an approval threshold, it stops at **"Needs Approval"** until someone signs off.++<Callout tone="amber" badge="STATUS IS COMPUTED" title="A PO's status is derived from its lines, every time.">+Each line tracks whether it's fully received and fully invoiced. The order rolls those up — "To Receive and Invoice" → "To Receive" or "To Invoice" → "Completed" — so the header always reflects what's actually outstanding, never a stale label.+</Callout>++<Screenshot label="Purchase order" caption="The order converted from the chosen supplier quote, sitting at 'To Receive and Invoice'." ratio="wide" />++## Send work out, too++Not every purchase order buys a part — some buy a *step*. When an operation on one of your own jobs goes to an outside vendor — plating, heat-treat, anodizing — you raise a purchase order of type **"Outside Processing"**, tied to that job's operation rather than to a stock item.++It receives differently, too. Posting an outside-processing receipt adds nothing to a shelf; instead it advances the job operation and posts the vendor's charge straight into the job's [work-in-process](/guides/job-costing) — the subcontracted step lands in the same cost balance as the operations you ran in-house.++<Callout tone="blue" badge="OUTSIDE PROCESSING" title="A PO can buy an operation, not just an item.">+Outside-processing orders bridge purchasing and the floor: the vendor performs a step on your part, and receiving the PO both moves the [make-to-order](/guides/order) job's operation forward and charges its cost to WIP. Purchasing, production, and accounting meet on one document.+</Callout>diff --git a/apps/docs/content/guides/ship.mdx b/apps/docs/content/guides/ship.mdxnew file mode 100644index 0000000000..ff4d549657--- /dev/null+++ b/apps/docs/content/guides/ship.mdx@@ -0,0 +1,66 @@+---+title: Quality, trace & ship+description: Prove it's right, ship it, close the books.+label: "(V)"+index: 4+---++## Introduction++Building the robot is most of the work, but it isn't the whole job. You still have to prove it was built right, and close the loop with the customer and your books.++## Raise an issue++Say an operator flags a defect on an arm. You open an Issue — Carbon's name for a non-conformance. It moves through a clear lifecycle, from Registered to In Progress to Closed, and it links to the part itself, so the arm now carries that open issue everywhere it appears in the system.++<Figure illustration="eight-d" caption="An issue moves through its workflow — contain, correct, verify — until the fix is proven." />++<Screenshot label="Quality issue" caption="An issue opened against the arm assembly operation." ratio="wide" />++## Workflows & actions++An issue doesn't just sit there — it runs a workflow you define. A classic 8D is one such workflow; a quick containment-only response is another. Whichever you pick, it spins up the required actions as tasks, each one started and completed on its own:++<Figure illustration="issue-workflow" caption="An issue moves Registered → In Progress → Closed, spinning up its required-action tasks along the way." />++- Containment — stop the bad parts from spreading. Set it on the affected process and it surfaces on the shop floor, so the next operator can't keep building the defect.+- Corrective — find and fix the root cause.+- Preventive — change something so it can't recur.+- Verification — prove the fix actually worked.+- Communication — keep the customer in the loop.++<Callout tone="amber" badge="DISPOSITION" title="Held material doesn't move until someone signs off.">+A review step gates what happens to the non-conforming arms — use, rework, or scrap. Nothing is dispositioned on a hunch; the decision is recorded against the issue alongside its actions.+</Callout>++## Versioned procedures++Those work instructions the operator followed didn't appear from nowhere. They're generated from versioned procedures — the same Draft / Active / Archived discipline you saw on methods. When a corrective action changes how the arm is assembled, you publish a new revision; every future job picks it up, and every job already running keeps the revision it started on.++<Callout tone="green" badge="REVISIONS" title="Change the procedure once; the floor follows everywhere.">+New jobs pick up the latest published version; in-flight jobs never shift mid-build. And every robot's record pins the exact procedure revision it was actually built to.+</Callout>++<Screenshot label="Procedure version history" caption="A new revision of the arm-assembly procedure, published from the issue's corrective action." ratio="wide" />++## Traceability++Because everything was captured at build time, the genealogy of a finished robot is complete. Carbon stores it as a graph of tracked entities and the activities that link them — so from one serial you can walk backward to every ancestor (which arm, which motor lot, which raw material) or forward to every place a lot was used.++<Figure illustration="traceability-graph" caption="The genealogy of one finished robot, from serial number down to material lots." />++One click — or one scan of the robot's QR label — answers the question every auditor and every recall asks: what exactly went into this unit, and where else did that lot go?++<Screenshot label="Traceability graph" caption="The full as-built genealogy for robot serial #0001." ratio="wide" />++## Ship & invoice++Week one's 30 robots are done. You create a [shipment](/guides/order-to-cash) against the sales order — it drafts its lines from what's outstanding, you pick and post it — then invoice that same 30. Because the order line stays open at "To Ship and Invoice," it simply carries the remaining 60 forward; the completed count rolls up as each batch ships.++Carbon ties the invoice straight into your accounting system, so the build that started at the [sales desk](/guides/quote-to-cash) closes on the books — partial quantity and all.++<Screenshot label="Shipment & invoice" caption="Shipping the first 30 units and invoicing the partial quantity." ratio="wide" />++<Divider />++That's the whole loop: a 90-unit promise became three jobs, a tree of made and bought parts, a forecast-aware plan, traceable work on the floor, a quality save, and a shipped, invoiced, fully-traceable robot. Every entity you saw — methods, kits, policies, operations, issues — has its own page in the Reference when you're ready for the detail.diff --git a/apps/docs/lib/api-data.ts b/apps/docs/lib/api-data.tsnew file mode 100644index 0000000000..a051ecdb95--- /dev/null+++ b/apps/docs/lib/api-data.ts@@ -0,0 +1,62 @@+import raw from "./api-data.generated";+import type { ApiData, ApiModule, ApiResource } from "./api-types";++export const apiData = raw as ApiData;+export const apiModules: ApiModule[] = apiData.modules;+export const apiBase: string = apiData.base;++export function getResource(+ moduleSlug: string,+ resourceSlug: string,+): { module: ApiModule; resource: ApiResource } | null {+ const module = apiModules.find((m) => m.slug === moduleSlug);+ const resource = module?.resources.find((r) => r.slug === resourceSlug);+ if (!module || !resource) return null;+ return { module, resource };+}++export function allResourceParams(): { module: string; resource: string }[] {+ return apiModules.flatMap((m) => m.resources.map((r) => ({ module: m.slug, resource: r.slug })));+}++export const firstResourcePath: string = (() => {+ const m = apiModules[0];+ const r = m?.resources[0];+ return m && r ? `/api-reference/${m.slug}/${r.slug}` : "/api-reference";+})();++// Slim nav tree (no code samples) for the sidebar.+export interface NavEndpoint {+ id: string;+ method: string;+ title: string;+}+export interface NavResource {+ name: string;+ slug: string;+ module: string;+ kind: "table" | "view";+ endpoints: NavEndpoint[];+}+export interface NavModule {+ name: string;+ slug: string;+ resources: NavResource[];+}++// Modules and their resources are listed alphabetically in the nav.+export const navTree: NavModule[] = apiModules+ .map((m) => ({+ name: m.name,+ slug: m.slug,+ resources: m.resources+ .map((r) => ({+ name: r.name,+ slug: r.slug,+ module: m.slug,+ kind: r.kind,+ endpoints: r.endpoints.map((e) => ({ id: e.id, method: e.method, title: e.title })),+ }))+ .sort((a, b) => a.name.localeCompare(b.name)),+ }))+ .sort((a, b) => a.name.localeCompare(b.name));diff --git a/apps/docs/lib/api-types.ts b/apps/docs/lib/api-types.tsnew file mode 100644index 0000000000..571cec92c1--- /dev/null+++ b/apps/docs/lib/api-types.ts@@ -0,0 +1,59 @@+export type ApiMethod = "GET" | "POST" | "PATCH" | "DELETE";++export interface ApiAttribute {+ name: string;+ type: string;+ format?: string;+ description: string;+ required: boolean;+ pk: boolean;+ fk?: { table: string; column: string };+}++export interface ApiQueryParam {+ name: string;+ type: string;+ description: string;+}++export interface ApiSamples {+ curl: string;+ javascript: string;+ python: string;+ go: string;+}++export interface ApiEndpoint {+ id: string;+ kind: "list" | "retrieve" | "create" | "update" | "delete";+ method: ApiMethod;+ path: string;+ title: string;+ description: string;+ attributes: ApiAttribute[];+ query?: ApiQueryParam[];+ response: string;+ samples: ApiSamples;+}++export interface ApiResource {+ table: string;+ name: string;+ slug: string;+ module: string;+ kind: "table" | "view";+ description: string;+ pk: string;+ endpoints: ApiEndpoint[];+}++export interface ApiModule {+ name: string;+ slug: string;+ resources: ApiResource[];+}++export interface ApiData {+ base: string;+ modules: ApiModule[];+}diff --git a/apps/docs/lib/highlight.ts b/apps/docs/lib/highlight.tsnew file mode 100644index 0000000000..bea925d190--- /dev/null+++ b/apps/docs/lib/highlight.ts@@ -0,0 +1,32 @@+import "server-only";+import { type Highlighter, createHighlighter } from "shiki";++// One highlighter per build worker, reused across every endpoint.+let highlighterPromise: Promise<Highlighter> | null = null;+function getHighlighter() {+ if (!highlighterPromise) {+ highlighterPromise = createHighlighter({+ themes: ["github-dark-default"],+ langs: ["bash", "javascript", "python", "go", "json"],+ });+ }+ return highlighterPromise;+}++const LANG: Record<string, string> = {+ curl: "bash",+ javascript: "javascript",+ python: "python",+ go: "go",+ json: "json",+};++/** Highlight a code sample to themed HTML at build time (server-only). */+export async function highlight(code: string, key: string): Promise<string> {+ if (!code) return "";+ const highlighter = await getHighlighter();+ return highlighter.codeToHtml(code, {+ lang: LANG[key] ?? "bash",+ theme: "github-dark-default",+ });+}diff --git a/apps/docs/lib/layout.shared.tsx b/apps/docs/lib/layout.shared.tsxnew file mode 100644index 0000000000..e7380f593c--- /dev/null+++ b/apps/docs/lib/layout.shared.tsx@@ -0,0 +1,12 @@+import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";++export function baseOptions(): BaseLayoutProps {+ return {+ // Light-only, like the editorial Guide.+ themeSwitch: { enabled: false },+ // The site-wide MainHeader carries the brand + nav; keep the Fumadocs sidebar+ // wordmark empty so "Carbon" isn't duplicated below the header.+ nav: {},+ links: [],+ };+}diff --git a/apps/docs/lib/search-index.ts b/apps/docs/lib/search-index.tsnew file mode 100644index 0000000000..2cf3588b4f--- /dev/null+++ b/apps/docs/lib/search-index.ts@@ -0,0 +1,114 @@+import "server-only";+import type { AdvancedIndex } from "fumadocs-core/search/server";+import { apiModules } from "@/lib/api-data";+import { guideSource, source } from "@/lib/source";+import { toolModules } from "@/lib/tools-data";++/* One Orama index over all four doc surfaces. Each entry is `tag`ged so the single+ * /api/search endpoint can be filtered per surface (the header's All/Guide/Reference/+ * API/MCP pills map to these tags). MDX pages reuse the `structuredData` the+ * fumadocs-mdx pipeline already produces (the same field createFromSource read); the+ * generated API/MCP data is shaped into structuredData by hand so column- and+ * parameter-level matches still land the right page. */++type StructuredData = AdvancedIndex["structuredData"];++// Structural shape shared by both MDX loaders' pages — enough to index, no more.+interface IndexablePage {+ url: string;+ data: { title?: string; description?: string; structuredData?: StructuredData };+}++function mdxIndexes(pages: IndexablePage[], tag: string, crumb: string): AdvancedIndex[] {+ return pages.map((page) => ({+ id: page.url,+ url: page.url,+ title: page.data.title ?? page.url,+ description: page.data.description,+ tag,+ breadcrumbs: [crumb],+ structuredData: page.data.structuredData ?? { headings: [], contents: [] },+ }));+}++function toolParamNames(schema: unknown): string[] {+ if (schema && typeof schema === "object" && "properties" in schema) {+ const props = (schema as { properties?: unknown }).properties;+ if (props && typeof props === "object") return Object.keys(props as Record<string, unknown>);+ }+ return [];+}++function toolIndexes(): AdvancedIndex[] {+ return toolModules.flatMap((mod) =>+ mod.tools.map((tool) => {+ const params = toolParamNames(tool.schema);+ const contents: StructuredData["contents"] = [+ {+ heading: undefined,+ content: `${tool.description}. ${tool.classification} tool in the ${mod.name} module.`,+ },+ ];+ if (params.length) {+ contents.push({ heading: undefined, content: `Parameters: ${params.join(", ")}.` });+ }+ return {+ id: `/mcp/tools/${tool.slug}`,+ url: `/mcp/tools/${tool.slug}`,+ title: tool.name,+ description: tool.description,+ tag: "tools",+ breadcrumbs: ["MCP", mod.name],+ structuredData: { headings: [], contents },+ };+ }),+ );+}++function resourceIndexes(): AdvancedIndex[] {+ return apiModules.flatMap((mod) =>+ mod.resources.map((r) => {+ // Endpoint titles become headings whose ids match the page's <section id> anchors,+ // so a heading hit deep-links straight to "List customers" etc.+ const headings: StructuredData["headings"] = r.endpoints.map((e) => ({+ id: e.id,+ content: e.title,+ }));+ // Every field name across the resource's endpoints — a search for a column lands here.+ const fields = Array.from(+ new Set(r.endpoints.flatMap((e) => e.attributes.map((a) => a.name))),+ );+ const contents: StructuredData["contents"] = [+ {+ heading: undefined,+ content: `The ${r.name} ${r.kind} (${r.table}) in the ${mod.name} module.`,+ },+ ...r.endpoints.map((e) => ({+ heading: e.title,+ content: `${e.method} ${e.path} — ${e.description}`,+ })),+ ];+ if (fields.length) {+ contents.push({ heading: undefined, content: `Fields: ${fields.join(", ")}.` });+ }+ return {+ id: `/api-reference/${mod.slug}/${r.slug}`,+ url: `/api-reference/${mod.slug}/${r.slug}`,+ title: r.name,+ description: r.description,+ tag: "resources",+ breadcrumbs: ["API", mod.name],+ structuredData: { headings, contents },+ };+ }),+ );+}++export function buildSearchIndexes(): AdvancedIndex[] {+ return [+ ...mdxIndexes(source.getPages(), "docs", "Reference"),+ ...mdxIndexes(guideSource.getPages(), "guide", "Guide"),+ ...resourceIndexes(),+ ...toolIndexes(),+ ];+}diff --git a/apps/docs/lib/source.ts b/apps/docs/lib/source.tsnew file mode 100644index 0000000000..6ce24de406--- /dev/null+++ b/apps/docs/lib/source.ts@@ -0,0 +1,12 @@+import { docs, guide } from "collections/server";+import { loader } from "fumadocs-core/source";++export const source = loader({+ baseUrl: "/docs",+ source: docs.toFumadocsSource(),+});++export const guideSource = loader({+ baseUrl: "/guides",+ source: guide.toFumadocsSource(),+});diff --git a/apps/docs/lib/tools-data.ts b/apps/docs/lib/tools-data.tsnew file mode 100644index 0000000000..7cacedbca5--- /dev/null+++ b/apps/docs/lib/tools-data.ts@@ -0,0 +1,56 @@+import raw from "./tools-data.generated";++export type ToolClass = "READ" | "WRITE" | "DESTRUCTIVE";++export interface ToolItem {+ name: string;+ slug: string;+ classification: ToolClass;+ description: string;+ schema: unknown;+}+export interface ToolModule {+ name: string;+ slug: string;+ module: string;+ tools: ToolItem[];+}+interface ToolData {+ modules: ToolModule[];+}++export const toolModules: ToolModule[] = (raw as ToolData).modules;++export function getTool(slug: string): { module: ToolModule; tool: ToolItem } | null {+ for (const m of toolModules) {+ const tool = m.tools.find((t) => t.slug === slug);+ if (tool) return { module: m, tool };+ }+ return null;+}++export function allToolParams(): { tool: string }[] {+ return toolModules.flatMap((m) => m.tools.map((t) => ({ tool: t.slug })));+}++// Slim nav tree (no schemas) for the sidebar.+export interface ToolNavItem {+ name: string;+ slug: string;+ classification: ToolClass;+}+export interface ToolNavModule {+ name: string;+ slug: string;+ tools: ToolNavItem[];+}+// Modules and their tools are listed alphabetically in the nav.+export const toolsNavTree: ToolNavModule[] = toolModules+ .map((m) => ({+ name: m.name,+ slug: m.slug,+ tools: m.tools+ .map((t) => ({ name: t.name, slug: t.slug, classification: t.classification }))+ .sort((a, b) => a.name.localeCompare(b.name)),+ }))+ .sort((a, b) => a.name.localeCompare(b.name));diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjsnew file mode 100644index 0000000000..dfab51a2f7--- /dev/null+++ b/apps/docs/next.config.mjs@@ -0,0 +1,33 @@+import { createMDX } from "fumadocs-mdx/next";++const withMDX = createMDX();++/** @type {import('next').NextConfig} */+const config = {+ reactStrictMode: true,+ // The monorepo pins React 18 (catalog) while this app runs React 19, so two+ // @types/react versions coexist and `next build` trips on the ReactNode /+ // ReactPortal type skew (a types-only artifact, not a runtime bug). Skip Next's+ // build-time typecheck; `pnpm typecheck` still runs tsc in CI.+ typescript: { ignoreBuildErrors: true },+ // Serving the dev server through a tunnel (ngrok) is cross-origin to+ // localhost:3002. Next 16 blocks cross-origin requests to its /_next dev+ // internals (RSC navigation, HMR) unless the tunnel origin is whitelisted,+ // which otherwise breaks client-side navigation while SSR still renders.+ allowedDevOrigins: [+ "grown-outgoing-shad.ngrok-free.app",+ "*.ngrok-free.app",+ "*.ngrok.app",+ "*.ngrok.io",+ ],+ // Serve the first guide at "/" without changing the URL — a server-side rewrite,+ // not a client/redirect bounce. `beforeFiles` runs ahead of the app router so it+ // takes precedence (app/page.tsx is removed).+ async rewrites() {+ return {+ beforeFiles: [{ source: "/", destination: "/guides/order" }],+ };+ },+};++export default withMDX(config);diff --git a/apps/docs/package.json b/apps/docs/package.jsonnew file mode 100644index 0000000000..dbcccb4084--- /dev/null+++ b/apps/docs/package.json@@ -0,0 +1,48 @@+{+ "name": "docs",+ "type": "module",+ "private": true,+ "scripts": {+ "dev": "node scripts/generate-api-docs.mjs && next dev -p 3002",+ "build": "node scripts/generate-api-docs.mjs && fumadocs-mdx && next build",+ "start": "next start -p 3002",+ "generate:api": "node scripts/generate-api-docs.mjs",+ "postinstall": "fumadocs-mdx",+ "clean": "rimraf .cache .turbo .next .source node_modules",+ "lint": "biome lint --write .",+ "format": "biome format --write .",+ "check": "biome check --write .",+ "typecheck": "node scripts/generate-api-docs.mjs && fumadocs-mdx && tsc --noEmit"+ },+ "dependencies": {+ "@radix-ui/react-dialog": "1.1.15",+ "@radix-ui/react-popover": "1.1.15",+ "framer-motion": "^12",+ "fumadocs-core": "^16",+ "fumadocs-mdx": "^15",+ "fumadocs-ui": "^16",+ "next": "^16",+ "non.geist": "catalog:",+ "react": "^19.2.0",+ "react-dom": "^19.2.0",+ "shiki": "^4.2.0",+ "simple-icons": "^16.23.0",+ "zod": "^4"+ },+ "devDependencies": {+ "@carbon/config": "workspace:*",+ "@httptoolkit/httpsnippet": "^3.0.2",+ "@tailwindcss/postcss": "^4",+ "@tailwindcss/typography": "catalog:",+ "@types/mdx": "^2.0.14",+ "@types/node": "^22",+ "@types/react": "^19",+ "@types/react-dom": "^19",+ "rimraf": "catalog:",+ "tailwind-scrollbar": "catalog:",+ "tailwind-scrollbar-hide": "catalog:",+ "tailwindcss": "catalog:",+ "tailwindcss-animate": "catalog:",+ "typescript": "catalog:"+ }+}diff --git a/apps/docs/postcss.config.mjs b/apps/docs/postcss.config.mjsnew file mode 100644index 0000000000..c2ddf74822--- /dev/null+++ b/apps/docs/postcss.config.mjs@@ -0,0 +1,5 @@+export default {+ plugins: {+ "@tailwindcss/postcss": {},+ },+};diff --git a/apps/docs/public/carbon-mark-dark.svg b/apps/docs/public/carbon-mark-dark.svgnew file mode 100644index 0000000000..047b926154--- /dev/null+++ b/apps/docs/public/carbon-mark-dark.svg@@ -0,0 +1,3 @@+<svg width="424" height="480" viewBox="0 0 424 480" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M176.24 9.80407C198.287 -3.26801 225.714 -3.26803 247.761 9.80407L389.658 93.9389C410.947 106.562 424 129.472 424 154.217V325.783C424 350.528 410.947 373.439 389.658 386.062L247.761 470.196C225.714 483.268 198.287 483.268 176.24 470.196L34.3432 386.062C13.0539 373.439 0.000129963 350.528 0 325.783V154.217C0.000219136 129.472 13.054 106.562 34.3432 93.9389L176.24 9.80407ZM224.561 112.025C217.155 107.562 207.886 107.551 200.471 111.999L124.056 157.836C108.898 166.929 108.938 188.904 124.128 197.943L200.899 243.618C202.762 244.727 203.903 246.734 203.903 248.901V339.17C203.903 357.314 223.69 368.532 239.265 359.22L314.442 314.275C321.496 310.057 325.815 302.443 325.815 294.225V186.253C325.815 178.065 321.527 170.474 314.514 166.246L224.561 112.025Z" fill="#E6E6E6"/>+</svg>diff --git a/apps/docs/public/carbon-mark-light.svg b/apps/docs/public/carbon-mark-light.svgnew file mode 100644index 0000000000..db0480c53c--- /dev/null+++ b/apps/docs/public/carbon-mark-light.svg@@ -0,0 +1,3 @@+<svg width="424" height="480" viewBox="0 0 424 480" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M176.24 9.80407C198.287 -3.26801 225.714 -3.26803 247.761 9.80407L389.658 93.9389C410.947 106.562 424 129.472 424 154.217V325.783C424 350.528 410.947 373.439 389.658 386.062L247.761 470.196C225.714 483.268 198.287 483.268 176.24 470.196L34.3432 386.062C13.0539 373.439 0.000129963 350.528 0 325.783V154.217C0.000219136 129.472 13.054 106.562 34.3432 93.9389L176.24 9.80407ZM224.561 112.025C217.155 107.562 207.886 107.551 200.471 111.999L124.056 157.836C108.898 166.929 108.938 188.904 124.128 197.943L200.899 243.618C202.762 244.727 203.903 246.734 203.903 248.901V339.17C203.903 357.314 223.69 368.532 239.265 359.22L314.442 314.275C321.496 310.057 325.815 302.443 325.815 294.225V186.253C325.815 178.065 321.527 170.474 314.514 166.246L224.561 112.025Z" fill="#101A24"/>+</svg>diff --git a/apps/docs/public/carbon-word-dark.svg b/apps/docs/public/carbon-word-dark.svgnew file mode 100644index 0000000000..c4463b4061--- /dev/null+++ b/apps/docs/public/carbon-word-dark.svg@@ -0,0 +1,9 @@+<svg width="720" height="175" viewBox="0 0 720 175" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M64.2993 3.57443C72.343 -1.19144 82.3494 -1.19151 90.3931 3.57443L142.163 34.2484C149.93 38.8505 154.692 47.2038 154.692 56.2254V118.775C154.692 127.796 149.93 136.149 142.163 140.752L90.3931 171.426C82.3494 176.192 72.343 176.191 64.2993 171.426L12.5296 140.752C4.76242 136.149 0 127.796 0 118.775V56.2254C0 47.2037 4.76242 38.8505 12.5296 34.2484L64.2993 3.57443ZM81.004 40.286C78.8708 39.0012 76.2016 38.9983 74.0657 40.2786L42.6851 59.0884C38.3192 61.7055 38.3303 68.0312 42.7057 70.6326L74.173 89.3408C74.3089 89.4216 74.3921 89.5681 74.3921 89.726V126.818C74.3922 132.04 80.0912 135.269 84.5774 132.589L115.594 114.057C117.626 112.843 118.87 110.652 118.87 108.287V66.8923C118.87 64.5357 117.635 62.3509 115.615 61.134L81.004 40.286Z" fill="#E6E6E6"/>+<path d="M236.385 133.457C229.22 133.457 222.857 132.223 217.298 129.754C211.862 127.163 207.291 123.645 203.584 119.202C200.002 114.635 197.284 109.513 195.431 103.836C193.577 98.1581 192.651 92.2338 192.651 86.0626C192.651 79.8914 193.577 73.9671 195.431 68.2897C197.284 62.6122 200.002 57.5518 203.584 53.1086C207.291 48.6654 211.862 45.2095 217.298 42.741C222.857 40.1492 229.22 38.8532 236.385 38.8532C245.404 38.8532 253.249 41.0131 259.921 45.3329C266.716 49.6528 271.719 56.3176 274.931 65.3275L256.77 72.3626C255.288 67.6725 252.879 63.9081 249.543 61.0694C246.207 58.1072 241.821 56.6262 236.385 56.6262C230.95 56.6262 226.502 58.0455 223.043 60.8843C219.707 63.723 217.236 67.364 215.63 71.8072C214.024 76.2505 213.221 81.0023 213.221 86.0626C213.221 91.123 214.024 95.9365 215.63 100.503C217.236 104.946 219.707 108.587 223.043 111.426C226.502 114.141 230.95 115.499 236.385 115.499C241.821 115.499 246.207 114.08 249.543 111.241C252.879 108.402 255.288 104.638 256.77 99.9477L274.931 106.983C271.719 115.869 266.716 122.534 259.921 126.977C253.249 131.297 245.404 133.457 236.385 133.457Z" fill="#E6E6E6"/>+<path d="M343.217 131.791L341.735 116.425V74.214C341.735 68.2897 339.943 63.8464 336.361 60.8843C332.778 57.7987 327.774 56.2559 321.35 56.2559C316.408 56.2559 311.528 57.2433 306.71 59.218C302.015 61.0694 297.691 63.9698 293.738 67.9194L282.248 54.4045C288.178 48.8505 294.479 44.901 301.151 42.5559C307.822 40.0874 315.111 38.8532 323.018 38.8532C335.372 38.8532 344.947 42.0005 351.742 48.2951C358.66 54.4663 362.12 63.1059 362.12 74.214V131.791H343.217ZM314.864 133.457C308.069 133.457 302.015 132.223 296.703 129.754C291.514 127.286 287.437 123.83 284.472 119.387C281.631 114.944 280.21 109.76 280.21 103.836C280.21 98.7752 281.26 94.3937 283.36 90.691C285.584 86.9883 288.426 84.0878 291.885 81.9896C294.85 80.1383 298.309 78.8423 302.262 78.1018C306.216 77.2378 310.355 76.8059 314.679 76.8059H343.403V92.1721H317.644C315.42 92.1721 313.196 92.4189 310.972 92.9126C308.749 93.2829 306.772 94.0234 305.042 95.1342C303.807 96.1216 302.757 97.3558 301.892 98.8369C301.151 100.318 300.78 102.046 300.78 104.021C300.78 107.97 302.262 111.118 305.228 113.463C308.316 115.684 312.393 116.795 317.458 116.795C321.906 116.795 325.921 115.808 329.504 113.833C333.21 111.858 336.175 109.143 338.399 105.687C340.623 102.231 341.735 98.3432 341.735 94.0234L348.036 104.206C346.553 110.624 344.206 116.054 340.994 120.498C337.781 124.818 333.952 128.088 329.504 130.31C325.056 132.408 320.176 133.457 314.864 133.457Z" fill="#E6E6E6"/>+<path d="M375.823 131.791V40.5194H396.578V65.1424L392.687 65.6978C393.304 60.3906 395.096 55.7622 398.061 51.8127C401.026 47.7397 404.609 44.5924 408.809 42.3708C413.133 40.0257 417.395 38.8532 421.596 38.8532C424.561 38.8532 427.403 39.2235 430.121 39.964C432.839 40.7046 435.68 41.9388 438.645 43.6667L428.638 62.1802C427.279 61.3162 425.488 60.6374 423.264 60.1437C421.164 59.5266 419.125 59.218 417.148 59.218C414.554 59.218 411.96 59.7117 409.365 60.6991C406.894 61.6865 404.67 63.2293 402.694 65.3275C400.717 67.3023 399.234 69.8942 398.246 73.1032C397.628 74.8311 397.134 77.1144 396.764 79.9532C396.517 82.6685 396.393 86.4946 396.393 91.4315V131.791H375.823Z" fill="#E6E6E6"/>+<path d="M492.002 133.457C487.06 133.457 482.365 132.47 477.918 130.495C473.594 128.52 469.825 125.496 466.613 121.423C463.401 117.227 460.992 111.796 459.386 105.132L464.76 106.427V131.791H444.375V2.75192H464.76V66.068H460.127C461.363 60.2672 463.463 55.3919 466.428 51.4424C469.517 47.3694 473.223 44.2838 477.547 42.1856C481.995 39.964 486.813 38.8532 492.002 38.8532C499.414 38.8532 506.086 40.7663 512.016 44.5924C518.069 48.2951 522.888 53.664 526.47 60.6991C530.053 67.7343 531.845 76.1887 531.845 86.0626C531.845 95.0725 530.177 103.157 526.841 110.315C523.629 117.474 519.058 123.151 513.128 127.348C507.198 131.421 500.156 133.457 492.002 133.457ZM486.998 114.573C491.816 114.573 496.017 113.401 499.6 111.056C503.306 108.711 506.147 105.378 508.124 101.059C510.101 96.7387 511.089 91.7401 511.089 86.0626C511.089 80.3851 510.101 75.3865 508.124 71.0667C506.147 66.7469 503.306 63.4144 499.6 61.0694C496.017 58.7244 491.816 57.5518 486.998 57.5518C482.18 57.5518 477.918 58.7861 474.211 61.2545C470.629 63.5996 467.849 66.932 465.872 71.2518C463.895 75.4482 462.907 80.3851 462.907 86.0626C462.907 91.7401 463.895 96.7387 465.872 101.059C467.849 105.378 470.629 108.711 474.211 111.056C477.918 113.401 482.18 114.573 486.998 114.573Z" fill="#E6E6E6"/>+<path d="M583.567 133.457C574.919 133.457 567.135 131.421 560.217 127.348C553.298 123.275 547.862 117.659 543.909 110.5C540.079 103.342 538.164 95.1959 538.164 86.0626C538.164 76.9293 540.079 68.7834 543.909 61.6248C547.862 54.4663 553.237 48.9122 560.032 44.9627C566.95 40.8897 574.795 38.8532 583.567 38.8532C592.462 38.8532 600.245 40.8897 606.917 44.9627C613.711 48.9122 619.086 54.4663 623.039 61.6248C626.992 68.7834 628.969 76.9293 628.969 86.0626C628.969 95.1959 626.992 103.342 623.039 110.5C619.209 117.659 613.835 123.275 606.917 127.348C600.122 131.421 592.338 133.457 583.567 133.457ZM583.752 115.314C588.817 115.314 593.203 114.141 596.909 111.796C600.616 109.451 603.457 106.057 605.434 101.614C607.411 97.1707 608.399 91.9869 608.399 86.0626C608.399 80.0149 607.411 74.8311 605.434 70.5113C603.457 66.068 600.616 62.6739 596.909 60.3289C593.203 57.9838 588.817 56.8113 583.752 56.8113C578.44 56.8113 573.93 58.0455 570.224 60.514C566.518 62.859 563.676 66.1915 561.699 70.5113C559.723 74.8311 558.734 80.0149 558.734 86.0626C558.734 91.9869 559.723 97.1707 561.699 101.614C563.676 106.057 566.518 109.451 570.224 111.796C573.93 114.141 578.44 115.314 583.752 115.314Z" fill="#E6E6E6"/>+<path d="M639.573 131.791V40.5194H660.143V60.6991L656.437 61.6248C658.043 56.3176 660.39 51.9978 663.479 48.6654C666.567 45.3329 670.15 42.8645 674.227 41.26C678.427 39.6555 682.813 38.8532 687.384 38.8532C697.639 38.8532 705.607 41.8154 711.29 47.7397C717.097 53.5406 720 61.8716 720 72.7329V131.791H699.43V80.3234C699.43 72.1775 697.947 66.1915 694.982 62.3653C692.017 58.5392 687.446 56.6262 681.269 56.6262C676.698 56.6262 672.806 57.737 669.594 59.9586C666.505 62.0568 664.158 65.3892 662.552 69.9559C660.946 74.5225 660.143 80.3234 660.143 87.3585V131.791H639.573Z" fill="#E6E6E6"/>+</svg>diff --git a/apps/docs/public/carbon-word-light.svg b/apps/docs/public/carbon-word-light.svgnew file mode 100644index 0000000000..3fd85675c9--- /dev/null+++ b/apps/docs/public/carbon-word-light.svg@@ -0,0 +1,9 @@+<svg width="720" height="175" viewBox="0 0 720 175" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M64.2993 3.57443C72.343 -1.19144 82.3494 -1.19151 90.3931 3.57443L142.163 34.2484C149.93 38.8505 154.692 47.2038 154.692 56.2254V118.775C154.692 127.796 149.93 136.149 142.163 140.752L90.3931 171.426C82.3494 176.192 72.343 176.191 64.2993 171.426L12.5296 140.752C4.76242 136.149 0 127.796 0 118.775V56.2254C0 47.2037 4.76242 38.8505 12.5296 34.2484L64.2993 3.57443ZM81.004 40.286C78.8708 39.0012 76.2016 38.9983 74.0657 40.2786L42.6851 59.0884C38.3192 61.7055 38.3303 68.0312 42.7057 70.6326L74.173 89.3408C74.3089 89.4216 74.3921 89.5681 74.3921 89.726V126.818C74.3922 132.04 80.0912 135.269 84.5774 132.589L115.594 114.057C117.626 112.843 118.87 110.652 118.87 108.287V66.8923C118.87 64.5357 117.635 62.3509 115.615 61.134L81.004 40.286Z" fill="#101A24"/>+<path d="M236.385 133.457C229.22 133.457 222.857 132.223 217.298 129.754C211.862 127.163 207.291 123.645 203.584 119.202C200.002 114.635 197.284 109.513 195.431 103.836C193.577 98.1581 192.651 92.2338 192.651 86.0626C192.651 79.8914 193.577 73.9671 195.431 68.2897C197.284 62.6122 200.002 57.5518 203.584 53.1086C207.291 48.6654 211.862 45.2095 217.298 42.741C222.857 40.1492 229.22 38.8532 236.385 38.8532C245.404 38.8532 253.249 41.0131 259.921 45.3329C266.716 49.6528 271.719 56.3176 274.931 65.3275L256.77 72.3626C255.288 67.6725 252.879 63.9081 249.543 61.0694C246.207 58.1072 241.821 56.6262 236.385 56.6262C230.95 56.6262 226.502 58.0455 223.043 60.8843C219.707 63.723 217.236 67.364 215.63 71.8072C214.024 76.2505 213.221 81.0023 213.221 86.0626C213.221 91.123 214.024 95.9365 215.63 100.503C217.236 104.946 219.707 108.587 223.043 111.426C226.502 114.141 230.95 115.499 236.385 115.499C241.821 115.499 246.207 114.08 249.543 111.241C252.879 108.402 255.288 104.638 256.77 99.9477L274.931 106.983C271.719 115.869 266.716 122.534 259.921 126.977C253.249 131.297 245.404 133.457 236.385 133.457Z" fill="#101A24"/>+<path d="M343.217 131.791L341.735 116.425V74.214C341.735 68.2897 339.943 63.8464 336.361 60.8843C332.778 57.7987 327.774 56.2559 321.35 56.2559C316.408 56.2559 311.528 57.2433 306.71 59.218C302.015 61.0694 297.691 63.9698 293.738 67.9194L282.248 54.4045C288.178 48.8505 294.479 44.901 301.151 42.5559C307.822 40.0874 315.111 38.8532 323.018 38.8532C335.372 38.8532 344.947 42.0005 351.742 48.2951C358.66 54.4663 362.12 63.1059 362.12 74.214V131.791H343.217ZM314.864 133.457C308.069 133.457 302.015 132.223 296.703 129.754C291.514 127.286 287.437 123.83 284.472 119.387C281.631 114.944 280.21 109.76 280.21 103.836C280.21 98.7752 281.26 94.3937 283.36 90.691C285.584 86.9883 288.426 84.0878 291.885 81.9896C294.85 80.1383 298.309 78.8423 302.262 78.1018C306.216 77.2378 310.355 76.8059 314.679 76.8059H343.403V92.1721H317.644C315.42 92.1721 313.196 92.4189 310.972 92.9126C308.749 93.2829 306.772 94.0234 305.042 95.1342C303.807 96.1216 302.757 97.3558 301.892 98.8369C301.151 100.318 300.78 102.046 300.78 104.021C300.78 107.97 302.262 111.118 305.228 113.463C308.316 115.684 312.393 116.795 317.458 116.795C321.906 116.795 325.921 115.808 329.504 113.833C333.21 111.858 336.175 109.143 338.399 105.687C340.623 102.231 341.735 98.3432 341.735 94.0234L348.036 104.206C346.553 110.624 344.206 116.054 340.994 120.498C337.781 124.818 333.952 128.088 329.504 130.31C325.056 132.408 320.176 133.457 314.864 133.457Z" fill="#101A24"/>+<path d="M375.823 131.791V40.5194H396.578V65.1424L392.687 65.6978C393.304 60.3906 395.096 55.7622 398.061 51.8127C401.026 47.7397 404.609 44.5924 408.809 42.3708C413.133 40.0257 417.395 38.8532 421.596 38.8532C424.561 38.8532 427.403 39.2235 430.121 39.964C432.839 40.7046 435.68 41.9388 438.645 43.6667L428.638 62.1802C427.279 61.3162 425.488 60.6374 423.264 60.1437C421.164 59.5266 419.125 59.218 417.148 59.218C414.554 59.218 411.96 59.7117 409.365 60.6991C406.894 61.6865 404.67 63.2293 402.694 65.3275C400.717 67.3023 399.234 69.8942 398.246 73.1032C397.628 74.8311 397.134 77.1144 396.764 79.9532C396.517 82.6685 396.393 86.4946 396.393 91.4315V131.791H375.823Z" fill="#101A24"/>+<path d="M492.002 133.457C487.06 133.457 482.365 132.47 477.918 130.495C473.594 128.52 469.825 125.496 466.613 121.423C463.401 117.227 460.992 111.796 459.386 105.132L464.76 106.427V131.791H444.375V2.75192H464.76V66.068H460.127C461.363 60.2672 463.463 55.3919 466.428 51.4424C469.517 47.3694 473.223 44.2838 477.547 42.1856C481.995 39.964 486.813 38.8532 492.002 38.8532C499.414 38.8532 506.086 40.7663 512.016 44.5924C518.069 48.2951 522.888 53.664 526.47 60.6991C530.053 67.7343 531.845 76.1887 531.845 86.0626C531.845 95.0725 530.177 103.157 526.841 110.315C523.629 117.474 519.058 123.151 513.128 127.348C507.198 131.421 500.156 133.457 492.002 133.457ZM486.998 114.573C491.816 114.573 496.017 113.401 499.6 111.056C503.306 108.711 506.147 105.378 508.124 101.059C510.101 96.7387 511.089 91.7401 511.089 86.0626C511.089 80.3851 510.101 75.3865 508.124 71.0667C506.147 66.7469 503.306 63.4144 499.6 61.0694C496.017 58.7244 491.816 57.5518 486.998 57.5518C482.18 57.5518 477.918 58.7861 474.211 61.2545C470.629 63.5996 467.849 66.932 465.872 71.2518C463.895 75.4482 462.907 80.3851 462.907 86.0626C462.907 91.7401 463.895 96.7387 465.872 101.059C467.849 105.378 470.629 108.711 474.211 111.056C477.918 113.401 482.18 114.573 486.998 114.573Z" fill="#101A24"/>+<path d="M583.567 133.457C574.919 133.457 567.135 131.421 560.217 127.348C553.298 123.275 547.862 117.659 543.909 110.5C540.079 103.342 538.164 95.1959 538.164 86.0626C538.164 76.9293 540.079 68.7834 543.909 61.6248C547.862 54.4663 553.237 48.9122 560.032 44.9627C566.95 40.8897 574.795 38.8532 583.567 38.8532C592.462 38.8532 600.245 40.8897 606.917 44.9627C613.711 48.9122 619.086 54.4663 623.039 61.6248C626.992 68.7834 628.969 76.9293 628.969 86.0626C628.969 95.1959 626.992 103.342 623.039 110.5C619.209 117.659 613.835 123.275 606.917 127.348C600.122 131.421 592.338 133.457 583.567 133.457ZM583.752 115.314C588.817 115.314 593.203 114.141 596.909 111.796C600.616 109.451 603.457 106.057 605.434 101.614C607.411 97.1707 608.399 91.9869 608.399 86.0626C608.399 80.0149 607.411 74.8311 605.434 70.5113C603.457 66.068 600.616 62.6739 596.909 60.3289C593.203 57.9838 588.817 56.8113 583.752 56.8113C578.44 56.8113 573.93 58.0455 570.224 60.514C566.518 62.859 563.676 66.1915 561.699 70.5113C559.723 74.8311 558.734 80.0149 558.734 86.0626C558.734 91.9869 559.723 97.1707 561.699 101.614C563.676 106.057 566.518 109.451 570.224 111.796C573.93 114.141 578.44 115.314 583.752 115.314Z" fill="#101A24"/>+<path d="M639.573 131.791V40.5194H660.143V60.6991L656.437 61.6248C658.043 56.3176 660.39 51.9978 663.479 48.6654C666.567 45.3329 670.15 42.8645 674.227 41.26C678.427 39.6555 682.813 38.8532 687.384 38.8532C697.639 38.8532 705.607 41.8154 711.29 47.7397C717.097 53.5406 720 61.8716 720 72.7329V131.791H699.43V80.3234C699.43 72.1775 697.947 66.1915 694.982 62.3653C692.017 58.5392 687.446 56.6262 681.269 56.6262C676.698 56.6262 672.806 57.737 669.594 59.9586C666.505 62.0568 664.158 65.3892 662.552 69.9559C660.946 74.5225 660.143 80.3234 660.143 87.3585V131.791H639.573Z" fill="#101A24"/>+</svg>diff --git a/apps/docs/public/logos/itar.svg b/apps/docs/public/logos/itar.svgnew file mode 100644index 0000000000..bbca6799f9--- /dev/null+++ b/apps/docs/public/logos/itar.svg@@ -0,0 +1,7 @@+<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="ITAR Registered & Compliant">+ <circle cx="32" cy="32" r="30.25" stroke="#E6E6E6" stroke-width="1.5"/>+ <circle cx="32" cy="32" r="25" stroke="#E6E6E6" stroke-width="0.75" opacity="0.45"/>+ <path d="M32 9.5l1.6 3.05 3.4.55-2.45 2.4.57 3.4L32 21.25l-3.04 1.6.57-3.4-2.45-2.4 3.4-.55L32 9.5z" fill="#E6E6E6" opacity="0.9"/>+ <text x="32" y="37" text-anchor="middle" font-family="DM Sans, Arial, sans-serif" font-size="13.5" font-weight="700" letter-spacing="0.5" fill="#E6E6E6">ITAR</text>+ <text x="32" y="48" text-anchor="middle" font-family="DM Sans, Arial, sans-serif" font-size="5" font-weight="600" letter-spacing="1.4" fill="#E6E6E6" opacity="0.7">COMPLIANT</text>+</svg>diff --git a/apps/docs/scripts/generate-api-docs.mjs b/apps/docs/scripts/generate-api-docs.mjsnew file mode 100644index 0000000000..4bc5c7697e--- /dev/null+++ b/apps/docs/scripts/generate-api-docs.mjs@@ -0,0 +1,391 @@+// Build-time generator: turns the PostgREST Swagger 2.0 spec into Protocol-style+// API reference data (tables only, grouped by module). Run via `predev`/`prebuild`.+//+// node scripts/generate-api-docs.mjs+//+// Reads packages/database/src/swagger-docs-schema.ts (an `export default {…}` TS+// object literal), keeps table paths, classifies each into a module, derives+// endpoints + attributes + a response example, and pre-renders code samples with+// @httptoolkit/httpsnippet. Emits lib/api-data.generated.json.++import { readFileSync, writeFileSync, mkdirSync } from "node:fs";+import { dirname, resolve } from "node:path";+import { fileURLToPath } from "node:url";+import HTTPSnippet from "@httptoolkit/httpsnippet";++const __dirname = dirname(fileURLToPath(import.meta.url));+const SCHEMA = resolve(__dirname, "../../../packages/database/src/swagger-docs-schema.ts");+const OUT = resolve(__dirname, "../lib/api-data.generated.ts");+const BASE = "https://rest.carbon.ms";++// ── load spec ────────────────────────────────────────────────────────────────+const raw = readFileSync(SCHEMA, "utf8")+ .replace(/^export default\s*/, "")+ .replace(/;\s*$/, "");+// trusted, build-time only: the file is our own generated object literal.+const spec = (0, eval)(`(${raw})`);++// ── module classification (heuristic; refine the keyword map as needed) ───────+const MODULE_ORDER = [+ "Sales",+ "Purchasing",+ "Invoicing",+ "Production",+ "Planning",+ "Inventory",+ "Items",+ "Quality",+ "Maintenance",+ "Accounting",+ "Resources",+ "Training",+ "Users",+ "Documents",+ "Settings",+ "Other",+];+// Matched top-to-bottom, first hit wins. `Documents` sits LAST so the specific+// `documenttemplate`/`documentlabel` Settings keys win before the broad `document`.+const MODULE_RULES = [+ ["Invoicing", ["salesinvoice", "purchaseinvoice", "invoice"]],+ ["Sales", ["salesorder", "salesrfq", "customer", "quote", "opportunity", "salesperson", "noquotereason", "pricing"]],+ ["Purchasing", ["purchaseorder", "purchasingrfq", "supplier", "buymethod"]],+ ["Quality", ["nonconformance", "quality", "gauge", "inspection", "investigation", "issue", "risk"]],+ ["Production", ["job", "makemethod", "methodoperation", "methodmaterial", "production", "scrapreason", "procedure", "workinstruction", "operation"]],+ ["Maintenance", ["maintenance"]],+ ["Planning", ["demand", "supply", "forecast"]],+ ["Inventory", ["itemledger", "shelf", "warehouse", "pickmethod", "trackedentity", "trackedactivity", "kanban", "receipt", "shipment", "stocktransfer", "batch", "serial", "inventory", "warehousetransfer", "shipping", "storage", "fulfillment"]],+ ["Items", ["item", "part", "material", "tool", "consumable", "service", "unitofmeasure", "modeltree", "configuration", "fixture"]],+ ["Accounting", ["account", "currenc", "journal", "fiscal", "paymentterm", "payment", "accountingperiod", "period", "costledger", "costing", "costcenter", "dimension", "exchangerate"]],+ ["Resources", ["employee", "ability", "contractor", "partner", "workcenter", "process", "equipment", "person", "holiday", "shift", "location", "department", "attribute", "address", "timecard", "contact"]],+ ["Training", ["training", "lesson"]],+ ["Users", ["user", "group", "permission", "apikey", "compan", "employeetype", "module", "feature", "challenge", "passkey", "oauth", "membership", "invite"]],+ ["Settings", ["setting", "integration", "customfield", "sequence", "theme", "documenttemplate", "documentlabel", "notification", "webhook", "tag", "approval", "audit", "config", "country", "eventsystem", "feedback", "note", "plan", "printer", "searchindex", "suggestion", "tableview", "terms"]],+ ["Documents", ["document", "externallink", "modelupload"]],+];+function moduleFor(table) {+ const t = table.toLowerCase();+ for (const [mod, keys] of MODULE_RULES) if (keys.some((k) => t.includes(k))) return mod;+ return "Other";+}++// ── text + naming helpers ─────────────────────────────────────────────────────+const kebab = (s) =>+ s+ .replace(/([a-z0-9])([A-Z])/g, "$1-$2")+ .replace(/[^a-zA-Z0-9]+/g, "-")+ .toLowerCase()+ .replace(/(^-|-$)/g, "");+const titleize = (s) =>+ s+ .replace(/([a-z0-9])([A-Z])/g, "$1 $2")+ .replace(/[_-]+/g, " ")+ .replace(/\b\w/g, (c) => c.toUpperCase())+ .trim();+const cleanDesc = (d = "") =>+ d+ .replace(/<pk\/>/g, "")+ .replace(/<fk[^>]*\/>/g, "")+ .replace(/Note:\s*/gi, "")+ .replace(/This is a Primary Key\.?/gi, "")+ .replace(/This is a Foreign Key to `[^`]*`\.?/gi, "")+ .replace(/`/g, "")+ .replace(/\s+/g, " ")+ .trim();++// ── attributes from a definition ──────────────────────────────────────────────+function attributesFrom(def) {+ const props = def?.properties || {};+ const required = new Set(def?.required || []);+ return Object.entries(props).map(([name, p]) => {+ const desc = p.description || "";+ const fk = desc.match(/<fk table='([^']+)' column='([^']+)'\/>/);+ return {+ name,+ type: p.type || "string",+ format: p.format,+ description: cleanDesc(desc),+ required: required.has(name),+ pk: /<pk\/>/.test(desc) || /Primary Key/i.test(desc),+ fk: fk ? { table: fk[1], column: fk[2] } : undefined,+ };+ });+}++const AUDIT = new Set(["createdBy", "createdAt", "updatedBy", "updatedAt"]);+function exampleValue(a) {+ const n = a.name.toLowerCase();+ if (a.format && a.format.includes("timestamp")) return "2026-01-01T00:00:00Z";+ if (a.format === "date") return "2026-01-01";+ if (a.format === "uuid") return "00000000-0000-0000-0000-000000000000";+ if (a.type === "boolean") return true;+ if (a.type === "integer" || a.type === "number")+ return n.includes("quantity") || n.includes("count") ? 10 : 0;+ if (a.type === "array") return [];+ if (a.type === "object") return {};+ if (n === "id") return "abc123def456";+ if (n.endsWith("id")) return "xyz789";+ if (n === "name") return "Example";+ return "string";+}+function sampleRow(attrs, limit = 8) {+ const picked = [+ ...attrs.filter((a) => a.pk),+ ...attrs.filter((a) => !a.pk && (a.name === "name" || a.required)),+ ...attrs.filter((a) => !a.pk && a.name !== "name" && !a.required),+ ].slice(0, limit);+ const row = {};+ for (const a of picked) row[a.name] = exampleValue(a);+ return row;+}+function createBody(attrs) {+ const body = {};+ for (const a of attrs) {+ if (a.pk || AUDIT.has(a.name)) continue;+ if (a.required || a.name === "name" || a.name === "description") body[a.name] = exampleValue(a);+ }+ if (Object.keys(body).length === 0 && attrs[0]) body[attrs[0].name] = exampleValue(attrs[0]);+ return body;+}++// ── code samples (httpsnippet) ────────────────────────────────────────────────+const AUTH_HEADERS = [{ name: "Authorization", value: "Bearer <api-key>" }];++// cURL / Python / PHP via httpsnippet (raw REST); JS uses the supabase-js SDK.+function samplesFor(har, js) {+ const s = new HTTPSnippet(har);+ const conv = (target, client) => {+ try {+ const out = s.convert(target, client);+ return typeof out === "string" ? out : Array.isArray(out) ? out[0] : "";+ } catch {+ return "";+ }+ };+ return {+ curl: conv("shell", "curl"),+ javascript: js,+ python: conv("python", "requests"),+ go: conv("go", "native"),+ };+}++// supabase-js SDK snippet per endpoint, matching Carbon's JS API docs (carbon.from(...)).+function jsObject(obj) {+ return JSON.stringify(obj, null, 2).replace(/\n/g, "\n ");+}+function jsSdk(kind, table, pk, attrs, writable) {+ const head = "const { data, error } = await carbon";+ switch (kind) {+ case "list":+ return `${head}\n .from('${table}')\n .select('*')\n .limit(10);`;+ case "retrieve":+ return `${head}\n .from('${table}')\n .select('*')\n .eq('${pk}', id)\n .single();`;+ case "create":+ return `${head}\n .from('${table}')\n .insert(${jsObject(createBody(attrs))})\n .select();`;+ case "update": {+ const f = writable?.[0]?.name || "name";+ const v = JSON.stringify(exampleValue(writable?.[0] || { name: f, type: "string" }));+ return `const { error } = await carbon\n .from('${table}')\n .update({ ${JSON.stringify(f)}: ${v} })\n .eq('${pk}', id);`;+ }+ case "delete":+ return `const { error } = await carbon\n .from('${table}')\n .delete()\n .eq('${pk}', id);`;+ default:+ return head;+ }+}+function har(method, url, { query = [], body } = {}) {+ const headers = [...AUTH_HEADERS];+ const h = { method, url, httpVersion: "HTTP/1.1", queryString: query, headersSize: -1, bodySize: -1 };+ if (body !== undefined) {+ headers.push({ name: "Content-Type", value: "application/json" });+ headers.push({ name: "Prefer", value: "return=representation" });+ h.postData = { mimeType: "application/json", text: JSON.stringify(body) };+ }+ h.headers = headers;+ return h;+}++// ── build resources ───────────────────────────────────────────────────────────+const tablePaths = Object.keys(spec.paths).filter((p) => p !== "/" && !p.startsWith("/rpc/"));+const resources = [];++for (const path of tablePaths) {+ const table = path.slice(1);+ const def = spec.definitions[table];+ if (!def) continue;+ const methods = spec.paths[path];+ const attrs = attributesFrom(def);+ const pk = (attrs.find((a) => a.pk) || attrs.find((a) => a.name === "id") || attrs[0])?.name || "id";+ const single = titleize(table);+ const plural = `${single}s`;+ const row = sampleRow(attrs);+ const writable = attrs.filter((a) => !a.pk && !AUDIT.has(a.name));+ const endpoints = [];++ if (methods.get) {+ endpoints.push({+ id: `list-${kebab(table)}`,+ kind: "list",+ method: "GET",+ path: `/${table}`,+ title: `List ${plural.toLowerCase()}`,+ description: `Retrieve a paginated list of ${plural.toLowerCase()}. Filter, order, and select columns with PostgREST query parameters.`,+ query: [+ { name: "select", type: "string", description: "Comma-separated columns to return. Defaults to all." },+ { name: "order", type: "string", description: "Column to sort by, e.g. `createdAt.desc`." },+ { name: "limit", type: "integer", description: "Maximum rows to return." },+ { name: "offset", type: "integer", description: "Rows to skip, for pagination." },+ ],+ attributes: [],+ response: JSON.stringify([row], null, 2),+ samples: samplesFor(+ har("GET", `${BASE}/${table}?select=*&limit=10`, {+ query: [+ { name: "select", value: "*" },+ { name: "limit", value: "10" },+ ],+ }),+ jsSdk("list", table, pk),+ ),+ });+ endpoints.push({+ id: `retrieve-${kebab(table)}`,+ kind: "retrieve",+ method: "GET",+ path: `/${table}`,+ title: `Retrieve a ${single.toLowerCase()}`,+ description: `Fetch a single ${single.toLowerCase()} by filtering on \`${pk}\`.`,+ query: [{ name: pk, type: "string", description: `Match on the ${single.toLowerCase()}'s \`${pk}\`, e.g. \`eq.{id}\`.` }],+ attributes: [],+ response: JSON.stringify(row, null, 2),+ samples: samplesFor(+ har("GET", `${BASE}/${table}?${pk}=eq.{id}`, { query: [{ name: pk, value: "eq.{id}" }] }),+ jsSdk("retrieve", table, pk),+ ),+ });+ }+ if (methods.post) {+ endpoints.push({+ id: `create-${kebab(table)}`,+ kind: "create",+ method: "POST",+ path: `/${table}`,+ title: `Create a ${single.toLowerCase()}`,+ description: `Create a new ${single.toLowerCase()}.`,+ attributes: writable,+ response: JSON.stringify(row, null, 2),+ samples: samplesFor(+ har("POST", `${BASE}/${table}`, { body: createBody(attrs) }),+ jsSdk("create", table, pk, attrs),+ ),+ });+ }+ if (methods.patch) {+ const one = writable[0]?.name || "name";+ endpoints.push({+ id: `update-${kebab(table)}`,+ kind: "update",+ method: "PATCH",+ path: `/${table}`,+ title: `Update a ${single.toLowerCase()}`,+ description: `Update an existing ${single.toLowerCase()}, matched on \`${pk}\`.`,+ attributes: writable,+ response: JSON.stringify(row, null, 2),+ samples: samplesFor(+ har("PATCH", `${BASE}/${table}?${pk}=eq.{id}`, {+ query: [{ name: pk, value: "eq.{id}" }],+ body: { [one]: exampleValue(writable[0] || { name: one, type: "string" }) },+ }),+ jsSdk("update", table, pk, attrs, writable),+ ),+ });+ }+ if (methods.delete) {+ endpoints.push({+ id: `delete-${kebab(table)}`,+ kind: "delete",+ method: "DELETE",+ path: `/${table}`,+ title: `Delete a ${single.toLowerCase()}`,+ description: `Delete a ${single.toLowerCase()}, matched on \`${pk}\`. Returns 204 No Content.`,+ query: [{ name: pk, type: "string", description: `The \`${pk}\` of the ${single.toLowerCase()} to delete, e.g. \`eq.{id}\`.` }],+ attributes: [],+ response: "",+ samples: samplesFor(+ har("DELETE", `${BASE}/${table}?${pk}=eq.{id}`, { query: [{ name: pk, value: "eq.{id}" }] }),+ jsSdk("delete", table, pk),+ ),+ });+ }+ if (endpoints.length === 0) continue;++ resources.push({+ table,+ name: single,+ slug: kebab(table),+ module: moduleFor(table),+ // PostgREST exposes write methods only for base tables; Carbon's views are GET-only.+ kind: methods.post || methods.patch || methods.delete ? "table" : "view",+ description: cleanDesc(def.description) || `The ${single.toLowerCase()} resource.`,+ pk,+ endpoints,+ });+}++// ── group + sort ──────────────────────────────────────────────────────────────+const byModule = new Map(MODULE_ORDER.map((m) => [m, []]));+for (const r of resources) (byModule.get(r.module) || byModule.get("Other")).push(r);+const modules = MODULE_ORDER.map((name) => ({+ name,+ slug: kebab(name),+ resources: (byModule.get(name) || []).sort((a, b) => a.name.localeCompare(b.name)),+})).filter((m) => m.resources.length > 0);++mkdirSync(dirname(OUT), { recursive: true });+// Emit a .ts that JSON.parses a string literal: keeps tsc cheap (no deep literal+// inference over ~6MB of data) while staying a normal import.+const json = JSON.stringify({ base: BASE, modules });+writeFileSync(+ OUT,+ `// AUTO-GENERATED by scripts/generate-api-docs.mjs — do not edit.\n// @ts-nocheck\nexport default JSON.parse(${JSON.stringify(json)});\n`,+);++// ── stats ─────────────────────────────────────────────────────────────────────+const total = resources.length;+console.log(`[api-docs] ${total} resources, ${modules.length} modules`);+for (const m of modules) console.log(` ${m.name.padEnd(12)} ${m.resources.length}`);+const other = modules.find((m) => m.name === "Other");+if (other) console.log(` (Other sample: ${other.resources.slice(0, 12).map((r) => r.table).join(", ")})`);+console.log(`[api-docs] wrote ${OUT}`);++// ── MCP tools catalog ─────────────────────────────────────────────────────────+const TOOLS_SRC = resolve(__dirname, "../../../apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json");+const TOOLS_OUT = resolve(__dirname, "../lib/tools-data.generated.ts");+const toolMeta = JSON.parse(readFileSync(TOOLS_SRC, "utf8"));+const allTools = Array.isArray(toolMeta) ? toolMeta : toolMeta.tools;+const toolsByModule = new Map();+for (const t of allTools) {+ if (!toolsByModule.has(t.module)) toolsByModule.set(t.module, []);+ toolsByModule.get(t.module).push({+ name: t.name,+ slug: t.name,+ classification: t.classification,+ description: t.description || "",+ schema: t.schema || {},+ });+}+const toolModules = [...toolsByModule.entries()]+ .map(([mod, tools]) => ({+ name: titleize(mod),+ slug: kebab(mod),+ module: mod,+ tools: tools.sort((a, b) => a.name.localeCompare(b.name)),+ }))+ .sort((a, b) => b.tools.length - a.tools.length);+const toolsJson = JSON.stringify({ modules: toolModules });+writeFileSync(+ TOOLS_OUT,+ `// AUTO-GENERATED by scripts/generate-api-docs.mjs — do not edit.\n// @ts-nocheck\nexport default JSON.parse(${JSON.stringify(toolsJson)});\n`,+);+console.log(`[api-docs] ${allTools.length} MCP tools, ${toolModules.length} modules → ${TOOLS_OUT}`);diff --git a/apps/docs/source.config.ts b/apps/docs/source.config.tsnew file mode 100644index 0000000000..b649644007--- /dev/null+++ b/apps/docs/source.config.ts@@ -0,0 +1,37 @@+import { defineConfig, defineDocs, frontmatterSchema } from "fumadocs-mdx/config";+import { z } from "zod";++export const docs = defineDocs({+ dir: "content/docs",+});++// The editorial Guide. Same MDX pipeline as the Reference, but each file is a+// chapter: `label` is its display marker (e.g. "(I)") and `index` orders the rail.+export const guide = defineDocs({+ dir: "content/guides",+ docs: {+ schema: frontmatterSchema.extend({+ label: z.string(),+ index: z.number(),+ // Each chapter belongs to a flow (a self-contained tour). `flow` is the+ // stable id, `flowName` its display label, `flowIndex` orders the flows in+ // the subnav. Existing chapters default into the original make-to-order flow.+ flow: z.string().default("make-to-order"),+ flowName: z.string().default("Make to order"),+ flowIndex: z.number().default(0),+ }),+ },+});++export default defineConfig({+ mdxOptions: {+ // Dark code blocks everywhere, themed with Night Owl. Provide BOTH themes+ // explicitly (same theme) so fumadocs replaces its default github-light/github-dark-default+ // pair — a single `theme` leaves the default light theme referenced and shiki throws+ // "Theme `github-light` not found". Tokens then carry --shiki-light/--shiki-dark+ // vars, which the editorial code panel resolves to a color in reference.css.+ rehypeCodeOptions: {+ themes: { light: "github-dark-default", dark: "github-dark-default" },+ },+ },+});diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.jsonnew file mode 100644index 0000000000..5619a52fc7--- /dev/null+++ b/apps/docs/tsconfig.json@@ -0,0 +1,18 @@+{+ "extends": "@carbon/config/tsconfig/nextjs.json",+ "compilerOptions": {+ "baseUrl": ".",+ "paths": {+ "@/*": ["./*"],+ "collections/*": ["./.source/*"]+ }+ },+ "include": [+ "next-env.d.ts",+ "**/*.ts",+ "**/*.tsx",+ ".next/types/**/*.ts",+ ".source/**/*"+ ],+ "exclude": ["node_modules"]+}diff --git a/apps/erp/app/components/CSVLink.tsx b/apps/erp/app/components/CSVLink.tsxnew file mode 100644index 0000000000..048552dcb8--- /dev/null+++ b/apps/erp/app/components/CSVLink.tsx@@ -0,0 +1,10 @@+import type { ComponentType } from "react";+import { CSVLink as BaseCSVLink } from "react-csv";++// `@types/react-csv` types CSVLink as a class whose `React.Component` signature is+// incompatible with the current React types under tsgo ("Property 'refs' is missing+// in type Component<LinkProps>" → TS2786). Re-export it cast to a plain component+// type so it's usable as JSX. Props stay loose — callers already pass the right shape.+export const CSVLink = BaseCSVLink as unknown as ComponentType<+ Record<string, unknown>+>;diff --git a/apps/erp/app/modules/items/ui/Item/ItemCostHistoryChart.tsx b/apps/erp/app/modules/items/ui/Item/ItemCostHistoryChart.tsxindex 3383242f54..f7671de0ec 100644--- a/apps/erp/app/modules/items/ui/Item/ItemCostHistoryChart.tsx+++ b/apps/erp/app/modules/items/ui/Item/ItemCostHistoryChart.tsx@@ -37,7 +37,6 @@ import { today } from "@internationalized/date";import { Trans, useLingui } from "@lingui/react/macro";import { useDateFormatter } from "@react-aria/i18n";import { useMemo } from "react";-import { CSVLink } from "react-csv";import {LuChartLine,LuEllipsisVertical,@@ -49,6 +48,7 @@ import {import { Link } from "react-router";import { Bar, CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts";import { SupplierAvatar } from "~/components";+import { CSVLink } from "~/components/CSVLink";import { useCurrencyFormatter } from "~/hooks";import type { ItemCostHistory } from "~/modules/items";import { useSuppliers } from "~/stores";diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsxindex 869bfe702d..810c0fa66e 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx@@ -24,7 +24,6 @@ import {} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import { Suspense, useEffect, useMemo, useState } from "react";-import { CSVLink } from "react-csv";import {LuCheckCheck,LuChevronDown,@@ -44,6 +43,7 @@ import {import type { FetcherWithComponents } from "react-router";import { Await, Link, useFetcher, useParams } from "react-router";import { useAuditLog } from "~/components/AuditLog";+import { CSVLink } from "~/components/CSVLink";import { CustomerContact, EmailRecipients } from "~/components/Form";import { usePanels } from "~/components/Layout";import Confirm from "~/components/Modals/Confirm/Confirm";diff --git a/apps/erp/app/routes/mcp+/components/Faq.tsx b/apps/erp/app/routes/mcp+/components/Faq.tsxindex 2764e9987c..6944d33b7f 100644--- a/apps/erp/app/routes/mcp+/components/Faq.tsx+++ b/apps/erp/app/routes/mcp+/components/Faq.tsx@@ -25,7 +25,7 @@ function FaqItem({ q, a }: { q: string; a: string }) {<divclassName={cn("text-muted-foreground text-[0.84rem] overflow-hidden transition-[max-height,margin] duration-300 ease-in-out",- open ? "max-h-[150px] mt-[9px]" : "max-h-0"+ open ? "max-h-[260px] mt-[9px]" : "max-h-0")}>{a}diff --git a/apps/erp/app/routes/mcp+/components/mcp-content.ts b/apps/erp/app/routes/mcp+/components/mcp-content.tsindex f9284a4e4e..1c21b8dd5c 100644--- a/apps/erp/app/routes/mcp+/components/mcp-content.ts+++ b/apps/erp/app/routes/mcp+/components/mcp-content.ts@@ -15,29 +15,49 @@ export const SPECIFICITY = {};export const FAQ: { q: string; a: string }[] = [+ {+ q: "What can the assistant actually do?",+ a: "Read and write across every module the identity can reach — query orders and inventory, create jobs, draft quotes, update statuses. It acts as that user, so it can only touch what you've granted."+ },{q: "Do I need an API key?",- a: "Not for connector clients — add the URL and authorize in your browser. Keys are for CLI/config clients and headless or CI use."+ a: "Not for connector clients — Claude.ai, Claude Desktop, and ChatGPT add the URL and authorize in your browser. Keys are for command and config clients (Claude Code, Cursor, VS Code, Codex) and any headless or CI use."+ },+ {+ q: "Which clients are supported?",+ a: "Any MCP client that speaks HTTP. Connector clients authorize over OAuth; command clients send the key as a bearer header; stdio-only clients bridge through mcp-remote."},{q: "Does it respect my Carbon permissions?",- a: "Yes. A connector inherits the role and company of whoever authorizes it; an API key carries its own scopes. The assistant can only do what that identity can."+ a: "Yes — there's no way around them. A connector inherits the role and company of whoever authorized it; a key carries its own scopes. The assistant can never do what that identity can't."},{- q: "I'm getting 401 Unauthorized",- a: "Key clients: the key is missing, malformed, expired, or deleted — recreate it in Settings → API Keys and update the Authorization header. Connector clients: re-authorize the connection from your client."+ q: "Can I give it read-only access?",+ a: "Yes. Scope a key to only the modules and actions it needs — View with no Create, Update, or Delete makes it read-only. Use a separate key per client so you can re-scope or revoke one without touching the rest."},{- q: "How do I manage or revoke a key?",- a: "Each key in Settings → API Keys shows its scopes, rate limit, expiry, and who created it. Delete a key to revoke it; use a separate key per client so revoking one doesn't break the rest."+ q: "Where does my data go?",+ a: "Carbon doesn't send it anywhere new — your MCP client does, to whatever model provider it runs on, under that provider's terms. Scope keys tightly and prefer a read-only key when you only need to read."},{- q: "Which clients are supported?",- a: "Any MCP client that speaks HTTP. Claude.ai, Claude Desktop, and ChatGPT authorize over OAuth; Claude Code, Cursor, VS Code, and Codex send a key header; stdio-only clients bridge through mcp-remote."+ q: "Is MCP available on my plan?",+ a: "On Carbon Cloud, API and MCP access is a Business-plan feature — Starter keys are rejected with 403. Self-hosted instances aren't gated."},{- q: "Why can't the assistant see every tool at once?",- a: "By design. Three discovery meta-tools — search_tools, describe_tool, and call_tool — let the model find and load only the tools a task needs, keeping its context lean."+ q: "Is there a rate limit?",+ a: "Each key has its own limit and window, set in Settings → API Keys. Go over it and calls return 429 with X-RateLimit-* headers telling the client when to retry."+ },+ {+ q: "I'm getting 401 Unauthorized",+ a: "Key clients: the key is missing, malformed, expired, or deleted — recreate it in Settings → API Keys and update the Authorization header. Connector clients: re-authorize the connection from your client."+ },+ {+ q: "I'm getting 403 Forbidden",+ a: "The identity is authenticated but lacks the module permission for that action — or, on Cloud, the company is on the Starter plan. Grant the scope, or switch to a key that has it."+ },+ {+ q: "How do I manage or revoke a key?",+ a: "Each key in Settings → API Keys shows its scopes, rate limit, expiry, and who created it. Delete a key to revoke it instantly; nothing else breaks if you key each client separately."}];diff --git a/apps/erp/app/routes/x+/production+/_index.tsx b/apps/erp/app/routes/x+/production+/_index.tsxindex f062165e51..ee4015c676 100644--- a/apps/erp/app/routes/x+/production+/_index.tsx+++ b/apps/erp/app/routes/x+/production+/_index.tsx@@ -46,7 +46,6 @@ import { now, toCalendarDateTime } from "@internationalized/date";import { Trans, useLingui } from "@lingui/react/macro";import type { DateRange } from "@react-types/datepicker";import { Suspense, useEffect, useMemo, useState } from "react";-import { CSVLink } from "react-csv";import { flushSync } from "react-dom";import {LuArrowUpRight,@@ -69,6 +68,7 @@ import {Empty,Hyperlink} from "~/components";+import { CSVLink } from "~/components/CSVLink";import { useUser } from "~/hooks/useUser";import type { ActiveProductionEvent } from "~/modules/production";import { getActiveProductionEvents, KPIs } from "~/modules/production";diff --git a/apps/erp/app/routes/x+/purchasing+/_index.tsx b/apps/erp/app/routes/x+/purchasing+/_index.tsxindex 291b53071a..f609cd5fbc 100644--- a/apps/erp/app/routes/x+/purchasing+/_index.tsx+++ b/apps/erp/app/routes/x+/purchasing+/_index.tsx@@ -44,7 +44,6 @@ import { Trans, useLingui } from "@lingui/react/macro";import { useDateFormatter, useNumberFormatter } from "@react-aria/i18n";import type { DateRange } from "@react-types/datepicker";import { Suspense, useEffect, useMemo, useState } from "react";-import { CSVLink } from "react-csv";import {LuArrowUpRight,LuChevronDown,@@ -60,6 +59,7 @@ import type { LoaderFunctionArgs } from "react-router";import { Await, Link, useFetcher, useLoaderData } from "react-router";import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";import { DateSelect, Empty, Hyperlink, SupplierAvatar } from "~/components";+import { CSVLink } from "~/components/CSVLink";import { useUser } from "~/hooks";import { useCurrencyFormatter } from "~/hooks/useCurrencyFormatter";import type { PurchaseInvoice } from "~/modules/invoicing";diff --git a/apps/erp/app/routes/x+/quality+/_index.tsx b/apps/erp/app/routes/x+/quality+/_index.tsxindex 24ac18a703..995ddc0dd0 100644--- a/apps/erp/app/routes/x+/quality+/_index.tsx+++ b/apps/erp/app/routes/x+/quality+/_index.tsx@@ -38,7 +38,6 @@ import { Trans, useLingui } from "@lingui/react/macro";import { useLocale } from "@react-aria/i18n";import type { DateRange } from "@react-types/datepicker";import { Suspense, useEffect, useMemo, useState } from "react";-import { CSVLink } from "react-csv";import {LuArrowUpRight,LuCalendarClock,@@ -69,6 +68,7 @@ import {YAxis} from "recharts";import { DateSelect, Empty, Hyperlink } from "~/components";+import { CSVLink } from "~/components/CSVLink";import { getIssueTypesList, QualityKPIs } from "~/modules/quality";import IssueStatus from "~/modules/quality/ui/Issue/IssueStatus";import { getCompanySettings } from "~/modules/settings";diff --git a/apps/erp/app/routes/x+/resources+/_index.tsx b/apps/erp/app/routes/x+/resources+/_index.tsxindex a62eb2f7cd..5aa761a741 100644--- a/apps/erp/app/routes/x+/resources+/_index.tsx+++ b/apps/erp/app/routes/x+/resources+/_index.tsx@@ -39,7 +39,6 @@ import { Trans, useLingui } from "@lingui/react/macro";import { useDateFormatter, useNumberFormatter } from "@react-aria/i18n";import type { DateRange } from "@react-types/datepicker";import { Suspense, useEffect, useMemo, useState } from "react";-import { CSVLink } from "react-csv";import {LuArrowUpRight,LuCalendarClock,@@ -55,6 +54,7 @@ import type { LoaderFunctionArgs } from "react-router";import { Await, Link, useFetcher, useLoaderData } from "react-router";import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";import { DateSelect, Empty, Hyperlink } from "~/components";+import { CSVLink } from "~/components/CSVLink";import { useWorkCenters } from "~/components/Form/WorkCenters";import { useCurrencyFormatter } from "~/hooks/useCurrencyFormatter";import type { maintenanceSource } from "~/modules/resources/resources.models";diff --git a/apps/erp/app/routes/x+/sales+/_index.tsx b/apps/erp/app/routes/x+/sales+/_index.tsxindex a0e0934bd3..c0d975d963 100644--- a/apps/erp/app/routes/x+/sales+/_index.tsx+++ b/apps/erp/app/routes/x+/sales+/_index.tsx@@ -39,7 +39,6 @@ import { Trans, useLingui } from "@lingui/react/macro";import { useDateFormatter, useNumberFormatter } from "@react-aria/i18n";import type { DateRange } from "@react-types/datepicker";import { Suspense, useEffect, useMemo, useState } from "react";-import { CSVLink } from "react-csv";import {LuArrowUpRight,LuChevronDown,@@ -57,6 +56,7 @@ import type { LoaderFunctionArgs } from "react-router";import { Await, Link, useFetcher, useLoaderData } from "react-router";import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";import { CustomerAvatar, DateSelect, Empty, Hyperlink } from "~/components";+import { CSVLink } from "~/components/CSVLink";import { useCurrencyFormatter } from "~/hooks/useCurrencyFormatter";import { KPIs } from "~/modules/sales/sales.models";import { getSalesDocumentsAssignedToMe } from "~/modules/sales/sales.service";diff --git a/llm/tasks/lessons.md b/llm/tasks/lessons.mdindex 83c465431a..9d6a538532 100644--- a/llm/tasks/lessons.md+++ b/llm/tasks/lessons.md@@ -2,6 +2,11 @@Patterns learned from corrections. Review at the start of each session.+## A "word"/wordmark logo SVG may be a full lockup (mark + text), not text-only+- Don't infer an SVG's composition by diffing path `d=` strings. An embedded mark inside a lockup has **different coordinates** than the standalone mark file, so a substring match returns "no mark" even when the mark IS present. Hit this with `apps/docs/public/carbon-word-light.svg`: its first path is the hexagon mark (at different coords than `carbon-mark-light.svg`), followed by 6 letter paths for "carbon". I concluded "text-only", paired it with a separate mark `<img>`, and produced a **double mark** in the header.+- Verify what an SVG actually renders by **viewing/rendering it**, not by reasoning over path data.+- Carbon brand assets in `apps/docs/public/`: `carbon-mark-*` = hexagon only; `carbon-word-*` = full lockup (mark + "carbon" wordmark). `*-light` = dark ink `#101A24` (use on light backgrounds); `*-dark` = light ink `#E6E6E6` (use on dark backgrounds).+## Cancelling a pickingList does NOT cascade `Cancelled` to its lines- Symptom: a "picked X/Y" rollup over `pickingListLine` summed too high — aCancelled picking list's lines were still `status = 'Pending'` and got counted.@@ -130,3 +135,83 @@ Patterns learned from corrections. Review at the start of each session.- Rule: before claiming a callsite is broken or changing its `onChange` shape,grep the file for a local `function <Name>` / `const <Name> =` shadowing theimport, and check the actual prop/callback types at that callsite.++## Setting up an unfamiliar framework: read its llms.txt first++- When scaffolding/configuring a tool I don't have current knowledge of (e.g. Fumadocs), fetch its+ `llms.txt` / `llms-full.txt` and the specific setup pages for *authoritative, current* file contents+ before relying on memory or fighting an interactive `create-*` CLI. I burned time PTY-scripting+ `create-fumadocs-app` past its prompts and got shallow WebFetch results; the user pointed me to+ `fumadocs.dev/llms.txt`, which gave the exact verbatim setup and unblocked a clean hand-build.+- Corollary: don't over-invest in automating an interactive CLI. If two attempts at non-interactive+ flags / PTY-driving don't work, pivot to hand-creating files from the docs.++## Always smoke-test docs/UI in dark mode specifically++- A docs build can pass and look perfect in light mode while content is *invisible* in dark mode. Cause+ here: `@tailwindcss/typography`'s `.prose` (pulled in by `packages/config/tailwind/theme.css`) applies+ fixed gray colors that collide with another `.prose` consumer (Fumadocs) and don't adapt to `.dark`.+ Fix = point `--tw-prose-*` at theme tokens. Lesson: verify both themes, not just the default.++## The cache can be stale — verify feature EXISTENCE against code, never assert absence from cache alone++- `llm/cache/` is curated and usually right, but it lags the code. It told me (via subagents) that+ **Kits don't exist** and that **"backflushing" isn't Carbon terminology** — both **wrong**. Code proves+ it: `kit BOOLEAN` on items with a Subassembly/Kit toggle in `BillOfMaterial.tsx`; `backflush_job_materials()`+ RPC + a "Backflush" section in the BoM + a `Backflush` locale string. The user had to correct me twice.+- Rule: before telling the user a feature/term **doesn't exist**, grep the real source of truth —+ `packages/database/supabase/migrations/*.sql` (enum/`CREATE TYPE`/column names), `packages/locale/locales/en/erp.po`+ (UI strings), and the relevant `apps/*/app/modules/**` models/components. Cache is a *starting* point for+ existence claims, not the *authority*. A subagent that only read the cache will confidently repeat its gaps.+- Also: don't trust a single agent's "X isn't real" conclusion. The agent claimed "8D" wasn't a Carbon term;+ code shows it IS (a configurable Issue **workflow** — `IssueWorkflowForm.tsx` names "an 8D workflow"), over the+ `nonConformance` model whose required actions are `Containment`/`Corrective`/`Preventive`/`Verification`/`Communication`.+- Corollary for docs: I had **fabricated** a finite-capacity "Capacity" planning section; scheduling is actually+ infinite-capacity Kanban (work-center columns + date columns, drag gated by process, not capacity). Don't invent+ plausible-sounding mechanics — verify each claimed behavior against code, then write only what's real.++## Carbon manufacturing facts (code-verified, for the docs guide)++- `methodType` CURRENT values are `Make to Order` / `Purchase to Order` / `Pull from Inventory` — the column+ literally stores these (`mes/operations.service.ts` filters `methodType = "Make to Order"`; `en/erp.po` has these+ msgids; `MethodIcon` in `Icons.tsx` switches on them). The 2023 `parts.sql` enum (`Make`/`Buy`/`Pick`) was RENAMED+ — do NOT use the short forms in docs/UI. (Bit me: I shipped guide copy saying "Make, Buy, Pick" by reading the+ oldest migration. See [[feedback_timestamped_migrations_read_newest]].) Lives on the **item**; BoM material rows+ mirror it read-only (cascades to Draft methods).+- `itemReplenishmentSystem`: `Buy` / `Make` / `Buy and Make` — a SEPARATE axis from `methodType` (decides planning queue).+- `itemReorderingPolicy`: `Manual Reorder` / `Demand-Based Reorder` / `Fixed Reorder Quantity` / `Maximum Quantity`,+ with `reorderPoint`, `reorderQuantity`, `minimumOrderQuantity`/`maximumOrderQuantity`, `maximumInventoryQuantity`,+ `lotSize`, `demandAccumulationPeriod` (migration `20230330024716_parts.sql`, planning cols in `20260324120000_*`).+- **Kit vs Subassembly**: a Make-to-Order BoM item toggles between `Subassembly` (own job + routing) and `Kit`+ (components issued together into the parent job, no separate build; `isKitComponent` on MES, `issue` fn filters `kit=true`).+- **Get Method**: jobs get a copied `jobMakeMethod` (not a live link to the part's `makeMethod`); push-up via+ `production_upsertMakeMethodFromJobMethod`. Method `status`: `Draft`/`Active`/`Archived`, only Draft mutable.+- **Schedule** = Kanban (`Kanban.tsx` work-center columns / `DateKanban.tsx` date columns), infinite capacity,+ `/x/scheduling/gantt` is mock-only. **Outside operations** (`operationType` `Inside`/`Outside`) raise an+ "Outside Processing" PO via `supplierProcess`. MES Controls = `Setup`/`Labor`/`Machine` toggles (`productionEvent`),+ `Issue Material`, `Log Completed/Scrap/Rework`, `Finish` (no "Close Out" button in live code).++## Method-less `curl` sent POST here — always test GET endpoints with `-X GET`++- Spent a long debugging loop on a "405 Method Not Allowed" from a Next route that exported `{ GET }`+ correctly. Root cause was NOT the route: in this environment a plain `curl "<url>"` (no `-X`) was hitting+ the server as **POST** (dev log showed `POST /api/search ... 405`), even with **no `~/.curlrc`**. The route's+ GET worked the whole time — `curl -X GET` returned 200. I wrongly blamed stale `.next` chunks and restarted+ the dev server chasing a ghost.+- Rule: when smoke-testing an HTTP GET endpoint via Bash curl, **always pass `-X GET` explicitly** and confirm+ the dev server's own request log shows the method you intended before concluding the handler is broken. A fast+ 405 (no recompile time) = method mismatch, not a dead module; a module-eval throw shows as **500**, not 405.++## Fumadocs search: use the canonical `export const { GET }`, cap on the client, parse `<mark>` from content++- Server route: always `export const { GET } = createSearchAPI('advanced', { language, indexes })` (or+ `createFromSource`). Do NOT hand-roll `export async function GET`. `initAdvancedSearch` is only for non-Next+ backends (Express/Elysia) where you call `.search()` yourself. The client `fetchClient` uses **GET**.+- Multi-surface search = one combined `indexes` array, each entry `tag`ged; the `tag` query param filters. There+ is **no server-side result limit** in fumadocs — cap on the client (results come back grouped by page).+- Result `content` from the fetch client carries **literal `<mark>…</mark>`** highlight tags (entity-escaped to+ `<mark>` inside shiki HTML, raw `<mark>` in plain result text). `contentWithHighlights` is NOT populated —+ split `content` on `/(<mark>|<\/mark>)/` and style the marked parts yourself.+- The index builds at module load from `source.getPages()`; after renaming a content dir (`content/guide` →+ `content/guides`) or changing `defineDocs({ dir })`, run `pnpm exec fumadocs-mdx` to regenerate `.source`, and+ the search index only reflects it after the dev server rebuilds the route.diff --git a/package.json b/package.jsonindex e7108d7a7f..1f2a6756c3 100755--- a/package.json+++ b/package.json@@ -33,6 +33,7 @@"build": "turbo run build","build:erp": "turbo run build --filter=erp","build:mes": "turbo run build --filter=mes",+ "build:docs": "turbo run build --filter=docs","ci:migrations": "pnpm --filter ci ci:migrations","ci:deploy": "pnpm --filter ci ci:deploy","clean": "turbo run clean && rimraf ./node_modules && rimraf ./pnpm-lock.yaml",diff --git a/packages/react/src/CodeBlock.tsx b/packages/react/src/CodeBlock.tsxindex d5aa02f409..36f206c5ae 100644--- a/packages/react/src/CodeBlock.tsx+++ b/packages/react/src/CodeBlock.tsx@@ -10,7 +10,7 @@ import { Button } from "./Button";// ─── Highlighter Setup ───────────────────────────────────────────────────────const highlighter = await createHighlighterCore({- themes: [import("@shikijs/themes/night-owl")],+ themes: [import("@shikijs/themes/github-dark-default")],langs: [import("@shikijs/langs/bash"),import("@shikijs/langs/javascript"),@@ -64,7 +64,7 @@ const CodeBlock = ({<ShikiHighlighterhighlighter={highlighter}language={language}- theme={"night-owl"}+ theme={"github-dark-default"}showLanguage={false}addDefaultStyles={true}className="codeBlock"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 30070e3786..99cd524f60 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -291,7 +291,7 @@ importers:version: 1.40.0'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])cookie:specifier: 'catalog:'version: 1.1.1@@ -309,7 +309,7 @@ importers:version: 5.1.7react-pdf:specifier: 'catalog:'- version: 10.4.1(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 10.4.1(@types/[email protected])([email protected]([email protected]))([email protected])remix-flat-routes:specifier: 'catalog:'version: 0.8.5@@ -318,7 +318,7 @@ importers:version: 4.6.9tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])devDependencies:'@biomejs/biome':specifier: 2.3.8@@ -328,7 +328,7 @@ importers:version: 5.9.4([email protected])([email protected])'@react-router/dev':specifier: 'catalog:'- version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@types/aws-lambda':specifier: 8.10.152version: 8.10.152@@ -373,7 +373,7 @@ importers:version: 5.8.3vite-plugin-babel-macros:specifier: 'catalog:'- version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))optionalDependencies:'@rollup/rollup-linux-x64-gnu':specifier: 4.60.1@@ -407,10 +407,10 @@ importers:'@react-router/dev':specifier: 'catalog:'- version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@supabase/functions-js':specifier: 'catalog:'version: 2.1.5@@ -422,13 +422,13 @@ importers:version: 0.5.19([email protected])'@tailwindcss/vite':specifier: 'catalog:'- version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@vercel/analytics':specifier: 'catalog:'version: 1.6.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])'@vercel/react-router':specifier: 'catalog:'- version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])cookie:specifier: 'catalog:'version: 1.1.1@@ -486,7 +486,7 @@ importers:version: link:../../packages/config'@lingui/vite-plugin':specifier: 'catalog:'- version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@types/react':specifier: 'catalog:'version: 18.3.28@@ -516,14 +516,99 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])vite-plugin-babel-macros:specifier: 'catalog:'- version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))wait-on:specifier: 'catalog:'version: 7.2.0+ apps/docs:+ dependencies:+ '@radix-ui/react-dialog':+ specifier: 1.1.15+ version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover':+ specifier: 1.1.15+ version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ framer-motion:+ specifier: ^12+ version: 12.38.0(@emotion/[email protected])([email protected]([email protected]))([email protected])+ fumadocs-core:+ specifier: ^16+ version: 16.10.3(@mdx-js/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])+ fumadocs-mdx:+ specifier: ^15+ version: 15.0.12(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected](@mdx-js/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ fumadocs-ui:+ specifier: ^16+ version: 16.10.3(@emotion/[email protected])(@tailwindcss/[email protected])(@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected](@mdx-js/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])+ next:+ specifier: ^16+ version: 16.2.3(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])+ non.geist:+ specifier: 'catalog:'+ version: 1.0.4+ react:+ specifier: ^19.2.0+ version: 19.2.6+ react-dom:+ specifier: ^19.2.0+ version: 19.2.6([email protected])+ shiki:+ specifier: ^4.2.0+ version: 4.2.0+ simple-icons:+ specifier: ^16.23.0+ version: 16.23.0+ zod:+ specifier: ^4+ version: 4.3.6+ devDependencies:+ '@carbon/config':+ specifier: workspace:*+ version: link:../../packages/config+ '@httptoolkit/httpsnippet':+ specifier: ^3.0.2+ version: 3.0.2([email protected])+ '@tailwindcss/postcss':+ specifier: ^4+ version: 4.3.1+ '@tailwindcss/typography':+ specifier: 'catalog:'+ version: 0.5.19([email protected])+ '@types/mdx':+ specifier: ^2.0.14+ version: 2.0.14+ '@types/node':+ specifier: ^22+ version: 22.19.7+ '@types/react':+ specifier: ^19+ version: 19.2.14+ '@types/react-dom':+ specifier: ^19+ version: 19.2.3(@types/[email protected])+ rimraf:+ specifier: 'catalog:'+ version: 5.0.10+ tailwind-scrollbar:+ specifier: 'catalog:'+ version: 4.0.2([email protected])([email protected])+ tailwind-scrollbar-hide:+ specifier: 'catalog:'+ version: 4.0.0([email protected])+ tailwindcss:+ specifier: 'catalog:'+ version: 4.3.0+ tailwindcss-animate:+ specifier: 'catalog:'+ version: 1.0.7([email protected])+ typescript:+ specifier: 'catalog:'+ version: 5.8.3+apps/erp:dependencies:'@ai-sdk-tools/agents':@@ -654,7 +739,7 @@ importers:version: 3.4.5([email protected])'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@react-router/serve':specifier: 'catalog:'version: 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])@@ -699,7 +784,7 @@ importers:version: 1.6.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])'@vercel/react-router':specifier: 'catalog:'- version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])'@visx/responsive':specifier: 2.17.0version: 2.17.0([email protected])@@ -888,7 +973,7 @@ importers:version: 1.3.3tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])unified:specifier: 11.0.5version: 11.0.5@@ -925,16 +1010,16 @@ importers:version: 5.9.4(@lingui/[email protected]([email protected])([email protected]))([email protected])([email protected])'@lingui/vite-plugin':specifier: 'catalog:'- version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@react-router/dev':specifier: 'catalog:'- version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@tailwindcss/typography':specifier: 'catalog:'version: 0.5.19([email protected])'@tailwindcss/vite':specifier: 'catalog:'- version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@types/d3':specifier: 7.4.3version: 7.4.3@@ -991,13 +1076,13 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])vite-plugin-babel-macros:specifier: 'catalog:'- version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))apps/mes:dependencies:@@ -1075,7 +1160,7 @@ importers:version: 5.9.4(@lingui/[email protected]([email protected])([email protected]))([email protected])([email protected])'@lingui/vite-plugin':specifier: 'catalog:'- version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@nanostores/react':specifier: 'catalog:'version: 0.7.3([email protected])([email protected])@@ -1087,10 +1172,10 @@ importers:version: 3.4.5([email protected])'@react-router/dev':specifier: 'catalog:'- version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@react-router/serve':specifier: 'catalog:'version: 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])@@ -1111,7 +1196,7 @@ importers:version: 0.5.19([email protected])'@tailwindcss/vite':specifier: 'catalog:'- version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@tiptap/core':specifier: 'catalog:'version: 2.27.2(@tiptap/[email protected])@@ -1153,7 +1238,7 @@ importers:version: 1.6.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])'@vercel/react-router':specifier: 'catalog:'- version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])'@xyflow/react':specifier: 12.10.2version: 12.10.2(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])@@ -1228,7 +1313,7 @@ importers:version: 1.0.7([email protected])tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])zod:specifier: 'catalog:'version: 3.25.76@@ -1271,10 +1356,10 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])vite-plugin-babel-macros:specifier: 'catalog:'- version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))wait-on:specifier: 'catalog:'version: 7.2.0@@ -1310,10 +1395,10 @@ importers:'@react-router/dev':specifier: 'catalog:'- version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@supabase/functions-js':specifier: 'catalog:'version: 2.1.5@@ -1325,13 +1410,13 @@ importers:version: 0.5.19([email protected])'@tailwindcss/vite':specifier: 'catalog:'- version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@vercel/analytics':specifier: 'catalog:'version: 1.6.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])'@vercel/react-router':specifier: 'catalog:'- version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])cookie:specifier: 'catalog:'version: 1.1.1@@ -1389,7 +1474,7 @@ importers:version: link:../../packages/config'@lingui/vite-plugin':specifier: 'catalog:'- version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@types/react':specifier: 'catalog:'version: 18.3.28@@ -1419,10 +1504,10 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])vite-plugin-babel-macros:specifier: 'catalog:'- version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))wait-on:specifier: 'catalog:'version: 7.2.0@@ -1462,10 +1547,10 @@ importers:version: link:../../packages/utils'@react-router/dev':specifier: 'catalog:'- version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/fs-routes':specifier: 7.14.0- version: 7.14.0(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.14.0(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@supabase/functions-js':specifier: 'catalog:'version: 2.1.5@@ -1474,7 +1559,7 @@ importers:version: 2.80.0'@vercel/react-router':specifier: 'catalog:'- version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])non.geist:specifier: 'catalog:'version: 1.0.4@@ -1505,7 +1590,7 @@ importers:devDependencies:'@tailwindcss/vite':specifier: 'catalog:'- version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@types/react':specifier: 'catalog:'version: 18.3.28@@ -1526,7 +1611,7 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])examples/upload-3d-model:dependencies:@@ -1541,10 +1626,10 @@ importers:version: link:../../packages/utils'@react-router/dev':specifier: 'catalog:'- version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/fs-routes':specifier: 7.14.0- version: 7.14.0(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.14.0(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@supabase/functions-js':specifier: 'catalog:'version: 2.1.5@@ -1553,7 +1638,7 @@ importers:version: 2.80.0'@vercel/react-router':specifier: 'catalog:'- version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])nanoid:specifier: 'catalog:'version: 5.1.7@@ -1581,7 +1666,7 @@ importers:devDependencies:'@tailwindcss/vite':specifier: 'catalog:'- version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@types/react':specifier: 'catalog:'version: 18.3.28@@ -1602,7 +1687,7 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])packages/auth:dependencies:@@ -1626,10 +1711,10 @@ importers:version: link:../react'@react-email/components':specifier: 'catalog:''@react-router/dev':specifier: 'catalog:'- version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@simplewebauthn/server':specifier: ^13.1.0version: 13.3.0@@ -1641,10 +1726,10 @@ importers:version: 2.80.0'@vercel/analytics':specifier: 'catalog:'- version: 1.6.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ version: 1.6.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])'@vercel/react-router':specifier: 'catalog:'- version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])cookie:specifier: 'catalog:'version: 1.1.1@@ -1662,7 +1747,7 @@ importers:version: 18.3.1react-router:specifier: 'catalog:'zod:specifier: 'catalog:'version: 3.25.76@@ -1690,13 +1775,13 @@ importers:version: 4.6.9tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.8.3vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))packages/config:dependencies:@@ -1717,7 +1802,7 @@ importers:version: 3.3.0tailwind-scrollbar:specifier: 'catalog:'- version: 4.0.2([email protected])([email protected])+ version: 4.0.2([email protected])([email protected])tailwind-scrollbar-hide:specifier: 'catalog:'version: 4.0.0([email protected])@@ -1729,11 +1814,11 @@ importers:version: 1.0.7([email protected])vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))devDependencies:tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])packages/database:dependencies:@@ -1760,7 +1845,7 @@ importers:version: 8.20.0react-pdf:specifier: 'catalog:'- version: 10.4.1(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 10.4.1(@types/[email protected])([email protected]([email protected]))([email protected])sst:specifier: 'catalog:'version: 4.6.9@@ -1797,7 +1882,7 @@ importers:version: 2.89.0tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])tsx:specifier: 'catalog:'version: 4.21.0@@ -1839,7 +1924,7 @@ importers:version: 1.1.1vite:specifier: '*'- version: 7.3.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 7.3.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])devDependencies:'@carbon/config':specifier: '*'@@ -1861,7 +1946,7 @@ importers:version: 5.8.3vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))packages/documents:dependencies:@@ -1882,7 +1967,7 @@ importers:version: 3.10.0([email protected]([email protected]))'@react-email/components':specifier: 'catalog:''@react-pdf/renderer':specifier: 'catalog:'version: 3.4.5([email protected])@@ -2009,10 +2094,10 @@ importers:version: 5.6.0([email protected])react-pdf:specifier: 'catalog:'- version: 10.4.1(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 10.4.1(@types/[email protected])([email protected]([email protected]))([email protected])react-router:specifier: 'catalog:'sst:specifier: 'catalog:'version: 4.6.9@@ -2021,7 +2106,7 @@ importers:version: 2.89.0tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])zod:specifier: 'catalog:'version: 3.25.76@@ -2043,7 +2128,7 @@ importers:version: 5.8.3vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))packages/env:dependencies:@@ -2150,7 +2235,7 @@ importers:version: 5.8.3vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))packages/jobs:dependencies:@@ -2195,7 +2280,7 @@ importers:version: 3.12.0'@react-email/components':specifier: 'catalog:''@react-pdf/renderer':specifier: 'catalog:'version: 3.4.5([email protected])@@ -2216,7 +2301,7 @@ importers:version: 1.15.0inngest:specifier: ^3.52.7- version: 3.54.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])+ version: 3.54.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])kysely:specifier: 'catalog:'version: 0.28.15@@ -2231,10 +2316,10 @@ importers:version: 18.3.1react-pdf:specifier: 'catalog:'- version: 10.4.1(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 10.4.1(@types/[email protected])([email protected]([email protected]))([email protected])resend:specifier: 3.5.0sst:specifier: 'catalog:'version: 4.6.9@@ -2243,7 +2328,7 @@ importers:version: 2.89.0tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])zod:specifier: 'catalog:'version: 3.25.76@@ -2302,7 +2387,7 @@ importers:version: 4.6.9tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])tsx:specifier: 'catalog:'version: 4.21.0@@ -2311,7 +2396,7 @@ importers:version: 5.8.3vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))packages/lib:dependencies:@@ -2335,10 +2420,10 @@ importers:version: 2.80.0inngest:specifier: 3.54.0- version: 3.54.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])+ version: 3.54.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])resend:specifier: 3.5.0sst:specifier: 'catalog:'version: 4.6.9@@ -2363,7 +2448,7 @@ importers:version: 5.0.10tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])tsx:specifier: 'catalog:'version: 4.21.0@@ -2394,13 +2479,13 @@ importers:version: 18.3.1tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.8.3vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))packages/notifications:devDependencies:@@ -2439,7 +2524,7 @@ importers:version: 5.6.0([email protected])react-router:specifier: 'catalog:'zod:specifier: 'catalog:'version: 3.25.76@@ -2780,13 +2865,13 @@ importers:version: 4.3.0tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.8.3vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))packages/stripe:dependencies:@@ -2832,7 +2917,7 @@ importers:version: 4.6.9tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])tsx:specifier: 'catalog:'version: 4.21.0@@ -2853,7 +2938,7 @@ importers:version: 1.2.4(@types/[email protected])([email protected])'@tanstack/react-virtual':specifier: 3.13.23'@tiptap/core':specifier: 'catalog:'version: 2.27.2(@tiptap/[email protected])@@ -2904,7 +2989,7 @@ importers:version: 2.27.2'@tiptap/react':specifier: 'catalog:'- version: 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected]([email protected]))([email protected])+ version: 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected]([email protected]))([email protected])'@tiptap/starter-kit':specifier: 'catalog:'version: 2.27.2@@ -2916,7 +3001,7 @@ importers:version: 22.19.7cmdk:specifier: 0.2.0cookie:specifier: 'catalog:'version: 1.1.1@@ -2925,7 +3010,7 @@ importers:version: 3.4.0framer-motion:specifier: 'catalog:'- version: 11.18.2(@emotion/[email protected])([email protected]([email protected]))([email protected])+ version: 11.18.2(@emotion/[email protected])([email protected]([email protected]))([email protected])jotai:specifier: 2.19.1version: 2.19.1(@babel/[email protected])(@babel/[email protected])(@types/[email protected])([email protected])@@ -2989,13 +3074,13 @@ importers:version: 4.6.9tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.8.3vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))packages/utils:dependencies:@@ -3007,7 +3092,7 @@ importers:version: 2.80.0'@tiptap/react':specifier: 'catalog:'- version: 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected]([email protected]))([email protected])+ version: 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected]([email protected]))([email protected])cookie:specifier: 'catalog:'version: 1.1.1@@ -3053,13 +3138,13 @@ importers:version: 4.6.9tsup:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.8.3vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))packages:@@ -4139,6 +4224,27 @@ packages:'@formatjs/[email protected]':resolution: {integrity: sha512-XOMO2Hupl0wdd172Y06h6kLpBz6Dv+J4okPLl4LPtzbr8f66WbIoy4ev98EBuZ6ZK4h5ydTN6XneT4QVpD7cdA==}+ '@fuma-translate/[email protected]':+ resolution: {integrity: sha512-uOiOtBx3nRXR8Nu1GzBf1tApgF1FErDBTHxRIAQeyQdyOoZbrNRN6H4kDCWObY4qyGeGbHydG0DHzgeUgFDMIw==}+ peerDependencies:+ '@types/react': '*'+ react: ^19.2.0+ react-dom: ^19.2.0+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@fumadocs/[email protected]':+ resolution: {integrity: sha512-ENKPWUDRmriccsrUDE4bDBq3FNr/ms3BP2rWlsAEMV1yP23pcCaan+ceGfeBUsAQjw7sj9Q3R4Kl3g/TCStPzQ==}+ peerDependencies:+ '@tailwindcss/oxide': ^4.0.0+ tailwindcss: ^4.0.0+ peerDependenciesMeta:+ '@tailwindcss/oxide':+ optional: true+ tailwindcss:+ optional: true+'@grpc/[email protected]':resolution: {integrity: sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==}engines: {node: '>=12.10.0'}@@ -4168,6 +4274,11 @@ packages:peerDependencies:react-hook-form: ^7.0.0+ '@httptoolkit/[email protected]':+ resolution: {integrity: sha512-rzBQ+sSr9a+in1BSDVbmsA4KZVgRPUuJ8WCwndOnNuNr4xeQjXEm3KEQs6/swjVyjMskXTwqf1HKsHtFYUvzBQ==}+ engines: {node: '>=22'}+ hasBin: true+'@img/[email protected]':resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}engines: {node: '>=18'}@@ -4469,6 +4580,9 @@ packages:react: ^17.0.2 || ^18.0.0 || ^19.0react-dom: ^17.0.2 || ^18.0.0 || ^19.0+ '@mdx-js/[email protected]':+ resolution: {integrity: sha512-f6ZO2ifpwAQIpzGWaBQT2TXxPv6z3RBzQKpVftEWN78Vl/YweF1uwussDx8ECAXVtr3Rs89fKyG9YlzUs9DyGQ==}+'@messageformat/[email protected]':resolution: {integrity: sha512-3p0YRGCcTUCYvBKLIxtDDyrJ0YijGIwrTRu1DT8gIviIDZru8H23+FkY6MJBzM1n9n20CiM4VeDYuBsrrwnLjg==}@@ -5272,6 +5386,10 @@ packages:peerDependencies:'@opentelemetry/api': ^1.1.0+ '@orama/[email protected]':+ resolution: {integrity: sha512-a61ljmRVVyG5MC/698C8/FfFDw5a8LOIvyOLW5fztgUXqUpc1jOfQzOitSCbge657OgXXThmY3Tk8fpiDb4UcA==}+ engines: {node: '>= 20.0.0'}+'@oxc-project/[email protected]':resolution: {integrity: sha512-aIYXQBo4lCbO4z0R3FHeucQHpF46l2LbMdxRvqvuRuW2OxdnSkcng5B8+K12spgLDj93rtN3+J2Vac/TIO+ciQ==}@@ -5379,6 +5497,9 @@ packages:'@radix-ui/[email protected]':resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ceTwaxc4I5IOi97DgCotl3pqiyRGvffcc0oOsE2dQYaJOFIDsDt4VWG6xEbg1QePv9QWausCEIppud/tJ1wNig==}+'@radix-ui/[email protected]':resolution: {integrity: sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==}@@ -5388,6 +5509,9 @@ packages:'@radix-ui/[email protected]':resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-7AdCK9PQyiljKoBDbN8OuctCbd/esdwZPQ8RtOE3SsyQtUpiPb+ND75q0jEhC1m1ecBI0MFNeLJvwIh9iKHRcQ==}+'@radix-ui/[email protected]':resolution: {integrity: sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==}peerDependencies:@@ -5401,6 +5525,32 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-iE8YB9nmTBH8zd73ofBISZ8JCzgMoMkATJr7qDwa6u5F1+7mTM81V6fa71jgZ65rpjVpecDf1vSnwIFP9Ly1zw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-j2VTDz1vgCsmuG0k5lBfOcM8n5JPFqZBcMryasFjHYMhwxYL5SRUV5lMSUpRdNtw3D/Sv8pzJtrlAgkssYSsQQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==}peerDependencies:@@ -5466,6 +5616,32 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-9bT+FvifX1FK2Mj6UEsTdyu0cN3JaA3KdfhaBao+ONrYFy/pyOy3TU1TNw7iOk1o+0hOEq67RojlUUmoFGwxyA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-IVVz4EvBcKjrzKgof714qDnz/SzQAkLA2Emh5edlHbgcE6fNd3Un6CJLlaYcnm8N4JmAtzQgse4dOKxcD2yc9g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==}peerDependencies:@@ -5502,6 +5678,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-O8morBEW+HsVG28gYDZPTrT9UUovQUlJue5YO836tiTJhuIWBm/zQHc7j388sHWtdH/xUZurK9olD2+pcqx5ww==}peerDependencies:@@ -5547,6 +5732,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-QwH4PO5urrbO+FaGd5Aglg+YJgWTyyuZ3g/6mKvsqraLkglDdckw9JafgL5McL5VEJ6EPNduPaT3ZE9BttDAqg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-Yn9YU+QlHYLWwV1XfKiqnGVpWYWk6MeBVM6x/bcoyPvxgjQGoeT35482viLPctTMWoMw0PoHgqfSox7Ig+957Q==}peerDependencies:@@ -5566,6 +5760,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-TDTYmpdq8dI2+Xgvgj9AJ8Ghqq+Eph/TRVEdaFQPDItIY+6QSkU7MJMeevw1568Yw/2Ijz8BTphPSP2XejKphw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==}peerDependencies:@@ -5575,6 +5782,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-C3vFhbyi4SW3PmbAi6Awpu4OzJtd0MxGurvSsYtr7p7nM8RNB3VAF3CUmnp2j50knpkrRcB7+ycVXzgLgF6yNA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-n7kDRfx+LB1zLueRDvZ1Pd0bxdJWDUZNQ/GWoxDn2prnuJKRdxsjulejX/ePkOsLi2tTm6P24mDqlMSgQpsT6g==}peerDependencies:@@ -5594,6 +5810,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-2v+zNAWWe0ySxgC0D0yeXMPQ23xZVgXZTerTz+JKlmdRj6gfTqmCcR29jb6d290DezXPGgruHWDX/vYUebtErg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==}peerDependencies:@@ -5621,12 +5850,34 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-cot/aB/mOm0IYVYTTmQcEEK1M48lZWi8FlYe5nDPQQ8NYZUlXEFgncJ9p2Kzer3RKSrY7cTTpEMLZKNo9QoP5Q==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-C4SWtsULLGf/2L4oGeIHlvWQx7Rf+7cX/vKOAD2dXW0A1b5QXwi3wWeaEgW+wn+SEVrraMUk05vLU9fZZz5HbQ==}peerDependencies:react: ^16.8 || ^17.0 || ^18.0react-dom: ^16.8 || ^17.0 || ^18.0+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Fas/lXQqhVvqwAb64s5RFeHiHYElZ6SUQbZaNd6EkfhP/Al7wTIQ9WIR4QVX475tlu5yFCEdDcJH6/UwsZjMWw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==}peerDependencies:@@ -5676,6 +5927,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-orBC88futVpqCmhX1p4cvquNHsELQ+w+vBJnuj3ftETI5bJb0bZn3Tqu3SWN2IOcPycTnMGnhwoermvISt72sA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-FmXs37I6hSBVDlO4y764TNz1rLgKwjJMQ0EGte6F3Cb3f4bIuHB/iLa/8I9VKkmOy+gNHq8rql3j686ACVV21A==}peerDependencies:@@ -5702,6 +5962,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-nJ0SkrSQgudyYhMiYeHA1ayLVuduEJCFLan1RZZN7c9kqzzCFLaU9kuy81uNtqzweM9YaQPgWzxi9MwQ9jZ04g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==}peerDependencies:@@ -5715,6 +5988,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-/YSAOdJ7YJvdn7bn5sdSx2egW+SKY+u7O5RyAVs94Ymrg2fg5QTSFPMRkzvhGyFuE4/qsmPBdrwYoZMZh/4f+g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==}peerDependencies:@@ -5728,12 +6014,38 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-bhnq/0DEPTi2lsOD3J5rTL65qUKHbKbhqHsmN9TMiclSXpipi651ooUKPPp6G5lF/WiHBdn1s0Wuqsn+myVAvw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-a8qyFO/Xb99d8wQdu4o7qnigNjTPG123uADNecz0eX4usnQEj7o+cG4ZX4zkqq98NYekT7UoEQIjxBNWIFuqTA==}peerDependencies:react: ^16.8 || ^17.0 || ^18.0react-dom: ^16.8 || ^17.0 || ^18.0+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-m309havGzsjLHHaIX50G5PlvRs3xkgPCsGk/5PTvYm8D5q33yG0J7w/712PTOhid7NTaFETtnSXjngHQavvhVw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}peerDependencies:@@ -5779,6 +6091,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-zdTk4PlUO0E18HnZ3wYbW0KkJJxWCdiNYp6g6X1PtONFhxVkg01vliTJAmwIszU6mHiyBOoW9P0rAugl5/hULQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-EyXe6mnRlHZ8b6f4ilTDrXmkLShICIuOTTj0GX4w1rp+wSxf3+TD05u1UOITC8VsJ2a9nwHvdXtOXEOl0Cw/zQ==}peerDependencies:@@ -5824,6 +6149,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-wetd0QI77DbvrPpTAvH1SqOxsYF2wZe5TNxqwOd5Ty4XDpV3dpV0s8K/1MGMJBeY5o7lg8ub5VIt1Ub+yVen6g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-+gISHcSPUJ7ktBy9RnTqbdKW78bcGke3t6taawyZ71pio1JewwGSJizycs7rLhGTvMJYCQB1DBK4KQsxs7U8dA==}peerDependencies:@@ -5863,6 +6201,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-9gkwneI0guf8JDmrFxPjJF6Ozzgioyw+/lonYNCwefS9ZHA05er0BVHiXr+LbWGHxUfczvMY6G1oiZZi1VzjRw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A==}peerDependencies:@@ -5876,6 +6227,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-xuafVzQiTCLsyEjakowTdG3OgTXsmO7IdCiO77otIa+z44xoLNs9Do5eg7POFumIOCjtG6djfm6RKUKpUa/csA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==}peerDependencies:@@ -5947,6 +6311,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==}peerDependencies:@@ -5973,6 +6346,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-kxc9gI6/HfcU4nfMMVS3AmQK414kbU1IE6UCJmMmxjhO3cRPXOyYnmvyKD+ODt7q56nRq9l7Wovi6uaGwKgMlg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g==}peerDependencies:@@ -6048,6 +6434,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-xCso9j1/u8sEgP1RNHjFrXJLApL8LiqOkI1R4ywuN00rxWdYg4oQXuwKLS3i0j5NWLromUD27/4nlxj2UFVvIw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==}peerDependencies:@@ -6071,6 +6466,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-PLzC90MS+ReootmjC597dvopoelpZ8Q61HJkDXZSExitIq7PL55vHNnesAHwguHK0aPfBnpdNzQtv1uliaqQrA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==}peerDependencies:@@ -6080,6 +6484,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-6c8ZqvPTWILEKnyVkP53EGRCcpnJiKTC21sS/6R1GF5xKyHJJWQEPfkqlcgUkdRQivd6tb23abUwe4ngWmY0JA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-JwfBCUIfhXRxKExgIqGa4CQsiMemo1Xt0W/B4ei3fpzpvPENKpMKQ8mZSB6Acj3ebrAEgi2xiQvcI1PAAodvyg==}peerDependencies:@@ -6094,6 +6507,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-2uVLvLjgO7NZCWw01/FdqRwmA42J0BcjPMUCA+koFEOAb+zjqIP7SiFz/7zWPrKnVmSqr76Omq2ALyCuX4dhLw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==}peerDependencies:@@ -6126,6 +6548,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==}peerDependencies:@@ -6135,6 +6566,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-IGBQPtRFdhN6MQ8dbegVmBq1LVZluya3F1jWY+puIcQC3MHctRwTDSBWCkL/3ZcnMJLTMJ++Z+ktmvg0F89iCw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==}peerDependencies:@@ -6144,6 +6584,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-d8a+bBY/FxikNPlgJJoaBHZX+zKVbWHYJGTLnLvveQgFSTntkGdEKv3JDtHrMS0DNYpllz2nRsTLGLKYttbpmw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==}peerDependencies:@@ -6153,6 +6602,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-giWQp+4mxjBPt4KZ0MmyuykFNWfbDxKt4x+fPkRYmgRFJSbCZFzUglvMb/Kjn38tm10YP4ufiQZDx3zna4LU6w==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==}peerDependencies:@@ -6166,9 +6624,25 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-jCE0WljWifTI4niIMCll06kGpsJTAPiZVU9H4WR1N6qW7At9ystHbN7dDB+we2xH535roFHj7qKS+RGj0FMDWQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-xnXE7wG13PI+cxieVssYXlQJuYVRhH9NBoxt3KNwzghDIA69GMm7d4wXRouHIYjE+KvS6U/MsMO73NdS2MH9ZA==}+'@react-aria/[email protected]':resolution: {integrity: sha512-S61vh5DJ2PXiXUwD7gk+pvS/b4VPrc3ZJOUZ0yVRLHkVESr5LhIZH+SAVgZkm1lzKyMRG+BH+fiRH/DZRSs7SA==}peerDependencies:@@ -7270,34 +7744,46 @@ packages:'@selderee/[email protected]':resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==}- '@shikijs/[email protected]':- resolution: {integrity: sha512-hxT0YF4ExEqB8G/qFdtJvpmHXBYJ2lWW7qTHDarVkIudPFE6iCIrqdgWxGn5s+ppkGXI0aEGlibI0PAyzP3zlw==}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-Hc87Ab1Ld/vEbZRCbwx344I5v+4RU8CVToUTRkqXL1+TjbuOp9U5Xa0M23V4GEWHxVn+yO5otb+HkQVm3ptWQQ==}engines: {node: '>=20'}- '@shikijs/[email protected]':- resolution: {integrity: sha512-7PW0Nm49DcoUIQEXlJhNNBHyoGMjalRETTCcjMqEaMoJRLljy1Bi/EGV3/qLBgLKQejdspiiYuHGQW6dX94Nag==}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-fjETeq1k5ffyXqRgS6+3hpvqseLalp1kjNfRbXpUgWR8FpZ1CmQfiNHovc5lncYjt/Vg5JK/WJEmLahjwMa0og==}engines: {node: '>=20'}- '@shikijs/[email protected]':- resolution: {integrity: sha512-UpCB9Y2sUKlS9z8juFSKz7ZtysmeXCgnRF0dlhXBkmQnek7lAToPte8DkxmEYGNTMii72zU/lyXiCB6StuZeJg==}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-hTorK1dffPkpbMUk6Z+828PgRo7d07HbnizoP0hNPFjhxMHctj0Px/qoHeGMYafc6ju+u9iMldN4JbVzNQM++g==}engines: {node: '>=20'}'@shikijs/[email protected]':resolution: {integrity: sha512-KaXby5dvoeuZzN0rYQiPMjFoUrz4hgwIE+D6Du9owcHcl6/g16/yT5BQxSW5cGt2MZBz6Hl0YuRqf12omRfUUg==}engines: {node: '>=20'}- '@shikijs/[email protected]':- resolution: {integrity: sha512-M6UMPrSa3fN5ayeJwFVl9qWofl273wtK1VG8ySDZ1mQBfhCpdd8nEx7nPZ/tk7k+TYcpqBZzj/AnwxT9lO+HJw==}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-bwrVRlJ0wUhZxAbVdvBbv2TTC9yLsh4C/IO5Ofz0T8MQntgDvyVnkbjw9vi50r1kx7RCIJdnJnjZAwmAsXFLZQ==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-NOq+DtUkVBJtZMVXL5A0vI0Xk8nvDYaXetFHSJFlOqjDZIVhIPRYFdGkSoElDqNuegikcc3A76SNUa8dTqtAYA==}engines: {node: '>=20'}'@shikijs/[email protected]':resolution: {integrity: sha512-mjCafwt8lJJaVSsQvNVrJumbnnj1RI8jbUKrPKgE6E3OvQKxnuRoBaYC51H4IGHePsGN/QtALglWBU7DoKDFnA==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-RX8IHYeLv8Cu2W6ruc3RxUqWn0IYCqSrMBzi/uRGAmfyDNOnNO5BF/Px7o97n4XTpmFTo5GbRaazuOWj+2ak2w==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-qzbeRooUTPnLE+sHD/Z8DStmaDgnbbc/pMrU203950aRqjX/6AFHeDYT+j00y2lPdz0ywJKx7o/7qnqTivtlXg==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-VT/MKtlpOhEPZloSH3Pb9WCZEBDoQVMa9jedp5UAwmJOar1DVc9DRODAxmYPW9M93IK4ryuqRejFfmlvlVDemw==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}@@ -7572,36 +8058,69 @@ packages:'@tailwindcss/[email protected]':resolution: {integrity: sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==}+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-6NDaqRoAMSXD1mr/RXu0HBvNE9a2n5tHPsxu9XHLws8o4Twes5rBM2205SUUiJ9goAtadrN6xTGX0UDEwp/N4A==}+'@tailwindcss/[email protected]':resolution: {integrity: sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==}engines: {node: '>= 20'}cpu: [arm64]os: [android]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-SVlyf61g374l5cHyg8x9kf5xmLcOaxvOTsbsqDnSsDJaKOEFZ7GCvi84VAVGpxojYOs1+3K6M0UjXfqPU8vmOQ==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [android]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==}engines: {node: '>= 20'}cpu: [arm64]os: [darwin]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-hVnWLwv+e/l7c4WKyVtHVrIPvYdqWHjRB3MDIqARynzFtnQg85kmQEFCbV9Ja0VVx4xXTIiDWY60Y7iz/iNoDA==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [darwin]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==}engines: {node: '>= 20'}cpu: [x64]os: [darwin]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Cf7abu0WVgbhU7ANgPUnSAvm7nCvMweusHb8FnaHlLfv/Caq4GYaEZg7ZImzzmjx4lIAfuS8q+eLIS7A7IzxIg==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [darwin]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==}engines: {node: '>= 20'}cpu: [x64]os: [freebsd]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-ZZqzX2Y+GXtXXfqSfpJhDm60OoZfvLHLCgm+J7NVqgHHJjG/m9ugZI77RwTsVd4fnBJuCFP6Ae6kTJb71UdS8g==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [freebsd]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==}engines: {node: '>= 20'}cpu: [arm]os: [linux]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-/Ah/xik0LaMYfv9DZ0S/t4pBlBNYOcqtRwusjgovHkvT8ixueWCLyJjsaF5kQIckjb4IT8Q6K6p/iPmZMixYgg==}+ engines: {node: '>= 20'}+ cpu: [arm]+ os: [linux]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==}engines: {node: '>= 20'}@@ -7609,6 +8128,13 @@ packages:os: [linux]libc: [glibc]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-gqdFoVJlw444GvpnheZLHmvTzSxI/cOUUh2KSNejQjTcYkW062SVD+En0rUgD+QV91bz1XGIGtt1HJd48xUGbQ==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==}engines: {node: '>= 20'}@@ -7616,6 +8142,13 @@ packages:os: [linux]libc: [musl]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Bwv9KwOvE0VKa86xPFif9b9c3Y1NxOV1P0gLti/IYaWEsQYZXDlxfGEtA8mdDZ7SG3wyNXAWYT5SIn3giL57oA==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==}engines: {node: '>= 20'}@@ -7623,6 +8156,13 @@ packages:os: [linux]libc: [glibc]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Ymi8O8T15HYQdOUWUtTI6ldN0neHP85FC+Qz32xTcZ7iJXtem/x8ITev0o1e9e5rkqj4lONZfTRLvkmin1+tKg==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==}engines: {node: '>= 20'}@@ -7630,6 +8170,13 @@ packages:os: [linux]libc: [musl]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-M+P/91qJ6uILLw4k2G93GMDRAXj61SMvFQYt39AqvUqYgExXpLL5aepfns7sj4HiAQeolirQF9E0lzRvdf4zPQ==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [linux]+ libc: [musl]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==}engines: {node: '>=14.0.0'}@@ -7642,22 +8189,53 @@ packages:- '@emnapi/wasi-threads'- tslib+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-zsM8uOeqvVGHsAXsJxsT28ttosFahLJKCLOTUBqRAtKnVgGSRitds9T432QiT8b77Yga7JIBkulIRRlJPtYhRA==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]+ bundledDependencies:+ - '@napi-rs/wasm-runtime'+ - '@emnapi/core'+ - '@emnapi/runtime'+ - '@tybys/wasm-util'+ - '@emnapi/wasi-threads'+ - tslib+'@tailwindcss/[email protected]':resolution: {integrity: sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==}engines: {node: '>= 20'}cpu: [arm64]os: [win32]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-aiNvSq9BsVk8V513lDKlrCFAgf8qBMPZTpgEhInL+NwQqs97mYmupVMrPrgBBSL8Pv/0zXu9MrMF9rMun1ZeNg==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [win32]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==}engines: {node: '>= 20'}cpu: [x64]os: [win32]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-xDEyu1rg290472FEGaKHnzyDyh5QH+AlWvsU5hMoMtPpzmKlRI0jaYKCgSHDYtaQWZOYbMaduSyCwFwY4n1HmA==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [win32]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==}engines: {node: '>= 20'}+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-yVPyo8RNkabVr3O2EhHEE0Rewu7YKzc1DhIqfL46LKveFrmu9XbDazNOJY7/GRuvw1h6u3utWnR29H/p5JPlgA==}+ engines: {node: '>= 20'}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-dNJuNbdEJT/SWRuXTYP1WSamelsz3ztkUsdtWQPjrexysrTpaEPM40P/71knXiXLYEojqPOEGitVLLpPMS5T6A==}+'@tailwindcss/[email protected]':resolution: {integrity: sha512-w31dd8HOx3k9vPtcQh5QHP9GwKcgbMp87j58qi6xgiBnFFtKEAgCWnDw4qUT8aHwkCp8bKvb/KGKWWHedP0AAg==}peerDependencies:@@ -8221,6 +8799,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==}+ '@types/[email protected]':+ resolution: {integrity: sha512-T48PeuJtvLosNTPVhfnIp3i/n3a4g4Bad7YCq5k64D4u7NwDrAotikQ+5+sjtUvBmxCMlbo3dVL+C2dP0rWHzg==}+'@types/[email protected]':resolution: {integrity: sha512-AM9smvZN55Gzs2wRrqeMHVP7KE8KWgCJO/XL5yCly2xF6EKa4YlbpK+cLSAH4NG/Ah64HrlegmGqW8kYws7Vxg==}@@ -8286,6 +8867,11 @@ packages:peerDependencies:'@types/react': ^18.0.0+ '@types/[email protected]':+ resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==}+ peerDependencies:+ '@types/react': ^19.2.0+'@types/[email protected]':resolution: {integrity: sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg==}peerDependencies:@@ -8302,6 +8888,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==}+'@types/[email protected]':resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==}@@ -8536,6 +9125,11 @@ packages:peerDependencies:acorn: ^8+ resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}+ peerDependencies:+ acorn: ^6.0.0 || ^7.0.0 || ^8.0.0+resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==}engines: {node: '>=0.4.0'}@@ -8567,6 +9161,9 @@ packages:ajv:optional: true+ resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==}+resolution: {integrity: sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==}@@ -8577,6 +9174,10 @@ packages:resolution: {integrity: sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==}engines: {node: '>=18'}+ resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==}engines: {node: '>=6'}@@ -8589,6 +9190,10 @@ packages:resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==}engines: {node: '>=12'}+ resolution: {integrity: sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==}engines: {node: '>=4'}@@ -8647,6 +9252,10 @@ packages:resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}engines: {node: '>=12'}+ resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==}+ hasBin: true+resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}engines: {node: '>= 0.4'}@@ -8821,6 +9430,10 @@ packages:resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==}engines: {node: '>=18'}+ resolution: {integrity: sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}engines: {node: '>=4'}@@ -8853,6 +9466,10 @@ packages:resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==}engines: {node: '>= 14.16.0'}+ resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}+ engines: {node: '>= 20.19.0'}+resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==}engines: {node: '>=18'}@@ -8942,6 +9559,9 @@ packages:resolution: {integrity: sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA==}engines: {node: '>=0.8'}+ resolution: {integrity: sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw==}+resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}@@ -8986,6 +9606,9 @@ packages:resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==}engines: {node: '>=20'}+ resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}+resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}engines: {node: '>= 6'}@@ -9002,6 +9625,9 @@ packages:resolution: {integrity: sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==}engines: {node: '>= 0.8.0'}+ resolution: {integrity: sha512-VRhuHOLoKYOy4UbilLbUzbYg93XLjv2PncJC50EuTWPA3gaja1UjBsUP/D/9/juV3vQFr6XBEzn9KCAHdUvOHw==}+resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}@@ -9428,6 +10054,9 @@ packages:resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==}+resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}@@ -9478,6 +10107,10 @@ packages:resolution: {integrity: sha512-QyL119InA+XXEkNLNTPCXPugSvOfhwv0JOlGNzvxs0hZaiHLNvXSpudUWsOlsXGWJh8G6ckCScEkVHfX3kw/2Q==}engines: {node: '>=10.13.0'}+ resolution: {integrity: sha512-aNnGCvbJ/RIyWo1IuhNdVjnNF+EjH9wpzpNHt+ci/m9He9LJvUN8wrCcXjp9cWsGNAuvSpVFTx/vraAFQ8qGjQ==}+ engines: {node: '>=10.13.0'}+resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}engines: {node: '>=0.12'}@@ -9526,6 +10159,12 @@ packages:resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-4CyanoAudUSBAn5K13H4JhsMH6L9ZP7XbLVe/dKybkxMO7eDyLsT8UHl9TRNrU2Gr9nz+FovfSIjuXWJ81uVwQ==}++ resolution: {integrity: sha512-8Ja+rNJ0Lt56Pcf3TAmpBZjmx8ZcK5Ts4cAzIOjsjevg9oSXJnl6SUQ2EevU8tv3h6ZLWmoKL5H4fgWvdvfETw==}+resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==}engines: {node: '>=18'}@@ -9564,9 +10203,27 @@ packages:resolution: {integrity: sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==}engines: {node: '>=6'}+ resolution: {integrity: sha512-cKUwm/HUcTDsYh/9FgnuFqpfquUbwIqwKM26BVCGDPVgvaCl/nDCCjUfiLlx6lsEZ3Z4RFxNbOQ60pkaEwFxGw==}++ resolution: {integrity: sha512-8U5eiL6BTrPxp/CHbs2yMgP8ftMhR5ww1eIKoWRMlqvltHF8fZn5LRDvTKuxD3DUn+shRbLGqXemcP51oFCsGQ==}+resolution: {integrity: sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==}+ resolution: {integrity: sha512-2CAASclonf+JFWBNJPndcOpA8EMJwa0Q8LUFJEKqXLW6+qBvbFZuF5gItbQOs/umBUkjviCSDCbBwU2cXbmrhQ==}++ resolution: {integrity: sha512-WDF+xj5rRWmD5tj6bIqRi6CkLIXbbNQUcxQHzGysQzvHmdYG2G7p/Tf0J0gpxGgkeMZNTIjT/AoSvC9Xehcgdg==}++ resolution: {integrity: sha512-aMV56R27Gv3QmfmF1MY12GWkGzzeAezAX+UplqHVASfjc9wNzI/X6hC0S9oxq61WT4aQesLGslWP9tKk6ghRZQ==}++ resolution: {integrity: sha512-m5KgiH85xAhhW8Wta0vShLcUvOsh3LLPI2YVwcbio1l7E09NTLL1EyMZFM1OyWowoH0skScNbhOPl4kcBgzTww==}+resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}@@ -9574,6 +10231,9 @@ packages:resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}engines: {node: '>= 0.6'}+ resolution: {integrity: sha512-QHpkERcGsR0T7Qm3HNJSyXKEEj8AHNxkY3PK8TS2KJvQ7NiSHe3DDpwVKKtoYprL/AreyzFBeIkBIWChAqn60g==}+resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==}@@ -9638,6 +10298,9 @@ packages:resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}engines: {node: '>=8.6.0'}+ resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}+resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==}@@ -9729,6 +10392,10 @@ packages:resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}engines: {node: '>=14'}+ resolution: {integrity: sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==}+ engines: {node: '>= 6'}+resolution: {integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==}engines: {node: '>= 6'}@@ -9776,6 +10443,20 @@ packages:react-dom:optional: true+ resolution: {integrity: sha512-uaBd3qC1v3KQqBEjwTUd183K6PbS+j0yR9w9VmEOLWA/tnUcSn8Xa3uck7t4dgpDoUss8xQTcj8W2L07lrnLFg==}+ peerDependencies:+ '@emotion/is-prop-valid': '*'+ react: ^18.0.0 || ^19.0.0+ react-dom: ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@emotion/is-prop-valid':+ optional: true+ react:+ optional: true+ react-dom:+ optional: true+resolution: {integrity: sha512-KAfqli5PwpFJ8o3psRNs8svpMGyCSAe8nmGcjQ0zZBWN2H6dZDnq+ABp3N3hdUmFeMrLtjOCTXD4yplUJIWceg==}@@ -9787,20 +10468,140 @@ packages:resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==}+resolution: {integrity: sha512-CTXd6rk/M3/ULNQj8FBqBWHYBVYybQ3VPBw0xGKFe3tuH7ytT6ACnvzpIQ3UZtB8yvUKC2cXn1a+x+5EVQLovA==}engines: {node: '>=14.14'}+ resolution: {integrity: sha512-7+P9eOOMnkIOmtxrBWTzWOBQlE7Nz/cBx9EYTX5hm8DzmZ/Fj9YWeUY2O9G+Q8YblScd1hyEkcmNcZMDj5U8Ug==}++ resolution: {integrity: sha512-yI+wDwj0FsgX7tyIQJR+EP60R64evMSixtGb9AzGWjJVKlF5tCet95KomfqGBg/aIAG1Dhd6wjCOQe5HbX/qLA==}+ engines: {node: '>=0.10'}+resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}os: [darwin]- resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}+ resolution: {integrity: sha512-xXhqz/fqbN7pLlshJb/B5L+vzMJOmWxoPj7+KMRTa/4A669hKeeCBPpRAiooMqjblWqIRSxLiO02/ds8ltvUPQ==}+ peerDependencies:+ '@mdx-js/mdx': '*'+ '@mixedbread/sdk': 0.x.x+ '@orama/core': 1.x.x+ '@oramacloud/client': 2.x.x+ '@tanstack/react-router': 1.x.x+ '@types/estree-jsx': '*'+ '@types/hast': '*'+ '@types/mdast': '*'+ '@types/react': '*'+ algoliasearch: 5.x.x+ flexsearch: '*'+ lucide-react: '*'+ next: 16.x.x+ react: ^19.2.0+ react-dom: ^19.2.0+ react-router: 7.x.x+ waku: '*'+ zod: 4.x.x+ peerDependenciesMeta:+ '@mdx-js/mdx':+ optional: true+ '@mixedbread/sdk':+ optional: true+ '@orama/core':+ optional: true+ '@oramacloud/client':+ optional: true+ '@tanstack/react-router':+ optional: true+ '@types/estree-jsx':+ optional: true+ '@types/hast':+ optional: true+ '@types/mdast':+ optional: true+ '@types/react':+ optional: true+ algoliasearch:+ optional: true+ flexsearch:+ optional: true+ lucide-react:+ optional: true+ next:+ optional: true+ react:+ optional: true+ react-dom:+ optional: true+ react-router:+ optional: true+ waku:+ optional: true+ zod:+ optional: true- resolution: {integrity: sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==}+ resolution: {integrity: sha512-R4WenrNQxSKi+QU46Q1cscVWi+S90dj3As4jdN+vgChO2o0TVOj+FFIe3onWM7mglhPj53NxZp/upP+t/ryekQ==}+ hasBin: true+ peerDependencies:+ '@types/mdast': '*'+ '@types/mdx': '*'+ '@types/react': '*'+ fumadocs-core: ^16.7.0+ mdast-util-directive: '*'+ next: ^15.3.0 || ^16.0.0+ react: ^19.2.0+ rolldown: '*'+ vite: 7.x.x || 8.x.x+ peerDependenciesMeta:+ '@types/mdast':+ optional: true+ '@types/mdx':+ optional: true+ '@types/react':+ optional: true+ mdast-util-directive:+ optional: true+ next:+ optional: true+ react:+ optional: true+ rolldown:+ optional: true+ vite:+ optional: true++ resolution: {integrity: sha512-0aSLdQ73EWoCmYcQYr2uNHlSB/s2fD+NMugtdZF3vC4lqs0MfyOtwnZPyYAskUnXNs6HECly/Hu6oY5JqmlkHg==}+ peerDependencies:+ '@takumi-rs/image-response': '*'+ '@types/mdx': '*'+ '@types/react': '*'+ fumadocs-core: 16.10.3+ next: 16.x.x+ react: ^19.2.0+ react-dom: ^19.2.0+ peerDependenciesMeta:+ '@takumi-rs/image-response':+ optional: true+ '@types/mdx':+ optional: true+ '@types/react':+ optional: true+ next:+ optional: true++ resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}++ resolution: {integrity: sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==}engines: {node: '>= 0.4'}@@ -9860,6 +10661,9 @@ packages:resolution: {integrity: sha512-7tN6rFgBlMgpBML5j8typ92BKFi2sFQvIdpAqLA2beia5avZDrMs0FLZiM5etShWq5irVyGcGMEA1jcDaK7A/Q==}+ resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==}+resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}engines: {node: '>= 6'}@@ -9897,6 +10701,19 @@ packages:resolution: {integrity: sha512-jcLLfkpoVGmH7/InMC/1hIvOPSUh38oJtGhvrOFGzioE1DZ+0YW16RgmOJhHiuWTvGiJQ9Z1Ik43JvkRPRvE+A==}+ resolution: {integrity: sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==}+ engines: {node: '>=6'}+ deprecated: this library is no longer supported++ resolution: {integrity: sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==}engines: {node: '>= 0.4'}@@ -9943,6 +10760,9 @@ packages:resolution: {integrity: sha512-3yTWghByc50aGS7JlGhk61SPenfE/p1oaFeNwkOOyrscaOkMGrcW9+Cy/QAIOBpZxP1yqDIzFMR0+Np0i0+usg==}+ resolution: {integrity: sha512-48+B/rJWAp0jamNbAAf9M7Uf//UVqAoMmgXhBdxTDJLGKY+LRnZ99qcG+Qjl5HfMpYNzS5v4EAwVEF34LeAj7w==}+resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}@@ -10361,6 +11181,10 @@ packages:resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==}hasBin: true+ resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}+ hasBin: true+resolution: {integrity: sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==}@@ -10420,6 +11244,10 @@ packages:resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}hasBin: true+ resolution: {integrity: sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==}+ hasBin: true+resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==}engines: {node: '>=6'}@@ -10446,6 +11274,9 @@ packages:resolution: {integrity: sha512-pR4yQ9DHz6itqswtHCm26mw45FSNfQ9rEQjosaZErhn5J3J2sIViQiz8rDaezjKAhFGpmsoczYVBgGHzFw/stA==}+ resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}+resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}@@ -10709,6 +11540,11 @@ packages:resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}engines: {node: '>=10'}+ resolution: {integrity: sha512-jhXLeC/7m0/tjL1nzMdKk6x256zWA6AtbhTVreHOiKPoeX2d6MK4FbyIQPpVq0E6iPWBisyy1TW+pEge/uMEuQ==}+ peerDependencies:+ react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0+resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}hasBin: true@@ -10722,6 +11558,13 @@ packages:resolution: {integrity: sha512-G/hncXrl4Qt7mauJEXSg3AcdYzmpkIITTNl5I+rH9sog5Yw0kK6vseJjCaPfOXqOqQuPUP89Rkhfz5kPS8ijtw==}+ resolution: {integrity: sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==}++ resolution: {integrity: sha512-o5vL7aDWatOTX8LzaS1WMoaoxIiLRQJuIKKe2wAw6IeULDHaqbiqiggmx+pKvZDb1Sj+pE46Sn1T7lCqfFtg1Q==}+ engines: {node: '>=16'}+resolution: {integrity: sha512-TxFAc76Jnhb2OUu+n3yz9RMu4CwGfaT788br6HhEDlvWfdeJcLUsxk1Hgw2yJio0OXsxv7pyIPmvECY7bMbluA==}@@ -10779,6 +11622,9 @@ packages:resolution: {integrity: sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==}+ resolution: {integrity: sha512-JfbYLAW7XnYTTbUsmpu0kdBUVe+yKVJZBItEjwyYJiDJuZ9w4eeaqks4HQO+R7objWgS2ymV60GYpI14Ug554w==}+resolution: {integrity: sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==}@@ -10862,12 +11708,30 @@ packages:resolution: {integrity: sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==}+ resolution: {integrity: sha512-dD/ADLJ1AeMvSAKBwO22zG22N4ybhe7kFIZ3LsDI0GlsNr2A3KYxb0LdC1u5rj4Nw+CHKY0RVdnHX8vj8ejm4Q==}++ resolution: {integrity: sha512-e5+q1DjMh62LZAJOnDraSSbDMvGJ8x3cbjygy2qFEi7HCeUT4BDKCvMozPozcD6WmOt6sVvYDNBKhFSz3kjOVQ==}++ resolution: {integrity: sha512-EpAiszsB3blw4Rpba7xTOUptcFeBFi+6PY8VnJ2hhimH+vCQDirWgsMpz7w1XcZE7LVrSAUGb9VJpG9ghlYvYQ==}++ resolution: {integrity: sha512-DJFl4ZqkErRpq/dAPyeWp15tGrcrrJho1hKK5uBS70BCtfrIFg81sqcTVu3Ta+KD1Tk5vAtBNElWxtAa+m8K9A==}++ resolution: {integrity: sha512-A873fJfhnJ2siZyUrJ31l34Uqwy4xIFmvPY1oj+Ean5PHcPBYzEsvqvWGaWcfEIr11O5Dlw3p2y0tZWpKHDejQ==}+resolution: {integrity: sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==}resolution: {integrity: sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==}+ resolution: {integrity: sha512-kQnEtA3vzucU2BkrIa8/VaSAsP+EJ3CKOvhMuJgOEGg9KDC6OAY6nSnNDVRiVNRqj7Y4SlSzcStaH/5jge8JdQ==}+resolution: {integrity: sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==}@@ -10898,6 +11762,9 @@ packages:resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==}+ resolution: {integrity: sha512-jmsiEIiZ1n7X1Rr5k8wVExBQCg5jy4UXVADItHmNk1zkwEVhBuIUKRu3fqv+hs4nxLISi2DQGlqIOGiFxgbfHg==}+resolution: {integrity: sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==}@@ -10984,6 +11851,13 @@ packages:resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==}engines: {node: '>= 18'}+ resolution: {integrity: sha512-xzB0UZFcW1UGS2xkXeDh39jzTP282lb3Vwp4QzCQYmkTn4ysaV5dBdbkOXmhkcE1TQlZebQlgTceaWvDr3oFgw==}+ engines: {node: '>=4'}+ deprecated: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.+ peerDependencies:+ mkdirp: '>=0.5.0'+resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==}engines: {node: '>=10'}@@ -11016,6 +11890,9 @@ packages:resolution: {integrity: sha512-pdkHLD8QYRp8VfiNLb8xIBJis1byQ9gPT3Jnh2jqfFtAsWUA3dEepDlsWe/xMpO8McV+VdpKVcp+E+TGJEtOoA==}+ resolution: {integrity: sha512-HxU3ZaBwNPVQUBQf1xxgq+7JrPNZvjLVxgbpEZL7RrWJnsxOf0/OM+yrHG9ogLQ31Do/r57Oz2gQWPK+6q62mg==}+resolution: {integrity: sha512-WOqZSqimX/OTNoFsz6Hk67r1omeUmtC2jH2x6Zy7/gNVnh98AOTrkINygXLR2xoef8k7iVDoKwk4PUcrxI+bog==}peerDependencies:@@ -11029,6 +11906,9 @@ packages:resolution: {integrity: sha512-eHWisygbiwVvf6PZ1vhaHCLamvkSbPIeAYxWUuL3a2PD/TROgE7FvfHWTIH4vMl798QLfMw15nRqIaRDXTlYRg==}+ resolution: {integrity: sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==}+resolution: {integrity: sha512-uYfXzeHlgThchzwz5Te47dlv5JOUC7OB4rjJ/7XTUgtBZD8CchMN8qEJ4ZVsUmTyYA44zjV0fBwsiktRuFnn+w==}peerDependencies:@@ -11043,6 +11923,20 @@ packages:react-dom:optional: true+ resolution: {integrity: sha512-yjrHUrBFW6kQvjJwRsoiPSAhC5tRwRqNGJWmiJ4CrGnbKp0V88AdzkhBmDoqIsIPfarOe0Uddd37Xq43/gIocA==}+ peerDependencies:+ '@emotion/is-prop-valid': '*'+ react: ^18.0.0 || ^19.0.0+ react-dom: ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@emotion/is-prop-valid':+ optional: true+ react:+ optional: true+ react-dom:+ optional: true+resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}@@ -11057,6 +11951,11 @@ packages:engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}hasBin: true+ resolution: {integrity: sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==}+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}+ hasBin: true+resolution: {integrity: sha512-ua3NDgISf6jdwezAheMOk4mbE1LXjm1DfMUDMuJf4AqxLFK3ccGpgWizwa5YV7Yz9EpXwEaWoRXSb/BnV0t5dQ==}engines: {node: ^18 || >=20}@@ -11081,6 +11980,12 @@ packages:resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}engines: {node: '>= 0.6'}+ resolution: {integrity: sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==}+ peerDependencies:+ react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc+ react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc+resolution: {integrity: sha512-9V3zV4oZFza3PVev5/poB9g0dEafVcgNyQ8eTRop8GvxZjV2G15FC5ARuG1eFD42QgeYkzJBJzHghNP8Ad9xtA==}engines: {node: '>=20.9.0'}@@ -11234,11 +12139,11 @@ packages:resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}engines: {node: '>=18'}- resolution: {integrity: sha512-8Unqkvk1RYc6yq2WBYRj4hdnsAxVze8i7iPfQr8e4uSP3tRv0rpZcbGUDvxfQQcdwHt/e9PrMvGCsa8OqG9X3w==}+ resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==}- resolution: {integrity: sha512-Zjygswjpsewa0NLTsiizVuMQZbp0MDyM6lIt66OxsF21npUDlzpHi1Mgb/qhQdkb+dWFTzJmFbEWdvZgRho8eQ==}+ resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==}resolution: {integrity: sha512-Pp6SCn7Q+T4LlEPq/AHJW+Y4B9Yzc7L8XvVlIf/XFEUhmbPqYd7bOW+fKKXl4d/uosDvrsoHYdIlrPJTLrtGYQ==}@@ -11370,6 +12275,9 @@ packages:resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}+ resolution: {integrity: sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==}+resolution: {integrity: sha512-V/mpyJAoTsN4cnP31vc0wfNA1+p20evqqnap0KLoRUN0Yk/p3wN52DOEsL4oBFcLdb76hlpKPtzJIgo67j/XLw==}@@ -11441,6 +12349,14 @@ packages:resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==}engines: {node: '>=4'}+ resolution: {integrity: sha512-5mvtVNse2Ml9zpFKkWBpGsTPwm3DKhs+c95prO/F6E7d6DN0FPqxs6LONpLNpyD7Iheb7QN4BbUoKJgo+DnkQA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-VFVaU1ysKakao68ktZm76PIdOhvEfoNNRaGkyLln9Os7r0/MCxqHjHyBM7dT3pgTiBybqiPtpqKfpENwdBp50Q==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==}engines: {node: '>= 6'}@@ -11517,6 +12433,10 @@ packages:resolution: {integrity: sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==}engines: {node: ^10 || ^12 || >=14}+ resolution: {integrity: sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==}+ engines: {node: ^10 || ^12 || >=14}+resolution: {integrity: sha512-7a70Nsot+EMX9fFU3064K/kdHWZqGVY+BADLyXc8Dfv+mTLLVl6JzJpPaCZ2kQL9gIJvKXSLMHhqdRRjwQeFtw==}engines: {node: ^10 || ^12 || >=14}@@ -11735,6 +12655,11 @@ packages:peerDependencies:react: ^18.3.1+ resolution: {integrity: sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==}+ peerDependencies:+ react: ^19.2.6+resolution: {integrity: sha512-QDuV76v3uKbHiH34SpwifZ+gOLi1+RdsCO1kl5vxMT4wW8R82+sthjvBw4th3NHF/XX6FBsqDYZVNN+pnhaw0g==}engines: {node: '>= 10.13'}@@ -11935,6 +12860,10 @@ packages:resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}@@ -11962,6 +12891,10 @@ packages:resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==}engines: {node: '>= 14.18.0'}+ resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==}+ engines: {node: '>= 20.19.0'}+resolution: {integrity: sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==}engines: {node: '>= 0.8.0'}@@ -11976,6 +12909,20 @@ packages:react: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ resolution: {integrity: sha512-8GtdyqaBcDfva+GUKDr3nev3VpKAhup1+RvkMvUxURHpW7QyIvk9F5wz7Vzo06CEMSilw6uArgRqhpiUcWp8ew==}++ resolution: {integrity: sha512-huSIy7VU2Z5OLv6oFLosQGGDqPqdO1iq6bWNAdhzMxSJP7RAso4fCZ1cKu8j9YHCZf3TPrq4dw3okhrylgcd7w==}+ peerDependencies:+ acorn: ^6.0.0 || ^7.0.0 || ^8.0.0++ resolution: {integrity: sha512-OYLsIGBB5Y5wjnSnQW6t3Xg7q3fQ7FWbw/vcXtORTnyaSFscOtABg+7Pnz6YZ6c27fG1/aN8CjfwoUEUIdwqWQ==}++ resolution: {integrity: sha512-cjwII1MdIIVloKvC9ErQ+OgAtwHBmcZ0Bg4ciz78FtbT8In39aAYbaA7zvxQ61xVMSPE8WxhLwLbhif4Js2C+g==}+resolution: {integrity: sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==}engines: {node: '>=4'}@@ -12013,12 +12960,18 @@ packages:resolution: {integrity: sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==}+ resolution: {integrity: sha512-lqA4rGUf1JmacCNWWZx0Wv1dHqMwxzsDWYMTowuplHF3xH0N/MmrZ/G3BDZnzAkRmxDadujCjaKM2hqYdCBOGw==}+resolution: {integrity: sha512-CsnhKNsyI8Tub6L4sm5ZFsme4puGfc6pYylvXo1AeqaGbjOYyzNv3qZPwvs0oMJ39eryyeOdmxwUIo94IpEhqg==}resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}+ resolution: {integrity: sha512-Pjj2IYlUY3+D8x00UJsIOg5BEvfMyeI+2uLPn9VO9Wg4MEtN/VTIq2NEJQfde9PnX15KgtHyl9S0BcTnWrIuWg==}+resolution: {integrity: sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==}@@ -12028,6 +12981,9 @@ packages:resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==}+ resolution: {integrity: sha512-Eht5w30ruCXgFmxVUSlNWQ9iiimq07URKeFS3hNc8cUWy1llX4KDWfyEDZRycMc+znsN9Ux5/tJ/BFdgdOwA3A==}+resolution: {integrity: sha512-caKfSz9rDeSKBQQnlJnVW3mbVdFgxgGWQKq1XlFokqjf+hQD5gxutLGTTY2A/x24UxVyJe9gH5fAkFI63ULw4A==}@@ -12154,6 +13110,12 @@ packages:resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}+ resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}++ resolution: {integrity: sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==}+resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==}@@ -12235,8 +13197,8 @@ packages:resolution: {integrity: sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-eAVKTMedR5ckPo4xne/PjYQYrU3qx78gtJZ+sHlXEg5IHhhoQhMfZVzetTYuaJS0L2Ef3AcCRzCHV8T0WI6nIQ==}+ resolution: {integrity: sha512-hjNax6o/ylDy9lefQEaSDtzaT3iVNtZ3WmpQnbuQNoG4xvnSKf2kSKbihZVO4JRG1TTMejs7CmNRYlWgAL66pQ==}engines: {node: '>=20'}@@ -12265,6 +13227,10 @@ packages:resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}engines: {node: '>=14'}+ resolution: {integrity: sha512-08MaTpxj9zGYUIe38tfELYkaHiGE1YgbrbXmTBf+GPxi5mEqLSORQqOXrP0QKPdaFuzEDSmW5o4xkbLlFhmdCw==}+ engines: {node: '>=0.12.18'}+resolution: {integrity: sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw==}@@ -12332,6 +13298,9 @@ packages:resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==}engines: {node: '>= 10.x'}+ resolution: {integrity: sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==}+resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==}@@ -12403,6 +13372,9 @@ packages:resolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw==}+resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==}engines: {node: '>=0.6.19'}@@ -12445,6 +13417,10 @@ packages:resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==}+ resolution: {integrity: sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==}engines: {node: '>=6'}@@ -12513,6 +13489,10 @@ packages:engines: {npm: '>=8'}hasBin: true+ resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==}+ engines: {node: '>=0.8.0'}+resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}engines: {node: '>=4'}@@ -12536,6 +13516,9 @@ packages:resolution: {integrity: sha512-fyW/pEfcQSiigd5SNn0nApUOxx0zB/dm6UDU/rEwc2c3sX2smWUNbapHv+QRqLGVp9GWX3THIa7MUGPo+YkDzQ==}+ resolution: {integrity: sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==}+resolution: {integrity: sha512-gobtvVcThB2Dxhy0EeYSS1RKQJ5baDFkamkhwBvzvevwX6L4XQfpZ3me9s25Ss1ecFVT5jPYJ50n+7xTBJG9WQ==}peerDependencies:@@ -12560,6 +13543,9 @@ packages:resolution: {integrity: sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==}+ resolution: {integrity: sha512-hk+TB1m+K8CYNrP6rjQaq/Y+4Zylwpa87mLYBKCunwnnQ9p+fHb7kmSfGqyEJoxF/O6CDyABWVFEafNSYKll+Q==}+resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==}engines: {node: '>=6'}@@ -12591,6 +13577,9 @@ packages:resolution: {integrity: sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==}engines: {node: '>=18'}+ resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}+resolution: {integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==}@@ -12610,10 +13599,18 @@ packages:resolution: {integrity: sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==}engines: {node: '>=18'}+ resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}+ engines: {node: '>=12.0.0'}+resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==}engines: {node: '>=14.0.0'}@@ -12791,9 +13788,15 @@ packages:resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==}+ resolution: {integrity: sha512-KaFVRjoqLyF6YXCbVLNad/eS4+OfPQQn2yOd7zF/h5T/CSL2v8NpN6a5TPvtbXthAGw5nG+PuTtq+DdIZr+cRQ==}+resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==}+ resolution: {integrity: sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==}+resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==}@@ -13186,6 +14189,9 @@ packages:resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==}+ resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==}+resolution: {integrity: sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==}engines: {node: '>=12.7.0'}@@ -14338,6 +15344,12 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ dependencies:+ '@floating-ui/dom': 1.7.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+'@floating-ui/[email protected]': {}'@formatjs/[email protected]':@@ -14366,6 +15378,18 @@ snapshots:dependencies:tslib: 2.8.1+ '@fuma-translate/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14++ optionalDependencies:+ '@tailwindcss/oxide': 4.3.1+ tailwindcss: 4.3.0+'@grpc/[email protected]':dependencies:'@grpc/proto-loader': 0.8.0@@ -14394,6 +15418,20 @@ snapshots:dependencies:react-hook-form: 7.75.0([email protected])+ '@httptoolkit/[email protected]([email protected])':+ dependencies:+ chalk: 1.1.3+ commander: 2.20.3+ debug: 2.6.9+ event-stream: 3.3.4+ form-data: 3.0.4+ fs-readfile-promise: 2.0.1+ fs-writefile-promise: 1.0.3([email protected])+ har-validator: 5.1.5+ transitivePeerDependencies:+ - mkdirp+ - supports-color+'@img/[email protected]':optional: true@@ -14673,11 +15711,11 @@ snapshots:'@lingui/babel-plugin-lingui-macro': 5.9.4([email protected])([email protected])babel-plugin-macros: 3.1.0- '@lingui/[email protected]([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@lingui/[email protected]([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@lingui/cli': 5.9.4([email protected])([email protected])'@lingui/conf': 5.9.4([email protected])- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- babel-plugin-macros- supports-color@@ -14688,6 +15726,36 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ '@mdx-js/[email protected]':+ dependencies:+ '@types/estree': 1.0.8+ '@types/estree-jsx': 1.0.5+ '@types/hast': 3.0.4+ '@types/mdx': 2.0.14+ acorn: 8.16.0+ collapse-white-space: 2.1.0+ devlop: 1.1.0+ estree-util-is-identifier-name: 3.0.0+ estree-util-scope: 1.0.0+ estree-walker: 3.0.3+ hast-util-to-jsx-runtime: 2.3.6+ markdown-extensions: 2.0.0+ recma-build-jsx: 1.0.0+ recma-jsx: 1.0.1([email protected])+ recma-stringify: 1.0.0+ rehype-recma: 1.0.0+ remark-mdx: 3.1.1+ remark-parse: 11.0.0+ remark-rehype: 11.1.2+ source-map: 0.7.6+ unified: 11.0.5+ unist-util-position-from-estree: 2.0.0+ unist-util-stringify-position: 4.0.0+ unist-util-visit: 5.1.0+ vfile: 6.0.3+ transitivePeerDependencies:+ - supports-color+'@messageformat/[email protected]':dependencies:moo: 0.5.3@@ -14874,8 +15942,7 @@ snapshots:'@tybys/wasm-util': 0.10.2optional: true- '@next/[email protected]':- optional: true+ '@next/[email protected]': {}'@next/[email protected]':optional: true@@ -15670,6 +16737,8 @@ snapshots:'@opentelemetry/api': 1.9.0'@opentelemetry/core': 2.6.1(@opentelemetry/[email protected])+ '@orama/[email protected]': {}+'@oxc-project/[email protected]': {}@@ -15823,6 +16892,8 @@ snapshots:'@radix-ui/[email protected]': {}+ '@radix-ui/[email protected]': {}+'@radix-ui/[email protected]':dependencies:'@babel/runtime': 7.29.2@@ -15831,6 +16902,8 @@ snapshots:'@radix-ui/[email protected]': {}+ '@radix-ui/[email protected]': {}+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -15848,6 +16921,32 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.4+ '@radix-ui/react-collapsible': 1.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -15857,6 +16956,15 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-context': 1.1.3(@types/[email protected])([email protected])@@ -15918,6 +17026,34 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.4+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.3.0(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])@@ -15947,6 +17083,18 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -15978,12 +17126,24 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 18.3.1optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+'@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.29.2@@ -16006,6 +17166,28 @@ snapshots:transitivePeerDependencies:- '@types/react'+ '@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@babel/runtime': 7.29.2+ '@radix-ui/primitive': 1.0.0+ '@radix-ui/react-compose-refs': 1.0.0([email protected])+ '@radix-ui/react-context': 1.0.0([email protected])+ '@radix-ui/react-dismissable-layer': 1.0.0([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.0.0([email protected])+ '@radix-ui/react-id': 1.0.0([email protected])+ '@radix-ui/react-slot': 1.0.0([email protected])+ '@radix-ui/react-use-controllable-state': 1.0.0([email protected])+ aria-hidden: 1.2.6+ react: 18.3.1+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.5.4(@types/[email protected])([email protected])+ transitivePeerDependencies:+ - '@types/react'+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -16028,12 +17210,62 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.4+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.3.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+dependencies:react: 18.3.1optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@babel/runtime': 7.29.2@@ -16045,6 +17277,17 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ dependencies:+ '@babel/runtime': 7.29.2+ '@radix-ui/primitive': 1.0.0+ '@radix-ui/react-compose-refs': 1.0.0([email protected])+ '@radix-ui/react-use-callback-ref': 1.0.0([email protected])+ '@radix-ui/react-use-escape-keydown': 1.0.0([email protected])+ react: 18.3.1+ react-dom: 19.2.6([email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -16058,6 +17301,32 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.4+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -16084,6 +17353,18 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@babel/runtime': 7.29.2@@ -16093,6 +17374,26 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ dependencies:+ '@babel/runtime': 7.29.2+ '@radix-ui/react-compose-refs': 1.0.0([email protected])+ '@radix-ui/react-use-callback-ref': 1.0.0([email protected])+ react: 18.3.1+ react-dom: 19.2.6([email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])@@ -16104,6 +17405,17 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -16141,6 +17453,20 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-primitive': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -16176,6 +17502,28 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.4+ '@radix-ui/react-collection': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -16199,6 +17547,52 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.4+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.3.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.3.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:@@ -16217,13 +17611,66 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])- dependencies:- '@babel/runtime': 7.29.2+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.1+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.2+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ '@babel/runtime': 7.29.2react: 18.3.1react-dom: 18.3.1([email protected])+ dependencies:+ '@babel/runtime': 7.29.2+ react: 18.3.1+ react-dom: 19.2.6([email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -16234,6 +17681,16 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+dependencies:'@babel/runtime': 7.29.2@@ -16242,6 +17699,14 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ dependencies:+ '@babel/runtime': 7.29.2+ '@radix-ui/react-compose-refs': 1.0.0([email protected])+ '@radix-ui/react-use-layout-effect': 1.0.0([email protected])+ react: 18.3.1+ react-dom: 19.2.6([email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])@@ -16262,6 +17727,25 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+dependencies:'@babel/runtime': 7.29.2@@ -16269,6 +17753,13 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ dependencies:+ '@babel/runtime': 7.29.2+ '@radix-ui/react-slot': 1.0.0([email protected])+ react: 18.3.1+ react-dom: 19.2.6([email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])@@ -16287,6 +17778,15 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-slot': 1.2.4(@types/[email protected])([email protected])@@ -16296,6 +17796,15 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.3.0(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-context': 1.1.3(@types/[email protected])([email protected])@@ -16341,6 +17850,23 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.4+ '@radix-ui/react-collection': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/number': 1.1.1@@ -16358,6 +17884,23 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.2+ '@radix-ui/primitive': 1.1.4+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/number': 1.1.1@@ -16435,6 +17978,13 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])@@ -16442,6 +17992,13 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -16473,6 +18030,22 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.4+ '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -16556,6 +18129,18 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+'@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.29.2@@ -16577,6 +18162,22 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-effect-event': 0.0.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])@@ -16584,6 +18185,20 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+'@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.29.2@@ -16597,6 +18212,20 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 18.3.1@@ -16621,12 +18250,30 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 18.3.1optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/rect': 1.1.1@@ -16634,6 +18281,20 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ '@radix-ui/rect': 1.1.1+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/rect': 1.1.2+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])@@ -16641,6 +18302,20 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -16650,8 +18325,19 @@ snapshots:'@types/react': 18.3.28'@types/react-dom': 18.3.7(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected]': {}+ '@radix-ui/[email protected]': {}+dependencies:@@ -17304,6 +18990,32 @@ snapshots:transitivePeerDependencies:- react-dom+ dependencies:+ '@react-email/body': 0.0.11([email protected])+ '@react-email/button': 0.2.0([email protected])+ '@react-email/code-block': 0.1.0([email protected])+ '@react-email/code-inline': 0.0.5([email protected])+ '@react-email/column': 0.0.13([email protected])+ '@react-email/container': 0.0.15([email protected])+ '@react-email/font': 0.0.9([email protected])+ '@react-email/head': 0.0.12([email protected])+ '@react-email/heading': 0.0.15([email protected])+ '@react-email/hr': 0.0.11([email protected])+ '@react-email/html': 0.0.11([email protected])+ '@react-email/img': 0.0.11([email protected])+ '@react-email/link': 0.0.12([email protected])+ '@react-email/markdown': 0.0.15([email protected])+ '@react-email/preview': 0.0.13([email protected])+ '@react-email/row': 0.0.12([email protected])+ '@react-email/section': 0.0.16([email protected])+ '@react-email/tailwind': 1.2.2([email protected])+ '@react-email/text': 0.1.5([email protected])+ react: 18.3.1+ transitivePeerDependencies:+ - react-dom+'@react-email/[email protected]([email protected])':dependencies:react: 18.3.1@@ -17345,12 +19057,20 @@ snapshots:dependencies:react: 18.3.1dependencies:html-to-text: 9.0.5js-beautify: 1.15.4react: 18.3.1- react-dom: 18.3.1([email protected])+ react-dom: 19.2.6([email protected])+ react-promise-suspense: 0.3.4++ dependencies:+ html-to-text: 9.0.5+ js-beautify: 1.15.4+ react: 19.2.6+ react-dom: 19.2.6([email protected])react-promise-suspense: 0.3.4@@ -17361,6 +19081,14 @@ snapshots:react-dom: 18.3.1([email protected])react-promise-suspense: 0.3.4+ dependencies:+ html-to-text: 9.0.5+ prettier: 3.8.1+ react: 18.3.1+ react-dom: 19.2.6([email protected])+ react-promise-suspense: 0.3.4+'@react-email/[email protected]([email protected])':dependencies:react: 18.3.1@@ -17525,7 +19253,7 @@ snapshots:'@react-pdf/primitives': 4.2.0'@react-pdf/stylesheet': 6.1.4- '@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:'@babel/core': 7.29.0'@babel/generator': 7.29.1@@ -17555,8 +19283,8 @@ snapshots:semver: 7.7.4tinyglobby: 0.2.16valibot: 1.3.1([email protected])- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- vite-node: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite-node: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected])([email protected])optionalDependencies:'@react-router/serve': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])typescript: 5.8.3@@ -17575,6 +19303,106 @@ snapshots:- tsx- yaml+ '@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/generator': 7.29.1+ '@babel/parser': 7.29.2+ '@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])+ '@babel/preset-typescript': 7.28.5(@babel/[email protected])+ '@babel/traverse': 7.29.0+ '@babel/types': 7.29.0+ '@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ '@remix-run/node-fetch-server': 0.13.1+ arg: 5.0.2+ babel-dead-code-elimination: 1.0.12+ chokidar: 4.0.3+ dedent: 1.7.2([email protected])+ es-module-lexer: 1.7.0+ exit-hook: 2.2.1+ isbot: 5.1.37+ jsesc: 3.0.2+ lodash: 4.17.21+ p-map: 7.0.4+ pathe: 1.1.2+ picocolors: 1.1.1+ pkg-types: 2.3.0+ prettier: 3.8.1+ react-refresh: 0.14.2+ semver: 7.7.4+ tinyglobby: 0.2.16+ valibot: 1.3.1([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite-node: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ optionalDependencies:+ '@react-router/serve': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ typescript: 5.8.3+ transitivePeerDependencies:+ - '@types/node'+ - babel-plugin-macros+ - jiti+ - less+ - lightningcss+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - supports-color+ - terser+ - tsx+ - yaml++ '@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/generator': 7.29.1+ '@babel/parser': 7.29.2+ '@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])+ '@babel/preset-typescript': 7.28.5(@babel/[email protected])+ '@babel/traverse': 7.29.0+ '@babel/types': 7.29.0+ '@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ '@remix-run/node-fetch-server': 0.13.1+ arg: 5.0.2+ babel-dead-code-elimination: 1.0.12+ chokidar: 4.0.3+ dedent: 1.7.2([email protected])+ es-module-lexer: 1.7.0+ exit-hook: 2.2.1+ isbot: 5.1.37+ jsesc: 3.0.2+ lodash: 4.17.21+ p-map: 7.0.4+ pathe: 1.1.2+ picocolors: 1.1.1+ pkg-types: 2.3.0+ prettier: 3.8.1+ react-refresh: 0.14.2+ semver: 7.7.4+ tinyglobby: 0.2.16+ valibot: 1.3.1([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite-node: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ optionalDependencies:+ '@react-router/serve': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ typescript: 5.8.3+ transitivePeerDependencies:+ - '@types/node'+ - babel-plugin-macros+ - jiti+ - less+ - lightningcss+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - supports-color+ - terser+ - tsx+ - yaml+'@react-router/[email protected]([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])':dependencies:'@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])@@ -17583,9 +19411,27 @@ snapshots:optionalDependencies:typescript: 5.8.3- '@react-router/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':+ '@react-router/[email protected]([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])':+ dependencies:+ '@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ express: 4.22.1+ optionalDependencies:+ typescript: 5.8.3+ optional: true++ '@react-router/[email protected]([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])':+ dependencies:+ '@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ express: 4.22.1+ optionalDependencies:+ typescript: 5.8.3+ optional: true++ '@react-router/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])minimatch: 9.0.9optionalDependencies:typescript: 5.8.3@@ -17597,9 +19443,29 @@ snapshots:optionalDependencies:typescript: 5.8.3- '@react-router/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':+ '@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@mjackson/node-fetch-server': 0.2.0+ optionalDependencies:+ typescript: 5.8.3++ '@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected])':+ dependencies:+ '@mjackson/node-fetch-server': 0.2.0+ optionalDependencies:+ typescript: 5.8.3++ '@react-router/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':+ dependencies:+ '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ optionalDependencies:+ typescript: 5.8.3++ '@react-router/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':+ dependencies:+ '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])optionalDependencies:typescript: 5.8.3@@ -17618,6 +19484,38 @@ snapshots:- supports-color- typescript+ '@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected])':+ dependencies:+ '@mjackson/node-fetch-server': 0.2.0+ '@react-router/express': 7.15.1([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])+ '@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ compression: 1.8.1+ express: 4.22.1+ get-port: 5.1.1+ morgan: 1.10.1+ source-map-support: 0.5.21+ transitivePeerDependencies:+ - supports-color+ - typescript+ optional: true++ '@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected])':+ dependencies:+ '@mjackson/node-fetch-server': 0.2.0+ '@react-router/express': 7.15.1([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])+ '@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ compression: 1.8.1+ express: 4.22.1+ get-port: 5.1.1+ morgan: 1.10.1+ source-map-support: 0.5.21+ transitivePeerDependencies:+ - supports-color+ - typescript+ optional: true+'@react-stately/[email protected]([email protected])':dependencies:'@internationalized/date': 3.12.0@@ -18160,32 +20058,36 @@ snapshots:domhandler: 5.0.3selderee: 0.11.0- '@shikijs/[email protected]':+ '@shikijs/[email protected]':dependencies:- '@shikijs/primitive': 4.0.2- '@shikijs/types': 4.0.2+ '@shikijs/primitive': 4.2.0+ '@shikijs/types': 4.2.0'@shikijs/vscode-textmate': 10.0.2'@types/hast': 3.0.4hast-util-to-html: 9.0.5- '@shikijs/[email protected]':+ '@shikijs/[email protected]':dependencies:- '@shikijs/types': 4.0.2+ '@shikijs/types': 4.2.0'@shikijs/vscode-textmate': 10.0.2- oniguruma-to-es: 4.3.5+ oniguruma-to-es: 4.3.6- '@shikijs/[email protected]':+ '@shikijs/[email protected]':dependencies:- '@shikijs/types': 4.0.2+ '@shikijs/types': 4.2.0'@shikijs/vscode-textmate': 10.0.2'@shikijs/[email protected]':dependencies:'@shikijs/types': 4.0.2- '@shikijs/[email protected]':+ '@shikijs/[email protected]':dependencies:- '@shikijs/types': 4.0.2+ '@shikijs/types': 4.2.0++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.2.0'@shikijs/vscode-textmate': 10.0.2'@types/hast': 3.0.4@@ -18193,11 +20095,20 @@ snapshots:dependencies:'@shikijs/types': 4.0.2+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.2.0+'@shikijs/[email protected]':dependencies:'@shikijs/vscode-textmate': 10.0.2'@types/hast': 3.0.4+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.4+'@shikijs/[email protected]': {}'@sideway/[email protected]':@@ -18637,7 +20548,6 @@ snapshots:'@swc/[email protected]':dependencies:tslib: 2.8.1- optional: true'@swc/[email protected]':dependencies:@@ -18653,42 +20563,88 @@ snapshots:source-map-js: 1.2.1tailwindcss: 4.3.0+ '@tailwindcss/[email protected]':+ dependencies:+ '@jridgewell/remapping': 2.3.5+ enhanced-resolve: 5.21.6+ jiti: 2.7.0+ lightningcss: 1.32.0+ magic-string: 0.30.21+ source-map-js: 1.2.1+ tailwindcss: 4.3.1+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optionalDependencies:'@tailwindcss/oxide-android-arm64': 4.3.0@@ -18704,17 +20660,40 @@ snapshots:'@tailwindcss/oxide-win32-arm64-msvc': 4.3.0'@tailwindcss/oxide-win32-x64-msvc': 4.3.0+ '@tailwindcss/[email protected]':+ optionalDependencies:+ '@tailwindcss/oxide-android-arm64': 4.3.1+ '@tailwindcss/oxide-darwin-arm64': 4.3.1+ '@tailwindcss/oxide-darwin-x64': 4.3.1+ '@tailwindcss/oxide-freebsd-x64': 4.3.1+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.1+ '@tailwindcss/oxide-linux-arm64-gnu': 4.3.1+ '@tailwindcss/oxide-linux-arm64-musl': 4.3.1+ '@tailwindcss/oxide-linux-x64-gnu': 4.3.1+ '@tailwindcss/oxide-linux-x64-musl': 4.3.1+ '@tailwindcss/oxide-wasm32-wasi': 4.3.1+ '@tailwindcss/oxide-win32-arm64-msvc': 4.3.1+ '@tailwindcss/oxide-win32-x64-msvc': 4.3.1++ '@tailwindcss/[email protected]':+ dependencies:+ '@alloc/quick-lru': 5.2.0+ '@tailwindcss/node': 4.3.1+ '@tailwindcss/oxide': 4.3.1+ postcss: 8.5.15+ tailwindcss: 4.3.1+'@tailwindcss/[email protected]([email protected])':dependencies:postcss-selector-parser: 6.0.10tailwindcss: 4.3.0- '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@tailwindcss/node': 4.3.0'@tailwindcss/oxide': 4.3.0tailwindcss: 4.3.0- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])'@tanstack/[email protected]': {}@@ -18735,6 +20714,12 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ dependencies:+ '@tanstack/virtual-core': 3.13.23+ react: 18.3.1+ react-dom: 19.2.6([email protected])+'@tanstack/[email protected]': {}'@tanstack/[email protected]': {}@@ -18957,6 +20942,18 @@ snapshots:react-dom: 18.3.1([email protected])use-sync-external-store: 1.6.0([email protected])+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@tiptap/core': 2.27.2(@tiptap/[email protected])+ '@tiptap/extension-bubble-menu': 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-floating-menu': 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/pm': 2.27.2+ '@types/use-sync-external-store': 0.0.6+ fast-deep-equal: 3.1.3+ react: 18.3.1+ react-dom: 19.2.6([email protected])+ use-sync-external-store: 1.6.0([email protected])+'@tiptap/[email protected]':dependencies:'@tiptap/core': 2.27.2(@tiptap/[email protected])@@ -19322,6 +21319,8 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:'@types/node': 22.19.7@@ -19389,12 +21388,16 @@ snapshots:'@types/[email protected]':dependencies:- '@types/react': 18.3.28+ '@types/react': 19.2.14'@types/[email protected](@types/[email protected])':dependencies:'@types/react': 18.3.28+ '@types/[email protected](@types/[email protected])':+ dependencies:+ '@types/react': 19.2.14+'@types/[email protected](@types/[email protected])':dependencies:'@types/react': 18.3.28@@ -19405,13 +21408,17 @@ snapshots:'@types/[email protected]':dependencies:- '@types/react': 18.3.28+ '@types/react': 19.2.14'@types/[email protected]':dependencies:'@types/prop-types': 15.7.15csstype: 3.2.3+ '@types/[email protected]':+ dependencies:+ csstype: 3.2.3+'@types/[email protected]': {}'@types/[email protected]':@@ -19502,11 +21509,16 @@ snapshots:next: 16.2.3(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])react: 18.3.1+ '@vercel/[email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':+ optionalDependencies:+ next: 16.2.3(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])+ react: 18.3.1+'@vercel/[email protected]': {}- '@vercel/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])':+ '@vercel/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])'@vercel/static-config': 3.2.0isbot: 5.1.37@@ -19514,6 +21526,16 @@ snapshots:react-dom: 18.3.1([email protected])ts-morph: 12.0.0+ '@vercel/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ '@vercel/static-config': 3.2.0+ isbot: 5.1.37+ react: 18.3.1+ react-dom: 19.2.6([email protected])+ ts-morph: 12.0.0+'@vercel/[email protected]':dependencies:ajv: 8.6.3@@ -19527,7 +21549,7 @@ snapshots:'@visx/[email protected]([email protected])':dependencies:- '@types/react': 18.3.28+ '@types/react': 19.2.14classnames: 2.5.1prop-types: 15.8.1react: 18.3.1@@ -19536,7 +21558,7 @@ snapshots:dependencies:'@juggle/resize-observer': 3.4.0'@types/lodash': 4.17.24- '@types/react': 18.3.28+ '@types/react': 19.2.14lodash: 4.17.21prop-types: 15.8.1react: 18.3.1@@ -19544,7 +21566,7 @@ snapshots:'@visx/[email protected]([email protected])':dependencies:'@types/lodash': 4.17.24- '@types/react': 18.3.28+ '@types/react': 19.2.14lodash: 4.18.1prop-types: 15.8.1react: 18.3.1@@ -19558,7 +21580,7 @@ snapshots:'@types/d3-path': 1.0.11'@types/d3-shape': 1.3.12'@types/lodash': 4.17.24- '@types/react': 18.3.28+ '@types/react': 19.2.14'@visx/curve': 3.12.0'@visx/group': 3.12.0([email protected])'@visx/scale': 3.12.0@@ -19572,7 +21594,7 @@ snapshots:'@visx/[email protected]([email protected])':dependencies:'@types/lodash': 4.17.24- '@types/react': 18.3.28+ '@types/react': 19.2.14classnames: 2.5.1lodash: 4.18.1prop-types: 15.8.1@@ -19610,37 +21632,29 @@ snapshots:chai: 6.2.2tinyrainbow: 3.1.0- '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':- dependencies:- '@vitest/spy': 4.1.6- estree-walker: 3.0.3- magic-string: 0.30.21- optionalDependencies:- vite: 7.3.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])-- '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 4.1.6estree-walker: 3.0.3magic-string: 0.30.21optionalDependencies:- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 4.1.6estree-walker: 3.0.3magic-string: 0.30.21optionalDependencies:- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 4.1.6estree-walker: 3.0.3magic-string: 0.30.21optionalDependencies:- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])'@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:@@ -19650,13 +21664,13 @@ snapshots:optionalDependencies:vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 4.1.6estree-walker: 3.0.3magic-string: 0.30.21optionalDependencies:- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])'@vitest/[email protected]':dependencies:@@ -19725,6 +21739,10 @@ snapshots:dependencies:acorn: 8.16.0+ dependencies:+ acorn: 8.16.0+@@ -19745,6 +21763,13 @@ snapshots:optionalDependencies:ajv: 8.18.0+ dependencies:+ fast-deep-equal: 3.1.3+ fast-json-stable-stringify: 2.1.0+ json-schema-traverse: 0.4.1+ uri-js: 4.4.1+dependencies:fast-deep-equal: 3.1.3@@ -19763,12 +21788,16 @@ snapshots:dependencies:environment: 1.1.0+ [email protected]: {}++ [email protected]: {}+dependencies:color-convert: 1.9.3@@ -19827,6 +21856,8 @@ snapshots:+ [email protected]: {}+@@ -20022,6 +22053,14 @@ snapshots:+ dependencies:+ ansi-styles: 2.2.1+ escape-string-regexp: 1.0.5+ has-ansi: 2.0.0+ strip-ansi: 3.0.1+ supports-color: 2.0.0+dependencies:ansi-styles: 3.2.1@@ -20069,6 +22108,10 @@ snapshots:dependencies:readdirp: 4.1.2+ dependencies:+ readdirp: 5.0.0+@@ -20112,8 +22155,7 @@ snapshots:slice-ansi: 8.0.0string-width: 8.2.0- optional: true+ [email protected]: {}dependencies:@@ -20140,12 +22182,23 @@ snapshots:transitivePeerDependencies:- '@types/react'+ [email protected](@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/react-dialog': 1.0.0(@types/[email protected])([email protected]([email protected]))([email protected])+ command-score: 0.1.2+ react: 18.3.1+ react-dom: 19.2.6([email protected])+ transitivePeerDependencies:+ - '@types/react'++ [email protected]: {}+dependencies:color-name: 1.1.3@@ -20181,6 +22234,8 @@ snapshots:+ [email protected]: {}+@@ -20201,6 +22256,8 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}+@@ -20642,6 +22699,8 @@ snapshots:es-errors: 1.3.0gopd: 1.2.0+ [email protected]: {}+@@ -20686,6 +22745,11 @@ snapshots:graceful-fs: 4.2.11tapable: 2.3.3+ dependencies:+ graceful-fs: 4.2.11+ tapable: 2.3.3+@@ -20790,6 +22854,20 @@ snapshots:is-date-object: 1.1.0is-symbol: 1.1.1+ dependencies:+ '@types/estree-jsx': 1.0.5+ devlop: 1.1.0+ estree-util-visit: 2.0.0+ unist-util-position-from-estree: 2.0.0++ dependencies:+ '@types/estree-jsx': 1.0.5+ acorn: 8.16.0+ esast-util-from-estree: 2.0.0+ vfile-message: 4.0.3+optionalDependencies:'@esbuild/aix-ppc64': 0.25.12@@ -20876,7 +22954,6 @@ snapshots:'@esbuild/win32-arm64': 0.28.0'@esbuild/win32-ia32': 0.28.0'@esbuild/win32-x64': 0.28.0- optional: true@@ -20891,14 +22968,55 @@ snapshots:optional: true+ dependencies:+ '@types/estree': 1.0.8++ dependencies:+ '@types/estree-jsx': 1.0.5+ devlop: 1.1.0+ estree-util-is-identifier-name: 3.0.0+ estree-walker: 3.0.3++ dependencies:+ '@types/estree': 1.0.8+ devlop: 1.1.0++ dependencies:+ '@types/estree-jsx': 1.0.5+ astring: 1.9.0+ source-map: 0.7.6++ dependencies:+ '@types/estree': 1.0.8++ dependencies:+ '@types/estree-jsx': 1.0.5+ '@types/unist': 3.0.3+dependencies:'@types/estree': 1.0.8+ dependencies:+ duplexer: 0.1.2+ from: 0.1.7+ map-stream: 0.1.0+ pause-stream: 0.0.11+ split: 0.3.3+ stream-combiner: 0.0.4+ through: 2.3.8+@@ -21019,6 +23137,8 @@ snapshots:merge2: 1.4.1micromatch: 4.0.8+ [email protected]: {}+@@ -21131,6 +23251,14 @@ snapshots:cross-spawn: 7.0.6signal-exit: 4.1.0+ dependencies:+ asynckit: 0.4.0+ combined-stream: 1.0.8+ es-set-tostringtag: 2.1.0+ hasown: 2.0.2+ mime-types: 2.1.35+dependencies:asynckit: 0.4.0@@ -21159,6 +23287,16 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ motion-dom: 11.18.1+ motion-utils: 11.18.1+ tslib: 2.8.1+ optionalDependencies:+ '@emotion/is-prop-valid': 1.4.0+ react: 18.3.1+ react-dom: 19.2.6([email protected])+[email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):dependencies:motion-dom: 12.38.0@@ -21169,21 +23307,154 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ motion-dom: 12.38.0+ motion-utils: 12.36.0+ tslib: 2.8.1+ optionalDependencies:+ '@emotion/is-prop-valid': 1.4.0+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ motion-dom: 12.40.0+ motion-utils: 12.39.0+ tslib: 2.8.1+ optionalDependencies:+ '@emotion/is-prop-valid': 1.4.0+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ [email protected]: {}+dependencies:graceful-fs: 4.2.11jsonfile: 6.2.0universalify: 2.0.1+ dependencies:+ graceful-fs: 4.2.11++ dependencies:+ mkdirp-promise: 1.1.0([email protected])+ pinkie-promise: 1.0.0+ transitivePeerDependencies:+ - mkdirp+optional: true+ [email protected](@mdx-js/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]):+ dependencies:+ '@orama/orama': 3.1.18+ estree-util-value-to-estree: 3.5.0+ github-slugger: 2.0.0+ hast-util-to-estree: 3.1.3+ hast-util-to-jsx-runtime: 2.3.6+ js-yaml: 4.2.0+ mdast-util-mdx: 3.0.0+ mdast-util-to-markdown: 2.1.2+ remark: 15.0.1+ remark-gfm: 4.0.1+ remark-rehype: 11.1.2+ scroll-into-view-if-needed: 3.1.0+ shiki: 4.2.0+ tinyglobby: 0.2.17+ unified: 11.0.5+ unist-util-visit: 5.1.0+ vfile: 6.0.3+ optionalDependencies:+ '@mdx-js/mdx': 3.1.1+ '@types/estree-jsx': 1.0.5+ '@types/hast': 3.0.4+ '@types/mdast': 4.0.4+ '@types/react': 19.2.14+ lucide-react: 1.20.0([email protected])+ next: 16.2.3(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ zod: 4.3.6+ transitivePeerDependencies:+ - supports-color++ [email protected](@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected](@mdx-js/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ dependencies:+ '@mdx-js/mdx': 3.1.1+ '@standard-schema/spec': 1.1.0+ chokidar: 5.0.0+ esbuild: 0.28.0+ estree-util-value-to-estree: 3.5.0+ fumadocs-core: 16.10.3(@mdx-js/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])+ js-yaml: 4.2.0+ mdast-util-mdx: 3.0.0+ picocolors: 1.1.1+ picomatch: 4.0.4+ tinyexec: 1.2.4+ tinyglobby: 0.2.17+ unified: 11.0.5+ unist-util-remove-position: 5.0.0+ unist-util-visit: 5.1.0+ vfile: 6.0.3+ zod: 4.4.3+ optionalDependencies:+ '@types/mdast': 4.0.4+ '@types/mdx': 2.0.14+ '@types/react': 19.2.14+ next: 16.2.3(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - supports-color++ [email protected](@emotion/[email protected])(@tailwindcss/[email protected])(@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected](@mdx-js/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected]):+ dependencies:+ '@fuma-translate/react': 1.0.2(@types/[email protected])([email protected]([email protected]))([email protected])+ '@fumadocs/tailwind': 0.0.5(@tailwindcss/[email protected])([email protected])+ '@radix-ui/react-accordion': 1.2.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collapsible': 1.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog': 1.1.17(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-navigation-menu': 1.2.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover': 1.1.17(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-scroll-area': 1.2.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.3.0(@types/[email protected])([email protected])+ '@radix-ui/react-tabs': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ class-variance-authority: 0.7.1+ fumadocs-core: 16.10.3(@mdx-js/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])+ lucide-react: 1.20.0([email protected])+ motion: 12.40.0(@emotion/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ rehype-raw: 7.0.0+ scroll-into-view-if-needed: 3.1.0+ shiki: 4.2.0+ tailwind-merge: 3.6.0+ unist-util-visit: 5.1.0+ optionalDependencies:+ '@types/mdx': 2.0.14+ '@types/react': 19.2.14+ next: 16.2.3(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])+ transitivePeerDependencies:+ - '@emotion/is-prop-valid'+ - '@tailwindcss/oxide'+ - '@types/react-dom'+ - tailwindcss+@@ -21260,6 +23531,8 @@ snapshots:dependencies:resolve-pkg-maps: 1.0.0+ [email protected]: {}+dependencies:is-glob: 4.0.3@@ -21301,6 +23574,17 @@ snapshots:dependencies:lodash: 4.17.21+ [email protected]: {}++ dependencies:+ ajv: 6.15.0+ har-schema: 2.0.0++ dependencies:+ ansi-regex: 2.1.1+@@ -21367,6 +23651,27 @@ snapshots:'@ungap/structured-clone': 1.3.0unist-util-position: 5.0.0+ dependencies:+ '@types/estree': 1.0.8+ '@types/estree-jsx': 1.0.5+ '@types/hast': 3.0.4+ comma-separated-tokens: 2.0.3+ devlop: 1.1.0+ estree-util-attach-comments: 3.0.0+ estree-util-is-identifier-name: 3.0.0+ hast-util-whitespace: 3.0.0+ mdast-util-mdx-expression: 2.0.1+ mdast-util-mdx-jsx: 3.2.0+ mdast-util-mdxjs-esm: 2.0.1+ property-information: 7.1.0+ space-separated-tokens: 2.0.2+ style-to-js: 1.1.21+ unist-util-position: 5.0.0+ zwitch: 2.0.4+ transitivePeerDependencies:+ - supports-color+dependencies:'@types/hast': 3.0.4@@ -21571,7 +23876,7 @@ snapshots:- encoding- supports-color- [email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]):+ [email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]):dependencies:'@bufbuild/protobuf': 2.11.0'@inngest/ai': 0.1.7@@ -21602,7 +23907,45 @@ snapshots:optionalDependencies:express: 5.2.1hono: 4.12.14- next: 16.2.3(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])+ next: 16.2.3(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])+ typescript: 5.8.3+ transitivePeerDependencies:+ - '@opentelemetry/core'+ - encoding+ - supports-color++ [email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]):+ dependencies:+ '@bufbuild/protobuf': 2.11.0+ '@inngest/ai': 0.1.7+ '@jpwilliams/waitgroup': 2.1.1+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/auto-instrumentations-node': 0.72.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))+ '@opentelemetry/context-async-hooks': 2.6.1(@opentelemetry/[email protected])+ '@opentelemetry/exporter-trace-otlp-http': 0.214.0(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.214.0(@opentelemetry/[email protected])+ '@opentelemetry/resources': 2.6.1(@opentelemetry/[email protected])+ '@opentelemetry/sdk-trace-base': 2.6.1(@opentelemetry/[email protected])+ '@standard-schema/spec': 1.1.0+ '@traceloop/instrumentation-anthropic': 0.20.0+ '@types/debug': 4.1.13+ '@types/ms': 2.1.0+ canonicalize: 1.0.8+ chalk: 4.1.2+ cross-fetch: 4.1.0+ debug: 4.4.3([email protected])+ hash.js: 1.1.7+ json-stringify-safe: 5.0.1+ ms: 2.1.3+ serialize-error-cjs: 0.1.4+ strip-ansi: 5.2.0+ temporal-polyfill: 0.2.5+ ulid: 2.4.0+ zod: 3.25.76+ optionalDependencies:+ express: 5.2.1+ hono: 4.12.14+ next: 16.2.3(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])typescript: 5.8.3transitivePeerDependencies:- '@opentelemetry/core'@@ -21866,6 +24209,8 @@ snapshots:+ [email protected]: {}+dependencies:'@hapi/hoek': 9.3.0@@ -21911,6 +24256,10 @@ snapshots:dependencies:argparse: 2.0.1+ dependencies:+ argparse: 2.0.1+@@ -21933,6 +24282,8 @@ snapshots:'@types/json-schema': 7.0.15ts-toolbelt: 6.15.5+ [email protected]: {}+@@ -22176,6 +24527,10 @@ snapshots:dependencies:yallist: 4.0.0+ dependencies:+ react: 19.2.6+@@ -22186,6 +24541,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+@@ -22319,6 +24678,16 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ mdast-util-from-markdown: 2.0.3+ mdast-util-mdx-expression: 2.0.1+ mdast-util-mdx-jsx: 3.2.0+ mdast-util-mdxjs-esm: 2.0.1+ mdast-util-to-markdown: 2.1.2+ transitivePeerDependencies:+ - supports-color+dependencies:'@types/estree-jsx': 1.0.5@@ -22381,6 +24750,10 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ [email protected](@types/[email protected]):+ optionalDependencies:+ '@types/react': 19.2.14+@@ -22464,6 +24837,57 @@ snapshots:micromark-util-combine-extensions: 2.0.1micromark-util-types: 2.0.2+ dependencies:+ '@types/estree': 1.0.8+ devlop: 1.1.0+ micromark-factory-mdx-expression: 2.0.3+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-events-to-acorn: 2.0.3+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ '@types/estree': 1.0.8+ devlop: 1.1.0+ estree-util-is-identifier-name: 3.0.0+ micromark-factory-mdx-expression: 2.0.3+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-events-to-acorn: 2.0.3+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2+ vfile-message: 4.0.3++ dependencies:+ micromark-util-types: 2.0.2++ dependencies:+ '@types/estree': 1.0.8+ devlop: 1.1.0+ micromark-core-commonmark: 2.0.3+ micromark-util-character: 2.1.1+ micromark-util-events-to-acorn: 2.0.3+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2+ unist-util-position-from-estree: 2.0.0+ vfile-message: 4.0.3++ dependencies:+ acorn: 8.16.0+ acorn-jsx: 5.3.2([email protected])+ micromark-extension-mdx-expression: 3.0.1+ micromark-extension-mdx-jsx: 3.0.2+ micromark-extension-mdx-md: 2.0.0+ micromark-extension-mdxjs-esm: 3.0.0+ micromark-util-combine-extensions: 2.0.1+ micromark-util-types: 2.0.2+dependencies:micromark-util-character: 2.1.1@@ -22477,6 +24901,18 @@ snapshots:micromark-util-symbol: 2.0.1micromark-util-types: 2.0.2+ dependencies:+ '@types/estree': 1.0.8+ devlop: 1.1.0+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-events-to-acorn: 2.0.3+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2+ unist-util-position-from-estree: 2.0.0+ vfile-message: 4.0.3+dependencies:micromark-util-character: 2.1.1@@ -22529,6 +24965,16 @@ snapshots:+ dependencies:+ '@types/estree': 1.0.8+ '@types/unist': 3.0.3+ devlop: 1.1.0+ estree-util-visit: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2+ vfile-message: 4.0.3+@@ -22625,6 +25071,10 @@ snapshots:dependencies:minipass: 7.1.3+ dependencies:+ mkdirp: 3.0.1+@@ -22660,6 +25110,10 @@ snapshots:dependencies:motion-utils: 12.36.0+ dependencies:+ motion-utils: 12.39.0+[email protected]([email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:framer-motion: 11.18.2(@emotion/[email protected])([email protected]([email protected]))([email protected])@@ -22670,6 +25124,8 @@ snapshots:+ [email protected]: {}+[email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):dependencies:framer-motion: 12.38.0(@emotion/[email protected])([email protected]([email protected]))([email protected])@@ -22679,6 +25135,15 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ framer-motion: 12.40.0(@emotion/[email protected])([email protected]([email protected]))([email protected])+ tslib: 2.8.1+ optionalDependencies:+ '@emotion/is-prop-valid': 1.4.0+ react: 19.2.6+ react-dom: 19.2.6([email protected])+@@ -22691,6 +25156,8 @@ snapshots:+ [email protected]: {}+@@ -22703,6 +25170,11 @@ snapshots:+ dependencies:+ react: 19.2.6+ react-dom: 19.2.6([email protected])+[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 16.2.3@@ -22729,6 +25201,57 @@ snapshots:- babel-plugin-macrosoptional: true+ [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@next/env': 16.2.3+ '@swc/helpers': 0.5.15+ baseline-browser-mapping: 2.10.17+ caniuse-lite: 1.0.30001787+ postcss: 8.4.31+ react: 18.3.1+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@next/swc-darwin-arm64': 16.2.3+ '@next/swc-darwin-x64': 16.2.3+ '@next/swc-linux-arm64-gnu': 16.2.3+ '@next/swc-linux-arm64-musl': 16.2.3+ '@next/swc-linux-x64-gnu': 16.2.3+ '@next/swc-linux-x64-musl': 16.2.3+ '@next/swc-win32-arm64-msvc': 16.2.3+ '@next/swc-win32-x64-msvc': 16.2.3+ '@opentelemetry/api': 1.9.0+ sharp: 0.34.5+ transitivePeerDependencies:+ - '@babel/core'+ - babel-plugin-macros+ optional: true++ [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@next/env': 16.2.3+ '@swc/helpers': 0.5.15+ baseline-browser-mapping: 2.10.17+ caniuse-lite: 1.0.30001787+ postcss: 8.4.31+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@next/swc-darwin-arm64': 16.2.3+ '@next/swc-darwin-x64': 16.2.3+ '@next/swc-linux-arm64-gnu': 16.2.3+ '@next/swc-linux-arm64-musl': 16.2.3+ '@next/swc-linux-x64-gnu': 16.2.3+ '@next/swc-linux-x64-musl': 16.2.3+ '@next/swc-win32-arm64-msvc': 16.2.3+ '@next/swc-win32-x64-msvc': 16.2.3+ '@opentelemetry/api': 1.9.0+ sharp: 0.34.5+ transitivePeerDependencies:+ - '@babel/core'+ - babel-plugin-macros+@@ -22855,11 +25378,11 @@ snapshots:dependencies:mimic-function: 5.0.1- [email protected]: {}+ [email protected]: {}dependencies:- oniguruma-parser: 0.12.1+ oniguruma-parser: 0.12.2regex: 6.1.0regex-recursion: 6.0.2@@ -23001,6 +25524,10 @@ snapshots:+ dependencies:+ through: 2.3.8+dependencies:'@pdf-lib/standard-fonts': 1.0.0@@ -23063,6 +25590,12 @@ snapshots:+ dependencies:+ pinkie: 1.0.0++ [email protected]: {}+@@ -23104,12 +25637,12 @@ snapshots:tsx: 4.21.0yaml: 2.8.3dependencies:lilconfig: 3.1.3optionalDependencies:- jiti: 2.6.1- postcss: 8.5.14+ jiti: 2.7.0+ postcss: 8.5.15tsx: 4.21.0yaml: 2.8.3@@ -23135,7 +25668,6 @@ snapshots:nanoid: 3.3.11picocolors: 1.1.1source-map-js: 1.2.1- optional: truedependencies:@@ -23143,6 +25675,12 @@ snapshots:picocolors: 1.1.1source-map-js: 1.2.1+ dependencies:+ nanoid: 3.3.12+ picocolors: 1.1.1+ source-map-js: 1.2.1+dependencies:nanoid: 3.3.11@@ -23197,6 +25735,12 @@ snapshots:clsx: 2.1.1react: 18.3.1+ dependencies:+ '@types/prismjs': 1.26.6+ clsx: 2.1.1+ react: 19.2.6+@@ -23474,6 +26018,16 @@ snapshots:react: 18.3.1scheduler: 0.23.2+ dependencies:+ react: 18.3.1+ scheduler: 0.27.0++ dependencies:+ react: 19.2.6+ scheduler: 0.27.0+dependencies:attr-accept: 2.2.5@@ -23583,6 +26137,36 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ [email protected](@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ clsx: 2.1.1+ dequal: 2.0.3+ make-cancellable-promise: 2.0.0+ make-event-props: 2.0.0+ merge-refs: 2.0.0(@types/[email protected])+ pdfjs-dist: 5.4.296+ react: 18.3.1+ react-dom: 19.2.6([email protected])+ tiny-invariant: 1.3.3+ warning: 4.0.3+ optionalDependencies:+ '@types/react': 18.3.28++ [email protected](@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ clsx: 2.1.1+ dequal: 2.0.3+ make-cancellable-promise: 2.0.0+ make-event-props: 2.0.0+ merge-refs: 2.0.0(@types/[email protected])+ pdfjs-dist: 5.4.296+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ tiny-invariant: 1.3.3+ warning: 4.0.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:classnames: 2.5.1@@ -23613,6 +26197,14 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 18.3.1@@ -23635,6 +26227,17 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])+ use-sidecar: 1.1.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 18.3.1@@ -23648,6 +26251,22 @@ snapshots:optionalDependencies:react-dom: 18.3.1([email protected])+ dependencies:+ cookie: 1.1.1+ react: 18.3.1+ set-cookie-parser: 2.7.2+ optionalDependencies:+ react-dom: 19.2.6([email protected])++ dependencies:+ cookie: 1.1.1+ react: 19.2.6+ set-cookie-parser: 2.7.2+ optionalDependencies:+ react-dom: 19.2.6([email protected])+dependencies:selecto: 1.26.3@@ -23659,7 +26278,7 @@ snapshots:hast-util-to-jsx-runtime: 2.3.6react: 18.3.1react-dom: 18.3.1([email protected])- shiki: 4.0.2+ shiki: 4.2.0unist-util-visit: 5.1.0optionalDependencies:'@types/react': 18.3.28@@ -23713,6 +26332,14 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ get-nonce: 1.0.1+ react: 19.2.6+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@babel/runtime': 7.29.2@@ -23732,6 +26359,8 @@ snapshots:dependencies:loose-envify: 1.4.0+ [email protected]: {}+dependencies:pify: 2.3.0@@ -23760,6 +26389,8 @@ snapshots:+ [email protected]: {}+@@ -23779,6 +26410,35 @@ snapshots:tiny-invariant: 1.3.3victory-vendor: 36.9.2+ dependencies:+ '@types/estree': 1.0.8+ estree-util-build-jsx: 3.0.1+ vfile: 6.0.3++ dependencies:+ acorn: 8.16.0+ acorn-jsx: 5.3.2([email protected])+ estree-util-to-js: 2.0.0+ recma-parse: 1.0.0+ recma-stringify: 1.0.0+ unified: 11.0.5++ dependencies:+ '@types/estree': 1.0.8+ esast-util-from-js: 2.0.1+ unified: 11.0.5+ vfile: 6.0.3++ dependencies:+ '@types/estree': 1.0.8+ estree-util-to-js: 2.0.0+ unified: 11.0.5+ vfile: 6.0.3+@@ -23833,6 +26493,14 @@ snapshots:hast-util-raw: 9.1.0vfile: 6.0.3+ dependencies:+ '@types/estree': 1.0.8+ '@types/hast': 3.0.4+ hast-util-to-estree: 3.1.3+ transitivePeerDependencies:+ - supports-color+dependencies:'@types/hast': 3.0.4@@ -23849,6 +26517,13 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ mdast-util-mdx: 3.0.0+ micromark-extension-mdxjs: 3.0.0+ transitivePeerDependencies:+ - supports-color+dependencies:'@types/mdast': 4.0.4@@ -23872,6 +26547,15 @@ snapshots:mdast-util-to-markdown: 2.1.2unified: 11.0.5+ dependencies:+ '@types/mdast': 4.0.4+ remark-parse: 11.0.0+ remark-stringify: 11.0.0+ unified: 11.0.5+ transitivePeerDependencies:+ - supports-color+@@ -23898,9 +26582,16 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ transitivePeerDependencies:+ - react+ - react-dom+dependencies:transitivePeerDependencies:- react- react-dom@@ -24049,6 +26740,12 @@ snapshots:dependencies:loose-envify: 1.4.0+ [email protected]: {}++ dependencies:+ compute-scroll-into-view: 3.1.1+dependencies:parseley: 0.12.1@@ -24198,14 +26895,14 @@ snapshots:dependencies:- '@shikijs/core': 4.0.2- '@shikijs/engine-javascript': 4.0.2- '@shikijs/engine-oniguruma': 4.0.2- '@shikijs/langs': 4.0.2- '@shikijs/themes': 4.0.2- '@shikijs/types': 4.0.2+ '@shikijs/core': 4.2.0+ '@shikijs/engine-javascript': 4.2.0+ '@shikijs/engine-oniguruma': 4.2.0+ '@shikijs/langs': 4.2.0+ '@shikijs/themes': 4.2.0+ '@shikijs/types': 4.2.0'@shikijs/vscode-textmate': 10.0.2'@types/hast': 3.0.4@@ -24243,6 +26940,8 @@ snapshots:+ [email protected]: {}+dependencies:is-arrayish: 0.3.4@@ -24303,6 +27002,10 @@ snapshots:+ dependencies:+ through: 2.3.8+@@ -24363,6 +27066,10 @@ snapshots:es-errors: 1.3.0internal-slot: 1.1.0+ dependencies:+ duplexer: 0.1.2+@@ -24427,6 +27134,10 @@ snapshots:character-entities-html4: 2.1.0character-entities-legacy: 3.0.0+ dependencies:+ ansi-regex: 2.1.1+dependencies:ansi-regex: 4.1.1@@ -24470,6 +27181,14 @@ snapshots:babel-plugin-macros: 3.1.0optional: true+ dependencies:+ client-only: 0.0.1+ react: 19.2.6+ optionalDependencies:+ '@babel/core': 7.29.0+ babel-plugin-macros: 3.1.0+@@ -24491,6 +27210,8 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}+dependencies:has-flag: 3.0.0@@ -24511,6 +27232,8 @@ snapshots:+ [email protected]: {}+dependencies:tailwindcss: 4.3.0@@ -24522,6 +27245,13 @@ snapshots:transitivePeerDependencies:- react+ dependencies:+ prism-react-renderer: 2.4.1([email protected])+ tailwindcss: 4.3.0+ transitivePeerDependencies:+ - react+dependencies:tailwindcss: 4.3.0@@ -24556,6 +27286,8 @@ snapshots:+ [email protected]: {}+@@ -24595,6 +27327,8 @@ snapshots:+ [email protected]: {}+@@ -24610,11 +27344,18 @@ snapshots:+ [email protected]: {}+dependencies:fdir: 6.5.0([email protected])picomatch: 4.0.4+ dependencies:+ fdir: 6.5.0([email protected])+ picomatch: 4.0.4+@@ -24706,7 +27447,7 @@ snapshots:- tsx- yaml- [email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:bundle-require: 5.1.0([email protected])cac: 6.7.14@@ -24717,7 +27458,7 @@ snapshots:fix-dts-default-cjs-exports: 1.0.1joycon: 3.1.1picocolors: 1.1.1- postcss-load-config: 6.0.1([email protected])([email protected])([email protected])([email protected])+ postcss-load-config: 6.0.1([email protected])([email protected])([email protected])([email protected])resolve-from: 5.0.0rollup: 4.60.1source-map: 0.7.6@@ -24726,7 +27467,7 @@ snapshots:tinyglobby: 0.2.16tree-kill: 1.2.2optionalDependencies:- postcss: 8.5.14+ postcss: 8.5.15typescript: 5.8.3transitivePeerDependencies:- jiti@@ -24855,10 +27596,19 @@ snapshots:dependencies:'@types/unist': 3.0.3+ dependencies:+ '@types/unist': 3.0.3+dependencies:'@types/unist': 3.0.3+ dependencies:+ '@types/unist': 3.0.3+ unist-util-visit: 5.1.0+dependencies:'@types/unist': 3.0.3@@ -24895,6 +27645,13 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ react: 19.2.6+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:detect-node-es: 1.1.0@@ -24903,6 +27660,14 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ dependencies:+ detect-node-es: 1.1.0+ react: 19.2.6+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 18.3.1@@ -24966,13 +27731,13 @@ snapshots:string_decoder: 1.3.0util-deprecate: 1.0.2- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:cac: 6.7.14debug: 4.4.3([email protected])es-module-lexer: 1.7.0pathe: 2.0.3- vite: 7.3.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- '@types/node'- jiti@@ -24987,18 +27752,29 @@ snapshots:- tsx- yaml- [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ dependencies:+ '@babel/core': 7.29.0+ '@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])+ '@babel/plugin-syntax-typescript': 7.28.6(@babel/[email protected])+ '@types/babel__core': 7.20.5+ babel-plugin-macros: 3.1.0+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - supports-color++ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@babel/core': 7.29.0'@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])'@babel/plugin-syntax-typescript': 7.28.6(@babel/[email protected])'@types/babel__core': 7.20.5babel-plugin-macros: 3.1.0- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- supports-color- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.27.7fdir: 6.5.0([email protected])@@ -25009,12 +27785,12 @@ snapshots:optionalDependencies:'@types/node': 20.19.39fsevents: 2.3.3- jiti: 2.6.1+ jiti: 2.7.0lightningcss: 1.32.0tsx: 4.21.0yaml: 2.8.3- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.27.7fdir: 6.5.0([email protected])@@ -25025,12 +27801,12 @@ snapshots:optionalDependencies:'@types/node': 24.12.2fsevents: 2.3.3- jiti: 2.6.1+ jiti: 2.7.0lightningcss: 1.32.0tsx: 4.21.0yaml: 2.8.3- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:lightningcss: 1.32.0picomatch: 4.0.4@@ -25041,11 +27817,11 @@ snapshots:'@types/node': 20.19.39esbuild: 0.28.0fsevents: 2.3.3- jiti: 2.6.1+ jiti: 2.7.0tsx: 4.21.0yaml: 2.8.3- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:lightningcss: 1.32.0picomatch: 4.0.4@@ -25056,11 +27832,11 @@ snapshots:'@types/node': 22.19.7esbuild: 0.28.0fsevents: 2.3.3- jiti: 2.6.1+ jiti: 2.7.0tsx: 4.21.0yaml: 2.8.3- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:lightningcss: 1.32.0picomatch: 4.0.4@@ -25071,7 +27847,7 @@ snapshots:'@types/node': 24.12.2esbuild: 0.27.7fsevents: 2.3.3- jiti: 2.6.1+ jiti: 2.7.0tsx: 4.21.0yaml: 2.8.3@@ -25090,7 +27866,7 @@ snapshots:tsx: 4.21.0yaml: 2.8.3- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:lightningcss: 1.32.0picomatch: 4.0.4@@ -25101,14 +27877,14 @@ snapshots:'@types/node': 24.12.2esbuild: 0.28.0fsevents: 2.3.3- jiti: 2.6.1+ jiti: 2.7.0tsx: 4.21.0yaml: 2.8.3- [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.6- '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 4.1.6'@vitest/runner': 4.1.6'@vitest/snapshot': 4.1.6@@ -25125,7 +27901,7 @@ snapshots:tinyexec: 1.1.1tinyglobby: 0.2.16tinyrainbow: 3.1.0- vite: 7.3.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -25133,10 +27909,10 @@ snapshots:transitivePeerDependencies:- msw- [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.6- '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 4.1.6'@vitest/runner': 4.1.6'@vitest/snapshot': 4.1.6@@ -25153,7 +27929,7 @@ snapshots:tinyexec: 1.1.1tinyglobby: 0.2.16tinyrainbow: 3.1.0- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -25161,10 +27937,10 @@ snapshots:transitivePeerDependencies:- msw- [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.6- '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 4.1.6'@vitest/runner': 4.1.6'@vitest/snapshot': 4.1.6@@ -25181,7 +27957,7 @@ snapshots:tinyexec: 1.1.1tinyglobby: 0.2.16tinyrainbow: 3.1.0- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -25189,34 +27965,6 @@ snapshots:transitivePeerDependencies:- msw- [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):- dependencies:- '@vitest/expect': 4.1.6- '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))- '@vitest/pretty-format': 4.1.6- '@vitest/runner': 4.1.6- '@vitest/snapshot': 4.1.6- '@vitest/spy': 4.1.6- '@vitest/utils': 4.1.6- es-module-lexer: 2.0.0- expect-type: 1.3.0- magic-string: 0.30.21- obug: 2.1.1- pathe: 2.0.3- picomatch: 4.0.4- std-env: 4.0.0- tinybench: 2.9.0- tinyexec: 1.1.1- tinyglobby: 0.2.16- tinyrainbow: 3.1.0- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- why-is-node-running: 2.3.0- optionalDependencies:- '@opentelemetry/api': 1.9.0- '@types/node': 24.12.2- transitivePeerDependencies:- - msw-[email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.6@@ -25245,10 +27993,10 @@ snapshots:transitivePeerDependencies:- msw- [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.6- '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 4.1.6'@vitest/runner': 4.1.6'@vitest/snapshot': 4.1.6@@ -25265,7 +28013,7 @@ snapshots:tinyexec: 1.1.1tinyglobby: 0.2.16tinyrainbow: 3.1.0- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -25441,6 +28189,8 @@ snapshots:+ [email protected]: {}+dependencies:use-sync-external-store: 1.6.0([email protected])