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
refactor: expose docs content and glossary as @carbon/content, unify search on zbsearch (#1769)
Sidf60d5315b618
diff --git a/.claude/rules/agent-knowledge-base.md b/.claude/rules/agent-knowledge-base.mdindex e88634e7cd..944f6ebc80 100644--- a/.claude/rules/agent-knowledge-base.md+++ b/.claude/rules/agent-knowledge-base.md@@ -1,57 +1,52 @@----description: The in-app agent's read-only doc corpus (kb/) is generated from docs/content — regenerate and commit it in the same commit as any docs change, like .po files.+description: Docs MDX, the glossary and the in-app agent's doc corpus all live in @carbon/content — nothing is generated or committed separately.paths:- "apps/erp/app/modules/agent/**"- "docs/content/**"- - "docs/scripts/generate-agent-kb.ts"+ - "docs/source.config.ts"+ - "docs/app/llms*/**"----# Agent Knowledge Base (docs → agent)+# Docs content → site, agent, apps-The in-app agent answers doc questions from a **generated, committed copy** of the docs-site, not from `docs/content` directly (Vite can't glob across packages into `docs/`, and-the erp Docker image copies `apps/**` but **not** `docs/**`). The corpus lives at:+`@carbon/content` is a workspace package nested in the docs app at `docs/content`: the MDX+(`docs/content/docs`, `docs/content/guides`) stays colocated with the site that renders it, and+the package exposes it plus the glossary to the apps. It is its own package (not the docs app+renamed) so ERP's `^build` never runs the Next docs build.-- `apps/erp/app/modules/agent/kb/<slug>.md` — one component-stripped markdown file per doc-- `apps/erp/app/modules/agent/kb/manifest.json` — the keyword index `search_docs` scans-- `apps/erp/app/modules/agent/kb/README.md` — auto-written "do not edit" notice+| Consumer | Reads | How |+|---|---|---|+| Docs site | `content/docs`, `content/guides` | Fumadocs `dir` in `docs/source.config.ts` |+| `/llms.txt`, `/llms-full.txt` | same MDX | `parsePage` from `@carbon/content/corpus` over Fumadocs' `page.data.getText("raw")` (`docs/lib/corpus.ts`). Keep the MDX inside `docs/`: fumadocs-mdx ≥ 15.2.1 drops the leading `../` of a content dir outside the app, breaking `getText("raw")` (fuma-nama/fumadocs#3623) |+| Docs site search (`/api/search`) | same MDX | Fumadocs `createSearchAPI` — zbsearch since `fumadocs-core` 16.14, the same engine as MCP `search_tools`; its tokenizer stems with `stemInflection` (`@carbon/content/search`), and a `sortBy` weights each page's title row ×2 so a page about the term beats one-word fragments that merely mention it (zbsearch ignores term frequency, so those tie) |+| In-app agent (`search_docs`, `read_doc`) | same MDX | `agentDocs` from `@carbon/content/agent-kb` — `import.meta.glob(..., { eager: true })` bakes every page into the ERP server build |+| ERP/MES field help, docs `<Term>` | `src/glossary` | `@carbon/content/glossary` |+| Anything linking to the docs | `src/links.ts` | `DOCS_URL`, `docUrl()` |-All of it is **generated by `docs/scripts/generate-agent-kb.ts`** from `docs/content/**` and is-**committed** (tracked in git), the same way the Lingui `.po` catalogs are committed.+There is no generator and no committed copy: a docs edit reaches the agent at the next ERP+build, and in dev immediately (Vite watches the glob). The ERP Docker image copies+`docs/content` into its build stage (`.dockerignore` re-includes it), and `deploy.yml` fires on+`docs/content/**`, so a glossary or docs change redeploys ERP/MES.-## The contract: regenerate before committing docs changes--This is a **manual, commit-time** step — deliberately **not** a CI commit-back workflow (that-raced the deploy: deploy built the old `kb/` before the regenerated files were committed).-The model mirrors i18n `.po` files: you regenerate, then commit the output **in the same-commit** as the source change.--```bash-pnpm run generate:agent-kb # reads docs/content, writes apps/erp/app/modules/agent/kb-```--When to run it:--- You edited anything under `docs/content/**` (added, changed, or removed a doc).-- You changed `docs/scripts/generate-agent-kb.ts` itself.--Then stage the regenerated `apps/erp/app/modules/agent/kb/**` alongside your docs edit.--The **check-and-commit skill runs this automatically** when `docs/content/**` or the-generator is in the change set (see its "agent knowledge base" gate) and includes the-regenerated `kb/` in the commit — so if you commit through that skill, it's handled for you.+All three machine-readable consumers strip MDX through the one `stripComponents` in+`src/corpus.ts`, so the agent, llms.txt and anything else can never disagree about a page.## Never-- **Never hand-edit `apps/erp/app/modules/agent/kb/**`** — it's generated; edits are- overwritten on the next run. Change the source under `docs/content/` instead.-- Never reintroduce a CI workflow that regenerates **and commits** `kb/` on push to `main`- — it races the deploy build. If you want CI safety, add a **verify-only** check that fails- when `kb/` is stale (regenerate in CI, then `git diff --exit-code kb/`), without committing.+- Never import `@carbon/content/agent-kb` outside a Vite build (the docs app, Node scripts) —+ `import.meta.glob` is Vite-only. Feed raw MDX from your own source into `./corpus`'s `parsePage`.+- Never add `fs` or any Node-only import to the package — it is isomorphic on purpose;+ `agent-kb` is re-exported from a barrel client code can reach.+- Never hardcode a docs page URL without keeping `links.test.ts` green; it fails on any link to+ a missing page or heading.## How the agent uses it-`apps/erp/app/modules/agent/agent.kb.ts` imports `manifest.json` and bundles the `.md` via-`import.meta.glob`. `search_docs` ranks manifest entries by keyword; `read_doc` returns the-full markdown by its public docs URL (`https://docs.carbon.ms/<slug>`). The agent only ever-sees URLs — slugs/file paths are never surfaced to the user.+`apps/erp/app/modules/agent/agent.kb.ts` answers `search_docs` with `createDocSearch` from+`@carbon/ee/mcp` (`packages/ee/src/mcp/doc-search.ts`) — the MCP `search_tools` engine+(zbsearch BM25 + prefix, `SEARCH_ALIASES` and `stemInflection` stems via `expandQueryTerm`, one-edit typo retry) over+title/keywords/headings/description/body. It stays in `packages/ee` on purpose: the licence+split is kept, so `@carbon/content` holds the corpus and ee holds the ranking. Pinned against+the real corpus by `agent.kb.test.ts`. `read_doc` returns a page by its public URL+(`https://docs.carbon.ms/<slug>`). The agent only ever sees URLs — slugs/file paths are never+surfaced to the user.diff --git a/.claude/rules/mcp-tools-reference.md b/.claude/rules/mcp-tools-reference.mdindex e5ddcecde2..53ccc20bf0 100644--- a/.claude/rules/mcp-tools-reference.md+++ b/.claude/rules/mcp-tools-reference.md@@ -137,6 +137,14 @@ not substring filtering. The typed, tested logic lives OUTSIDE thesize, plus the compact response schema when the generator derived one.- Server instructions live in `packages/ee/src/mcp/instructions.ts` (module list + interpolated`MCP_DEFAULT_LIMIT`), importable by tests without server.ts's auth/env chain.+- `expandQueryTerm` also adds each word's inflection stem (`stemInflection`,+ `@carbon/content/search`: zbsearch's Porter limited to plural/-ed/-ing/-e) to the+ QUERY, never the index — "scrapping" finds the scrap tools. Stemming the index+ collapsed "orders" into "order" and ranked single-record tools above list tools;+ full Porter turned "customer" into "custom". The docs site uses the same stemmer.+- The in-app agent's `search_docs` reuses this engine over the docs corpus —+ `createDocSearch` in `packages/ee/src/mcp/doc-search.ts` shares `expandQueryTerm`+ (so a new alias improves both) and the typo retry.- Pinned by `lib/catalog-search.test.ts` and `lib/describe-format.test.ts`;`lib/manifest.ts` carries its own copies of the meta-tool descriptions(pinned >40 chars by `manifest.test.ts`) — keep them in sync withdiff --git a/.claude/skills/carbon-design/references/content-and-copy.md b/.claude/skills/carbon-design/references/content-and-copy.mdindex 584a1cf7d4..913d3b9003 100644--- a/.claude/skills/carbon-design/references/content-and-copy.md+++ b/.claude/skills/carbon-design/references/content-and-copy.md@@ -94,9 +94,9 @@ Known gaps you must not copy: English defaults in `ConfirmDelete`/`Confirm`, `Co- Carbon vocabulary: a **Method** = BoM + BoP; "Change Notice" (not ECO); method types "Make toOrder | Purchase to Order | Pull from Inventory"; "Readable ID"/"Number" for human IDs.- Check `packages/glossary/src/terms.ts` before naming a concept.+ Check `docs/content/src/glossary/terms.ts` before naming a concept.- Fields whose label is domain jargon get `termId` (→ `LabelWithHelp`). New terms: `msg` term +- one-sentence definition + docs anchor, in `packages/glossary` (ask first).+ one-sentence definition + docs anchor, in `docs/content/src/glossary` (ask first).- Name by the user's mental model, not the table name (`019fcf0a46`: "Procedure" →"Instructions" for operators). Order choices by likely use.diff --git a/.claude/skills/carbon-design/references/forms.md b/.claude/skills/carbon-design/references/forms.mdindex 6c48ce3c38..dc1728fef8 100644--- a/.claude/skills/carbon-design/references/forms.md+++ b/.claude/skills/carbon-design/references/forms.md@@ -164,8 +164,8 @@ A single boolean setting is a toggle card that saves on change (no footer) — e| Server failure | toast/flash "Failed to <verb> <noun>" — not inline | "Failed to create customer type" || Description on create | one definitional sentence "A <entity> is …" in the header, create mode only | CustomerForm |-New glossary terms: add to `packages/glossary` (`msg` term + one-sentence definition + docs-anchor) — ask first per `packages/glossary/AGENTS.md`.+New glossary terms: add to `docs/content/src/glossary` (`msg` term + one-sentence definition + docs+anchor) — ask first per `docs/content/AGENTS.md`.## 6. New vs editdiff --git a/.claude/skills/carbon-docs/SKILL.md b/.claude/skills/carbon-docs/SKILL.mdindex 11e19f2315..2166bcad64 100644--- a/.claude/skills/carbon-docs/SKILL.md+++ b/.claude/skills/carbon-docs/SKILL.md@@ -171,7 +171,7 @@ flowIndex: 1 # order of the flow in the subnav (0 = first)- `<Divider />` — closes a chapter before its wrap-up line.- `<Term>make to order</Term>` — inline glossary term: dotted-underline; click/tap opens a popover with agrounded one-line definition + an optional "Learn more" link. Same component on both surfaces; definitions- live in `@carbon/glossary` (`packages/glossary/src/terms.ts`), rendered by+ live in `@carbon/content/glossary` (`docs/content/src/glossary/terms.ts`), rendered by`docs/components/editorial/glossary.tsx`. See "Interlinking & the glossary" below.Each `##` heading becomes a sidebar rail entry — so structure chapters as 3–5 `##` sections.@@ -224,8 +224,8 @@ Each `##` heading becomes a sidebar rail entry — so structure chapters as 3–ERP** (never guessed), then pass it. Use it ONLY for a **linear** lifecycle — a 2-axis comparison matrix(e.g. invoices sales-vs-purchase) or a small enum list stays a markdown table.- `<AgentContext>…</AgentContext>` — renders **nothing** on the site; its content ships only to the- in-app agent's knowledge base (`pnpm run generate:agent-kb` → `apps/erp/app/modules/agent/kb/`,- regenerated automatically by check-and-commit). Put troubleshooting/FAQ, exact error strings, and+ in-app agent's knowledge base (`@carbon/content/agent-kb`, bundled into the ERP at build time).+ Put troubleshooting/FAQ, exact error strings, andinternal mechanics (table names, routes, enum internals) here — reader-facing prose stays free ofthem. Never write a reader-visible "Troubleshooting" section. About half the Reference pages stillhave no `<AgentContext>`: when your fact sheet surfaced exact error strings for a page you're@@ -339,7 +339,7 @@ a page that links out *and* glosses its jargon is worth more than the same prose- `<Term>make to order</Term>` slugifies the text to find the entry; `<Term id="make-to-order">made</Term>`when the display text differs from the slug.- **First occurrence per page only** — not every instance. Underlining every "order" is noise.- - Definitions are a single source of truth: `@carbon/glossary` (`packages/glossary/src/terms.ts`),+ - Definitions are a single source of truth: `@carbon/content/glossary` (`docs/content/src/glossary/terms.ts`),where each entry is `slug → { term, definition }` with `term`/`definition` as Lingui `msg` descriptors(rendered by `docs/components/editorial/glossary.tsx`).Add the entry there *before* you use a new term, and **ground the definition in source** (the primediff --git a/.claude/skills/carbon-docs/references/components.md b/.claude/skills/carbon-docs/references/components.mdindex 6b70995b3e..d5a8e42224 100644--- a/.claude/skills/carbon-docs/references/components.md+++ b/.claude/skills/carbon-docs/references/components.md@@ -145,13 +145,12 @@ the paywall check lives in `requireLicense()`.- **Renders nothing** on the published page, and a `remark` plugin (`source.config.ts`)strips it from the MDX AST before `remark-structure` runs — so it's also **excludedfrom site search**. Readers never see it.-- `scripts/generate-agent-kb.ts` **unwraps** it into the agent KB- (`apps/erp/app/modules/agent/kb/<slug>.md`) — the in-app agent *does* read it.+- `@carbon/content/agent-kb` **unwraps** it into the agent's corpus (via the shared+ `@carbon/content/corpus` stripper) — the in-app agent *does* read it.- Use it for extra code/behavior detail that helps the agent answer accurately butwould clutter or over-disclose to a human reader (internal table names, servicefunctions, edge cases). Author normal markdown inside. Works on Guide and Reference.-- Regenerate the KB after editing (`pnpm run generate:agent-kb`) — same commit-time- rule as any `docs/content` change (see `.claude/rules/agent-knowledge-base.md`).+- Nothing to regenerate: the ERP bundles `docs/content` at build time.---diff --git a/.claude/skills/check-and-commit/SKILL.md b/.claude/skills/check-and-commit/SKILL.mdindex 9352358af8..53a6eaa342 100644--- a/.claude/skills/check-and-commit/SKILL.md+++ b/.claude/skills/check-and-commit/SKILL.md@@ -27,11 +27,6 @@ staged UI/`.po` files slip past `I18N_RELEVANT` and skip Gate 6. From the changepaths, derive:- `SCHEMA_CHANGED` — any file under `packages/database/supabase/migrations/`-- `AGENT_KB_RELEVANT` — the diff touches `docs/content/**` or- `docs/scripts/generate-agent-kb.ts`. When true, Gate 1b regenerates the agent's doc- corpus (`apps/erp/app/modules/agent/kb/`) so the generated copy ships in this same- commit instead of drifting behind the docs (same model as the `.po` files —- see `.ai/rules/agent-knowledge-base.md`).- `WORKFLOW_CATALOG_RELEVANT` — the diff touches `SCHEMA_CHANGED` paths,`packages/database/src/swagger-docs-schema.ts`, or the workflow catalog source(`packages/workflows/src/catalog/**`, e.g. `entities.ts`, `actions.ts`,@@ -70,11 +65,6 @@ Stop on failure, apply the fix policy (Step 3), re-run the failed gate.pnpm run generate:types# then include the regenerated files in the commit-# Gate 1b — agent knowledge base (only if AGENT_KB_RELEVANT)-pnpm run generate:agent-kb-# then include the regenerated apps/erp/app/modules/agent/kb/** in the commit-# (runs before biome so the regenerated manifest.json gets formatted too)-# Gate 1c — workflow catalog (only if WORKFLOW_CATALOG_RELEVANT)pnpm run generate:workflow-catalog # regenerate from schema + catalog sourcepnpm run check:workflow-catalog # must exit 0diff --git a/.claude/skills/grill/SKILL.md b/.claude/skills/grill/SKILL.mdindex fd16b0392f..97ee1f7c52 100644--- a/.claude/skills/grill/SKILL.md+++ b/.claude/skills/grill/SKILL.md@@ -1,6 +1,6 @@---name: grill-description: Interview the user relentlessly, one question at a time, to stress-test a plan, spec, or design until every open decision is resolved — recommended answer per question, answers cross-checked against the codebase and the @carbon/glossary domain terms, resolutions written back to the artifact as they land. Use when the user says "grill me", wants to stress-test a design or plan, or a spec-in-design's open questions need resolving (spec-writing Step 5 invokes this BEFORE the spec is written). SUPERVISED ONLY — never invoke from an automated loop (conductor, headless/outer-loop runs); autonomous flows use spec-writing's autonomous mode instead. Do not use to author the artifact itself — use /spec-writing for specs, /plan for implementation plans.+description: Interview the user relentlessly, one question at a time, to stress-test a plan, spec, or design until every open decision is resolved — recommended answer per question, answers cross-checked against the codebase and the @carbon/content/glossary domain terms, resolutions written back to the artifact as they land. Use when the user says "grill me", wants to stress-test a design or plan, or a spec-in-design's open questions need resolving (spec-writing Step 5 invokes this BEFORE the spec is written). SUPERVISED ONLY — never invoke from an automated loop (conductor, headless/outer-loop runs); autonomous flows use spec-writing's autonomous mode instead. Do not use to author the artifact itself — use /spec-writing for specs, /plan for implementation plans.---# grill — stress-test a design by interviewing its author@@ -58,8 +58,8 @@ question:- Stress-test fuzzy answers with a concrete scenario before accepting them("a PO has 3 lines and one is already received — what happens on cancel?").- Sharpen fuzzy terms. When the user uses a vague or overloaded word, propose- the precise canonical term. Check `packages/glossary` (the `terms` object in- `@carbon/glossary`) for an existing definition and challenge conflicts:+ the precise canonical term. Check `docs/content/src/glossary` (the `terms` object in+ `@carbon/content/glossary`) for an existing definition and challenge conflicts:"the glossary defines {term} as {definition}; you seem to mean {other} —which is it?"@@ -71,10 +71,10 @@ apply regardless of target:- A decision that sets a durable convention beyond this feature → update thematching `.claude/rules/*.md` file in the same turn.-- A genuinely new canonical domain term → offer a `@carbon/glossary` entry,+- A genuinely new canonical domain term → offer a `@carbon/content/glossary` entry,only when all three hold: the term is user-facing (UI or docs), the grillrevealed real ambiguity, and the user confirmed the definition. Follow- `packages/glossary/AGENTS.md` (its "Ask First" rule is satisfied by the+ `docs/content/AGENTS.md` (its "Ask First" rule is satisfied by theuser's confirmation in the interview).## Done whendiff --git a/.dockerignore b/.dockerignoreindex fb9513b198..2d59fb4f2d 100644--- a/.dockerignore+++ b/.dockerignore@@ -69,8 +69,9 @@ opencode.json**/pkg/**/build/-# Not needed inside the image-docs+# Not needed inside the image — except @carbon/content (docs/content)+docs/*+!docs/contentcontribllmdiff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.ymlindex 54e761d22f..afeebfa6e6 100644--- a/.github/workflows/deploy.yml+++ b/.github/workflows/deploy.yml@@ -8,6 +8,7 @@ on:- "apps/erp/**"- "apps/mes/**"- "packages/**"+ - "docs/content/**"workflow_dispatch:jobs:build:diff --git a/AGENTS.md b/AGENTS.mdindex 52a06e5a96..0fe17d3f63 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -111,7 +111,7 @@ IMPORTANT: Before any research or coding, match the task to this table. A single| Audit log system | `.claude/rules/audit-log-system.md` || Shipments / receipts UI | `.claude/rules/shipments-receipts-ui-patterns.md` || AI chat / SDK | `.claude/rules/chat-ai-sdk-info.md` |-| In-app agent knowledge base (docs → agent) | `.claude/rules/agent-knowledge-base.md` |+| Docs content, glossary, in-app agent knowledge base | `.claude/rules/agent-knowledge-base.md` + `docs/content/AGENTS.md` || **Integrations** | || Ramp integration (charges, accounting-provider sync) | `.claude/rules/ramp-integration.md` || Jira integration | `.claude/rules/jira-integration.md` |@@ -189,7 +189,7 @@ IMPORTANT: Before any research or coding, match the task to this table. A single- **Database**: Supabase (Postgres) with RLS, typed via `@carbon/database` + Kysely- **Background jobs**: Inngest (NOT Trigger.dev), via `@carbon/jobs`- **Apps**: `erp` (main), `mes` (shop floor), `academy` (training), `starter` (example)-- **Packages**: 24 under `packages/` — auth, database, lib, react, form, documents, jobs, notifications, config, env, checks, harness, dev, stripe, ee, tiptap, locale, glossary, utils, files, kv, printing, onboarding, logger+- **Packages**: 23 under `packages/` — auth, database, lib, react, form, documents, jobs, notifications, config, env, checks, harness, dev, stripe, ee, tiptap, locale, utils, files, kv, printing, onboarding, logger — plus `@carbon/content` at `docs/content` (docs MDX + glossary)- **Multi-tenancy**: every table has `companyId` + composite PK `("id", "companyId")`- **IDs**: `id('prefix')` default in SQL- **Imports**: `~/*` → app code; `@carbon/*` → workspace packagesdiff --git a/Dockerfile b/Dockerfileindex 4f8b85a5d1..3628a6bc09 100644--- a/Dockerfile+++ b/Dockerfile@@ -19,6 +19,8 @@ COPY packages ./packagesCOPY patches ./patches# Needed by the postinstall and the //#generate:mcp turbo task.COPY scripts ./scripts+# @carbon/content (glossary, the agent's doc corpus) lives with the docs it serves.+COPY docs/content ./docs/contentRUN --mount=type=cache,id=pnpm-store,target=/pnpm/store,sharing=locked \pnpm install --frozen-lockfilediff --git a/apps/academy/app/components/Term.tsx b/apps/academy/app/components/Term.tsxindex a4b80ead04..db716a992a 100644--- a/apps/academy/app/components/Term.tsx+++ b/apps/academy/app/components/Term.tsx@@ -3,7 +3,7 @@ import {getTermText,lookupEntry,termSlug-} from "@carbon/glossary";+} from "@carbon/content/glossary";import { Popover, PopoverContent, PopoverTrigger } from "@carbon/react";import type { ReactNode } from "react";diff --git a/apps/academy/app/utils/glossary.ts b/apps/academy/app/utils/glossary.tsindex 536094f7cf..aac6c574b3 100644--- a/apps/academy/app/utils/glossary.ts+++ b/apps/academy/app/utils/glossary.ts@@ -1,4 +1,4 @@-import { getTermText, listEntries } from "@carbon/glossary";+import { getTermText, listEntries } from "@carbon/content/glossary";export type GlossarySegment = string | { text: string; slug: string };diff --git a/apps/academy/app/utils/path.ts b/apps/academy/app/utils/path.tsindex 70586f8178..8879ac238c 100644--- a/apps/academy/app/utils/path.ts+++ b/apps/academy/app/utils/path.ts@@ -1,4 +1,5 @@import { ERP_URL as ERP_URL_CONFIG, SUPABASE_URL } from "@carbon/auth";+import { DOCS_URL as DOCS_URL_PROD } from "@carbon/content/links";import { generatePath } from "react-router";const challenge = "/challenge"; // from ~/routes/challenge+ folder@@ -11,7 +12,7 @@ const ERP_URL = SUPABASE_URL?.includes("localhost")const DOCS_URL = SUPABASE_URL?.includes("localhost")? "http://localhost:3002"- : "https://docs.carbon.ms";+ : DOCS_URL_PROD;export const path = {to: {diff --git a/apps/academy/package.json b/apps/academy/package.jsonindex bce4642a29..f440f1c303 100644--- a/apps/academy/package.json+++ b/apps/academy/package.json@@ -6,7 +6,7 @@"@carbon/database": "workspace:*","@carbon/documents": "workspace:*","@carbon/form": "workspace:*",- "@carbon/glossary": "workspace:*",+ "@carbon/content": "workspace:*","@carbon/kv": "workspace:*","@carbon/logger": "workspace:*","@carbon/react": "workspace:*",diff --git a/apps/erp/app/components/Form/ConversionFactor.tsx b/apps/erp/app/components/Form/ConversionFactor.tsxindex 8abc18ace6..eb54018df1 100644--- a/apps/erp/app/components/Form/ConversionFactor.tsx+++ b/apps/erp/app/components/Form/ConversionFactor.tsx@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import { useControlField, useField } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import {Button,CommandTrigger,diff --git a/apps/erp/app/components/Form/SequenceOrCustomId.tsx b/apps/erp/app/components/Form/SequenceOrCustomId.tsxindex 99454f40b1..6b5b7fe857 100644--- a/apps/erp/app/components/Form/SequenceOrCustomId.tsx+++ b/apps/erp/app/components/Form/SequenceOrCustomId.tsx@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import { useField } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import type { InputProps } from "@carbon/react";import {Button,diff --git a/apps/erp/app/components/Form/ShelfLifeStartEvent.tsx b/apps/erp/app/components/Form/ShelfLifeStartEvent.tsxindex 8b88fd23b2..58a96cc978 100644--- a/apps/erp/app/components/Form/ShelfLifeStartEvent.tsx+++ b/apps/erp/app/components/Form/ShelfLifeStartEvent.tsx@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import { useControlField } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import {ChoiceCardGroup,FormControl,diff --git a/apps/erp/app/components/Form/StorageUnit.tsx b/apps/erp/app/components/Form/StorageUnit.tsxindex 2f3ef208a9..12242ceab7 100644--- a/apps/erp/app/components/Form/StorageUnit.tsx+++ b/apps/erp/app/components/Form/StorageUnit.tsx@@ -10,8 +10,8 @@// single-purpose interaction handled by `StorageUnitParentSelect`, local to the// Storage Unit form.+import type { TermId } from "@carbon/content/glossary";import { CreatableCombobox } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import {CreatableCombobox as CreatableComboboxBase,useDisclosurediff --git a/apps/erp/app/components/Form/Users.tsx b/apps/erp/app/components/Form/Users.tsxindex b37adf1bc5..ef565465f8 100644--- a/apps/erp/app/components/Form/Users.tsx+++ b/apps/erp/app/components/Form/Users.tsx@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import { useField } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import {FormControl,FormErrorMessage,diff --git a/apps/erp/app/components/PermissionMatrix.tsx b/apps/erp/app/components/PermissionMatrix.tsxindex 7e1ab0ea49..f1115884a2 100644--- a/apps/erp/app/components/PermissionMatrix.tsx+++ b/apps/erp/app/components/PermissionMatrix.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import {Checkbox,LabelWithHelp,diff --git a/apps/erp/app/modules/accounting/accounting.defaults.test.ts b/apps/erp/app/modules/accounting/accounting.defaults.test.tsindex 4e04adaa5f..ab33a8ec4d 100644--- a/apps/erp/app/modules/accounting/accounting.defaults.test.ts+++ b/apps/erp/app/modules/accounting/accounting.defaults.test.ts@@ -5,7 +5,10 @@ import type { SupabaseClient } from "@supabase/supabase-js";import { describe, expect, it, vi } from "vitest";vi.mock("~/modules/settings", () => ({ getNextSequence: vi.fn() }));-vi.mock("@carbon/glossary", () => ({ terms: {}, glossaryEntries: () => [] }));+vi.mock("@carbon/content/glossary", () => ({+ terms: {},+ glossaryEntries: () => []+}));vi.mock("@carbon/auth", () => ({assertIsPost: () => undefined,getMESUrl: () => "http://localhost",diff --git a/apps/erp/app/modules/accounting/accounting.periods.test.ts b/apps/erp/app/modules/accounting/accounting.periods.test.tsindex 6be6e21c01..be012f48ab 100644--- a/apps/erp/app/modules/accounting/accounting.periods.test.ts+++ b/apps/erp/app/modules/accounting/accounting.periods.test.ts@@ -8,10 +8,10 @@ vi.mock("~/modules/settings", () => ({getNextSequence: vi.fn()}));-// @carbon/glossary's terms.ts evaluates Lingui `msg` macros at module load,+// @carbon/content/glossary's terms.ts evaluates Lingui `msg` macros at module load,// which vitest doesn't transform. Nothing under test touches the glossary, so// stub the whole package.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({getDefinitionText: () => "",getEntry: () => undefined,getTermText: () => "",diff --git a/apps/erp/app/modules/accounting/accounting.projects.test.ts b/apps/erp/app/modules/accounting/accounting.projects.test.tsindex c73419eed5..39b0498adf 100644--- a/apps/erp/app/modules/accounting/accounting.projects.test.ts+++ b/apps/erp/app/modules/accounting/accounting.projects.test.ts@@ -1,6 +1,6 @@import { describe, expect, it, vi } from "vitest";-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({glossaryEntries: () => [],terms: {}}));diff --git a/apps/erp/app/modules/accounting/accounting.translation.test.ts b/apps/erp/app/modules/accounting/accounting.translation.test.tsindex d44785467c..b3ce8b4746 100644--- a/apps/erp/app/modules/accounting/accounting.translation.test.ts+++ b/apps/erp/app/modules/accounting/accounting.translation.test.ts@@ -6,7 +6,7 @@ import { describe, expect, it, vi } from "vitest";// The settings/glossary barrels evaluate Lingui macros that Vitest does not// transform. The real translation service needs neither dependency here.vi.mock("~/modules/settings", () => ({ getNextSequence: vi.fn() }));-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({getDefinitionText: () => "",getEntry: () => undefined,getTermText: () => "",diff --git a/apps/erp/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsx b/apps/erp/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsxindex 7c31bed287..51e362ffdd 100644--- a/apps/erp/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsx+++ b/apps/erp/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsx@@ -1,6 +1,6 @@+import type { TermId } from "@carbon/content/glossary";import { downloadCsv } from "@carbon/files/csv";import { ValidatedForm } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import {Badge,Button,diff --git a/apps/erp/app/modules/accounting/ui/FiscalYear/FiscalYearSettingsForm.tsx b/apps/erp/app/modules/accounting/ui/FiscalYear/FiscalYearSettingsForm.tsxindex 0008656446..2ef1b4a07d 100644--- a/apps/erp/app/modules/accounting/ui/FiscalYear/FiscalYearSettingsForm.tsx+++ b/apps/erp/app/modules/accounting/ui/FiscalYear/FiscalYearSettingsForm.tsx@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import { ValidatedForm } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import { Button, Heading, HStack, LabelWithHelp } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import { useMemo } from "react";diff --git a/apps/erp/app/modules/agent/agent.kb.test.ts b/apps/erp/app/modules/agent/agent.kb.test.tsnew file mode 100644index 0000000000..01cd4dbad5--- /dev/null+++ b/apps/erp/app/modules/agent/agent.kb.test.ts@@ -0,0 +1,67 @@+import { agentDocs } from "@carbon/content/agent-kb";+import { describe, expect, it } from "vitest";+import { readDoc, searchDocs } from "./agent.kb";++const top = async (query: string, n = 3) =>+ (await searchDocs({ query, limit: n })).map((hit) => hit.url);++describe("search_docs", () => {+ it("expands domain abbreviations the way MCP search_tools does", async () => {+ expect(await top("PO")).toContain(+ "https://docs.carbon.ms/docs/reference/purchase-orders"+ );+ expect(await top("vendor")).toContain(+ "https://docs.carbon.ms/docs/reference/suppliers-and-customers"+ );+ });++ it("forgives a one-letter typo", async () => {+ expect(await top("invoces")).toContain(+ "https://docs.carbon.ms/docs/reference/invoices"+ );+ });++ it("returns nothing for an empty query", async () => {+ expect(await searchDocs({ query: " " })).toEqual([]);+ });++ it("returns URLs read_doc can open", async () => {+ const [hit] = await searchDocs({ query: "scrap", limit: 1 });+ expect(hit).toBeDefined();+ expect(readDoc({ url: hit!.url })).toMatchObject({ url: hit!.url });+ });++ it("links an index page at its folder URL, the one the site serves", async () => {+ expect(await top("integrations", 5)).toContain(+ "https://docs.carbon.ms/docs/integrations"+ );+ for (const doc of agentDocs) {+ const [hit] = await searchDocs({ query: doc.title, limit: 20 }).then(+ (hits) => hits.filter((h) => h.title === doc.title)+ );+ expect(hit, `"${doc.title}" finds its own page`).toBeDefined();+ expect(hit!.url, doc.slug).not.toMatch(/\/index$/);+ }+ });+});++describe("read_doc", () => {+ it("opens an index page by its folder URL and by the old /index form", () => {+ const folder = readDoc({ url: "https://docs.carbon.ms/docs/integrations" });+ expect(folder).toMatchObject({+ url: "https://docs.carbon.ms/docs/integrations"+ });+ expect(+ readDoc({ url: "https://docs.carbon.ms/docs/integrations/index" })+ ).toEqual(folder);+ });++ it("ignores an anchor, a query and a trailing slash", () => {+ const page = readDoc({ url: "https://docs.carbon.ms/docs/reference/jobs" });+ expect("content" in page).toBe(true);+ expect(+ readDoc({ url: "https://docs.carbon.ms/docs/reference/jobs/#fields" })+ ).toEqual(page);+ expect(readDoc({ url: "/docs/reference/jobs?ref=x" })).toEqual(page);+ });+});diff --git a/apps/erp/app/modules/agent/agent.kb.ts b/apps/erp/app/modules/agent/agent.kb.tsindex 9c9293685a..1cd45670ed 100644--- a/apps/erp/app/modules/agent/agent.kb.ts+++ b/apps/erp/app/modules/agent/agent.kb.ts@@ -1,67 +1,43 @@-import manifest from "./kb/manifest.json";+import { agentDocs } from "@carbon/content/agent-kb";+import { DOCS_URL, docUrl } from "@carbon/content/links";+import { createDocSearch } from "@carbon/ee/mcp";-type DocEntry = {- slug: string;- title: string;- description: string;- keywords: string[];- headings: string[];-};+// The docs site mirrors the corpus slug structure, except that an index page is served at+// its folder (`docs/integrations`, not `docs/integrations/index`). NEVER surface the raw+// slug / file path to the user — always the public URL.+const pagePath = (slug: string) => slug.replace(/(^|\/)index$/, "");+const byPath = new Map(agentDocs.map((d) => [pagePath(d.slug), d]));+const docSearch = createDocSearch(agentDocs);-const docs = (manifest as { docs: DocEntry[] }).docs;--// The docs site mirrors the kb slug structure 1:1, so the public URL is just the base-// + slug. NEVER surface the raw slug / file path to the user — always this URL.-const DOCS_BASE = "https://docs.carbon.ms";-const docUrl = (slug: string) => `${DOCS_BASE}/${slug}`;--// Bundle every generated .md into the server build so reads work in the container-// (no fs / docs-app dependency). Keyed by e.g. "./kb/docs/reference/jobs.md".-const files = import.meta.glob("./kb/**/*.md", {- query: "?raw",- import: "default",- eager: true-}) as Record<string, string>;--/** Keyword search over each doc's metadata AND full body; returns the best matches. */-export function searchDocs({+/** Ranked search over every doc (the MCP catalog's engine and aliases); best matches first. */+export async function searchDocs({query,limit = 5}: {query: string;limit?: number;}) {- const terms = query.toLowerCase().split(/\s+/).filter(Boolean);- if (terms.length === 0) return [];- return docs- .map((d) => {- const meta =- `${d.title} ${d.description} ${d.keywords.join(" ")} ${d.headings.join(" ")}`.toLowerCase();- const body = (files[`./kb/${d.slug}.md`] ?? "").toLowerCase();- // Metadata hits weigh more than body hits, but a body-only term still counts.- const score = terms.reduce(- (s, t) => s + (meta.includes(t) ? 2 : body.includes(t) ? 1 : 0),- 0- );- return { d, score };- })- .filter((x) => x.score > 0)- .sort((a, b) => b.score - a.score)- .slice(0, limit)- .map(({ d }) => ({- title: d.title,- description: d.description,- url: docUrl(d.slug)- }));+ const hits = await docSearch(query, limit);+ return hits.map((d) => ({+ title: d.title,+ description: d.description,+ url: docUrl(pagePath(d.slug))+ }));}/** Read the full markdown for a doc by its public URL (as returned by search_docs). */export function readDoc({ url }: { url: string }) {- const slug = url- .replace(`${DOCS_BASE}/`, "")- .replace(/^https?:\/\/[^/]+\//, "")- .replace(/^\/+/, "");- const content = files[`./kb/${slug}.md`];- if (!content) return { error: `Doc not found: ${url}` };- return { url: docUrl(slug), content };+ const path = pagePath(+ url+ .replace(`${DOCS_URL}/`, "")+ .replace(/^https?:\/\/[^/]+\//, "")+ .replace(/[?#].*$/, "")+ .replace(/^\/+|\/+$/g, "")+ );+ const doc = byPath.get(path);+ if (!doc) return { error: `Doc not found: ${url}` };+ const content = `# ${doc.title}\n\n${+ doc.description ? `> ${doc.description}\n\n` : ""+ }${doc.markdown}\n`;+ return { url: docUrl(path), content };}diff --git a/apps/erp/app/modules/agent/agent.tools.test.ts b/apps/erp/app/modules/agent/agent.tools.test.tsindex d527d59b77..684db265aa 100644--- a/apps/erp/app/modules/agent/agent.tools.test.ts+++ b/apps/erp/app/modules/agent/agent.tools.test.ts@@ -8,7 +8,7 @@ vi.mock("~/routes/api+/v1+/lib/call.server", () => ({ callOperation }));// Data tools are gated off in v1; enable them so call_tool exists to test.vi.mock("./agent.config", () => ({ AGENT_DATA_TOOLS_ENABLED: true }));-// agent.pages → ~/utils/path → @carbon/glossary, whose module-load-time Lingui `msg`+// agent.pages → ~/utils/path → @carbon/content/glossary, whose module-load-time Lingui `msg`// macros aren't transformed under plain vitest and throw. The tools under test need// none of it. Same stub as production.service.test.ts.vi.mock("@lingui/core/macro", () => ({diff --git a/apps/erp/app/modules/agent/kb/README.md b/apps/erp/app/modules/agent/kb/README.mddeleted file mode 100644index a150801bed..0000000000--- a/apps/erp/app/modules/agent/kb/README.md+++ /dev/null@@ -1,18 +0,0 @@-# Agent knowledge base (auto-generated — do not edit)--Every file in this folder is generated from the docs site (`docs/content/**`) by-`docs/scripts/generate-agent-kb.ts`. It is the read-only corpus the in-app agent searches-(`search_docs`) and reads (`read_doc`), bundled into the erp image so it ships with the app.--**Do not edit these files by hand — your changes will be overwritten.**--To update the content, edit the source docs under `docs/content/` and regenerate, then-commit the result **in the same commit** as the docs change (same model as filling `.po`-translations before committing):--```bash-pnpm run generate:agent-kb-```--The check-and-commit skill runs this automatically when `docs/content/**` or the generator-is in the change set. See `.ai/rules/agent-knowledge-base.md`.diff --git a/apps/erp/app/modules/agent/kb/docs/building/api-keys.md b/apps/erp/app/modules/agent/kb/docs/building/api-keys.mddeleted file mode 100644index 879e011fdf..0000000000--- a/apps/erp/app/modules/agent/kb/docs/building/api-keys.md+++ /dev/null@@ -1,70 +0,0 @@-# API keys--> A scoped secret that lets an external system call the Carbon API on your behalf, with its own permissions.--An API key is a secret string that authenticates programmatic calls to Carbon. Where a person signs in and Carbon reads their session's permissions, a script sends its key on every request and Carbon reads the key's own permissions instead. A key belongs to one company and carries an explicit set of scopes, so you can hand a partner or a job exactly the access it needs and nothing more. Manage keys under **Settings → API Keys**.--Claude.ai, Claude Desktop, and ChatGPT connect over **OAuth**: add the server URL, approve in the browser, and the connection inherits the role and company of whoever authorized it. A key is for everything that can't do that browser dance: Claude Code, Cursor, VS Code, Codex, headless scripts, and CI (stdio-only clients bridge through `mcp-remote`). The [authentication reference](/api/authentication) covers both flows.--## Creating a key--Click **New API Key**, give it a **Name** (unique within your company), optionally set **Expires At** (blank means never), grant scopes in the permission matrix, and save. Carbon shows the full key exactly once, in a dialog headed "You can only see this key once. Store it safely." — copy it right then. Only a SHA-256 hash and a five-character preview are kept, so a lost key means delete and recreate. The same dialog hands you a ready-to-paste MCP command that wires the key into an AI assistant.--Anyone holding the key can act as it, within its scopes. Store it in a secret manager, never commit it, and rotate (delete and recreate) if it leaks.--## Authenticating a request--Send the key as a bearer token; the hosted Data API lives at `rest.carbon.ms`:--```http-GET /salesOrder?select=id,salesOrderId,status-Host: rest.carbon.ms-Authorization: Bearer crbn_your_key_here-```--There is no login step and no token to refresh. Carbon hashes the incoming key, looks it up, and checks expiry and the rate limit before letting the request through.--`rest.carbon.ms` takes `Authorization: Bearer crbn_…` and forwards it internally as the `carbon-key` header. Calling PostgREST directly on a self-hosted install, send `carbon-key: crbn_…` against `/rest/v1/<table>` instead. The MCP endpoint takes the same Bearer token either way.--## Scopes and rate limit--A key does **not** inherit its creator's permissions: it acts with exactly the `module_action` scopes stored on it (`sales_view`, `inventory_create`, …), and only within its company. A key with no scopes can authenticate but read and write nothing. Scopes are checked on every request against the key's own record, so tightening them, or deleting the key, takes effect immediately. On Carbon Cloud, API access is a **Business-tier feature**: a company on the Starter plan gets `403` on every call regardless of the key's scopes; see `docs/platform/licensing`.--Every key allows **60 requests per minute**, counted per key, so one integration burning its allowance doesn't throttle another. The limit is platform-controlled: the form has no rate-limit field, and the list's **Rate Limit** column is a report, not an input. A rejected request comes back `429` with `Retry-After` and `X-RateLimit-*` headers; wait it out rather than hammering through.--## What the key unlocks--One key unlocks two surfaces. Reach for the **[Carbon API](/api)** first: the service layer, the same code the app runs when you click a button, with every call validating its input, recalculating what depends on it, and enforcing your permissions. Every operation is reachable two ways with the same arguments, plain HTTP at `POST /api/v1/{module}/{operation}` or a tool over [MCP](/api/mcp), and each carries a `READ` / `WRITE` / `DESTRUCTIVE` classification so a client can filter or gate by risk. Each operation has its own reference page with copyable samples in six languages, and the published OpenAPI spec means a typed client in your language is one generator command away — see [Client SDKs](/api/sdks).--The **[Data API](/api/data)** is direct REST access to every table and view, governed by the same row-level security as the app.--It writes straight to tables, so Carbon does not recalculate the derived values (totals, statuses, ledger entries) it maintains when you write through the Carbon API. Use it when the Carbon API doesn't cover what you need and you know exactly what the table touches.--## Keys versus webhooks--An **API key** lets *you* call *Carbon*; a **`docs/building/webhooks`** lets *Carbon* call *you* when a subscribed record changes. They're independent — webhook payloads aren't signed with a key — and the common pattern is both together: the webhook tells you *that* a record changed, your key fetches the full, current record.-- - Webhooks Get an HTTP callback when a Carbon record changes, then pull the detail with your key.- - Data API The generated endpoint catalogue for every table and view.--## Internals and troubleshooting--Key format is `crbn_` + random token; storage is SHA-256 hash + last-five preview. `insertApiKey`/`updateApiKey` strip rate-limit columns from any submission (`settings.service.ts:1282`). The 429 response headers come from `packages/auth/src/services/auth.server.ts:255`.--### "API key lacks required permissions"-The call needs a `module_action` scope the key doesn't carry — checked per request against the key's record (`functions/lib/supabase.ts:315`), never the creator's permissions. Add the exact scope in the permission matrix; it applies immediately.--### 403 on every call despite correct scopes-On Carbon Cloud, API access is Business-tier: the key path blocks Starter-plan companies outright (`packages/auth/src/services/auth.server.ts:312-330`). Upgrade the plan; the key itself is fine. A 403 on a single operation is the scope problem above instead. Connectors (OAuth) hit the same plan gate through the identity they inherit.--### "Rate limit exceeded"-Over the key's 60/minute window (`supabase.ts:304`). Platform-controlled, no field to raise it. Honor `Retry-After`; if the ceiling is genuinely too tight, batch reads (PostgREST `in.(...)` filters, embedded relations) or talk to us.--### "API key has expired"-`expiresAt` is in the past (`supabase.ts:293`). Expiry can't be extended on a used key — create a new one and swap it in.--### "API key not found"-The token didn't hash to a key for this company (`supabase.ts:287`): mistyped/truncated, a different company's key, or a deleted one. Verify the full value.--### I lost the key / can't see it again-Not possible by design — the full key is shown once at creation and only a hash is kept. Delete and recreate.diff --git a/apps/erp/app/modules/agent/kb/docs/building/architecture.md b/apps/erp/app/modules/agent/kb/docs/building/architecture.mddeleted file mode 100644index 56dc286ee3..0000000000--- a/apps/erp/app/modules/agent/kb/docs/building/architecture.md+++ /dev/null@@ -1,974 +0,0 @@-# Architecture--> One journey from a button click, through the server, into Postgres, out to background jobs, and back to the screen.--Carbon is software that runs a manufacturing business: what it buys, what it holds in stock, what it-builds, what it ships, and whether the quality held up. Two separate apps do that. The **ERP** is the-office app, where people quote, purchase, plan and invoice. The **MES** is the shop floor app, used on-tablets next to the machines to run and record the actual work.--This page follows one journey. A user clicks a button, something is saved, other things happen because-of it, and the screen updates. Everything else hangs off that spine. [Part 1](#part-1-the-map) and-[Part 2](#part-2-follow-one-click-all-the-way-down) are the ones to read in order; the rest stands on-its own, so take it in any order you like.--Any term you might not know is marked with a number the first time it appears, like this:-Postgres [[17]](#g17). The number links to a one-line definition in the [Glossary](#glossary) at the-end. Nothing is assumed.-- The file paths, line numbers and counts throughout are accurate as of August- 2026. They will drift as the repository moves; the ideas they illustrate- outlast them.-------## Part 1: The map--Carbon is a monorepo [[10]](#g10): one Git repository holding several applications and-about twenty-five shared libraries, built together by pnpm workspaces and-Turborepo [[25]](#g25). Two of those applications are the products people log into, the-ERP and the MES. Everything else exists to serve them.--The center of gravity is a single Postgres [[17]](#g17) database. Almost every arrow in-this doc eventually points at it. Unusually for a web app, a lot of logic that you might-expect to live in application code lives _inside_ the database instead: permissions,-computed totals, and the "something changed" notifications. That is the single most-important thing to understand about Carbon, and [Part 3](#part-3-layer-by-layer) explains why.--Color is used sparingly in these diagrams, and it means the same thing in all of them:-**blue** is our own apps, **pink** is stored state, **amber** is work that happens in the-background. Everything else is left plain on purpose.--**The five things worth taking from that picture:**--1. **The ERP app is the hub.** It serves pages, and it is also where background jobs- execute. Inngest [[5]](#g5) does not run our code on its own machines; it calls back- into the ERP container: it is a timer and a queue that POSTs to `/api/inngest` saying- "run this job now", and our own code does the work. See- [Part 4](#part-4-what-happens-after-the-write).-2. **Most database access is not raw SQL.** It goes through PostgREST [[18]](#g18), a- service that turns `client.from("purchaseOrder").select(...)` into a SQL query. We use- the `supabase-js` library to talk to it.-3. **The database enforces permissions itself.** Even if application code forgets a- filter, Postgres will not return another company's rows. (Except on one specific- escape hatch: see [Part 3](#part-3-layer-by-layer).)-4. **Writes on the right tables cause events automatically.** Around ninety tables opt- in to a database trigger, and where a company has subscribed to one, search indexing,- webhooks, audit logs and customer automations all happen without the code that did the- write knowing about them.-5. **The Rust service is optional.** It turns uploaded CAD files into 3D models the- browser can show, and works out the order parts come apart in for assembly- instructions. Carbon runs fine without it.-------## Part 2: Follow one click all the way down--Here is the whole system in one story: **a buyer creates a Purchase Order.**--Pick this one apart and you have seen every layer: a form, validation, a permission-check, a database write, logic living in Postgres, a background side effect, and the-screen updating. Every other feature in Carbon is a variation on it.--### The short version--Notice the shape: the user's request finishes as soon as the row is written. The search-indexing happens afterwards, on its own, and nobody waited for it.--### The same story, with real files--Every path below is real. Open them in your editor as you read.--**1. The button.** It is a link, not a submit button.--`apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrdersTable.tsx:502`--```tsx-primaryAction={- permissions.can("create", "purchasing") && (- <New label={t`Purchase Order`} to={path.to.newPurchaseOrder} />- )-}-```--Two conventions in three lines. `permissions.can(...)` hides UI the user is not allowed-to use; this is _cosmetic only_, the real check happens on the server. And the URL comes-from `path.to.*`, a single registry of every URL in the app-(`apps/erp/app/utils/path.ts`, ~2,200 lines). **Never hardcode a URL string.**--**2. The form.** `apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderForm.tsx:116`--```tsx-<ValidatedForm- method="post"- validator={purchaseOrderValidator}- defaultValues={initialValues}->-```--`ValidatedForm` is our wrapper around a plain HTML form. You hand it a schema; it blocks-submission and shows inline field errors if the data is wrong, and it re-displays server-errors in the same place. Fields (``, ``) come-from `~/components/Form`, which re-exports generic inputs plus about ninety-Carbon-specific pickers (Customer, Supplier, Item, Location, Currency…).--**3. The schema.** `apps/erp/app/modules/purchasing/purchasing.models.ts:127`--```ts-export const purchaseOrderValidator = z.object({- id: zfd.text(z.string().optional()),- purchaseOrderId: zfd.text(z.string().optional()),- purchaseOrderType: z.enum(purchaseOrderTypeType, {- /* ... */- }),- supplierId: z.string().min(1, { message: "Supplier is required" }),- locationId: zfd.text(z.string().optional()),-});-```--zod [[28]](#g28) is a schema library: you describe the shape of the data once, and get-both runtime validation and a TypeScript type from it. `zfd` (`zod-form-data`) handles the-fact that HTML forms send everything as strings: `zfd.text()` turns an empty field into-`undefined` rather than `""`.--**One schema, used in three places:** the browser validates against it, the server-re-validates against it, and the service function's argument type is derived from it. That-is why the three can never drift apart.--**4. The route.** `apps/erp/app/routes/x+/purchase-order+/new.tsx:29`--```ts-export async function action({ request }: ActionFunctionArgs) {- assertIsPost(request);- const { client, companyId, companyGroupId, userId } =- await requirePermissions(request, {- create: "purchasing",- bypassRls: true,- });-- const formData = await request.formData();- const validation = await validator(newPurchaseOrderValidator).validate(- formData- );- if (validation.error) return validationError(validation.error);-- const result = await insertPurchaseOrder(client, {- ...validation.data,- companyId,- companyGroupId,- createdBy: userId,- customFields: setCustomFields(formData),- });-- if (result.error || !result.data) {- throw redirect(- path.to.purchaseOrders,- await flash(- request,- error(result.error, "Failed to insert purchase order")- )- );- }- throw redirect(path.to.purchaseOrder(result.data.id));-}-```--This is the shape of _every_ write in Carbon:--> **assert the method → check permissions → validate → call a service → redirect.**--A file under `apps/erp/app/routes/` can export up to three things that matter here:--| Export | Runs where | Job |-| ------------------- | -------------------------- | --------------------------- |-| `loader` [[8]](#g8) | server only | fetch the data a page needs |-| `action` [[1]](#g1) | server only | handle a form submission |-| `export default` | server first, then browser | the React component |--`loader` and `action` are stripped out of the JavaScript sent to the browser, so it is-safe to use secrets and database clients in them. This is the same idea as Next.js-server components or a traditional controller; the file just happens to hold both-halves.--**5. The service function.** `apps/erp/app/modules/purchasing/purchasing.service.ts:1393`--Routes never talk to the database directly. They call a _service function_: a plain-function whose first argument is a database client and which returns Supabase's raw-`{ data, error }` without throwing.--```ts-const seq = await client.rpc("get_next_sequence", {- sequence_name: "purchaseOrder",- company_id: input.companyId,-});--const order = await client- .from("purchaseOrder")- .insert({- purchaseOrderId,- supplierId: input.supplierId,- status: "Draft",- companyId: input.companyId,- createdBy: input.createdBy /* ... */,- })- .select("id, purchaseOrderId")- .single();--const [delivery, payment] = await Promise.all([- client.from("purchaseOrderDelivery").insert({- /* ... */- }),- client.from("purchaseOrderPayment").insert({- /* ... */- }),-]);--if (delivery.error || payment.error) {- await deletePurchaseOrder(client, orderId); // manual undo- return { data: null, error: delivery.error ?? payment.error };-}-```--That last block is the honest, ugly truth about `supabase-js`: **three `.insert()` calls-are three separate HTTP requests, so they are not a transaction.** If the second fails,-the first is already committed, and we have to undo it by hand. When you need a real-transaction, use Kysely [[6]](#g6) instead. See-[Part 3.3](#33-the-service-layer-four-doors-to-the-database).--**6. What Postgres does by itself.** Two things happened that no TypeScript asked for.--_The order number._ `client.rpc("get_next_sequence", ...)` calls an RPC [[21]](#g21), a-function that lives _inside_ the database-(`packages/database/supabase/migrations/20241115101526_rpc-get-next-sequence.sql`). It-reads and bumps a counter and formats the result (`PO` + zero-padding + optional date-tokens) in a single atomic step. Doing this in application code would hand two-simultaneous buyers the same number.--_The event._ Every insert into `purchaseOrder` fires a Postgres **trigger**, a function-the database runs automatically on a write. It drops a small JSON message onto a queue-that lives in a database table. Nothing in the route knows this is happening. [Part 4](#part-4-what-happens-after-the-write)-follows that message to the end.--**7. The screen updates.** The action ends with `throw redirect(...)`. React Router-follows the redirect and runs the destination's `loader`, which re-reads from the-database and renders the finished page. There is no client-side cache to invalidate and-no "add the new row to the list in state" code. **After any non-GET submission, React-Router automatically re-runs the loaders for the current page.** That is the whole-refresh mechanism.-------## Part 3: Layer by layer--### 3.1 The browser and the route file--The apps are **React Router v7** in framework mode: server-rendered React, where a-single file owns both a URL's data-loading and its UI. (It is not Remix and not Next.js,-though it is the direct descendant of Remix.) Vite [[27]](#g27) builds it; Tailwind v4-styles it.--**Routes are files on disk.** `apps/erp/app/routes/` has about 1,400 of them, and the-folder structure _is_ the URL structure, with a few conventions:--| In a filename | Means |-| --------------- | ---------------------------------------------------------------------------------- |-| `x+/` | a URL segment and a folder: `x+/purchase-order+/new.tsx` → `/x/purchase-order/new` |-| `_public+/` | a folder for grouping that adds **no** URL segment |-| `_layout.tsx` | a wrapper shared by every route in the folder |-| `$orderId` | a URL parameter: `$orderId.tsx` → `/:orderId` |-| `.` in the name | a `/` in the URL: `dimensions.new.tsx` → `dimensions/new` |-| `_index.tsx` | the page for the folder's own URL |-| `*.server.ts` | ignored by the router; a helper file that never reaches the browser |--Top-level namespaces: `x+` is the logged-in app (66 module folders), `api+` holds JSON-endpoints with no UI, `_public+` is login/logout, and `share+` is the _unauthenticated_-surface: links you email to a customer to view a quote.--**Getting data in.** A `loader` runs on the server, calls service functions, and returns-plain JSON; the component reads it with `useLoaderData<typeof loader>()`. Data shared by-the whole app (the current user, their company, their permissions, feature flags) is-loaded once in `apps/erp/app/routes/x+/_layout.tsx` (about eighteen parallel queries) and-read anywhere via hooks like `useUser()`, `usePermissions()`, `useCompanySettings()`.-Those hooks read the layout route's loader data, not a React context.--**Getting data out.** Forms post to an `action`, as in [Part 2](#part-2-follow-one-click-all-the-way-down). For writes that should-_not_ navigate (reordering rows, an inline edit, a delete button), use `useFetcher()`,-which posts in the background and still triggers the automatic revalidation.--**Shared UI.** Look in two places before writing a component:--- `packages/react/`: the design system (`@carbon/react`). Buttons, modals, comboboxes,- menus, layout primitives. Built on Radix UI [[19]](#g19) and Tailwind.-- `apps/erp/app/components/`: app-level pieces. The big one is- `components/Table/Table.tsx`, a single generic table (~1,500 lines, built on TanStack- Table) that every list screen uses. It handles sorting, filtering, pagination, saved- views, CSV import/export, column visibility and inline editing. You pass `data`,- `columns` and `count`; the server does the paging via URL search params.--**Client state** is deliberately small. Reference lists that everything needs (items,-customers, suppliers, people) live in nanostores [[13]](#g13) and are kept fresh by-`RealtimeDataProvider`. Ephemeral UI state (is the search modal open) uses-zustand [[29]](#g29). User and permission data lives in _neither_; it comes from the-route loader.--**Translations** use Lingui [[7]](#g7): wrap a string in `` t`...` `` or ``, run-`pnpm lingui:extract`, and translators fill in thirteen locale files.--**MES is the same stack, simpler.** No `modules/` folder: services sit flat in-`apps/mes/app/services/`, all validators in one `models.ts`, routes are one flat level,-and the UI is built for gloved hands on a tablet.--### 3.2 The gate: who is allowed to do what--Every server-side entry point in Carbon starts with the same call. There are about 1,600-of them.--```ts-const { client, companyId, userId } = await requirePermissions(request, {- create: "purchasing",-});-```--Defined at `packages/auth/src/services/auth.server.ts:195`. It does four jobs at once:--1. **Identifies the caller.** Either from the session cookie (a browser) or from a- `carbon-key` header (our public API, which additionally gets rate-limited and scope-checked).-2. **Loads their permissions.** Permissions are stored as `<module>_<action>` keys such- as `purchasing_create` or `sales_view`, each mapping to the list of companies where the- user holds it. They are fetched by a Postgres function called `get_claims` and cached- in Redis for an hour. They are _not_ in the JWT.-3. **Refuses if they lack it.** Redirect to login if not signed in at all, or an "Access- Denied" toast otherwise.-4. **Hands back a database client already scoped to this user**, plus their `companyId`- and `userId`.--**Multi-tenancy** [[12]](#g12) is the reason for a lot of what follows: Carbon is one-database serving many customer companies. Nearly every table has a `companyId` column and-a composite primary key `("id", "companyId")`. Which company you are acting as is read-from your session cookie, never from the URL.--**RLS (Row Level Security)** [[20]](#g20) is the part worth understanding even if you-never write SQL. It is a Postgres feature where each table carries a rule that is silently-`AND`ed onto every query the database receives. Ours look like this:--```sql-CREATE POLICY "SELECT" ON "public"."reportPin"-FOR SELECT USING (- "companyId" = ANY ((SELECT get_companies_with_employee_role())::text[])-);-```--So if a query for another company's purchase orders reaches Postgres, it returns zero-rows. The tenant boundary is enforced by the database, not by us remembering a `.eq()`.-Service functions still filter by `companyId` anyway, as a second line of defense.--**The escape hatch.** Notice `bypassRls: true` in the Purchase Order action. RLS costs-real query time on hot paths, so for trusted employee requests we hand back a service-role-[[22]](#g22) client that skips it entirely. That is a deliberate trade, and it moves the-responsibility back to us: any loader using `bypassRls` must re-check the tenant by hand,-as the PO detail route does:--```ts-if (purchaseOrder.data?.companyId !== companyId)- throw redirect(path.to.purchaseOrders);-```--**Three kinds of user** share one login system, distinguished by a `role` on their-company membership: `employee`, `customer`, `supplier`. Portal users get much narrower-permission sets, and routes can demand `{ role: "employee" }`. Separately, `share+/`-routes are fully unauthenticated; a long unguessable token in the URL is the credential.--### 3.3 The service layer: four doors to the database--A service function's first argument is always a client, and there is more than one kind.-Picking the wrong one is the most common mistake made here.--**1. The user-scoped client.** What `requirePermissions` normally returns. Every query-runs as that user with RLS applied. Use it unless you have a reason not to.--**2. The service-role client** (`getCarbonServiceRole()`) ignores RLS entirely. Needed-by background jobs (which have no logged-in user), by `share+/` routes, and by-`bypassRls: true` requests. **You are now the only thing standing between a bug and a-cross-tenant data leak.**--**3. Kysely** is a TypeScript SQL query builder that holds a real connection to Postgres,-so it can open a real transaction. This is the answer to the "three inserts aren't-atomic" problem from [Part 2](#part-2-follow-one-click-all-the-way-down):--```ts-// updateSortOrder (apps/erp/app/modules/shared/sort-order.ts), which every-// drag-to-reorder route uses: one UPDATE for all the rows, inside a transaction.-await db.transaction().execute(async (trx) => {- const { rows } = await sql<{ id: string }>`- UPDATE "quoteLine" AS t SET "sortOrder" = v."sortOrder", …- FROM (VALUES ${values}) AS v("id", "sortOrder")- WHERE t."id" = v."id"- AND t."companyId" = ${companyId}- AND t."quoteId" = ${quoteId}- RETURNING t."id"`.execute(trx);- // A row from another company or another quote matched nothing. Throwing- // here rolls back the rows that did match: all or nothing.- if (rows.length !== updates.length) throw new Error("…");-});-```--Four warnings. Kysely **throws** on failure rather than returning `{ error }`, so wrap it-in `try/catch`. It applies **no** RLS, so authorize before you call it, and then scope-**every** statement yourself: `companyId` always, plus the parent document's id whenever-the row ids come from the request. Without the parent filter, a request sent through one-quote's URL could reorder the lines of any other quote in the company, including one-that is already closed. Write one statement for the whole set rather than a query per row-inside a loop. And the pool it-draws from is small (edge functions ask for exactly one connection,-`getConnectionPool(1)`): if code inside a transaction reaches for a second connection from-the same pool, that second request queues behind a transaction that cannot finish until it-is served, and the whole thing hangs until the timeout. Do all the work of a transaction-on the `trx` handle you were given, never on `db`.--**4. Edge functions** are small programs written for Deno [[2]](#g2), deployed next to the-database and called over HTTP [[4]](#g4). There are about forty in-`packages/database/supabase/functions/`, and they own the genuinely heavy work:-MRP [[11]](#g11), production scheduling, posting a shipment or an invoice to the general-ledger, CSV import, exporting a whole company. Call one and wait for its answer:--```ts-const { data, error } = await client.functions.invoke("post-shipment", {- body: { type: "post", shipmentId, userId, companyId },-});-```--They exist for two reasons: they can hold a database connection and run a big-multi-thousand-row transaction properly, and they are callable from anywhere (the ERP,-the MES, a background job, the public API), not just from a route handler.--"Heavy" here means heavy in SQL, not heavy in the function. Supabase caps an edge function-tightly, a couple of hundred megabytes of memory and a short processor-time budget, far-below a normal server or an ordinary Lambda, so the useful pattern is to let Postgres do-the lifting and keep the function itself thin. Work that is heavy in JavaScript, or that-runs for minutes, belongs in an Inngest job instead; work that needs real computing power,-like CAD geometry, belongs in the Rust service.--There is also a fifth, narrower door: **RPCs**, plain Postgres functions called with-`client.rpc("name", args)`. About 85 call sites. `get_next_sequence` from [Part 2](#part-2-follow-one-click-all-the-way-down) is one.--### 3.4 The database--Postgres 15, wrapped by Supabase [[24]](#g24), an open-source bundle that adds an-auto-generated REST API (PostgREST), user authentication, file storage, a realtime change-feed, and the edge function runtime, all on top of one ordinary Postgres database.--Rough size, for a sense of scale: **923 migration files**, 362 tables,-101 views, 238 database functions, 154 enum types.--**Migrations** [[9]](#g9). Every schema change is a timestamped SQL file in-`packages/database/supabase/migrations/`, named `YYYYMMDDHHMMSS_kebab-name.sql`. Create-one with `pnpm db:migrate:new <name>`, apply with `pnpm db:migrate`. They are applied in-filename order and never edited after merge.--A typical table shows every convention at once:--```sql-CREATE TABLE "itarCertification" (- "id" TEXT NOT NULL DEFAULT id('itc'),- "companyId" TEXT NOT NULL,- "createdBy" TEXT NOT NULL REFERENCES "user"("id"),- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),- "updatedBy" TEXT REFERENCES "user"("id"),- "updatedAt" TIMESTAMP WITH TIME ZONE,- PRIMARY KEY ("id", "companyId"),- FOREIGN KEY ("companyId") REFERENCES "company"("id") ON DELETE CASCADE-);-ALTER TABLE "public"."itarCertification" ENABLE ROW LEVEL SECURITY;-```--`id('itc')` generates a prefixed, sortable, URL-safe id such as `itc_3xK9...`. The prefix tells-you what an id refers to at a glance.--**Views** [[26]](#g26) **are the read path.** This is the second-most-important idea in-Carbon after RLS.--We **write to tables** but **read from views**. A view is a saved query that behaves like-a table. `purchaseOrders` (plural, that is the naming convention) joins in the supplier-name, sums the line amounts into `orderTotal`, converts currency, counts received-quantities, and fetches a thumbnail. So the create path never calculates a total: it-inserts a header, and the view derives everything else on read.--When a list screen shows a number you cannot find in any table, look for the view. They-are defined in migrations, always with `WITH (security_invoker = true)` so the caller's-RLS still applies.--**Types are generated, never written.** `pnpm run generate:types` points the Supabase CLI-at your local database and writes `packages/database/src/types.ts`, about 80,000 lines-describing every table, view, function and enum. App code imports from it:--```ts-import type { Database } from "@carbon/database";-type PurchaseOrderRow = Database["public"]["Tables"]["purchaseOrder"]["Row"];-```--**Run `pnpm run generate:types` after pulling migrations or writing one, before you-typecheck.** Half of all "this property doesn't exist" errors are a stale types file.--**Logic that lives in Postgres.** We push logic into the database when it must hold true-for _every_ writer: the ERP, the MES, an edge function, a background job, the public-API, or someone running SQL by hand. Two examples:--- `update_picking_list_status()` is a trigger that recomputes a picking list's header- status whenever one of its lines changes. Written from four different places;- recomputing it in each caller would drift.-- `dispatch_event_batch()` is the event trigger from [Part 4](#part-4-what-happens-after-the-write). It must enqueue in the _same- transaction_ as the write that caused it, so a rolled-back write never emits a- phantom event.--**Files** live in Supabase Storage buckets: `private` is the workhorse (attachments,-drawings, quality records), `public` and `avatars` are self-explanatory, plus one bucket-per company and `temp-staging` for large CAD uploads.-------## Part 4: What happens after the write--Back to that queued event. This chain is the piece most likely to surprise you, because-none of it is visible from the code that did the write.--It is not every write, though. A table only emits events once a migration has opted it in-with `attach_event_trigger('tableName')` — about ninety have — and even then the trigger-enqueues nothing unless that company has an **active subscription** matching the table and-the operation. So the same `UPDATE` can fan out to six handlers for one company and do-absolutely nothing for another.--Three unfamiliar pieces in that chain: PGMQ [[16]](#g16) is the queue, which lives in-ordinary Postgres tables so a trigger can write to it inside the same transaction;-pg_net [[15]](#g15) is what lets the database make the outbound HTTP ping after that-transaction commits; and Inngest [[5]](#g5) is the background job runner.--In plain terms, Inngest works like this: you send it a named event, it calls one of your-registered functions over HTTP, and it remembers how far that function got. Each-`step.run("id", fn)` inside a function is a checkpoint: if step four fails and retries,-steps one to three are not re-executed; their saved results are handed back. That is why-it is used for anything that must survive a crash.--The wiring is three files:--| What | Where |-| -------------------------------- | ------------------------------------- |-| The client | `packages/lib/src/inngest/client.ts` |-| The list of all 55 job functions | `packages/jobs/src/inngest/index.ts` |-| The HTTP endpoint Inngest calls | `apps/erp/app/routes/api+/inngest.ts` |--That last row is the surprising one: **background jobs run inside the ERP container.**-Inngest is a scheduler and a memory, not a compute host.--**Firing a job on purpose.** The automatic trigger path above is for row changes. When-code wants to _deliberately_ kick something off, it calls the typed helper `trigger()`-(about 108 call sites):--```ts-await trigger("notify", {- event: NotificationEvent.JobAssignment /* ... */,-});-```--Event names are always `carbon/<something>`.--**Scheduled work** comes from two places. Inngest crons handle app-level jobs: MRP every-three hours, notification digests every fifteen minutes, exchange rates and audit-archiving nightly, workflow-run cleanup at 04:00. All of them are UTC, and any job that-needs a company's local day computes it inside the run. Database-level maintenance uses-pg_cron [[14]](#g14) instead, for refreshing cached aggregate tables and sweeping the event-queue.--**Notifications** fan out from one job (`packages/jobs/.../notifications/notify.ts`) to-three destinations: in-app rows (which the topbar picks up live over Realtime), email via-Resend, and Slack. `packages/notifications` itself is only the list of event types; it-sends nothing.-------## Part 5: The other engines--### Workflows: the customer's own automations--Carbon ships a drag-and-drop canvas where a _customer_ builds "when a quote is accepted,-notify the account manager and create a job". Confusingly these are also called-workflows, and they are a completely different thing from Inngest jobs:--| | Inngest jobs | Workflows |-| ---------- | ----------------------------- | ---------------------------------------- |-| Written by | us, in TypeScript | customers, on a canvas |-| Stored as | code | JSON rows in `workflowVersion` |-| Runs as | service role, sees everything | **the workflow's owner**, with their RLS |-| Changed by | a deploy | the customer, at any moment |--They reuse the event pipeline from [Part 4](#part-4-what-happens-after-the-write), the `WORKFLOW` branch. A matcher takes the-row change, works out which catalog events it corresponds to, finds subscribed workflows,-and queues one run each. `packages/workflows` holds the pure definition/validation logic-and touches nothing; `packages/jobs/src/workflows/` holds the runtime that actually does-things. Every run and every step is recorded, so a customer can open a run and see what-happened.--### The Assembler: the Rust service--`apps/assembler` plus `crates/` is a Rust HTTP service that converts CAD files (STEP) into-web-renderable 3D (GLB) and plans a collision-free disassembly sequence for assembly-instructions. It wraps two C++ libraries (OpenCASCADE for geometry, FCL for collision).-`packages/viewer` renders its output in the browser.-It is entirely optional; everything else boots without it.--It is not a call-and-wait service. A job is submitted and answered later: the caller posts-the work and gets a job id back, then waits for a callback, with polling as a fallback.-Files never travel through the ERP. The caller hands over signed URLs, one to read the CAD-file from and one to write the result to, and the Rust service streams straight to and-from the storage bucket itself; it holds no database credentials and can see nothing else.-Redis is where job state and finished-result pointers live, which is why the service-refuses to start without it.-------## Part 6: The repo map--**Applications** (`apps/`, plus `docs/` at the root):--| App | What it is | Dev port |-| ----------- | --------------------------------------------------------------------------- | -------- |-| `erp` | The main product, and the host for all background jobs. By far the largest. | 3000 |-| `mes` | Shop floor: job operations, work centers, scheduling. Touch-first. | 3001 |-| `academy` | Training app for new Carbon users. | 4111 |-| `starter` | A minimal example app showing auth + database + forms. | 4000 |-| `assembler` | The Rust CAD/3D service. | varies |-| `docs` | Public documentation site. The only Next.js app here. | 3002 |--**Libraries** (`packages/`). The ones you will actually touch are near the top:--| Package | What it does |-| --------------- | ---------------------------------------------------------------------------------------------------------------- |-| `react` | The design system. **Check here before writing any UI.** |-| `database` | Generated types, migrations, edge functions, database clients. |-| `auth` | Login, sessions, `requirePermissions`, API keys, permission caching. |-| `form` | `ValidatedForm`, field components, zod helpers. |-| `jobs` | Every Inngest background function, plus the workflow runtime. |-| `lib` | Shared server utilities: the Inngest client, `trigger()`, email, Slack. |-| `utils` | Pure helpers: dates, money, arrays, strings, BOM maths. |-| `workflows` | Customer workflow schema, validation and pure runtime. No I/O. |-| `documents` | PDF generation, email templates, barcode and label rendering. |-| `locale` | Lingui setup and language switching. |-| `env` | The one place `docs/platform/self-hosting/environment-variables` are read and validated. |-| `logger` | Structured logging, with request-id correlation. |-| `notifications` | The notification event taxonomy (enums only). |-| `printing` | Printer registry, label queue, physical print delivery. |-| `onboarding` | New-company setup content. |-| `kv` | Redis client plus rate limiting. |-| `stripe` | Billing. Cloud edition only. |-| `ee` | Enterprise-only code: Xero, Slack, Jira, Linear, Onshape, plan gating. |-| `viewer` | 3D model and assembly-instruction rendering. |-| `tiptap` | Rich text editor. |-| `dev` | The `crbn` CLI that runs your local stack. |-| `checks` | Repo conformance rules enforced in CI. |-| `config` | Shared tsconfig, Tailwind theme, vitest preset. No runtime code. |-| `glossary` | Canonical manufacturing term definitions used in field help. |-| `harness` | Internal AI-agent tooling. Not shipped. |--**Inside an ERP module** (there are eighteen, under `apps/erp/app/modules/{module}/`):--```-purchasing/-├── purchasing.models.ts zod schemas and the types derived from them-├── purchasing.service.ts every database operation for this module-├── purchasing.server.ts server-only helpers (optional)-├── types.ts shared types-├── index.ts barrel, import from "~/modules/purchasing"-└── ui/ React components, grouped by feature-```-------## Part 7: Where it all runs--The same code base runs in three shapes: on a laptop, on the cloud Carbon operates for-customers, and on a server a customer owns. Nothing in the application knows which one it-is in; the difference is entirely in configuration.--### 7.1 On a laptop--`pnpm dev` runs `crbn up`, a custom CLI that boots an eleven-container Docker stack, waits-for Postgres, applies migrations, regenerates the database types, seeds a test user, and-starts the apps. The apps themselves run as ordinary Node processes on the host, not in-containers, which is what makes hot reload fast.--Each Git worktree (a second checkout of the same repository) gets its own ports, its own-database and its own freshly minted keys, so several branches can run at once. Redis is-the one exception: a single shared container, with each worktree given its own numbered-slot inside it.--### 7.2 The cloud Carbon runs--There are **two hosting paths, and both are live**: the shared cloud on Vercel, and-dedicated per-customer installations on AWS.--**The shared cloud runs on Vercel.** `app.carbon.ms` (ERP), `mes.carbon.ms` (MES),-`learn.carbon.ms` (academy) and `docs.carbon.ms` all resolve to Vercel, as does a separate-EU region (`app.eu.carbon.ms`, `mes.eu.carbon.ms`) served by its own pair of projects. Each-React Router app opts in through its `react-router.config.ts`, which enables-`vercelPreset()` from `@vercel/react-router` when the `VERCEL` environment variable is-present and is a no-op everywhere else — so the same source builds for Vercel or for a-container without a branch in the code. Deploys are driven by Vercel's own Git integration-rather than by a workflow in this repository.--**Dedicated installations run on AWS.** The ERP and MES are also packaged as Docker images-that run on ECS Fargate [[3]](#g3), which is Amazon running your container for you without-any server to look after. Each service sits behind its own load balancer on port 3000, is-checked for life at `/health`, and scales between one and ten copies on processor and-memory pressure. All of that is described in `sst.config.ts` (SST [[23]](#g23) is-infrastructure-as-code, where you write cloud resources in TypeScript instead of clicking-in a console). The `docs/platform/self-hosting/aws-sst` recipe is the same-stack, run by you. `itar.carbon.ms` is one of these: it resolves to a load balancer in AWS-GovCloud, not to Vercel.--The part that surprises people: **that path is not one big shared installation.** There is-a `workspaces` table, and on every deploy `ci/src/deploy.ts` walks it and runs-`sst deploy --stage prod` once per row, each with that customer's own AWS account, region,-domain, certificates, Supabase project and Redis. So Carbon separates customers twice-over: by `companyId` on every row inside one installation ([Part 3](#part-3-layer-by-layer)), and by giving a-customer their own installation entirely. Adding a customer means adding a workspace row.-A row missing a required field is skipped with a log line rather than failing the deploy,-so a tenant can silently not deploy.--Postgres is managed Supabase on both paths. There is one Lambda: the Assembler ships as a-single image that runs either as a Lambda function behind an API gateway (the default) or-as a container, which is why 3D conversion can be turned on per customer without changing-the main stack.--### 7.3 On a customer's own server--`contrib/deploying/simple-docker-caddy/` holds a complete `docs/platform/self-hosting/docker-caddy`: a Docker-Swarm file that brings up Postgres, the Supabase services, Redis, Inngest and both apps on-one machine, with Caddy in front as the only thing exposed to the internet. Secrets are-Swarm secrets rather than environment variables in a file. Migrations run as a throwaway-one-shot container before the apps roll. `scripts/backup.sh` takes a database dump plus-the uploaded files (see `docs/platform/backups`), and `scripts/harden.sh` does the-basic firewall setup.--Which features exist is decided by one variable, `CARBON_EDITION`: `community`,-`cloud`, `enterprise` or `test`. What each of those buys you is the-`docs/platform/licensing`. Self-hosting defaults to `community`; the cloud fan-out-sets `enterprise`.--### 7.4 How a merge becomes production--The Vercel side deploys itself: pushing to `main` triggers a build in each Vercel project-through its Git integration, with no workflow in this repository involved. Everything-below is the AWS side — four GitHub Actions workflows, deliberately independent of each-other rather than one pipeline:--| Workflow | Fires when | What it does |-| -------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `check.yml` | every pull request | Biome, typecheck, tests, translation and workflow-catalog checks |-| `deploy.yml` | merge to `main` touching `apps/erp`, `apps/mes` or `packages` | builds both images from the one root `Dockerfile`, pushes them to Amazon's image registry tagged with the commit, then fans out `sst deploy` per workspace |-| `supabase.yml` | merge touching `packages/database/supabase` | applies migrations and deploys edge functions, per workspace |-| `inngest.yml` | after `deploy.yml` succeeds | calls `PUT /api/inngest` on each app so Inngest learns the current list of jobs |--Two consequences worth knowing. First, `check.yml` never builds the apps, so a pull-request can go green and still break the image build on merge. Second, migrations and app-code deploy in parallel with no ordering between them, so a migration and the code that-depends on it can land seconds apart in either order; write migrations that are safe-against the previous version of the code.--There is no version tagging and no rollback button. An image is identified by its commit,-so rolling back means redeploying an older commit. Configuration is not held in a secrets-manager: values are read from the `workspaces` table at deploy time and set as plain-environment variables on the container.--### 7.5 Knowing what is happening--Observability is deliberately thin. Logs go through LogTape: color on a laptop, one JSON-line per entry in production, with sensitive field names blanked out and a request id-threaded through everything so one page load can be followed end to end. There is no log-shipping of its own, so logs are whatever the platform collects: CloudWatch on AWS,-`docker service logs` when self-hosted. PostHog covers product analytics and is switched-off entirely in controlled (ITAR) environments. There is no Sentry and no distributed-tracing.-------## Part 8: There's a bug, where do I look?--Start from what the user saw and walk inwards. This mirrors the order things happen.--**A few specific traps, each of which has caught someone out:**--- _TypeScript says a column doesn't exist._ Run `pnpm run generate:types`. Your generated- types are behind your migrations.-- _A query returns nothing but the row is definitely there._ RLS. Either the `companyId`- is wrong or you are using a user-scoped client where you needed service role.-- _A write half-succeeded._ Chained `supabase-js` calls are not a transaction. Look for a- manual rollback that didn't cover the failure.-- _A number on a list screen is wrong._ It is almost certainly computed in a view.-------## Part 9: House rules--The full list is in `AGENTS.md` at the repo root. The ones that cause-the most damage when broken:--- **`pnpm`, never `npm`.**-- **Never use JavaScript `Date`** for parsing, formatting or arithmetic. Use- `@internationalized/date` and `@carbon/utils`. A build check enforces this. Timezones in- a manufacturing schedule are not cosmetic.-- **Never hand-edit the generated database types.** Regenerate them.-- **Never skip `companyId` scoping**, even though RLS would probably catch it.-- **Never chain `supabase-js` writes and call it a transaction.** Use Kysely, or an RPC.-- **Never query inside a loop.** Collect the ids and make one `.in()` call.-- **One `{module}.service.ts` and one `{module}.models.ts` per module.** Don't scatter them.-- **Run `pnpm run generate:types` after any migration, before typechecking.**--Useful commands:--```bash-pnpm dev # boot everything-pnpm db:migrate:new <name> # create a migration-pnpm db:migrate # apply migrations-pnpm run generate:types # regenerate database types-pnpm exec turbo run typecheck --filter=erp # typecheck one package-pnpm run lint # Biome-pnpm run test # unit tests-```--Typechecking the whole repo at once runs out of memory, so always use `--filter`.-------## Glossary--Numbered so the body can point at them. Alphabetical.--<a id="g1"></a>-**1. Action:** the function a route file exports to handle a form submission.-Runs on the server only, never shipped to the browser.--<a id="g2"></a>-**2. Deno:** an alternative JavaScript runtime to Node.js. Our edge functions-are written for it, which is why they use `https://` imports instead of-`node_modules`.--<a id="g3"></a>-**3. ECS Fargate:** Amazon's service for running Docker containers without-managing the servers underneath. The ERP and MES run here in production.--<a id="g4"></a>-**4. Edge function:** a small server-side program deployed next to the database,-called over HTTP and awaited like a normal function. Ours are written for Deno.--<a id="g5"></a>-**5. Inngest:** the background job runner. Send it an event; it calls your-function over HTTP and remembers each completed step, so a retry resumes rather-than restarts.--<a id="g6"></a>-**6. Kysely:** a TypeScript SQL query builder. Unlike `supabase-js` it holds a-real database connection, so it can run real transactions. It also bypasses RLS.--<a id="g7"></a>-**7. Lingui:** the translation library. You mark strings in code; it extracts-them into per-language files for translators.--<a id="g8"></a>-**8. Loader:** the function a route file exports to fetch the data its page-needs. Runs on the server only.--<a id="g9"></a>-**9. Migration:** one timestamped SQL file describing a schema change. The full-ordered set of them _is_ the schema; there is no separate schema file.--<a id="g10"></a>-**10. Monorepo:** one Git repository holding several applications and shared-libraries that are versioned and released together.--<a id="g11"></a>-**11. MRP:** Material Requirements Planning. Works out what to buy and make, and-when, given demand and current stock. Runs as an edge function.--<a id="g12"></a>-**12. Multi-tenancy:** one database and one running application serving many-separate customer companies, with each company's data invisible to the others.--<a id="g13"></a>-**13. nanostores:** a very small state library. We use it for reference lists-(items, customers, suppliers) that many screens read and Realtime keeps fresh.--<a id="g14"></a>-**14. pg_cron:** a Postgres extension that runs SQL on a schedule, inside the-database. Used for cache refreshes and queue sweeping.--<a id="g15"></a>-**15. pg_net:** a Postgres extension that lets the database make outbound HTTP-calls. We use it for exactly one thing: pinging the event queue awake after a-commit.--<a id="g16"></a>-**16. PGMQ:** a message queue implemented in ordinary Postgres tables. Lets a-database trigger enqueue work inside the same transaction as the write that-caused it.--<a id="g17"></a>-**17. Postgres:** the relational database everything in Carbon is built on.-Version 15.--<a id="g18"></a>-**18. PostgREST:** a service that exposes Postgres tables and views as a REST-API. Every `client.from(...).select(...)` is a PostgREST call, not raw SQL.--<a id="g19"></a>-**19. Radix UI:** an unstyled, accessible React component library. Our design-system adds Tailwind styling on top of it.--<a id="g20"></a>-**20. RLS (Row Level Security):** a Postgres feature where a per-table rule is-automatically added to every query. It is what keeps one company's data-invisible to another.--<a id="g21"></a>-**21. RPC:** here, calling a function defined inside Postgres from application-code, via `client.rpc("name", args)`.--<a id="g22"></a>-**22. Service role:** a database credential that bypasses all RLS. Powerful; use-carefully.--<a id="g23"></a>-**23. SST:** infrastructure-as-code for AWS, written in TypeScript.-`sst.config.ts` defines our production cluster.--<a id="g24"></a>-**24. Supabase:** an open-source bundle around Postgres: REST API, auth,-storage, realtime and edge functions. We run its containers locally and use the-managed version in production.--<a id="g25"></a>-**25. Turborepo:** the build orchestrator that knows which packages depend on-which, so `pnpm build` only rebuilds what changed.--<a id="g26"></a>-**26. View:** a saved query that behaves like a read-only table. Carbon writes-to tables and reads from views; computed values like order totals live in the-view.--<a id="g27"></a>-**27. Vite:** the build tool and dev server behind all our React apps.--<a id="g28"></a>-**28. zod:** a schema library. Describe data once, get validation and a-TypeScript type from the same definition.--<a id="g29"></a>-**29. zustand:** a small React state library. We use it only for throwaway UI-state, like whether a modal is open.-------## Related-- - Self-hosting Run the apps on your own infrastructure: Docker on a VPS, or AWS with SST.- - Environment variables The full configuration surface.- - Licensing What Community, Enterprise and Cloud each include.- - Backups Dumping the database and the uploaded files.diff --git a/apps/erp/app/modules/agent/kb/docs/building/local-development.md b/apps/erp/app/modules/agent/kb/docs/building/local-development.mddeleted file mode 100644index a0fd479444..0000000000--- a/apps/erp/app/modules/agent/kb/docs/building/local-development.md+++ /dev/null@@ -1,90 +0,0 @@-# Local development--> Run the full Carbon stack locally with the crbn CLI, in 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 for 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`-- Source the setup script. It installs a small shell wrapper:-- ```bash- source ./setup.sh- ```--- ### Bring up the stack-- From any worktree, boot the compose stack and the ERP and MES dev servers:-- ```bash- crbn up- ```-- This 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-- Open the apps at their portless `.dev` URLs or at `localhost:<port>`.---`DEV_BYPASS_EMAIL` is local-only. It signs you in as that email with no magic link. Never set it in a deployed environment.--### 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. |--`pnpm dev` is shorthand for `crbn up --no-portless`: localhost mode on fixed ports.--## 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 `docs/platform/self-hosting/environment-variables` for the full configuration surface, and `docs/platform/self-hosting` to run Carbon on your own infrastructure.diff --git a/apps/erp/app/modules/agent/kb/docs/building/webhooks.md b/apps/erp/app/modules/agent/kb/docs/building/webhooks.mddeleted file mode 100644index cf99f1d53c..0000000000--- a/apps/erp/app/modules/agent/kb/docs/building/webhooks.md+++ /dev/null@@ -1,70 +0,0 @@-# Webhooks--> Get an HTTP callback when 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.--```json-{- "type": "UPDATE",- "table": "salesOrder",- "companyId": "abc123",- "eventId": "1042",- "record": { "id": "...", "salesOrderId": "SO000042", "status": "To Ship and Invoice" },- "old": { "id": "...", "salesOrderId": "SO000042", "status": "Draft" }-}-```--`old` appears only on updates. On a delete, `record` is the row as it last existed and there is no `old`. The only request header is `Content-Type: application/json`.--`eventId` identifies the individual change. It stays the same across retries of that change and differs between changes — including two separate edits to the same record — which makes it the field to de-duplicate on (see below).--## 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--Webhooks are queued rather than sent inline with the database write, so a `POST` normally lands a few seconds after the change. A brief delay is expected; it is not a sign your endpoint was skipped.--Delivery is **at-least-once**. If your endpoint doesn't return a success status, Carbon retries the same change a few times with exponential backoff before giving up. Two consequences to design for:--- **Handle duplicates.** A delivery that times out or errors after you've already processed it will arrive again. De-duplicate on `eventId`, which is stable across retries of a change. Don't key on `type` + `record.id` — every update to a given record shares those, so you would discard genuine later changes.-- **A sustained outage still loses events.** Once retries are exhausted the change is dropped and counted as an error. Reconcile against the API when completeness matters.--The success and error counters record one outcome per change, not per attempt, so a retried-then-delivered event counts once as a success.--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.--## Related-- - Integrations Prefer a packaged connector? See the first-party integrations.- - API keys Pull the full record from the Carbon API after a webhook tells you it changed.diff --git a/apps/erp/app/modules/agent/kb/docs/glossary.md b/apps/erp/app/modules/agent/kb/docs/glossary.mddeleted file mode 100644index f285ba7dd0..0000000000--- a/apps/erp/app/modules/agent/kb/docs/glossary.md+++ /dev/null@@ -1,5 +0,0 @@-# Glossary--> Every Carbon term, defined and linked: the manufacturing and accounting vocabulary the rest of the docs lean on.--Carbon names things precisely, and a few names are counterintuitive: a method is a bill of materials, work in process is a ledger balance rather than a table, and payment on an invoice is a field, not its own record. This page lists every term used across Carbon, each with the same one-line definition that powers the inline popovers. Follow **Learn more** for the full story.diff --git a/apps/erp/app/modules/agent/kb/docs/index.md b/apps/erp/app/modules/agent/kb/docs/index.mddeleted file mode 100644index 331c605655..0000000000--- a/apps/erp/app/modules/agent/kb/docs/index.md+++ /dev/null@@ -1,24 +0,0 @@-# Overview--> Carbon is a manufacturing system: ERP for the office, MES for the floor. These are the technical docs.--Carbon is a manufacturing system: **ERP** for the office (orders, purchasing, planning, accounting) and-**MES** for the floor (jobs, operations, tracking). One platform over one data model.--These are the **technical docs**: exact behavior, fields, and operations. If you're new, start with the-narrated `guides/order`, which walks one order from the sales desk to a shipped, traceable satellite.-Come here when you already know the noun you need and want the precise detail behind it.--## How the docs are organized-- - Architecture How Carbon is built: apps, packages, database, events, jobs, and auth.- - Self-hosting Run Carbon on your own infrastructure — a single VPS with Docker, or your own AWS account with SST.- - Environment variables Every variable that configures a Carbon instance, grouped by concern.- - Reference The entities behind the Guide: methods, reordering, routings, and more.--## Build on Carbon-- - Carbon API The service layer — read and write your data the safe way, over HTTP or MCP.- - Data API Direct table access — the escape hatch, when the Carbon API doesn't cover it.- - API keys Scoped secrets that let an external system call Carbon on your behalf.- - Webhooks Get an HTTP callback the moment a subscribed record changes.diff --git a/apps/erp/app/modules/agent/kb/docs/integrations/accounting.md b/apps/erp/app/modules/agent/kb/docs/integrations/accounting.mddeleted file mode 100644index 5e7b2603aa..0000000000--- a/apps/erp/app/modules/agent/kb/docs/integrations/accounting.md+++ /dev/null@@ -1,100 +0,0 @@-# Accounting--> Mirror invoices, bills, and GL journals to Xero, QuickBooks, or Rillet, and keep exchange rates current.--Carbon keeps an external accounting ledger in step with what happens inside the ERP. Three ledgers are-supported — **Xero**, **QuickBooks Online**, and **Rillet** — plus an **Exchange Rates** service that keeps-multi-currency math honest. The ledger sync is an Enterprise (Business-plan) feature; Exchange Rates is free-on every plan.--## How the sync works--Once a ledger is connected, Carbon pushes **customers**, **vendors**, **items**, **sales invoices**, **bills**,-and its automated **GL journals** to the ledger. **Carbon is the source of truth**: its edits always win, and-every record is matched to the same external record each time, so a customer or invoice never duplicates.-Payments recorded in the ledger flow **back** into Carbon to settle the matching invoice or bill.--Connecting a ledger means every automated GL posting Carbon makes is mirrored to it. There is no toggle to-turn that off. Journals you post by hand (`Manual` source) never sync — only automated postings do.--Payment write-back settles the Carbon document from the ledger side: a payment recorded against an invoice in-Xero, QuickBooks, or Rillet comes back as a Carbon payment and an invoice settlement,-then posts to Carbon's general ledger. Rillet can also push Carbon-recorded-payments outbound; Xero and QuickBooks are pull-back only.--## Connect a ledger--Xero and QuickBooks Online connect over **OAuth** — no keys to paste. Rillet uses a per-company **API key**.--- ### Authorize the connection-- For Xero or QuickBooks, authorizing over OAuth stores the connection. For Rillet, paste the connection- fields below.--- ### Configure the sync-- Set the account mapping, dimensions, and posting-sync options (below) before the first push.--- ### Run the initial sync-- Xero exposes a **Run Initial Sync** action that seeds the ledger on demand. After that, changes flow- continuously.---Rillet's connection fields:-- - **API key**: The Rillet API key that authenticates the connection. Stored as a secret.- - **Environment**: **Production** (`api.rillet.com`) or **Sandbox** (`sandbox.api.rillet.com`).- - **Subsidiary ID**: Optional. The Rillet subsidiary (entity) that Carbon posts into, for multi-entity ledgers.- - **Webhook token**: Optional secret. Inbound payment write-back stays off until this is set.--Xero appears only when `XERO_CLIENT_ID` is set, and QuickBooks Online only when `QUICKBOOKS_CLIENT_ID` is set-(see `docs/platform/self-hosting/environment-variables`). Rillet has no such gate — it-authenticates per company with its own API key, so it is always available.--## Configure the sync--An accounting integration has four tabs beyond the basic connection settings.-- - **Account Mapping**: Map each Carbon posting account to a code in the provider's chart of accounts. Posted journals push using the mapped provider account. Use **Suggest with AI** or **Match by code** to fill the map, then resolve anything left unmapped.- - **Dimensions**: Map Carbon dimensions to the provider's tracking slots. Xero and QuickBooks expose two slots. Rillet sends every dimension on each line and provisions the matching fields automatically, so the slot editor does not apply to it.- - **Posting Sync**: Choose how posted journals reach the ledger (see below).- - **Sync Activity**: Watch every sync operation and retry the ones that failed (see below).--The **Posting Sync** tab controls three things:-- - **Source types**: Posted journals with these source types always sync. A per-type **Daily summary** toggle groups a day's journals of that type into one provider entry instead of sending each individually.- - **AR / AP representation**: How receivables and payables reach the ledger. Each is either **Documents** (push the invoice or bill itself) or **Off — handled outside the sync**.- - **Books lock date**: A manual date before which Carbon will not push new entries, so a closed period stays closed.--## Watch it run--The **Sync Activity** tab is an inbox of every sync operation, with **Status**, **Entity**, **Direction**-(push or pull), **Trigger**, **Attempts**, **Last Attempt**, and any **Error**. Filter by status, **Retry** or-**Skip** a failed operation, **Re-send** a completed one, or **Retry all** at once. When failed operations-remain after an outbound sweep, Carbon raises an in-app notification so the sync never fails silently.--Reconciliation runs weekly and writes the **Sync Tie-Out** report (**Accounting → Reports → Sync Tie-Out**).-It lays out one row per accounting period, account, and integration, comparing what Carbon **Posted** against-what actually **Synced**, and against the **Provider** balance. Any **Internal** or **External Delta** is-flagged so a drift between the two ledgers is visible before it becomes a month-end surprise.--Sync Activity answers "did this record make it across?" one operation at a time. Tie-Out answers "do the two-ledgers agree?" per account and period. The Sync Activity tab links straight to the tie-out summary for the-integration.--## Exchange rates--Turn it on and it runs — no fields to configure. Carbon refreshes currency **exchange rates daily** so-foreign-currency documents convert against current rates. Exchange Rates is available on **every plan**.--On Carbon Cloud the rates come from **exchangeratesapi.io** by default, fetched against a **EUR** base and-then converted into each company's base currency, so every currency you trade in stays aligned.--## Related-- - Accounting reference How Carbon posts to the ledger — what the sync mirrors.- - Invoices The sales and purchase invoices that sync to your ledger.diff --git a/apps/erp/app/modules/agent/kb/docs/integrations/assistant.md b/apps/erp/app/modules/agent/kb/docs/integrations/assistant.mddeleted file mode 100644index 50b61b14d2..0000000000--- a/apps/erp/app/modules/agent/kb/docs/integrations/assistant.md+++ /dev/null@@ -1,31 +0,0 @@-# Assistant--> Bring the Carbon Assistant into Slack, with nonconformance notifications.--## Slack--Connect **Slack** over **OAuth** to put the **Carbon Assistant** in your workspace and receive-**nonconformance notifications** where your team already talks. There are no fields to fill in.--- ### Start the Slack install-- Authorizing opens a Slack install popup.--- ### Choose your workspace-- Pick the workspace to install into and approve the install. Carbon stores the connection. No keys to paste.---| Setting | What it controls |-| --- | --- |-| Connection | Established by the Slack OAuth install — no keys to paste. |--Slack is **hidden in controlled (ITAR) environments** — when Carbon runs in a controlled deployment, the-Slack integration doesn't appear at all.--## Related-- - MCP The Carbon Assistant's tools — the same surface, exposed over MCP.- - Quality The nonconformance events that trigger Slack notifications.diff --git a/apps/erp/app/modules/agent/kb/docs/integrations/cad.md b/apps/erp/app/modules/agent/kb/docs/integrations/cad.mddeleted file mode 100644index 86cb7c1b79..0000000000--- a/apps/erp/app/modules/agent/kb/docs/integrations/cad.md+++ /dev/null@@ -1,78 +0,0 @@-# CAD--> Sync CAD data from Onshape and Onshape Government into Carbon.--## Onshape--Connect to **Onshape** over **OAuth** to bring CAD data into Carbon. No keys to paste.--- ### Authorize over OAuth-- Start the connection and Carbon opens an Onshape popup.--- ### Approve read access-- Approve read access to your Onshape documents in the popup.--- ### Tokens stored-- Carbon stores the connection, the access and refresh tokens, and can then pull from your Onshape documents.---| Setting | What it controls |-| --- | --- |-| Connection | Established by OAuth — no keys to paste. Carbon stores the access and refresh tokens for you. |--Onshape only appears when its OAuth client is configured server-side (`ONSHAPE_CLIENT_ID`) — see-`docs/platform/self-hosting/environment-variables`.--## Onshape Government--**Onshape Government** is the ITAR and FedRAMP edition of Onshape. It has no public App Store, so Carbon's-public app can't be installed there. Instead, your Enterprise owns a **private OAuth app** that Carbon-connects through. Everything after the connection works the same as Onshape: browsing documents, importing a-bill of materials, and syncing released assets.--- ### Create the private app in Onshape-- An Enterprise admin opens **Enterprise settings → Developer → OAuth applications** and creates a new OAuth- application. Choose **Connected Cloud App** as the type. Set the redirect URL to- `https://<your Carbon address>/api/integrations/onshape-government/oauth`. Grant read access to profile- information, read access to documents, and write access to documents. Onshape shows the client secret only- once, so copy it straight away. If you'd rather not do this yourselves, give Carbon support a seat in your- Enterprise and we'll build the app with you.--- ### Enter it in Carbon-- Open **Onshape Government** under **Settings → Integrations**. Enter your Onshape URL and the- app's client ID and client secret. The integration drawer shows the exact redirect URL for your Carbon- address.--- ### Approve the connection-- When you save, Carbon sends you to your Onshape tenant to approve the connection, then brings you back.---| Setting | What it controls |-| --- | --- |-| Onshape URL | The address your team signs in to Onshape Government at. Each Enterprise has its own. |-| Client ID / Client secret | The private OAuth app from your Enterprise. The secret is stored encrypted. Leave it empty to keep the saved one, or enter it again to reconnect. |-| Sync released assets | Same as on Onshape: pulls released drawings and models onto matching items. |--A private app's API calls count toward your Enterprise's **yearly Onshape API limit**. Browsing and importing-a bill of materials take a few calls each. Released-asset sync takes several calls per released revision, so-leave it off if your allowance is tight.--A company connects to one Onshape at a time. Uninstall Onshape before connecting Onshape Government, and the-other way round.--## Related-- - Items The part records CAD data attaches to.- - Methods & sourcing How a part's bill of materials is built up.diff --git a/apps/erp/app/modules/agent/kb/docs/integrations/email.md b/apps/erp/app/modules/agent/kb/docs/integrations/email.mddeleted file mode 100644index 4360c07ff0..0000000000--- a/apps/erp/app/modules/agent/kb/docs/integrations/email.md+++ /dev/null@@ -1,29 +0,0 @@--> Send outbound email through Carbon-managed Resend or your own SMTP server.---Email is how Carbon sends transactional mail: order confirmations, notifications, and the like. It's-available on **every plan**, and you choose who actually delivers the mail.--- ### Choose a provider-- Pick **Resend** (Carbon-managed) or **SMTP** (your own server). The fields below change to match your choice.--- ### Fill in the provider fields-- For **Resend**, enter your API key. For **SMTP**, enter the host and port (default `587`), username and password, and whether to connect over TLS. Set the **from address** either way.--- - **Provider**: **Resend** (Carbon-managed) or **SMTP** (your own server).- - **From address**: The address outbound mail is sent from.- - **API key**: *(Resend)* Your Resend API key.- - **Host / Port**: *(SMTP)* Your mail server and port (default `587`).- - **Username / Password**: *(SMTP)* Credentials for the SMTP server.- - **Secure**: *(SMTP)* Whether to connect over TLS.--The Resend and SMTP fields are shown only for the provider you pick — choose **SMTP** to route mail through-your own server, or **Resend** to let Carbon handle delivery.diff --git a/apps/erp/app/modules/agent/kb/docs/integrations/estimating.md b/apps/erp/app/modules/agent/kb/docs/integrations/estimating.mddeleted file mode 100644index c39dcb209e..0000000000--- a/apps/erp/app/modules/agent/kb/docs/integrations/estimating.md+++ /dev/null@@ -1,37 +0,0 @@-# Estimating & quoting--> Pull quotes and bills of material from Paperless Parts into Carbon.--## Paperless Parts--Connect with an **API key** plus a **webhook signing secret** (Paperless calls Carbon when something-changes, and the secret verifies those calls).--- ### Add your API key-- Provide your Paperless Parts **API key** to authenticate Carbon.--- ### Set the webhook signing secret-- Add the **webhook signing secret** — Paperless calls Carbon when something changes, and the secret verifies those calls.--- ### Set import defaults-- On connect you also set the defaults Carbon applies to items it imports: **material method type**, **material tracking type**, and whether to use the Paperless order number (below).--- - **API key**: Authenticates Carbon to Paperless Parts.- - **Webhook signing secret**: Verifies inbound webhooks from Paperless Parts.- - **Material Method Type**: Default method type for imported items: **Purchase to Order** or **Pull from Inventory** (defaults to **Pull from Inventory**).- - **Material Tracking Type**: Default tracking type for imported items: **Inventory**, **Non-Inventory**, or **Batch** (defaults to **Inventory**).- - **Use Paperless order number**: Whether to carry the Paperless order number onto the Carbon document.--Imported quotes and BOMs land as Carbon records, ready to turn into sales orders and jobs.--## Related-- - Quotes Where an imported estimate becomes a Carbon quote.- - Methods & sourcing The bill of materials a Paperless import populates.diff --git a/apps/erp/app/modules/agent/kb/docs/integrations/index.md b/apps/erp/app/modules/agent/kb/docs/integrations/index.mddeleted file mode 100644index a51ff99495..0000000000--- a/apps/erp/app/modules/agent/kb/docs/integrations/index.md+++ /dev/null@@ -1,54 +0,0 @@-# Integrations--> Connect Carbon to your accounting, CAD, project-management, estimating, 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.--Integrations are an **Enterprise** capability. On [Carbon Cloud](https://app.carbon.ms) they're included-with the **Business** plan; self-hosted, they require a commercial (Enterprise) license —-see `docs/platform/licensing`. **Email** and **Exchange Rates** are the exceptions, available on-every edition and plan.--## How a connection works--An integration has two parts: a system-wide **definition** and a per-company **activation**.--- The **definition** describes the fields that integration needs: API keys, OAuth tokens, mapping options.-- The **activation** is a `companyIntegration` record: an `active` flag plus a `metadata` object holding- your credentials and settings. Carbon validates that metadata against the definition, so an integration- can't be switched on with incomplete configuration.--Connections are established one of three ways, depending on the app:--| Style | Apps | How |-| --- | --- | --- |-| Provider settings | Email | Pick a provider and fill in its fields. |-| API key | Linear, Paperless Parts, Exchange Rates | Paste a key (and any options). |-| OAuth | Xero, Jira, Onshape, Slack | Authorize Carbon with the provider; tokens are stored for you. |--Disconnecting an integration sets `active = false` but **keeps your stored credentials**. Reconnecting-doesn't make you re-enter them. To remove credentials entirely, clear the integration's settings before you-disconnect.--## What's available depends on your deployment--Which integrations even appear depends on how Carbon is deployed. The OAuth connectors, **Xero**, **Jira**,-and **Onshape**, only show up when their OAuth client is configured server-side (see-`docs/platform/self-hosting/environment-variables`), and **Slack** is hidden in controlled (ITAR)-environments. So the same Carbon build can offer a different set of integrations depending on its-configuration.--## Browse by category-- - Accounting Xero and automatic currency exchange rates.- - Project management Push quality issues to Linear or Jira.- - CAD Sync CAD data from Onshape.- - Estimating & quoting Pull quotes and BOMs from Paperless Parts.- - Email Send outbound email through Resend or your own SMTP server.- - Assistant Bring the Carbon Assistant into Slack.--## Related-- - Webhooks Push record changes to your own endpoints instead of a packaged integration.- - Environment variables The server-side credentials that gate the OAuth integrations.diff --git a/apps/erp/app/modules/agent/kb/docs/integrations/project-management.md b/apps/erp/app/modules/agent/kb/docs/integrations/project-management.mddeleted file mode 100644index 5c16fa90b4..0000000000--- a/apps/erp/app/modules/agent/kb/docs/integrations/project-management.md+++ /dev/null@@ -1,78 +0,0 @@-# Project management--> Link Carbon quality issues to Linear or Jira so engineering tracks them in their own tool.--When a quality problem needs engineering's attention, Carbon can push it into the issue tracker your team-already lives in. Both connectors link a nonconformance's **action tasks**-to an external issue and keep the two in step, status, assignee, and notes sync both ways.--## Linear--Authenticate with a **Linear API key** (it begins with `lin_api`).--- ### Create the webhook in Linear-- In Linear's API settings, create a new webhook and paste the URL shown in Carbon's setup instructions- (`/api/webhook/linear/<your company id>`). This is how changes made in Linear reach Carbon.--- ### Copy the signing secret-- Linear shows a **signing secret** on the webhook's detail page. Paste it into **Webhook Signing Secret**.- With it saved, Carbon only accepts webhook requests Linear has signed, and rejects any that are more- than a minute old.--- ### Paste your Linear API key-- Provide your Linear API key. Carbon checks the `lin_api` prefix.--- ### Action tasks sync-- Once connected, Carbon links each nonconformance action task to a Linear issue and keeps the pair matched, so status, assignee, and notes stay aligned in both directions.---| Setting | What it controls |-| --- | --- |-| API key | Your Linear API key — Carbon checks the `lin_api` prefix. |-| Webhook signing secret | Optional. When set, webhook requests without a valid Linear signature are rejected. |--A Linear or Jira webhook with no secret saved in Carbon still works, so older setups keep syncing, but-Carbon cannot tell its requests from forged ones. Add the secret to every webhook you create.--## Jira--Connect over **OAuth**. The only setting is an optional webhook secret.--- ### Authorize over OAuth-- Authorize Carbon in Jira.--- ### Create the webhook in Jira (optional)-- For changes made in Jira to reach Carbon straight away, go to **System → WebHooks** in Jira and create a- webhook with the URL shown in Carbon's setup instructions (`/api/webhook/jira/<your company id>`),- subscribed to **Issue updated** and **Issue deleted**. Fill in the webhook's **Secret** field, and paste- the same value into **Webhook Secret** in Carbon. With it saved, Carbon only accepts webhook requests- Jira has signed.--- ### Link an action task-- Once connected, you can link a nonconformance action task to a Jira issue, and status, assignee, and notes stay aligned in both directions.---| Setting | What it controls |-| --- | --- |-| Webhook secret | Optional. When set, webhook requests without a valid Jira signature are rejected. |--Jira only appears when its OAuth client is configured server-side (`JIRA_CLIENT_ID`) — see-`docs/platform/self-hosting/environment-variables`.--## Related-- - Quality The nonconformance issues these integrations push to engineering.diff --git a/apps/erp/app/modules/agent/kb/docs/platform/backups.md b/apps/erp/app/modules/agent/kb/docs/platform/backups.mddeleted file mode 100644index dbac41585e..0000000000--- a/apps/erp/app/modules/agent/kb/docs/platform/backups.md+++ /dev/null@@ -1,88 +0,0 @@-# Backups--> Snapshot a company's data and files, see at a glance whether each backup can still be restored, and restore in place with one-click revert.--A backup is a single snapshot of one company, with its records and, optionally, the files it has uploaded. You make one from **Settings → Backups**, and you do two things with it. You **restore** it over the same company to undo a bad change, or you use it as the starting data for a brand-new company at sign-up. Same file, two jobs.--This is a per-company snapshot for cloning environments and undoing a bad change, not a full database dump, and there is no scheduling or point-in-time recovery. A backup exists because a person took one, and it stays until a person deletes it. Treat it as a working tool, not your only copy.--## What a backup contains--A backup captures the company's business data across the whole app: sales, purchasing, items, production, accounting, quality and people. The **i** button next to "Create a backup" opens a **"What's in a backup"** summary with a live count per area and a **"Total records"** line at the bottom.--Credentials, integration tokens and webhooks are deliberately left out of every backup, so a restored or cloned company never carries another company's secrets. Re-connect your integrations after a restore.--When you export, **Include** offers two options:-- - **Data only**: Customers, items, orders and every record. Smaller and faster.- - **Data + files**: Also bundles uploaded files, such as 3D models, documents and images.--## Create a backup--On **Settings → Backups**, the "Create a backup" card snapshots the company's data. Give it an optional label, choose **"Data only"** or **"Data + files"**, and select **"Create backup"**. A **"Creating backup…"** row appears in the Backups list right away; the export runs in the background, and clicking the row shows its progress. When it finishes, the row becomes the backup itself, with its date, size and a status badge, and you can **"Download"** or **"Delete"** it.--### If the backup fails--A failed export shows a **"Backup failed"** banner above the list, with the reason and a **"Dismiss"** button. The most common cause is corrupted data, meaning rows that link to data outside this company. A backup carrying those rows could never be restored, so the export refuses rather than write one. The banner says how many rows are affected and offers **"Skip corrupted rows and retry"**, which re-runs the same backup without them. A backup made that way is honest about it: its row shows **"N rows excluded"**, with an **i** popover listing exactly what was left out.--## Is it still restorable?--Every backup row carries a status badge, computed against today's schema each time you open the page. There is no stored verdict and no expiry date, because neither could be trusted: the app keeps evolving after a backup is taken, so the only honest answer is the one checked right now.-- - **Ready**: Loads into today's app unchanged.- - **Restorable with changes**: Loads, but some things differ from when it was taken. The restore screen spells out what, and asks you to confirm.- - **Not restorable**: A hard refusal, with the reason. The restore button never appears for it.- - **Incomplete**: The export died partway and never finished. Not restorable.--The badge is the last line, not the first. Every schema change to Carbon is checked, before it ships, against what existing backups contain, so a change that would strand a backup a customer already holds is caught at commit time. A backup going "Not restorable" is rare by design.--## Restore in place--Restoring replaces the current company's data with a backup. In the "Restore from a backup" card, pick a **Source** with **"Choose a backup"**, which lists your backups and also offers **"Upload new backup…"** for a downloaded `.carbon.tar.gz` file from another company or environment. Then choose what to **Include**, **"Data + files"** or **"Data only"**, and select **"Restore…"**.--That opens the **"Restore this company from a backup"** screen, which tells you what this restore will actually change before it runs:--- If the backup loads cleanly, you just confirm.-- If some fields will be **"Filled with a default"**, the screen lists the affected areas, and you confirm.-- If some records are **"Discarded"**, meaning they won't come back, the screen lists them and asks you to type `restore` to continue.-- If the backup **"Can't be restored"**, the screen says why, and there is no confirm button at all.-- An uploaded backup hasn't been checked yet; any differences are found when the restore runs.--Each group names product areas, like Production or Sales, with a **"Details"** expander for the exact fields.--It is safe to try. Before anything is replaced, Carbon saves today's data first, so a restore is always reversible. If the restore can't complete, your data is not changed; it stops before touching anything. When it finishes, the **"Restored — review"** card asks you to decide:--- **"Keep"** accepts the restored data.-- **"Revert"** rolls the company back to the snapshot taken just before the restore.--A restore stays open for review until you keep or revert it. Starting another beforehand is blocked, so the revert always returns you to the state from just before the last restore.--### If the restore is blocked by corrupted data--A restore takes the same safety copy an export does, so the same corrupted rows that fail a backup also fail a restore. The failed restore row explains which rows link to data outside this company and offers **"Remove corrupted data and restore"**. That opens a confirm naming the exact count, **"Permanently delete N rows?"**, and only **"Delete and restore"** proceeds. Deleting them fixes the data instead of hiding it, then the restore runs again. If the rows turn out to be shared with other companies in your group, nothing is deleted and the restore doesn't start.--## Start a company from a backup--The same file powers onboarding. When Carbon staff create a new company, the data step asks how to seed it, and **"Restore from a backup"** sets the new company up from an uploaded Carbon backup of another one. The other option, **"Use a demo template"**, doesn't use a backup at all; it seeds a realistic industry story from scratch. See `docs/platform/demo-data`.--Backups require permission to manage Settings. On production deployments the page is currently limited to Carbon staff while the feature is hardened for general availability; on a local development stack it is open to everyone.--## Troubleshooting--### The Backups page isn't in my Settings menu-On production deployments Backups is currently visible to internal Carbon staff accounts only; on a local development stack it is open to everyone. Its absence for a regular customer account is expected.--### A backup shows "Not restorable" or "Restorable with changes"-The badge is computed live against today's schema every time the page loads — there is no stored verdict and no expiry. "Restorable with changes" still restores after you confirm the listed differences on the restore screen. "Not restorable" is a hard refusal; the restore screen shows the reason under "Can't be restored" and offers no confirm button.--### A backup shows "Incomplete"-The export died partway and never finished writing. An incomplete backup cannot be restored — delete it and create a new one.--### "Backup failed" banner with rows that "link to data outside this company"-Some rows reference data the company doesn't own, so a backup containing them could never be restored. Click "Skip corrupted rows and retry" to back up everything else; the resulting backup's row shows "N rows excluded" with the exact list. To fix the data itself rather than skip it, a blocked restore offers "Remove corrupted data and restore", which permanently deletes those rows behind a confirmation.--### Can't start a restore — told to finish the current one first-Only one restore can be open per company. Resolve the pending one from the "Restored — review" card (Keep or Revert) before starting another.--### Restore finished but integrations are disconnected-Expected — credentials, integration tokens and webhooks are never included in a backup, so they don't survive a restore. Re-connect integrations afterward.diff --git a/apps/erp/app/modules/agent/kb/docs/platform/demo-data.md b/apps/erp/app/modules/agent/kb/docs/platform/demo-data.mddeleted file mode 100644index 7b4a173d2c..0000000000--- a/apps/erp/app/modules/agent/kb/docs/platform/demo-data.md+++ /dev/null@@ -1,96 +0,0 @@-# Demo data--> Fill a company with a realistic industry story, so every screen has something in it, and put back exactly what was there before with one click.--Demo data fills a company with a full, coherent industry story: items with BOMs and routings, customers and suppliers, quotes, orders and returns, jobs and picking lists, inspections, non-conformances and gauges, change orders, maintenance and training, timecards, the accounting side with posted journals, payments and accounting periods, and a busy shop floor with its schedule and material plan.--Every list screen has rows and every detail screen opens, which makes it the fastest way to explore Carbon, demo it, or test against realistic data. You apply it from **Settings → Demo Data**, or pick it at sign-up as **"Use a demo template"**.--## The templates--Each template tells one industry's story, end to end, across sales, purchasing, production, quality and accounting:-- - **Aerospace & Satellite**: A satellite manufacturer, from RFQs through built and inspected flight hardware.- - **Robotics OEM**: A robotics maker building assemblies to order.- - **Precision Manufacturing**: A machine shop quoting and cutting precision parts.- - **Motor Assembly**: An automotive supplier assembling motors.--Every seeded date is relative to the day you apply the template, so the company always looks live: recent orders, jobs in progress, upcoming due dates. Parts come with real thumbnails, and each industry includes a 3D assembly you can open in the viewer.--Records show up in the statuses you meet in daily work, not only the happy path. You get lost and expired quotes, partly shipped orders, paid and partially paid invoices, voided receipts, closed accounting periods, and workflows with succeeded, failed and skipped runs in their history.--The stock movements and payment settlements behind those statuses are filled in too, so on-hand quantities and invoice balances agree. Every posted invoice, payment, memo, receipt and shipment also carries its journal entry, so the income statement, balance sheet and receivables aging show real numbers.--The shop floor looks like a working day. Jobs are due over the next three weeks across every work center, some operations are running right now, and a few jobs finished recently.--You are the employee on the floor: you get a job, a shift, people assignments and an open time card. Sales and storage rules, purchase approval rules with requests waiting for you, and customer portals are set up as well. The templates add no uploaded files, so `docs/reference/documents` starts empty.--Demo data is seeded fresh from Carbon's own dataset definitions each time, not imported from a stored backup file. That's why it always matches the current version of the app. To stand a company up from another company's actual data, use a `docs/platform/backups` instead.--## Apply a template--On **Settings → Demo Data**, the "Apply a demo template" card lists the templates; select **"Apply"** on one. It is safe to try on a company that already has data: Carbon saves a copy of your current data first, then replaces it with the demo story. The page shows each phase as it runs, from **"Saving a copy of your current data"** through **"Adding demo records"**, and it keeps running if you leave the page.--Right after the demo data is applied, Carbon runs MRP and scheduling once over the company in the background. That run is what fills Material Planning, Demand Forecasts, Scheduling and Priorities, so those screens can take a moment longer than the rest. If it fails, the demo data still stands and MRP catches up on its regular run every three hours.--Two kinds of records can never be deleted, so Carbon refuses to apply a template over them and writes nothing.--A company with intercompany customers or suppliers fails with "Seed: this company trades with other companies in its group (N intercompany customer/supplier record(s)). Demo data can only be applied to a company without intercompany partners."--A company with posted card transactions fails with "Seed: this company has N posted or voided card transaction(s), which cannot be deleted. Demo data can only be applied to a company without posted card transactions."--When it finishes, the **"Demo data applied"** card asks you to decide:--- **"Keep"** accepts the demo data and permanently deletes the saved copy of your previous data, so it can't be reverted afterwards. Carbon asks you to type **"I understand, keep the demo data"** to confirm.-- **"Revert"** puts back exactly what was here before.--The choice stays open until you make it, and only one demo-data change can be in flight per company. Applying is all-or-nothing: if anything fails partway, no rows are written and the card shows the error with a **"Dismiss"** button.--If a revert seems stuck, the card says so after a few minutes and offers "Retry revert". The saved copy of your data is kept until the revert succeeds, so retrying is always safe.--## Demo data at sign-up--The same templates power onboarding. When anyone creates a new company, the data step asks **"How would you like to start?"**:-- - **Use a demo template**: Sets up sample customers, suppliers, parts and orders for the industry you pick. They appear shortly after you finish.- - **Restore from a backup**: Sets the new company up from an uploaded `docs/platform/backups` of another Carbon company environment. Carbon staff only.- - **I don't need data**: Starts with a clean, empty environment.--Choosing a template then asks **"Which best describes your company?"** and seeds the matching industry. See `docs/reference/onboarding` for the rest of the wizard.--Demo Data sits behind the same gate as Backups, since it replaces a company's data wholesale. On production deployments it is currently limited to Carbon staff; on a local development stack it is open to everyone.--## Troubleshooting--### The Demo Data page isn't in my Settings menu-On production deployments Demo Data is visible to internal Carbon staff accounts only; on a local development stack it is open to everyone. Its absence for a regular customer account is expected — same gate as Backups.--### I applied a template and want my old data back-Use "Revert" on the "Demo data applied" card. Carbon saved a copy of your data immediately before applying, and the card stays open until you choose Keep or Revert — reverting puts back exactly what was there before.--### The apply or revert looks stuck-It keeps running even if you leave the page. If it's been more than a few minutes, the card shows "This is taking longer than expected" and offers "Retry revert" — safe to click, because the saved copy of your data is kept until the revert succeeds.--### Can't apply a second template-Only one demo-data change can be open per company. Resolve the pending one first — Keep or Revert on the review card (or Dismiss if it failed).--### Applying failed with an error-Applying is all-or-nothing: a failure writes no rows and your data is unchanged. The card shows the job's error next to "Failed"; Dismiss clears it, and you can apply again.--### Applying failed with "Seed: this company trades with other companies in its group"-Expected refusal. The company has customers or suppliers linked to another company in its group (intercompany partners), which the demo-data wipe cannot remove. Nothing was written. Apply the template to a company without intercompany partners.--### Applying failed with "Seed: this company has N posted or voided card transaction(s)"-Expected refusal. Posted and voided card transactions cannot be deleted, so the demo-data wipe cannot clear the company. Nothing was written. Apply the template to a company without posted card transactions.--### Material Planning, Scheduling or Priorities are empty right after applying-Planning runs as a separate background step once the demo data is committed: MRP for the company, then scheduling for every location with Ready, In Progress or Paused jobs. Give it a moment. If that step failed, the demo data stays and MRP fills in on its regular run every three hours.--### The Webhooks, API keys or Audit log screens are empty after applying-Expected. Templates never seed credentials, webhooks or audit history, and applying a template leaves any existing webhooks and API keys in place.--### The Documents list is empty after applying a template-Expected. Templates seed records, not files: no uploads are added, so Documents and file attachments stay empty. Part thumbnails and the 3D assembly ship with the app rather than as uploaded files.--### The demo dates look recent — is that real activity?-Yes, by design: every seeded date is relative to the day the template was applied, so the company always looks live with recent orders and jobs in progress.diff --git a/apps/erp/app/modules/agent/kb/docs/platform/licensing.md b/apps/erp/app/modules/agent/kb/docs/platform/licensing.mddeleted file mode 100644index fc42160395..0000000000--- a/apps/erp/app/modules/agent/kb/docs/platform/licensing.md+++ /dev/null@@ -1,106 +0,0 @@-# Licensing--> Carbon is dual-licensed: AGPLv3 for Community Edition (CE), and a commercial license for Business features or for keeping your changes private.--Carbon's source is public, but using it isn't unconditional. Two licenses govern the code, and which one applies depends on **what you run and how you run it**. This page is the map; the [LICENSE](https://github.com/crbnos/carbon/blob/main/LICENSE) file is the contract.--## Editions--| Edition | What it is | License |-| --- | --- | --- |-| **Community Edition**<br />CE | The open core: ERP, MES, MRP, and QMS, plus accounting and the product configurator, self-hosted on your own infrastructure. | AGPLv3 |-| **Enterprise Edition**<br />EE | Self-hosted Carbon with a commercial license: unlocks the Business features and lifts the AGPL copyleft obligation. | Commercial |-| **Cloud Edition** | Carbon run for you at [app.carbon.ms](https://app.carbon.ms), on the Starter, Business, or Enterprise plan. | Commercial |--Self-hosting (the `docs/platform/self-hosting/docker-caddy` or the `docs/platform/self-hosting/aws-sst`) runs **Community Edition (CE)** by default. A commercial license turns the same hardware into **Enterprise Edition (EE)**.--## What each plan unlocks--Carbon Cloud comes in three plans, and the line between them is the line the repository already draws. The **Starter** plan runs the open core: every feature whose code sits outside `packages/ee`, under AGPLv3. That is the same code **Community Edition (CE)** runs when you host Carbon yourself.--The **Business** and **Enterprise** plans add the Business features, the code in `packages/ee` and in any `.ee.` file, which is what **Enterprise Edition (EE)** unlocks on your own hardware. The Enterprise plan goes further again, adding capabilities no other plan can reach, like SSO and controlled or self-hosted deployments, together with the people to implement them.--| Cloud plan | What it adds | Code it runs | How you get it |-| --- | --- | --- | --- |-| **Starter** | The open core, hosted and kept up to date for you | CE only: everything outside `packages/ee` | Self-signup, month to month |-| **Business** | The Business features, plus technical support | CE + EE: adds `packages/ee` and `.ee.` files | Self-signup, month to month |-| **Enterprise** | Everything in Business, plus deployment options, compliance, and services | CE + EE, plus capabilities gated to the Enterprise edition | A signed [Enterprise Subscription](#carbon-cloud--we-run-it) |--The **Starter** plan covers ERP, MES, MRP, and QMS, accounting with general ledger, financial reports, fixed assets, and multi-currency, the product configurator with rules-based BOMs and routings, unlimited records, self-onboarding, and community support.--The **Business** plan adds technical support; API, webhooks, integrations, and MCP; workflow automation with custom triggers; demand forecasting; shop floor console mode; customer portals with live order status and files; email and Slack notifications; custom roles, permissions, and approval rules; and audit logging, 2FA enforcement, and backup/restore.--The **Enterprise** plan adds a forward deployed engineer; customizations, training, and integrations; full setup and migrations; SSO/SAML; CMMC Level 2 compliance; air-gapped and ITAR deployments; and unlimited functional support. It runs on Carbon Cloud, or on your own infrastructure under a commercial license as Enterprise Edition.--The **Enterprise plan** is how you buy Carbon Cloud with a service level attached. **Enterprise Edition (EE)** is what a commercial license turns a self-hosted install into. They unlock the same Business features by different routes, so the docs always say "plan" or "Edition" rather than Enterprise on its own.--[carbon.ms/pricing](https://carbon.ms/pricing) carries the current prices and the side-by-side comparison.--## How to buy--Every path starts with one question: **who runs Carbon?** If we run it for you, that's [Carbon Cloud](#carbon-cloud--we-run-it). If you run it yourself, that's [self-hosted](#self-hosted--you-run-it), governed by the AGPL until a commercial license changes the terms.--## Carbon Cloud — we run it--Carbon Cloud is the managed edition, operated for you at [app.carbon.ms](https://app.carbon.ms). There are two ways onto it.--**Self-signup** is the short path. Accept the clickthrough terms of service, put a card on file, and you're running — no signature, no invoice. It comes in two month-to-month plans: **Starter** (a limited feature set) and **Business** (the full application). This is the same billing described in the `docs/platform/self-hosting` sense: a subscription you manage yourself.--**Enterprise Subscription** is the signed, invoiced umbrella for larger deployments. It's an annual commitment — billed annually, semi-annually, or quarterly — over a one, three, or five-year term, with uncapped users and no mid-term overage. Every Enterprise Subscription carries Business-tier features in whatever environment it runs. Inside it, you make two independent choices.--**Environment — where it runs.**--- **Commercial Cloud** is the default multi-tenant cloud, hosted in the US or EU.-- **GovCloud** is a US GovCloud, ITAR-controlled environment.-- **BYOC** (bring your own cloud) runs in your own AWS account and on your data, operated by Carbon.--**Service level — how much comes with the software.**--- **Standard** is the software, run well: self-guided onboarding through the [docs](/docs), Carbon Academy, and the Self-Serve Onboarding Hub, plus the same technical support as the Business plan. It does not include a dedicated implementation team, custom training, integrations, or custom builds.-- **Flagship** adds a forward-deployed engineer (FDE) inside the subscription, with no hour counting, along with implementation, guided onboarding, training, hypercare, and a written scope exhibit. The FDE can be fractional (shared), dedicated (full-time and remote, working only for you), or on-site at your facility.--Custom features, integrations, data migrations, additional forward-deployed engineers, and training beyond onboarding are add-ons that layer on top of Standard or Flagship. Anything that doesn't fit the standard shapes becomes a custom agreement.--## Self-hosted — you run it--Clone Carbon from GitHub and run it on your own infrastructure. By default that's **Community Edition (CE)**, which is free under AGPLv3. You only need a commercial license to use Business features or to keep your changes private.--**Community Edition (CE)** is the open core under AGPLv3 — free, no agreement needed. Running CE for your own business, modified or not, never requires a license. Two things come with that freedom: if you let others use a modified version over a network, you must offer those users its source under the AGPL, and the Enterprise Edition code is excluded, so CE ships without Business features, Carbon support, or an SLA.--A **commercial license is required** the moment any one of these is true:--- You use anything under `packages/ee` or any `.ee.` file.-- You want to keep your changes private from the people who use your modified version.--The **Carbon Commercial License Agreement** covers all of that. It's self-hosted with full codebase access, including the Business features, over a one, three, or five-year term, and it replaces the AGPL copyleft so your modifications stay private. For a company running Carbon for itself, it's licensed per user, per year, and renews.--For **partners** who sell Carbon with Business features or without AGPL obligations, the same commercial license covers three models:--- **Reseller** — you sell Carbon under Carbon's name.-- **White-label** — you sell it under your own brand and take first-line support, so your customers never see Carbon.-- **OEM embedded** — Carbon ships inside the machines you sell.--## The AGPL obligation--AGPLv3 is a **network copyleft** license: modify Carbon, make it available to users over a network, and you must offer those users your complete modified source under the same license.--## How the agreements fit together--A few rules span both paths, whichever way you buy:--- **Software, not services.** The license covers the software; implementation, data migrations, and custom builds ride inside your agreement or an attached statement of work.-- **One agreement per side.** You can hold one Cloud subscription and one self-hosted commercial license at once, but they're never blended into a single document.-- **The bridge.** An Enterprise Subscription can carry a written option to convert to a self-hosted commercial license later, so starting on Cloud doesn't lock you out of running it yourself.--A commercial agreement covers the signer and its named affiliates. Customer-portal users don't count against it.--## When you need a commercial license--[Get a commercial license](mailto:[email protected]), or just use [Carbon Cloud](https://app.carbon.ms), if you want to:--- **Keep your modifications private** from the people who use them, instead of offering them the source under AGPLv3.-- **Use Business features:** the integrations and other capabilities in `packages/ee`. See `docs/integrations` for the catalog.--Carbon Cloud (the Business plan or an Enterprise Subscription) is the managed path; a commercial license is the self-hosted path. Either one unlocks the Business features.--This page summarizes the terms so you can find the right path quickly. The [LICENSE](https://github.com/crbnos/carbon/blob/main/LICENSE) file is what actually governs. Read it in full, and [email us](mailto:[email protected]) if you're unsure which edition fits.diff --git a/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/aws-sst.md b/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/aws-sst.mddeleted file mode 100644index 5b1ea94e74..0000000000--- a/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/aws-sst.md+++ /dev/null@@ -1,57 +0,0 @@-# AWS with SST--> Deploy the Carbon stack to your own AWS account with SST: ECS Fargate, ECR, and a WAF.--One of the `docs/platform/self-hosting` recipes: deploy Carbon 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`). For a single-box setup instead, see `docs/platform/self-hosting/docker-caddy`.--[Carbon Cloud](https://app.carbon.ms) is the hosted edition. We run the whole stack for you, with scaling, backups, upgrades, and uptime handled. Sign up and you're in: no servers to provision, no Supabase to run, no infrastructure to babysit. Self-host only if you specifically need Carbon on your own hardware.--## 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`. |--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.--## Deploy--SST drives the deploy from `sst.config.ts`. Run it from the repo root with the `docs/platform/self-hosting/environment-variables` exported.--- ### Set the environment-- Export the SST variables (`AWS_REGION`, `AWS_ACCOUNT_ID`, `IMAGE_TAG`, the `CERT_ARN_*`, and any `URL_*`) plus the app config the services read at runtime. The `docs/platform/self-hosting/environment-variables` is provisioned out of band.--- ### Deploy the stack-- ```bash- npx sst deploy --stage prod- ```-- This provisions the VPC, cluster, both Fargate services, and the WAF, pulling the ECR images tagged `IMAGE_TAG`. The `prod` stage retains resources on removal; any other stage removes them.--- ### Associate the WAF-- Attach `AppAlbWebAcl` to the application load balancer in the AWS console (or with the CLI). SST creates the web ACL but does not attach it.---SST does not build the container images. CI builds and pushes `carbon/erp` and `carbon/mes` to ECR; the deploy pulls the tag named by `IMAGE_TAG`.--See `docs/platform/self-hosting/environment-variables` for the full configuration surface, the `docs/platform/self-hosting/docker-caddy` recipe for a single VPS, or `docs/building/local-development` to run Carbon locally with the `crbn` CLI.diff --git a/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/docker-caddy.md b/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/docker-caddy.mddeleted file mode 100644index e532e19b0d..0000000000--- a/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/docker-caddy.md+++ /dev/null@@ -1,145 +0,0 @@-# Docker with Caddy--> Self-host the full Carbon stack on a single Linux VPS with a Docker Swarm and an automatic-HTTPS Caddy reverse proxy.--Run all of Carbon on **one Linux VPS**: a single-node [Docker Swarm](https://docs.docker.com/engine/swarm/) running the ERP and MES apps, the full Supabase data plane, Redis, and Inngest, behind a [Caddy](https://caddyserver.com/docs/) reverse proxy that handles TLS for you. Secrets are real **Docker Swarm secrets**, and only ports **80/443** are exposed. Everything else stays on a private overlay network.--Everything for this recipe lives in [`contrib/deploying/simple-docker-caddy`](https://github.com/crbnos/carbon/tree/main/contrib/deploying/simple-docker-caddy). The `deploy.sh` script wraps the whole lifecycle.--[Carbon Cloud](https://app.carbon.ms) is the hosted edition. We run the whole stack for you, with scaling, backups, upgrades, and uptime handled. Sign up and you're in: no servers to provision, no Supabase to run, no infrastructure to babysit. Self-host only if you specifically need Carbon on your own hardware.--## What runs--| Service | Role |-| --- | --- |-| `caddy` | Reverse proxy + automatic HTTPS. The only service that publishes ports (80/443). |-| `erp`, `mes` | The Carbon apps, built from the repo. Reached at `erp.<domain>` and `mes.<domain>`. |-| `postgres` | Supabase Postgres, tuned on first boot (`pg_stat_statements`, connection limits). |-| `gotrue`, `postgrest`, `realtime`, `storage`, `meta`, `kong` | The Supabase data plane, fronted by Kong at `api.<domain>`. |-| `studio` | Supabase Studio (DB admin), internal-only by default. |-| `edge-runtime` | Supabase Edge Functions. |-| `redis` | Cache, rate limiting, session state. |-| `inngest` | Background jobs for both apps. |--## Prerequisites--| Requirement | Details |-| --- | --- |-| VPS | Ubuntu 22.04+, **≥ 4 GB RAM** to run the stack. Building images on the host needs **~8 GB**. Add swap or build elsewhere. |-| Docker | Docker Engine with the Compose plugin. |-| OpenSSL | `deploy.sh` uses `openssl` to generate secrets and the Supabase JWT keys (usually already present). |-| DNS | `A`/`AAAA` records for your ERP, MES, and Supabase hosts pointing at the VPS (needed for Let's Encrypt). |-| Repo | The Carbon repo checked out on the VPS (default `/opt/carbon`). |--## Install--- ### Harden the host (recommended)-- Sets up a firewall (SSH + 80/443 only), fail2ban, swap, and automatic security updates.-- ```bash- cd /opt/carbon/contrib/deploying/simple-docker-caddy- sudo ./scripts/harden.sh- ```--- ### Initialize-- Starts the Swarm, generates all the Docker secrets, and creates a `.env` from the template.-- ```bash- ./deploy.sh init- ```--- ### Configure-- Edit `.env`: set `CARBON_REPO`, your `*_HOST` / `*_URL` hostnames, `ACME_EMAIL`, and SMTP settings.-- ```bash- $EDITOR .env- ```--- ### Set the operator secrets-- `init` seeds placeholders so the stack deploys; replace them with real values. ERP **fails to boot** with an empty Resend key.-- ```bash- ./deploy.sh secret resend_api_key re_xxxxxxxx- ./deploy.sh secret smtp_password 'your-smtp-password'- ```--- ### Deploy-- Builds the images, deploys the stack, waits for the database, and applies migrations.-- ```bash- ./deploy.sh up- ```--- ### Verify-- ```bash- ./deploy.sh status- curl -fsS https://$ERP_HOST/health # -> 200- curl -fsS https://$MES_HOST/health # -> 200- ```---First boot applies hundreds of migrations. The apps may restart a few times until the schema exists, then settle healthy. Watch `./deploy.sh logs erp`.--## How secrets work--Swarm delivers secrets as files under `/run/secrets/`, but the images read configuration from **environment variables**, several of them Postgres connection strings that embed the password. A small entrypoint shim bridges the two: it replaces `__SECRET_NAME__` placeholders in the environment with the contents of the matching secret file, then starts the service.--```yaml-PGRST_DB_URI: postgres://authenticator:__POSTGRES_PASSWORD__@postgres:5432/postgres-GOTRUE_JWT_SECRET: __JWT_SECRET__-```--`deploy.sh init` generates `postgres_password`, `session_secret`, the Inngest keys, and the Supabase key trio (`jwt_secret`, `anon_key`, `service_role_key`). You supply `resend_api_key` and `smtp_password`.--`inngest_signing_key` must be **plain hex**. The self-hosted Inngest server rejects the `signkey-` prefix. `init` generates it correctly.--## Operating--| Task | Command |-| --- | --- |-| Status | `./deploy.sh status` |-| Follow logs | `./deploy.sh logs <service>` (e.g. `erp`, `caddy`) |-| Update to a new release | `git pull && ./deploy.sh build && ./deploy.sh deploy && ./deploy.sh migrate` |-| Back up | `./scripts/backup.sh` (Postgres dump + storage archive) |-| Stop | `./deploy.sh down` (add `--volumes` to also wipe data) |--**Database admin.** Studio is internal-only by default. Reach the database over SSH with:--```bash-docker exec -it $(docker ps -qf name=carbon_postgres.1) psql -U postgres-```--The `.1` avoids also matching `carbon_postgrest`. Or expose Studio behind HTTP basic-auth by setting `STUDIO_HOST` and uncommenting the studio block in the `Caddyfile`.--**Rotate a secret.** Swarm secrets are immutable while in use, so bring the stack down first:--```bash-./deploy.sh down-./deploy.sh secret <name> 'new-value'-./deploy.sh up-```--A local backup on the same VPS is not a backup. Schedule `backup.sh` and ship its output **offsite**, and enable your provider's volume snapshots.--## Production checklist--- Host hardened (`harden.sh`): firewall limited to SSH + 80/443, fail2ban, swap.-- HTTPS issuing cleanly — `./deploy.sh logs caddy`.-- Real `resend_api_key` and working SMTP set (Auth needs SMTP for invites and magic links).-- Postgres tuning sized to the box (the `PG_*` values in `.env`).-- Backups scheduled and shipped offsite.-- Studio not publicly exposed (or behind basic-auth).--See `docs/platform/self-hosting/environment-variables` for the full configuration surface, or `docs/platform/self-hosting/aws-sst` for an AWS setup.diff --git a/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/environment-variables.md b/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/environment-variables.mddeleted file mode 100644index 89c2dd2fdf..0000000000--- a/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/environment-variables.md+++ /dev/null@@ -1,113 +0,0 @@-# Environment variables--> 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.--One of `community`, `cloud`, `enterprise`, or `test`. Gates edition-specific features.-Enables ITAR / controlled-environment restrictions: the US-Person certification gate, ITAR hostnames and branding, Slack and analytics disabled, and mandatory `docs/reference/two-factor` that a company admin cannot turn off.-Allowed sign-in methods: `email`, `google`, `azure`, `passkey`, `sso` (`docs/reference/single-sign-on`, Enterprise edition only).-Base domain the apps are served from.-Public URL of the ERP app.-Public URL of the MES app.-Default UI language.-Requests per window allowed against the API.--## Database — Supabase--Carbon's single Postgres database. The first four are required and crash boot if missing.--Supabase project URL.-Public anon key, browser-safe.-Service-role key, server only, never exposed to the client.-Direct Postgres connection string.-Secret used to sign and verify session JWTs. Optional to the app, but the Supabase data plane needs it, so the self-hosting recipes always generate one.--## Auth & sessions--Signs the session cookie.-Google OAuth client id, when `google` is in `AUTH_PROVIDERS`.-Google OAuth client secret.-Azure OAuth client id, when `azure` is enabled.-Azure OAuth client secret.-Local only. Sign in as this email without a magic link.--Enterprise `docs/reference/single-sign-on` adds two more:--Turns on the SAML engine in the auth service.-SAML signing key — base64-encoded PKCS#1 DER RSA, minimum 2048-bit; the generation command is in `.env.example`.--Sign-in bot protection is Cloudflare Turnstile off Vercel: set both-`CLOUDFLARE_TURNSTILE_SITE_KEY` and `CLOUDFLARE_TURNSTILE_SECRET_KEY` and every login form-shows the widget and verifies its token. With neither set there is no bot check, and the-per-IP rate limit and per-account lockout are all that apply. `BOT_PROTECTION`-chooses explicitly: `turnstile`, or `botid` for Vercel BotID, which is invisible but runs-only on Vercel.--## Jobs & cache--Redis connection (ioredis URL) for the permission cache and queues.-Signs requests to the Inngest jobs runner. Required in production.-Key for sending events to Inngest. Required in production.-Override the Inngest endpoint (self-hosted or dev).--`INNGEST_SIGNING_KEY` and `INNGEST_EVENT_KEY` are only optional in development, where `INNGEST_DEV=1` is set. Without `INNGEST_DEV`, the app fails to boot if either is missing, and no background jobs (MRP, scheduling, notifications, integration syncs) or queued events run. A self-hosted Inngest server supplies both. The Docker with Caddy recipe generates them for you.--## Email & billing--SMTP server for transactional email. Unset disables email sending.-SMTP port; 465 uses implicit TLS, 587 (default) uses STARTTLS.-SMTP username.-SMTP password.-From-address for outgoing email, e.g. `Carbon <[email protected]>`.-Optional. Resend marketing-contacts API; also a legacy SMTP fallback when `SMTP_*` is unset.-Stripe secret key, Cloud / Enterprise billing.-Verifies inbound Stripe webhooks.-Verifies inbound Stripe Connect webhooks (connected-account events, signed with a separate secret).--## AI & analytics--Powers AI features (embeddings, assist).-Anthropic key for Claude-backed features.-PostHog host for product analytics.-PostHog project key.--## Integrations--OAuth credentials for each connector, all optional, set only the ones you use.--Xero OAuth client id.-Xero OAuth client secret.-Verifies inbound Xero webhooks.-QuickBooks OAuth client id.-QuickBooks OAuth client secret.-Jira OAuth client id.-Jira OAuth client secret.-Slack OAuth client id.-Slack OAuth client secret.-Onshape OAuth client id.-Onshape OAuth client secret.-Currency exchange-rate feed.-Address autocomplete.--## Infrastructure — SST--Read by `sst.config.ts` at deploy time, not by the app.--Region to deploy into.-Target AWS account.-ECR image tag to deploy.-ACM certificate ARN for the ERP domain.-ACM certificate ARN for the MES domain.-Custom ERP domain, overrides the default.-Custom MES domain, overrides the default.--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`.diff --git a/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/index.md b/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/index.mddeleted file mode 100644index 924fa4766b..0000000000--- a/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/index.md+++ /dev/null@@ -1,12 +0,0 @@-# Self-hosting--> Run the whole Carbon stack on your own infrastructure, a single VPS or your own AWS account, instead of Carbon Cloud.--Carbon can run entirely on hardware you control, the ERP and MES apps plus everything they need: the Supabase data plane (Postgres, Auth, REST, Realtime, Storage, Edge Functions), Redis, and Inngest. This is the alternative to [Carbon Cloud](https://app.carbon.ms), where Carbon runs the whole stack for you.--## Recipes-- - Docker with Caddy The whole stack on a single Linux VPS: a single-node Docker Swarm behind an automatic-HTTPS Caddy reverse proxy.- - AWS with SST The two apps on ECS Fargate, provisioned with SST, for teams that need Carbon inside their own AWS account.--Self-hosted Carbon runs under **AGPLv3**: it's free to run and change, and if you let others use a modified copy over a network, you must offer them its source. A commercial license is required to use Business features (anything in `packages/ee`) or to keep your changes private from the people who use them. See `docs/platform/licensing`.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/account.md b/apps/erp/app/modules/agent/kb/docs/reference/account.mddeleted file mode 100644index 45b95ba19c..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/account.md+++ /dev/null@@ -1,52 +0,0 @@-# Your account--> Personal, self-service settings for profile, passkeys and two-factor, notification preferences, theme, and language — separate from company-wide settings.--Everything on the **Account** screen is yours alone: your name and photo, the passkeys you sign in with, which topics reach you by email, the theme you look at all day. Changing them touches nothing for anyone else. Company-wide switches live under **Settings** and are gated by admin permissions; your account settings need no special permission at all. Open it from your avatar in the top bar.--## Profile--Profile is the one card everyone shares; the form itself warns *"This information will be visible to all users, so be careful what you share."*-- - **First name / Last name**: Your display name across Carbon.- - **Phone**: Optional.- - **About**: A short bio, capped at 160 characters.- - **Photo**: Your avatar; remove it to fall back to your initials.- - **Email**: Shown but **read-only**. Your email is your sign-in identity, so changing it is handled outside these self-service settings.--## Signing in--Sign-in is a magic link, Google or Microsoft OAuth, or a passkey — there is no password. Which methods exist is a deployment-wide choice, not a per-user one.--**Account → Security** is where you manage your own credentials. Add a passkey through your browser's WebAuthn prompt to sign in with Face ID, Touch ID, or your device PIN; rename each one so you can tell devices apart; remove one to revoke that device. Each row shows when it was added and last used. The same screen holds the authenticator-app card — see `docs/reference/two-factor` for setup, enforcement, and recovery.--A passkey is tied to a device. Register a second one up front, or you'll be falling back to the magic-link email when the first device goes missing.--## Notification preferences--**Account → Notifications** is your personal grid of topic × channel switches: in-app is always delivered, and the toggles govern email and (when connected) Slack. The default is on; a switch off is an opt-out for that one topic and channel. What raises each notification and how channels are gated is the `docs/reference/notifications` — this page is where you tune it for yourself.--## Theme, language, and attributes--Your color theme is stored in a browser cookie, so it follows you per device and applies to nobody else; company-wide branding is an admin setting. Language is a preference Carbon carries for you rather than a live toggle on this screen. Your company can also define **user attributes** (a certification date, a shift preference) grouped into categories: whether one shows on your public profile depends on its category being public, and you can edit your own value only when the attribute is marked self-managed.--For the switches that shape the whole company, see `docs/reference/company-settings` and `docs/reference/people`.--## Internals and troubleshooting--Sidebar sections come from `useAccountSubmodules.tsx:9`; `/x/account` redirects to Profile (`routes/x+/account+/_index.tsx:4`). Profile saves via `updatePublicAccount` (`account.service.ts:161`), self-scoped to the user's own `user` row. Photo uploads are cropped and resized in the browser before upload (`prepareImageUpload` from `@carbon/files/media`). The passkey card renders only when `isAuthProviderEnabled("passkey")` (`security.tsx`); passkey names cap at 100 characters. Notification preferences: absent row = enabled (`notifications.tsx:130`); Slack column gated by `slackActive` (`notifications.tsx:47`); email gated by the `EMAIL_NOTIFICATIONS` plan feature (`notifications.tsx:49, :175`). Theme is a cookie (`theme.tsx`). Attribute self-editing is gated by the self-managed flag (`$userId.attribute.tsx:48`).--### Can't change your email from the Account screen-The field is deliberately read-only. Email is the sign-in identity and the notification address; changing it is an identity change handled outside self-service.--### There's no password to change-Sign-in is magic link, OAuth, or passkey. A password-change form exists in the codebase but isn't wired into any account route, so password management is not a live control here.--### The passkey card isn't showing-The `passkey` provider isn't enabled for the deployment. `AUTH_PROVIDERS` (default `email,google,azure`) decides which sign-in methods exist; it's deployment-wide, not per-user.--### There's no language picker-The per-user language preference exists in the account model, but the picker isn't surfaced on the Account sidebar in the current build; the interface follows the app's resolved locale.--### The Slack or Email notification column is missing-Slack's column needs the integration connected. Email preferences are stored regardless but only take effect when the plan includes `EMAIL_NOTIFICATIONS`.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/accounting.md b/apps/erp/app/modules/agent/kb/docs/reference/accounting.mddeleted file mode 100644index 6a34d2cd43..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/accounting.md+++ /dev/null@@ -1,84 +0,0 @@-# Accounting & the ledger--> 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.--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.--## 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 sales revenue, shipping revenue, and sales tax payable, on separate lines. |-| Purchase Receipt | Posting a receipt: inventory or WIP against GR/IR. |-| Purchase Invoice | Posting a supplier bill: payables, clearing GR/IR. |-| Inventory Adjustment | Manual adjustments and inventory count variances: stock gains and losses against the inventory adjustment account. |-| 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. |-| Sales | Revenue from goods and services sold. |-| Shipping revenue | Shipping charged to the customer — its own revenue leaf, never the sales account. |-| Goods received, not invoiced | The accrual between receiving goods and being billed for them. |-| Variance | Differences swept at job close or from purchase price. |--A sales invoice line splits its charge three ways rather than folding everything into revenue: the line's own shipping plus its share of any header-level shipping credits the **shipping revenue** account, tax credits **sales tax payable**, and merchandise and add-ons credit the **sales** account. The two revenue defaults must be distinct accounts — posting refuses a line that would credit shipping to the sales account. A new company seeds account **4040 "Shipping Revenue"** under Revenue and points the default at it; a company joining an existing group inherits that group's shipping default instead.--## 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**, created and activated on demand as you post. Each period also carries a close status — **Open**, **Closed**, or **Locked** — and operational documents (receipts, shipments, invoices, payments) can't post into a Closed or Locked period. Reopen or unlock the period first, or move the posting date into an open one.--## Related-- - Manufacturing accounting The job-cost postings: consumption, production events, close.- - Ship, invoice, get paid Where the sales shipment and invoice postings come from.--## Troubleshooting--Exact errors from period close and journal immutability.--### "Accounting period is closed. Reopen it before posting."-The posting date falls in a period whose close status is **Closed**. Reopen the period from the accounting periods screen, or change the document's posting date to fall in an Open period, then post again.--### "Accounting period is locked. Unlock it before posting operational documents."-Same as above, but the period is **Locked** — the stricter state. It must be unlocked before receipts, shipments, invoices, or payments can post into it.--### "Cannot delete journal …: accounting period is closed"-A journal in a closed period can't be deleted. Reopen the period, or reverse the journal instead of deleting it.--### "Posted journal … is immutable and cannot be deleted; reverse it instead"-Posted journals are never deleted. Use the reverse action, which writes an offsetting journal and preserves history.--### "Posted journal … is immutable; only the Posted -> Reversed transition is permitted"-The only state change allowed on a posted journal is reversal. To correct an entry, reverse it and post a new one.--### "Journal line … is immutable because journal … is posted"-Lines of a posted journal can't be edited. Reverse the journal and re-enter it.--### "Cannot post to a group account"-A journal line references a heading/group account in the chart of accounts. Only leaf (posting) accounts accept entries — pick a detailed account instead.--### "Account not found"-The full message names the account id. The referenced account doesn't exist in the chart of accounts — usually a default-account setting pointing at a deleted account. Check the company's default accounts configuration.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/agent.md b/apps/erp/app/modules/agent/kb/docs/reference/agent.mddeleted file mode 100644index 606e7f0bd4..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/agent.md+++ /dev/null@@ -1,64 +0,0 @@-# In-app assistant--> A read-only chat assistant inside the ERP that answers questions about how Carbon works from the product documentation and points you to the right page.--The in-app assistant is a chat panel inside the ERP that answers "how do I / what is / where is" questions about Carbon. Open it from the **Question** button in the top bar, or press <kbd>⌘L</kbd>. Ask something like "how do I convert a sales order line to a job?" and it searches the product documentation, reads the relevant pages, and replies in plain language with a link to the source.--It is deliberately narrow. This first version is **read-only and documentation-only**: it explains features and workflows and can take you to a page, but it cannot read your live data and cannot change anything. Ask "how many open sales orders do I have?" and it will tell you it can't read your data yet, then open the sales orders page so you can see for yourself.--The assistant answers from the docs and can navigate you around the app. It does not create, edit, or delete anything, and it cannot see your customers, orders, parts, quantities, or statuses. If you ask it to make a change, it explains what you would do in the UI instead. Don't expect it to act on your behalf. The tooling for live-data lookups exists in the code but is gated off in this version.--This is distinct from the `docs/integrations/assistant`, which is a separate integration that surfaces Carbon in Slack. The in-app assistant lives only inside the ERP.--## What it can do--The assistant has a small, fixed set of abilities:--- **Answer from the docs.** It searches the same content that powers this documentation site and reads whole pages to answer your question, citing the page it used as a link.-- **Take you to a page.** Ask for "the jobs page" or "settings" and it can navigate you straight there. For a record page it needs a specific id, which it can only use if it found one in the docs. It never invents ids.-- **Offer links, buttons, and choices.** It can show a clickable link, a one-click suggested follow-up, or a short set of options to pick from when your question is ambiguous.--That is the whole surface. There is no "run this report", "update this field", or "post this document" — those are not abilities it has in this version.--## Where it appears--The assistant is available across the ERP. The **Question** button sits in the top bar and toggles a floating chat panel on the right; <kbd>⌘L</kbd> does the same from anywhere. When it is open, it knows which page or record you are currently viewing, so "how do I edit this?" resolves against the screen you are on and it can send you somewhere sensible.--The button and the panel only appear when your plan includes the assistant. On a plan without it, there is no trigger and no panel, so you never reach a dead end.--## Threads and messages--Each conversation is a **thread**, private to you within your company. Your threads are not visible to your teammates. Open the history from the panel to switch between past threads or start a new one, and delete any thread you no longer want.--Inside a thread, every exchange is stored as messages, and each message is broken into ordered parts: the text you see, plus a record of any documentation the assistant looked up along the way. A thread gets an automatic short title once it has a clear topic, so your history stays scannable. You can give a thumbs up or thumbs down on the assistant's latest answer, with an optional note, which helps improve it over time.--A long conversation is trimmed to its most recent messages before each reply, so the assistant answers from the recent context, not the entire history. Start a new thread when you switch topics for the cleanest results.--## Limits and availability--The assistant is a paid feature.--- **Plan.** It is available on the Business plan on Carbon Cloud. See `docs/platform/licensing` for how plans and editions work. Self-hosted deployments follow the licensing boundary rather than a runtime plan gate.-- **Beta.** The panel is labelled **Beta**: it is improving constantly, and an answer can be incomplete or wrong. Treat it as a fast way to find the right doc and the right page, not as the final word — the linked documentation is the source of truth.--## Troubleshooting--Exact strings from the assistant's request path and rate limiter.--### "Rate limit exceeded. Please wait a moment."-You sent more than 30 messages within 5 minutes (counted per person, per company). Wait a short while and send again. This is a throttle, not a plan limit, and it resets on its own.--### "Upgrade required"-The chat request returned a 402: your company's plan does not include the assistant (the `AI_AGENT` feature, granted on the Business plan on Carbon Cloud). Upgrade the plan to enable it. Normally the **Question** trigger and the panel are hidden on an ineligible plan, so you would not reach a send in the first place — seeing this means a send was attempted anyway.--### "Failed to create thread"-The assistant could not start a new conversation (a 500 while inserting the thread). Retry; if it persists, it is a server-side issue, not something you can fix from the UI.--### "I couldn't find that in the docs"-Not an error — the assistant searched the documentation and found nothing relevant to your question. Rephrase in different terms, or ask a broader "how do I / what is" version of the question. If it is a question about your own data (counts, statuses, a specific record), the assistant can't answer it in this version; open the relevant page to see the data directly.--### Why can't I see the assistant?-The **Question** button and the ⌘L panel only appear when your plan includes the assistant (the `AI_AGENT` feature). On a plan without it, both are hidden by design. Check your plan on Carbon Cloud, or see `docs/platform/licensing`.--### The assistant says it can't read my data-Expected. This version is read-only and documentation-only: it explains how Carbon works and navigates you to pages, but it has no access to your live customers, orders, parts, quantities, or statuses. For a data question, let it take you to the page where that data lives.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/approvals.md b/apps/erp/app/modules/agent/kb/docs/reference/approvals.mddeleted file mode 100644index 3254f378d3..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/approvals.md+++ /dev/null@@ -1,73 +0,0 @@-# Approvals--> Route purchase orders, quality documents, and suppliers for sign-off before they take effect, with amount-tiered approval rules.--An **approval** holds a document in a pending state until someone authorized signs off. Carbon decides-whether a document needs approval, and who may grant it, from per-company **approval rules**. A rule-exists per document type; for purchase orders it can also carry an amount tier, so a small order goes-through untouched while a large one waits for the right person.--Say you set a purchase-order rule at **$25,000** with the purchasing managers as approvers: a $4,000 order-finalizes straight to **"To Receive"**, but a $40,000 order lands in **"Needs Approval"** and can't move-until a manager approves it.--## What can be approved--Three document types support approval, each with its own pending status:--| Document | Pending status | Approved → | Rejected → | Amount-tiered? |-| --- | --- | --- | --- | --- |-| Purchase order | "Needs Approval" | recomputed (e.g. "To Receive") | "Rejected" | Yes, the order total |-| Quality document | "Draft" | "Active" | stays "Draft" | No |-| Supplier | "Pending" | "Active" | "Rejected" | No |--Only **purchase orders** use the amount threshold. Quality documents and suppliers match a single rule (its-minimum is 0), so for them approval is simply on or off.--## Approval rules--Rules live under **Settings → Approval Rules**, grouped by document type. Each rule:-- - **Minimum amount**: The tier floor: approval applies at or above this, up to the next rule's minimum. (Purchase orders only.)- - **Who can approve**: Groups **and/or** individual users eligible to decide.- - **Default approver**: A named fallback approver for the tier.- - **Enabled**: Whether the rule is live.--For purchase orders, several rules form **amount tiers**. Each band runs from its minimum up to the next-rule's minimum, and the top tier is "over $X". An order matches the single highest tier its total clears.--There's **no global "require approval" switch.** A document type needs approval only while an **enabled**-rule exists for it. Disable or delete the rule and those documents finalize directly.--## Who can approve--A user may decide a request if they're the tier's **default approver**, are listed directly under **who can-approve**, or belong to one of the groups listed there. Authority is otherwise governed by ordinary module-permissions: purchase-order and supplier decisions need purchasing access, quality decisions need quality-access; editing rules needs settings access.--Approval authority flows **upward only.** Someone assigned to the $25k tier can approve a $4k order, but a-$4k-tier approver cannot approve a $250k one. Higher tiers cover everything beneath them; lower tiers don't-reach up.--## The decision--The pending document shows **Approve** and **Reject** on its header, each opening a confirm dialog.-Supplier and quality decisions can carry an optional note; the purchase-order dialog has no note field.-Approving runs the document's transition in one step; rejecting moves it to its rejected state (a quality-document simply stays in **"Draft"**). The person who raised the request can withdraw it while it's still-pending: on a purchase order that surfaces as **Delete** (only the requester can delete a pending order).--Carbon notifies the resolved approvers when a request is raised, and the requester when it's decided, over-**email, Slack, and in-app**. When a purchase order is decided, approvers of lower tiers are notified too, so-they can see spend that cleared above their level.--Approval is **single-step, not a chain.** One matching rule is selected and **one** approver's decision-finalizes the document. There are no sequential stages, parallel sign-offs, quorums, or delegation. The-amount tiers choose *which rule applies*, not a series of steps a request walks through.--## Related-- - Purchase orders The one document whose approval is gated by an amount — the order total.- - Quality Quality documents move from Draft to Active on approval.- - Suppliers & customers A new supplier can be held at Pending until approved.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/assembly-instructions.md b/apps/erp/app/modules/agent/kb/docs/reference/assembly-instructions.mddeleted file mode 100644index 3700857912..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/assembly-instructions.md+++ /dev/null@@ -1,90 +0,0 @@-# Assembly instructions--> Step-by-step 3D build guides for a made part, authored in the ERP from its CAD model and played to operators on the shop floor.--An assembly instruction is a 3D build guide for one made part. It breaks the part's CAD model into ordered steps, each naming the components it installs and how they move into place, and plays them to the operator in the shop floor's `docs/reference/mes`.--You author instructions under **Production → Assemblies**. Pressing **"Add Assembly Instruction"** asks for a single field, the **Part**: a part made in-house that already has a 3D model on its **Model** tab (a STEP file). Carbon converts the model for 3D viewing if it needs to, opens the editor, and starts working out draft steps straight away.--## Versions and status-- - **Draft**: The only editable status. A new instruction, and every new version, starts here.- - **Published**: The active version. Job operations that use this instruction follow it.- - **Archived**: A version that was active before a newer one took over. Read-only.--Each version is its own copy of the instruction. On a published instruction, **"New Version"** makes an editable draft copy of it, steps and all. On a draft, **"Make Active"** publishes it and archives the version that was active before.--Every job operation that points at another version of this instruction is moved to the new one and has its steps synced, as long as the operation isn't done or canceled and its job isn't locked. Operations on finished jobs keep the steps they were built with.--## Steps--A new instruction starts empty. **"Generate Steps"** runs the motion planner over the model: it works out a build order and a collision-free path for each part, which usually takes one to three minutes. **"Add step manually"** starts from a blank step instead. Once steps exist, **"Add Step"** in the list footer adds another, and dragging a row by its handle reorders the list.--Each step carries a status you change from the icon at the end of its row:-- - **Todo**: A step you added by hand that nobody has checked yet.- - **Review**: A step the motion planner generated. Check that it reads and plays correctly.- - **Done**: An author has checked the step.--The planner menu next to **"Add Step"** can recompute the motions in the current order (**"Run Motion Planning"**) or replace every step from a fresh plan (**"Regenerate Steps"**). Regenerating is refused while any step was added by hand or is marked "Done", so checked work is never overwritten.--Two icons in the step list flag steps worth a second look. A warning triangle means the planner found no collision-free path, so the step's parts fade in at their final position instead of moving in. A hand means a part may tip once placed, so the step may need a fixture or a second person.--## Step details--The **Details** tab holds what the operator reads at this step:-- - **Type**: What the operator records: a plain **Task**, a value, a measurement with a minimum and maximum, a checkbox, a list choice, a timestamp, a person, a file, or an inspection.- - **Title**: Leave it blank to use a title built from the step's components, such as "Add Bearing (×2)".- - **Instruction**: Free text for the operator. Type `@` to mention a part from the item's bill of materials.- - **Required**: The operator must record this step before the operation can be completed.--These fields save with **"Save"** at the bottom of the panel (or ⌘/Ctrl+Enter). Everything else on the step saves the moment you change it: components, hidden parts, playback settings, status, materials, tools, and slides.--## Components and hidden parts--**Components** lists what the step installs. Press **"Add"**, click parts in the 3D view (shift-click adds several), then **"Done Adding"**. Remove a part with the ✕ on its row.--Some steps are hard to see because of parts that are in the way, such as a fixture or a cover fitted earlier. The eye on a row in the **Components** tab hides that part on the selected step only. The step's **Hidden on this step** list shows what is hidden and brings parts back. A step can never hide its own components, and hidden parts are hidden for operators too.--## Playback settings--The **Playback** box sets how the step plays:-- - **Motion**: "Automatic" uses the path the planner found. **"Edit Path"** shows the path as red waypoints in the 3D view: drag one to reshape it, double-click the path to add one, and press Delete to remove the selected one. "No clear path" means the planner found none; hover the header note to see which parts block it.- - **Camera**: "Automatic" frames the step's parts on its own. **"Use Current View"** saves the angle you are looking from; **"Clear"** goes back to automatic.- - **Build off to the side**: Builds this step beside the model and carries the group in at a later step (below).--### Building a group off to the side--Some parts are put together on their own first and then fitted as one piece: a hub gets its bearing, circlip and brake disc on the bench before the whole hub goes onto the trailing arm. Build off to the side models that.--On each step of the group, set **"Build off to the side"** to the step where the group goes in, such as **"Joins step 8"**. During playback those steps build the group next to the model, and at the join step the finished group glides across and fits into place. The join step lists the steps it brings in, and each built-aside step shows a small stacked-boxes icon in the step list.--The first step is the base and is always built in place. A join step can't itself be built off to the side, and a step can only join a later step. If a reorder puts a step after its join step, the link is cleared and the step builds in place again. **"Regenerate Steps"** removes these settings too.--## Materials, tools, and slides--The **BOM** tab links the step to what it consumes: parts from the item's bill of materials and the tools it needs. **"Match BOM"** in the **Components** tab matches 3D components to bill-of-materials items and fills in each step's materials for you. The **Slides** tab adds photos, PDFs, or extra 3D models the operator sees on this step.--## On jobs and the shop floor--An **Assembly** `docs/reference/jobs` picks its instruction on the item's bill of process. A job copies the instruction's steps when it is created. To bring a later edit into an existing job, use **"Sync Assembly Steps"** on the job operation: steps that came from the instruction are updated or removed to match, and steps someone wrote by hand on the job are kept.--On the shop floor the operation opens the `docs/reference/mes`, which plays the same steps, hidden parts, and groups built off to the side.--## Related-- - MES How operators play an instruction step by step, and the Build, Focus, and Full views.- - Jobs The work orders whose Assembly operations use an instruction.- - Methods The bill of materials that step materials are picked from.--## Internals, exact strings, and troubleshooting--- Routes: list `/x/production/assemblies`, editor `/x/assembly/:id`. Tables: `assemblyInstruction` (row per version, grouped by `rootInstructionId ?? id`), `assemblyInstructionStep`, `assemblyInstructionStepMaterial`, `assemblyInstructionStepSlide`, `assemblyInstructionStepTool`.-- Editing is Draft-only in the UI (`isDisabled = status !== "Draft" || !can("update","production")`). "Make Active" shows on any non-Published version, Archived included.-- Step status DB meaning: Todo = new manual step, Review = planner-generated, Done = author-validated. New steps default to Todo with `planConfidence` "manual".-- Build off to the side is stored as `assemblyInstructionStep.parentStepId` (the join step). Rule shared by ERP and playback: `joinTargets` in `packages/viewer/src/staging.ts`. Staged groups park on +X or +Z (whichever is most side-on to the saved cameras), 0.25 × the assembly diagonal away, and glide in over 1.2 s.-- Hidden parts: `assemblyInstructionStep.hiddenComponentNodeIds`; a DB trigger strips the step's own components on every write.-- Flash strings: "Step not found"; "That step can't be the join step for this one"; "Failed to update hidden components"; "Failed to update step status"; "Failed to update assembly instruction step"; "Steps already exist — delete them before generating from the plan"; "Some steps are locked — cannot regenerate"; "The geometry service is unavailable — motion planning can't run right now."; "Motion planning is already running"; "This instruction has no processed model"; "The model must finish converting before planning"; "This job is locked — steps can't be synced to it"; "The selected item has no 3D model. Upload a STEP file on the item's Model tab first."; "Made assembly instruction active"; "Failed to make assembly instruction active".-- Planner offline: "The geometry service is offline — motion planning is unavailable right now." Generate is disabled until it is back.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/audit-log.md b/apps/erp/app/modules/agent/kb/docs/reference/audit-log.mddeleted file mode 100644index 00d7d73cbc..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/audit-log.md+++ /dev/null@@ -1,93 +0,0 @@-# Audit log--> A per-company change history for key business entities. What gets recorded, how to view and filter it, and how old entries are archived.--The audit log records every create, update, and delete on Carbon's important business entities, along with who made the change and exactly which fields moved. It is a company-wide switch, **off by default**, and each company keeps its own log. Turn it on from **Settings → Audit Logs** and Carbon begins tracking changes to your data from that moment forward.--The audit log is entity-centric. A change to any underlying table that makes up an entity is attributed to the parent entity you recognize. Editing an item's cost, for example, records against the **Item**, not a raw `itemCost` row.--## Turning it on--Audit logging is a single toggle on the **Audit Logging** card. Enabling it creates the per-company log storage, sets `auditLogEnabled` on the company, and subscribes every auditable table to the change pipeline. The card reflects the state directly:--- Enabled: *"Audit logging is enabled — All changes to auditable entities are being recorded."*-- Disabled: *"Audit logging is disabled — Enable to start tracking changes to your data."*--Disabling it stops new records from being written, but **keeps everything already logged** — the existing history is preserved for compliance, not dropped. Re-enabling picks tracking back up; the gap while it was off simply isn't recorded.--Only users who can **update settings** can flip the toggle. Viewing the log needs the **view settings** permission. See `docs/reference/permissions` for how the settings module maps to employee types.--## What gets logged--Carbon tracks a fixed set of entities. Anything not on this list is not audited.--| Entity | Entity |-| --- | --- |-| Customer | Supplier |-| Item | Item Shelf Life |-| Sales Order | Purchase Order |-| Sales Invoice | Purchase Invoice |-| Quote | Supplier Quote |-| Job | Employee |-| Non-Conformance | Change Notice |-| Gauge | Shipment |-| Receipt | Warehouse Transfer |-| Stock Transfer | Inventory Count |-| Work Center | Maintenance Schedule |-| Maintenance Dispatch | Pricing Rule |-| Price Override | Price Override Break |-| Fixed Asset | Accounting Period |--For each change, an entry captures the **operation** (`INSERT`, `UPDATE`, or `DELETE`), the **actor** (the user who made it — a system or service-role change shows as *System*), a **field-level diff** of what changed, request **metadata** (IP address, user agent, origin), and the **timestamp**. Fields that only reflect bookkeeping — `updatedAt`, `updatedBy`, and internal embeddings — are excluded from diffs, so the log stays focused on meaningful changes.--## Viewing and filtering--Two views surface the same data at different scopes.--**Per-entity history.** On most entity detail pages (a customer, sales order, job, shipment, and more) a **History** action opens a drawer showing just that record's timeline. Each change lists the operation, the actor, when it happened, and an expandable list of the fields that moved. If audit logging is off, the drawer says *"Audit logging is not enabled"* with a shortcut to enable it in settings (or a note to contact your administrator if you can't).--**The global log.** From the Audit Logs settings page, **View All** opens the full-screen **All Audit Logs** table. It is searchable and paginated, with filters for:--- **Entity** — narrow to one entity type (Sales Order, Item, and so on).-- **Operation** — Created, Updated, or Deleted.-- **Changed By** — the user (actor) responsible.--The table columns are **Entity**, **Operation**, **Changed By**, **Changes**, and **When**. Operations render as colored badges — Created (green), Updated (blue), Deleted (red) — and each row expands to show the field-level diff. The Entity value links straight to the record it describes.--## Retention and archives--The live log keeps the last **30 days** of activity. A nightly job sweeps entries older than that into a compressed archive, records the archive's date range, row count, and size, then removes the aged rows from the live table. Nothing is lost — it moves to cold storage.--Archived periods appear under **Archived Logs** on the settings page, each with a **Download** button that generates a short-lived signed link to the compressed export. When no archives exist yet, the card explains that logs older than 30 days will be archived and made available for download there.--Enabling audit logging affects data written from that point on. It does not retroactively reconstruct changes that happened before it was turned on.--## Related-- - Company settings The company record and its feature toggles, including audit logging.- - Permissions and access How the settings permission gates who can view and manage the log.--## Troubleshooting--Audit logging is a paid feature (Business plan) and is off by default. Most "why can't I see the log" questions come down to the plan gate, the settings permission, or the feature never having been enabled.--### "Upgrade to Business to enable audit logging"-The audit log is gated to the Business plan on Carbon Cloud. The enable toggle is blocked until the company is on a qualifying plan. On self-hosted deployments the runtime plan gate does not apply, but the feature still follows the commercial-license boundary. Upgrade the plan (or, self-hosting, run under the appropriate license) then enable it in Settings → Audit Logs.--### "Upgrade to unlock audit history"-Shown on the per-entity History drawer when the company is not on a qualifying plan. Same cause and fix as above — the plan gate covers both the settings toggle and the in-context history drawer.--### "Audit logging is not enabled"-The History drawer opened but the company has audit logging turned off. Enable it in Settings → Audit Logs (needs the update-settings permission). If you can't, the drawer directs you to contact your administrator, who holds that permission.--### "Failed to enable audit logging" / "Failed to disable audit logging"-The toggle action hit a server error creating or removing the per-company log storage and its change subscriptions. Retry; if it persists the audit log table or event subscriptions may be in an inconsistent state and need a second toggle to re-sync.--### "Failed to generate download URL"-Requesting an archive download couldn't produce the signed link. The archive record may be missing its stored file, or the signed-URL request failed. Retry; the link is short-lived, so a stale one won't work.--### Empty history for a record you expected to see changes on-Preconditions: audit logging must have been **on** when the change happened (it does not backfill), and the record's entity must be one of the audited entities. Changes to non-audited entities, and any change made while the feature was off, are simply never recorded. Bookkeeping-only field updates (`updatedAt`, `updatedBy`, embeddings) are excluded from diffs, so a change that only touched those shows no field-level changes.--### An older change is missing from the live log-The live log retains only the last 30 days. Older entries move to the **Archived Logs** section as a downloadable compressed export — look there rather than in the live table.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/batching.md b/apps/erp/app/modules/agent/kb/docs/reference/batching.mddeleted file mode 100644index c6e74a3356..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/batching.md+++ /dev/null@@ -1,139 +0,0 @@-# Operation batching--> Group identical operations from several jobs to run as one setup and one timer at a work center, with time and cost split back per job by quantity.--Some processes physically run several jobs at once: a laser table nests parts from many work orders on one sheet, a furnace treats many jobs in one cycle, a plating bath coats whatever fits. An operation batch models that run. It groups unstarted job operations from different jobs, all on the same batchable process, to run together at one work center, with one shared setup and one shared timer.--The jobs are never merged and no BOM changes: each member stays a first-class operation on its own job, and at completion the shared time is sliced back per member in proportion to its quantity, so job costing and the GL post per job with nothing special-cased.--An operation batch (`BAT000001`) is a production-run concept. It is unrelated to the lot/batch **numbers** that trace quantities through inventory — see `docs/reference/traceability`. Same word, different feature.--## Making a process batchable--Batching is switched on per **process**, not per item or method. On the process form (**Resources → Processes**), turn on **"Batchable"** and pick a **"Batch type"**: **"Sequential"** (parts run one after another, like a saw or laser table) or **"Simultaneous"** (parts run together in one load, like a furnace, oven, or plating bath). The type drives the run-time estimate: sequential sums the members' times, simultaneous takes the longest.--The same card holds the **"Compatibility rules"**: how strictly each dimension must match for operations to share a batch. Six describe the material consumed (material, substance, grade, dimension, form, finish) and a seventh, **"Produced item"**, describes what each job makes. Each is set to **"Require Match"**, **"Suggest Match"**, or **"Ignore"**. By default substance, grade, and dimension suggest a match and the rest are ignored. Requiring a match on "Produced item" keeps a run to a single output item, which is what makes its [output lots](#completing-the-batch) mergeable afterwards.--Only "Require Match" ever blocks anything; a suggested mismatch just warns. A work center can additionally carry an advisory **"Batch Capacity"** and **"Minimum Batch Quantity"**; the builder shows a fill bar against them but never refuses a batch over them.--## Building a batch--Open **Production → Batches** and press **"New Batch"** (the production dashboard's **"Unbatched Operations"** card and a job header's *"N awaiting batching"* badge lead to the same place). Pick a **Location** and a **Batchable process**, and the builder lists every eligible operation: unstarted, not already in a batch, on that process, with no production recorded.--Operations whose "Require Match" dimensions clash with your selection stay visible but locked, and mixed "Suggest Match" materials get an amber tag plus a warning to confirm they nest together on this run.--The builder also proposes ready-made groupings: operations sharing a material signature and due within the same seven-day window, ranked by setup saved, urgency, and capacity fit.--When the selected operations produce a lot-tracked item, the review panel adds an **"Output"** section: this is where the run's lot numbers are decided, not on the shop floor. Each job gets its own lot number, pre-filled from the job's current one. When every selected operation makes the same lot-tracked item, **"Combine output into one lot"** replaces them with a single lot number for the whole run. Creating is disabled until every lot number is filled in and no two jobs share one.--Finish with **"Create batch"** (the batch waits as **"Planned"**) or **"Create & Release"** (it goes straight to the floor). A work center is optional at this point: leave it blank and the scheduler auto-assigns the earliest-finishing candidate on release, writing it to the batch and every member.--## Lifecycle-- - **Planned**: Composed but not on the floor. Members still schedule as individual operations, the batch is invisible in the shop floor app, and it can be freely edited or dissolved.- - **Released**: On the floor as one unit: one schedule reservation, one shared timer. Members appear in the shop floor app even when their own job isn't released yet.- - **Completing**: Completion has started: quantities are recorded and time is sliced. If a downstream step fails, the batch stays here and the operator retries from the shop floor.- - **Completed**: Done. Each member operation is marked "Done" with its own time, quantity, and cost, and the jobs proceed independently.--There is no cancelled state: **"Dissolve Batch"** returns the members to the schedule un-run and deletes the batch, and removing the last member does the same. **"Unrelease Batch"** puts a released batch back to "Planned".--The moment a single timer event is recorded against the batch, membership is permanent: adding, removing, changing the work center, unreleasing, and dissolving are all refused, and the only exit is completing it. Decide the composition before work starts.--Member jobs still in "Draft" or "Planned" are released with the batch, exactly as **"Release Job"** would release them: requirements are recalculated, MRP runs, the job becomes "Ready", and its outside operations go on purchase orders. The **"Release"** dialog checks every one of those jobs first — each assembly needs an operation and manufacturing must not be blocked — and a single job that fails keeps the whole batch unreleased until it is fixed. For each supplier you choose a new purchase order or an existing draft, once for the whole batch, so outside operations from every member job land on one order.--Bulk **"Release N batches"** on the Batches list has no dialog: a batch whose jobs need fixing, or whose suppliers already have a draft purchase order to choose from, is skipped and named in the summary. Release those from the batch itself.--## On the schedule--A released batch is one scheduling unit: it books a single work-center reservation sized by the batch type, placed before the per-job passes so member jobs plan around it.--On the `docs/reference/scheduling`, the batch renders as one card listing its jobs; dragging it to another column reassigns the batch's work center, and reordering it moves every member's priority together. The Batches list also offers bulk actions — select planned batches and **"Release N batches"** in one go, or dissolve several at once.--## On the shop floor--There is no separate batch page in the shop floor app: any member's operation view *is* the batch UI. A batch chip shows the `BAT…` number, the member jobs, and a **"Print batch list"** action; the timer is shared, so starting it runs one clock for the whole batch, and planned time shows the batch total.--Beside the chip, a **Batch | job** switch picks what the page shows. **"Batch"** (the default) is the whole run: completed quantity across every job, materials issued, scrap, the output lot, one materials table with batch totals, and the list of member jobs. The job switch shows the member's own steps, parameters, materials, and files, as for any operation.--## Picking materials--The run is shared, so the materials list is too. The batch view lists each material once with the batch's total requirement and the split per job beneath it (for example `2 · 4 · 6`), and a **"Pick"** button for what is still outstanding. In the job view each material row carries a second **"Batch"** figure beside the member's own.--Picking a lot-tracked material issues it to every member at once. The quantity defaults to the batch's outstanding requirement, and Carbon divides what you pick across the members in proportion to what each still needs. Costing and lot `docs/reference/traceability` stay per job; only the operator's trip to the shelf is pooled.--The split is proportional, so a smaller pick is divided across every member rather than filling one of them. On a batch needing 4,000 and 2,500, picking 4,000 leaves both members short instead of completing the first. Take the default, which is the batch total.--Materials that are not lot-tracked show a batch total for reference only. They are still consumed per job automatically at completion.--## Completing the batch--Completion happens once, for the whole batch, in the **"Complete Batch"** modal: one row per member with **Quantity** and **Scrap**, pre-filled with each operation's remaining quantity. Leave a row at zero to skip that operation, which detaches it and returns it to the schedule un-run, with no time or quantity recorded.--The operator never enters a lot number. A combined run states its lot above the rows (*"All output goes to lot …"*); otherwise a read-only **"Lot"** column shows each job's planned lot. A batch created before lot planning existed, with a lot-tracked member that has no lot number, cannot complete: the modal names those jobs, and the fix is the lot number in the job's properties sidebar.--On submit, any running timer stops, the shared time is sliced into per-member events in proportion to each member's planned quantity, scrap is recorded per member exactly as typed, each member's output lot is created, materials issue, costs post, and every remaining member is marked **"Done"**.--Entering less than the pre-filled quantity records less output, but the member operation is marked "Done" regardless. The only way to keep a member open is to zero it out entirely so it leaves the batch. If a downstream step fails mid-completion, the batch parks at "Completing" and the modal's button becomes **"Retry Completion"**. The retry must resubmit the recorded quantities, and corrections happen after completion.--Each member first gets its own lot, because each job has its own cost and history. When the batch was planned to combine its output, those lots merge into the planned lot right after completion. Otherwise they stay separate. Completing the batch also completes each member job whose batched operation was its last, so the merged lot's full quantity is on hand immediately; a member with operations still remaining completes later and adds its share then. A completed batch's drawer still offers **"Merge output lots"** for lots kept separate.--The merged lot holds the summed quantity and the earliest expiry date of the lots that went into it, and its genealogy still reaches back through every member job to the materials each one consumed. A quality event on it resolves to the exact jobs involved, which a single directly-produced lot could never tell you.--## Related-- - Scheduling How a released batch appears on the timeline, and why an estimate-less batch can't be scheduled.- - Jobs The work orders whose operations a batch groups.- - Work centers Where a batch runs, and the advisory capacity numbers the builder reads.- - MES The shop floor app where the shared timer runs and completion happens.- - Traceability The lots a batch consumes and produces, and how a merged lot still traces to every member job.--## Internals, exact strings, and troubleshooting--Tables: `jobOperationBatch` header (PK `("id","companyId")`, status enum `jobOperationBatchStatus` = Planned | Active | Completing | Completed, default Planned; migration `20260905132037_job-operation-batching.sql`); membership via `jobOperation.jobOperationBatchId`; `productionEvent.jobOperationBatchId` tags the shared timer; `capacityReservation.jobOperationBatchId` marks the one coalesced schedule hold. Readable id sequence prefix `BAT`, size 6, seed name "Operation Batch". Process config: `process.batchable`, `process.batchType` (Sequential|Simultaneous), `process.batchRules` JSONB (six dimensions × must|guide|ignore; defaults: substance/grade/dimension=guide, item/form/finish=ignore — `shared/batch-compatibility.ts`, re-exported by `@carbon/utils`). Work center: `batchCapacity` / `minimumBatchQuantity`, advisory only; validator enforces min ≤ capacity.--**"Active" is displayed as "Released" everywhere** (`BatchesTable.tsx:60`; raw value in the tooltip). Never write "activate a batch". Colors: `BATCH_STATUS_COLOR_MAP` (`@carbon/utils/status-colors`).--All mutations go through the `batch-operations` edge function (`packages/database/supabase/functions/batch-operations/index.ts`), permission `update: "production"` for every type — including create (the RLS INSERT policy names `production_create`, but the edge fn's Kysely path makes `production_update` the effective gate). ERP routes: list `/x/production/batches` (view: production), builder `/x/production/batches/new` (update: production — deliberate, so the wizard never dead-ends at submit), bulk `/x/production/batches/release` and `/dissolve`, board updates via `/x/priority/batching/update`. Batch list PDF at `/file/batch/:id.pdf` is permissionless by design (tenant safety from explicit companyId scoping). No plan gate and no companySettings flag exists — `process.batchable` is the only enablement switch.--Eligibility (`assertEligible`): same company, same process, process batchable, `jobOperationBatchId IS NULL`, status ∈ Todo|Ready|Waiting, zero production events; candidate RPC (`get_batchable_operations`) also requires a non-terminal job but NOT a released one. Floor visibility (`get_active_job_operations_by_location`): batched op visible iff batch is Active/Completing; enforced again in the MES operation loader, start route, and `getOpenJobs`.--Two-phase completion (`completeBatch`): phase 1 in one transaction — detach excluded members, auto-close a running timer at NOW(), slice events per member ∝ `operationQuantity` (largest-remainder whole seconds; `productionEvent.duration` is GENERATED so cost follows), insert per-member `productionQuantity` rows (Production when qty>0, Scrap when scrap>0), flip Active→Completing. Phase 2 idempotent — issue materials per member with qty>0, flip members Done (fires `sync_finish_job_operation` each), post GL per sliced event skipping already-posted, finalize Completing→Completed. MES batch timers skip `post-production-event` at End (`apps/mes/app/routes/x+/event.tsx:129-132`); cost posts once at completion. Scheduler: `batch-scheduler.ts` pre-pass places Active/Completing batches as one unit (Planned excluded), auto-assigns earliest-finish work center when blank (guarded `WHERE workCenterId IS NULL`), writes one reservation anchored on the min open member op; the reservation is spared by per-job regen and retired only by the status trigger (`20260907155426_cleanup-reservations-on-batch-exit.sql`) on entry to Planned/Completed; dissolve self-heals via FK SET NULL. Employee finiteness is deliberately absent in v1 — the batch reserves the work center only.--Materials and output lots (spec `.ai/specs/2026-09-16-batch-materials-and-output-lots.md`). Shared pick: `issue` case `trackedEntitiesToBatch` (permission `update: "production"`) resolves the accounting period BEFORE opening its transaction (`getCurrentAccountingPeriod` reads over HTTP but writes in-transaction, so N members in one transaction would each try to create a missing month), locks the members' `jobMaterial` rows `FOR UPDATE`, and splits each picked lot with `splitPickAcrossMembers` (`shared/batch-pick-split.ts`, re-exported by `@carbon/utils`) weighted by each member's REMAINING requirement, via `distributeRoundingResidual`. Per-member writes reuse `consumeTrackedEntitiesIntoOperation`, the sequence extracted from `trackedEntitiesToOperation`, so genealogy and ledger rows are identical to N manual picks. Each picked lot is split separately, so every member ends up linked to every lot it actually drew from (complete recall coverage). MES panel totals come from `getBatchMaterialTotals`; the pick modal's `batchRemainingQuantity` prop is what makes the default the batch total rather than the member's share. Untracked materials are display-only and still backflush in completion phase 2.--Output lots: completion phase 2 calls `issue` case `jobOperationBatchOutput` per member whose `jobMakeMethod.requiresBatchTracking` is true, between the material issue and the Done flip. It is the `Produce` activity plus the entity flip to Available, extracted from `jobOperationBatchComplete` WITHOUT that case's `productionQuantity` insert (phase 1 wrote it) or backflush (the issue step ran). Idempotent: an already-Available entity returns `{ created: false }`. A member that requires batch tracking but carries no `trackedEntityId` is refused rather than silently skipped.--Lot merge: `issue` case `mergeTrackedEntities` (permission `update: "inventory"`) → `buildBatchMergeRecords` (`shared/batch-merge.ts`). Parents keep their quantity and flip `Consumed`; the merged entity is a fresh id with the summed quantity, the EARLIEST parent `expirationDate`, attributes kept only where all parents agree, `"Merged From Entity IDs"` provenance, and the FIRST parent's `readableId` when the caller passes none (the edge fn orders parents by the caller's list, so "first" is deterministic). Genealogy is one `trackedActivity` `type: "Merge"`, inputs = each parent at its quantity, output = the merged entity; ledger gets `Batch Merge` rows sized by each parent's RECEIVED (on-ledger) balance — the merge is identity-only, so lots merged straight off a completed batch (nothing received yet) write no ledger rows at all, and each member job's later receipt posts against the merged lot (`complete_job_to_inventory` walks Merge activities to the terminal output; migration `20260916131445_merge-aware-job-receipt.sql`; enum added by `20260915201233_batch-merge-ledger-enum.sql`). **Both callers derive the parent ids server-side from batch membership** — MES `getPlannedMergeLots` in `batch.$batchId.complete.tsx` (only when the batch has `mergeOutput`; the members' Available output lots, merged right after completion succeeds under `outputLotNumber`), ERP `getBatchOutputLots` in the `mergeOutputs` intent — because these routes invoke `issue` with the service role, so the edge fn's `inventory` check validates the service role rather than the operator. No entity ids travel through a form.--Lot planning (migration `20260918094217_batch-output-lot-at-creation.sql`): `jobOperationBatch.mergeOutput` + `outputLotNumber` (CHECK: a merged batch has a non-blank lot). The `batch-operations` create payload carries either `mergeOutput` + `outputLotNumber` or `lotNumbers: [{ jobOperationId, lotNumber }]`; split mode writes each member's WIP `trackedEntity.readableId` in the create transaction. `get_batchable_operations` returns `itemId`, `requiresBatchTracking`, `trackedEntityId`, `lotNumber` so the builder can pre-fill. `add` on a merged batch re-runs `assertMergeable`. The MES completion form no longer posts batch numbers: the route passes `outputLotNumber` (merged) or null (split, the entity keeps its planned readableId). The completion route returns `data({ completed: true })` rather than a redirect because realtime revalidation during the action makes React Router drop a fetcher redirect; `JobOperation` navigates on it.--Compatibility: `producedItem` is the seventh entry in `BATCH_RULE_DIMENSIONS`, default `ignore`, resolved from the job's item readable id on both the client fold and the edge fn's `assertMaterialCompatible`. Batch completion completes member JOBS too: `sync_finish_job_operation`'s status gate admits Draft/Planned jobs when the Done operation carries a `jobOperationBatchId` (migration `20260916155634_batch-completion-completes-draft-jobs.sql`) — a Draft job's op can only reach Done through a released batch, so the run genuinely happened; the job's receipt posts before the route's merge, which is why a merged lot's on-hand equals its full quantity. Serial-tracked members are unchanged by all of the above — batch mode still disables tracked activity for them.--Key refusal strings (edge fn): "The process is not batchable"; "Operation {id} is already in a batch"; "Operation {id} has already started"; "Operations with recorded production events cannot be batched"; "These operations can't share a batch — the {dims} must match on this process"; "Cannot add operations to a batch with status {status}"; "The batch has already started — complete it instead"; "Cannot remove operations: production has been recorded. Complete the batch instead."; "Cannot change the work center: production has been recorded."; "Only a planned batch can be released"; "Cannot release an empty batch"; "Only an active batch can be unreleased"; "Cannot dissolve: production has been recorded. Complete the batch instead — member jobs then proceed independently."; "Every operation is excluded — dissolve the batch instead of completing it"; "Operation {id} was included when completion started — retry with the recorded values; corrections happen after completion."; "Quantities were already recorded for this batch ({detail}). Retry with the recorded values; corrections happen after completion."; "One or more operations were already claimed by another batch — refresh and try again"; "Pick of {n} exceeds the batch's remaining requirement of {m}"; "No member operation still requires this item"; "Batch is already completed"; "Operation {id} produces a batch-tracked item — its output lot is required"; "Operation {id} produces a batch-tracked item — its batch number is required"; "Only lots of the same item can be merged"; "At least two lots are required to merge"; "Lot {readableId} is not available to merge"; "Lot {readableId} has no quantity to merge"; "No mergeable output lots" (ERP mergeOutputs, when server-side derivation finds nothing); "A combined output needs its lot number"; "Lot number {n} is used twice — give each job its own, or combine them into one lot"; "Only operations that produce a batch-tracked item can combine into one lot"; "Lots of different items can't combine into one lot" (create/add lot planning). Batch release (ERP `releaseBatchMemberJobs`): "Fix these jobs before releasing: {jobId}: no operations on {assemblies}; {jobId}: manufacturing is blocked; {jobId}: choose a supplier for {operation} on the job; {jobId}: {operation} has no supplier" (an outside operation's supplier is its own supplier process, else its process's only supplier — a process with several needs the choice made on the job's own Release); "Outside operations need a purchase order choice — open the batch to release it" (bulk release only, when a supplier has Draft POs to choose from); "Failed to create purchase orders for job {id}". Job release route: "Assign an operation to each assembly before releasing: {assemblies}". MES gates: "This operation is part of a batch that has not been released to the floor"; "This operation's job has not been released to the floor". Builder add-mode: "Only a planned or active batch can take more operations". Scheduling conflict: "{Batch} has no estimated time — add setup, labor, or machine time to its operations to schedule it".--### The batch card is missing from the operations board / MES-Planned batches are invisible outside the Batches list and the builder: the board and the floor only surface Active ("Released") and Completing batches. Release it.--### Can't dissolve, unrelease, remove a member, or change the work center-Production has been recorded against the batch — membership and placement are frozen; complete the batch instead. A "Completing" batch can only be retried from the shop floor (the schedule card links "Completion in progress — retry in Shop Floor").--### An operator sees a job that was never released-Its operation is in a released batch — the batch's release outranks the job's for that operation only. Expected; the job's other operations stay hidden.--### Retry Completion rejects my corrected quantities-By design: a resume must match what phase 1 recorded (mismatches are quoted back). Complete with the recorded values; correct afterwards on the job.--### The builder hides some operations on the process-The hidden-ops note explains: "{n} already started", "{n} already in a batch". Started or event-carrying operations can never be batched.--### The pick modal says a batch number is not available-The lot picker lists stock at the member job's location that is Available with a positive on-hand and a storage unit on its ledger. A lot in another location, with no bin, or already allocated to a picking list will not appear. The Scan field matches the tracked entity id a label encodes, not the human-readable lot number.--### A shared pick left every member short-Expected when less than the batch's outstanding requirement was picked: `splitPickAcrossMembers` divides whatever was picked pro-rata across every member with remaining need (largest-remainder at internal scale, so shares sum exactly). Pick the batch total, which is the modal default in batch mode.--### Completed the batch but the lots did not merge-Merging happens only when the batch was created with "Combine output into one lot". Otherwise separate lots are by design; serial-tracked members never merge. Lots kept separate can still be merged from the completed batch's drawer ("Merge output lots") until they are consumed.--### Suggested batches look wrong / too small-Suggestions group by material signature split into 7-day due windows, scored by setup saved (0.4), urgency (0.35), capacity fit (0.15), specificity (0.1); top 6 shown. Undated members ride the earliest dated cluster. They're suggestions — manual selection is never constrained by them.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/calibration.md b/apps/erp/app/modules/agent/kb/docs/reference/calibration.mddeleted file mode 100644index a4055c8236..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/calibration.md+++ /dev/null@@ -1,94 +0,0 @@-# Gauges and calibration--> Track measurement instruments, schedule their calibrations, and flag any gauge that falls out of calibration.--A gauge is a measurement instrument you keep under control: a caliper, a micrometer, a pin gauge, a CMM. Carbon tracks each one as a record, holds it to a recurring calibration schedule, and marks it out of calibration the moment it's overdue. Every calibration you perform is logged as its own dated record, so the gauge carries its full history.--Gauges live in the quality module alongside `docs/reference/quality`. They're managed on their own, though: a gauge is not attached to an inspection you record. Carbon keeps the instrument controlled so the person taking a measurement knows the tool is trustworthy.--## The gauge record--Add a gauge under Quality → Gauges. Each gauge belongs to a **gauge type** (Caliper, Micrometer, Pin Gauge, Surface Plate, CMM, and so on) and carries a calibration schedule. A fresh company ships with about twenty pre-seeded gauge types; add your own with just a name.-- - **gaugeId**: A human-readable identifier (like `G-001`). Leave it blank and Carbon assigns the next one from a sequence.- - **gaugeTypeId**: The gauge type — a caliper, micrometer, pin gauge, and so on. Required.- - **gaugeRole**: Either `Master` or `Standard`. A Master gauge is the reference you calibrate other gauges against; a `Standard` gauge is one you use for routine checks. Required.- - **calibrationIntervalInMonths**: How many months between calibrations. This drives the next-due date. Minimum 1; defaults to 6.- - **description**: A free-text description of the instrument.- - **modelNumber**: The manufacturer's model number.- - **serialNumber**: The instrument's serial number.- - **supplierId**: The supplier the gauge was acquired from.- - **dateAcquired**: When you acquired the gauge.- - **lastCalibrationDate**: When the gauge was last calibrated. Carbon sets this from the newest calibration record.- - **nextCalibrationDate**: When the gauge is next due. Carbon recomputes this as *last calibration date + interval* each time you log a calibration.- - **locationId**: Which location the gauge lives at.- - **storageUnitId**: Which storage unit holds it.--A gauge also has a **status** of `Active` or `Inactive`. Deactivating a gauge (rather than deleting it) is the right move when it has calibration history: an inactive gauge is treated as out of calibration, and its records stay on file. Delete only a gauge that was never calibrated.--## The calibration schedule--You don't set a next-due date by hand. You set the **interval** in months on the gauge, and Carbon does the arithmetic every time you record a calibration: it stamps the calibration date as the last calibration date and sets the next-due date to that plus the interval. A caliper calibrated on the first of January against a six-month interval comes due on the first of July.--The interval and the last calibration date together are the whole schedule. Change the interval and the next calibration you log recomputes the due date from it.--## Recording a calibration--Each time a gauge is calibrated, log it as a **calibration record** under Quality → Calibrations. The record is the evidence: who signed off, against what standard, under what conditions, and the actual readings taken.-- - **gaugeId**: The gauge being calibrated. Required.- - **dateCalibrated**: The date of the calibration. This becomes the gauge's last calibration date and the anchor for the next-due date. Required.- - **requiresAction**: Recorded that follow-up is needed after this calibration.- - **requiresAdjustment**: Recorded that the gauge was adjusted during calibration.- - **requiresRepair**: Recorded that the gauge needs repair.- - **calibrationAttempts**: The reading pairs taken during calibration — each is a reference value and the actual value measured against it.- - **measurementStandard**: The traceable reference the readings were compared against (a NIST standard, a master gauge serial, and so on).- - **temperature**: The ambient temperature during calibration, in degrees Celsius.- - **humidity**: The ambient humidity during calibration, as a fraction from 0 to 1.- - **supplierId**: The supplier that performed the calibration, if it was done externally.- - **approvedBy**: The user who approved the calibration.- - **notes**: Free-form notes on the calibration.--The three "requires" checkboxes decide whether the calibration passed. Tick any one of them and the calibration is a **Fail**; leave all three clear and it's a **Pass**. That result is what drives the gauge's calibration status, so recording a calibration is also how a gauge changes state.--Logging a calibration never overwrites the last one. Each record is a dated row, and the gauge shows them newest-first. What the gauge summarizes from them is the *latest* calibration date and the resulting status.--## Calibration status and going overdue--A gauge carries a calibration status with three values, and Carbon sets it for you.-- - **Pending**: The starting state. The gauge has a schedule but no passing calibration on record yet, so it's neither confirmed in nor out.- - **In-Calibration**: The most recent calibration passed and the next-due date is still in the future. The gauge is trustworthy.- - **Out-of-Calibration**: The most recent calibration failed, the gauge is inactive, or the next-due date has passed. The gauge needs recalibrating.--This isn't a lifecycle you step through by hand — it's derived. Record a passing calibration and the gauge moves to `In-Calibration`; record a failing one and it moves to `Out-of-Calibration`. On top of that, Carbon computes overdue on the fly: whenever a gauge is `Inactive` or its next-due date is before today, it reads as `Out-of-Calibration` regardless of the stored value. A gauge that passed calibration in January but was due in July shows overdue the moment July passes, without anyone touching it.--You never mark a gauge overdue. The out-of-calibration reading for a past-due or inactive gauge is derived at read time from the next-due date, so it flips on its own the day the schedule lapses. Bringing it back is a matter of logging a fresh passing calibration.--Carbon can also nudge you before things lapse. A scheduled job checks for gauges going out of calibration and notifies the people you've listed for calibration-expiry alerts in company settings, so an overdue gauge doesn't sit unnoticed.--## Related-- - Quality Issues, corrective-action workflows, and inbound inspection.--## Troubleshooting--Exact errors from the gauge and calibration validators, plus how pass/fail and overdue are derived.--### "Calibration interval is required"-The calibration interval must be a positive whole number of months (minimum 1). Zero, blank, or a negative value is rejected — enter how many months should pass between calibrations.--### "Type is required" / "Gauge is required" / "Date is required"-Form-validation. A gauge needs a gauge type; a calibration record needs the gauge it applies to and the date it was calibrated.--### "Failed to insert gauge" / "Failed to update gauge" / "Failed to insert gauge calibration record"-The underlying write failed — a database constraint, a sequence issue, or a permission denial. Reload and retry; confirm your role has the needed quality permission.--### A calibration recorded Pass but the gauge still reads Out-of-Calibration-Pass/fail is derived from three flags on the record — requires action, requires adjustment, requires repair. If **all three** are false the record is a **Pass** and the gauge moves to `In-Calibration`; if **any** is set it's a **Fail** and the gauge moves to `Out-of-Calibration`. Overdue is a separate, computed reading: a gauge whose next-due date is in the past (or that is Inactive) reads `Out-of-Calibration` regardless of the last stored result. Log a fresh passing calibration with a future next-due date to clear it.--### An overdue gauge is not blocking inspections-By design. Carbon computes and displays `Out-of-Calibration` and can notify the people listed for calibration-expiry alerts, but there is **no enforced block** — samples can still be recorded and lots accepted or rejected with an overdue gauge. The status is advisory; treat it as a signal, not a gate.--### Deactivate vs. delete a gauge-**Deactivate** sets the gauge to `Inactive` and preserves the record and its calibration history (and makes it read as out-of-calibration). **Delete** removes the gauge record entirely. Deactivate when you want the history; both actions require `quality` **delete** permission.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/change-types.md b/apps/erp/app/modules/agent/kb/docs/reference/change-orders/change-types.mddeleted file mode 100644index 0b5f26339e..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/change-types.md+++ /dev/null@@ -1,87 +0,0 @@-# Change types--> Version, Revision, Replacement Part, and New Part — the per-affected-item choice that decides what you can edit and what release creates.--Change type is set per affected item (default **Version**) and is the most load-bearing field on the whole-change notice. It decides two things at once: what you're allowed to edit on the draft, and what release-creates from it. Two axes tell the four types apart: is there a **predecessor** item, and does the result keep-the **same part number**.--## The four types--| Change type | You edit | Release creates | Auto-supersession |-| --- | --- | --- | --- |-| Version | BoM and BoP on the **same item** | A new **method version**; the prior Active version is archived | None |-| Revision | Attributes, documents, BoM and BoP | A new **item revision** (same Part ID, next revision) | Old revision → new revision |-| Replacement Part | Attributes, documents, BoM and BoP | A **new part number** derived from the affected part | Affected part → new part |-| New Part | Attributes, documents, BoM and BoP | A **net-new part** minted under the change notice | None — it has no predecessor |--Don't conflate them. A **Version** produces a new method version on the *same* item row, so existing stock and-item history are untouched and nothing is superseded. A **Revision** and a **Replacement Part** each mint a-*new* item derived from the affected part and leave the old one intact, so each auto-writes a-supersession from old to new. A **New Part** has no predecessor at all — it introduces a brand-new-part, so it supersedes nothing. See `docs/reference/change-orders/supersession`.--## When to use which--- **Version** — the design is the same part, made a little differently. A tweaked operation, a swapped- component, a corrected quantity. There's no drawing-revision story and no reason to phase over stock.-- **Revision** — the part is formally revising (new drawing revision, new dimension) and you want old and new- to coexist while stock phases over. This is the everyday engineering-change case. You can name the revision- (for example `A`) when you add the item, or leave it blank to take the next revision automatically.-- **Replacement Part** — the change warrants a new part *number*, derived from the old one, with the old part- superseded by the new. The 1:1 replacement.-- **New Part** — you're introducing a genuinely new part under change control, with no old part behind it.- Nothing is superseded. This is also how a consolidation is modeled: when several components collapse into- one, the consolidated "1" is added as a **New Part** and the old lines are dropped from the parent- assembly's draft BoM.--Because a New Part is net-new by construction, you can't switch it to another change type after you add it,-and it shows no cutover card. The other three types can be switched, but switching discards the draft and mints-a fresh one, so any edits are reset.--## What each type gates--Change type also controls the editable surface on the affected item:--- **Version** exposes the **Bill of Material** and **Bill of Process** editors on the draft method.-- **Revision**, **Replacement Part**, and **New Part** add **Part Properties** (attributes) and documents on- top of BoM and BoP, because each is producing a genuinely new item, not just a new recipe.--The **Add Affected Item** picker accepts **Parts only** — the existing-item selector is filtered to Parts, and-the New Part mini-form always mints a Part. There's no Tool path in the change-notice UI.--A purchased (**Buy**) item has no bill of materials or process, so a **Version** is meaningless for it. The-picker hides **Version** for Buy items and restricts a Version's item selector to **Make** parts; adding a Buy-item defaults its change type to **Revision** instead.--## Add a net-new part--Choosing **New Part** in the change-type selector swaps the affected-item modal to a short mint-a-part form:-- - **Part Number**: The new part's readable id. Type <code>...</code> to pull the next id in the Part sequence.- - **Name**: What the part is.- - **Replenishment System**: Buy, Make, or Buy and Make. Defaults to **Make**.- - **Tracking Type**: Inventory, Non-Inventory, Serial, or Batch. Defaults to **Inventory**.--Submitting mints an inactive Part under the change notice and adds it as a **New Part** affected item. It stays-hidden until release reveals it.--## Supplier parts on a purchased line--A **Revision**, **Replacement Part**, or **New Part** whose draft item is purchased (**Buy** or **Buy and-Make**) gets a **Supplier Parts** grid on its line, right alongside the properties editor. You use it to set up-how the new part or revision is bought: **Supplier**, **Supplier ID** (the supplier's own part number), **Unit-Price**, **Unit of Measure**, **Minimum Order Quantity**, and **Conversion Factor**. Add, edit, and delete rows-here the same way you would on a live part.--A draft item starts with **no** supplier parts — the source item's suppliers aren't copied onto the draft. If a-purchased Revision, Replacement Part, or New Part releases with an empty grid, the new part is stocked but has-no way to buy it, so a purchase order can't reference it. Fill the grid on the line first. The suppliers you add-show up in the change notice's `docs/reference/change-orders/lifecycle`-as additions.--## Related-- - Lifecycle & release What release does with each change type.- - Methods & sourcing Method versions and the Draft/Active/Archived states a change notice drives.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/creating.md b/apps/erp/app/modules/agent/kb/docs/reference/change-orders/creating.mddeleted file mode 100644index ac11059ac3..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/creating.md+++ /dev/null@@ -1,67 +0,0 @@-# Create a change notice--> The entry points that open a change notice, the fields on the create form, and how change notices surface back on a part or tool page.--There's no single "new change notice" button tucked in one menu. Carbon lets you start a change notice from-wherever you notice the change is needed — a standalone form, the part you're looking at, its method version-menu, or a quality issue. Every path lands on the same change-notice detail page.--## Entry points-- - **Items → Change Notices → New**: The standalone form. Start here when the change spans several parts or you haven't opened a specific one yet.- - **Part or Tool header → Create Change Notice**: Opens the create form as a modal with the current part or tool pre-attached as the first affected item.- - **Parts table → row menu → Create Change Notice**: A one-click start: mints the change notice, attaches that part, and drops you on its detail page.- - **Method version menu → New Change Notice**: On a part's method, the same version menu that holds **New Version** offers **New Change Notice** — the natural place to reach for a change while you're looking at the recipe.- - **Quality issue → Create Change Notice**: From a non-conformance, this opens a change notice with the issue linked, so the engineering fix is traceable back to the problem that prompted it.--The part-header, tool-header, parts-table, and method-version entry points all pre-select that part or tool as-the change notice's first affected item, so you land ready to pick a change type and edit. The standalone form-starts with no affected items — you add them on the detail page.--## The create form--The header form is short — the substance is in the affected items you edit later.-- - **Name**: What this change is, in a line.- - **Category**: The change-notice type, drawn from your configured categories. See `docs/reference/change-orders/setup`.- - **Reason for Change**: Why the change is needed. Rich text.- - **Description of Change**: What's changing, in narrative. Rich text.- - **Owner**: The employee responsible.- - **Priority**: Low, Medium, High, or Critical.- - **Open Date**: Defaults to today.- - **Due Date**: Optional target.--The form has no affected-items field — you add those on the detail page after creating. When you start from a-part, tool, or quality issue, that source is carried silently onto the new change notice (the part or tool as a-pre-attached affected item, the non-conformance as the linked issue). Submitting creates the change notice,-attaches any pre-selected item, and redirects to its detail page at **"Draft"**.--Change notices are gated by the **Parts** permission: creating one needs create access on Parts, and-advancing or releasing needs update access. If someone can manage parts, they can manage change notices.--## Where change notices surface on a part--Change notices don't just live in their own list — they show up on the parts and tools they touch, so nobody-edits a design that's mid-change without seeing it.--- **Open change notice alert.** When a part is on one or more change notices that haven't reached **"Done"**,- its detail page shows a warning: *"This part is on 1 open change notice"* (or *"…# open change notices"*),- with each change notice id linked. This is the guardrail against two people revising the same part blind.- It's informational, not a lock — `docs/reference/change-orders/lifecycle` are allowed.-- **Change Notices history.** A card lists every change notice that has touched the part, newest first, with- released ones de-emphasized — the full "why did this part change?" trail.-- **Provenance back-link.** A revision or part created by a released change notice carries a *"Created by- CN-…"* reference to the change notice that made it.--Each change notice gets a per-company readable id like **CN-000001**. That's the id you'll see in the alert,-the history card, and the provenance link.--The feature used to be called a change order and numbered **ECO-000001**. Only *new* records pick up the-**CN-** prefix — existing ids are left exactly as they were, because they're audit trail and are quoted in-drawings, emails, and customer correspondence. So a mature company will see both **ECO-000042** and-**CN-000043** in the same list. They're the same kind of record.--## Related-- - Change types What you set on each affected item once it's attached.- - Revise a part The same flow told as a story.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/index.md b/apps/erp/app/modules/agent/kb/docs/reference/change-orders/index.mddeleted file mode 100644index 948f9ba6e7..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/index.md+++ /dev/null@@ -1,56 +0,0 @@-# Change notices--> How Carbon drafts an engineering change against real methods, reviews it as a diff, and releases it so downstream planning supersedes the versions it replaces.--A **change notice** groups the parts whose designs are changing, revises each one on a hidden draft, and-releases them together. It answers "what changed, who owns it, and what does the new version supersede?"-without touching a live method until you release.--The model is deliberately top-down. You pick the affected items first, then edit each item's real-method (its bill of materials and bill of process) inside the change notice. Nothing-about the part moves for planning, jobs, or costing until release. Change notices live under **Items → Change-Notices**, and every action is gated by the `parts` permission.--## The affected item is the unit of work--A change notice is a header plus a list of **affected items**. The picker accepts **Parts only** — materials,-consumables, services, and tools have no path in the change-notice UI, so they're excluded. Each affected item-carries its own change type, its own edits, and its own cutover-configuration.--Adding an affected item snapshots the item's live **Active** method into a new **Draft** method stamped with-the change notice's id. That draft is hidden from every version switcher, copy-target picker, and MRP, job, or-cost read until release. You edit it with the same **Bill of Material**, **Bill of Process**, and **Part-Properties** editors you use anywhere else.--Carbon does not mirror your edits into shadow tables. An affected item's edits live on an actual make method-whose change-notice id is set, which is why the diff is exact and release is just an activation. The draft is-invisible everywhere else precisely because that id is set — clearing it at release is what makes the draft-live.--## Find one in the list--**Items → Change Notices** lists every change notice. Because the affected item is the unit of work, each row-**expands** to reveal the parts it changes — one line per affected item, with its change type badge and, for a-Revision or Replacement Part, the old item number arrowed to the new one (**P000123 → P000124**). A New Part-shows a single id — it's net-new, with no predecessor to arrow from. You see what a change notice touches-without opening it.--To find the change notices that touch a specific part, use the **Item** filter. Pick one or more items and the-list narrows to change notices that affect them. The **Items** column that backs the filter is hidden by-default; turn it on from the column toggle if you want it in view or in a CSV export.--## How the pieces fit-- - Create a change notice Every entry point — the standalone form, a part or tool header, the parts table, the method version- menu, and a quality issue — plus how change notices surface back on a part.- - Change types Version, Revision, Replacement Part, and New Part: what each lets you edit and what release creates.- - Lifecycle & release The five stages, the Implementation lock and Reopen, the diff review, the impact panel, and what release- actually does.- - Supersession & cutover How a released revision phases over, and how MRP and Get Method honor it downstream.- - Categories & actions The change-notice category lookup, the reusable action-task templates, and linking a task to Linear.--## Related-- - Revise a part The narrative tour: draft a change, review the diff, release, and let supersession carry it downstream.- - Methods & sourcing Method versions, Draft/Active/Archived, and Get Method — the machinery a change notice drives.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/lifecycle.md b/apps/erp/app/modules/agent/kb/docs/reference/change-orders/lifecycle.mddeleted file mode 100644index 0ce792efad..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/lifecycle.md+++ /dev/null@@ -1,143 +0,0 @@-# Lifecycle & release--> The five change-notice stages, the Implementation lock and Reopen, the impact panel, the diff review, and what release does at Done.--A change notice advances forward one stage at a time. There's no approval toggle — the stages *are* the-workflow, and the change notice is its own release gate. There are two ways back: **Reopen** at-**"Implementation"** sends it one stage back to **"Engineering Complete"**, and **"Cancel"** — available from-every open stage — closes it, after which **Reopen** returns it to **"Draft"**.--## The stages-- - **Draft**: The change notice is being written. Pick affected items, set change types, and edit each draft method. No notification is sent.- - **Start**: Work is underway. Advancing to Start notifies the assignee and every action-task assignee.- - **Engineering Complete**: The design edits are finished and ready for implementation review. Silent, no notification.- - **Implementation**: The release stage. The engineering content freezes here, and the **"Release"** action becomes available; it reviews every affected item's diff and applies the change. Advancing here notifies.- - **Done**: Released and locked. The change notice becomes a read-only historical record; notifies on entry.- - **Cancelled**: The off-ramp. The header's **"Cancel"** action closes the change notice from any open stage without releasing anything. Locked like **"Done"**, but reversible: **"Reopen"** returns it to **"Draft"**.--The **"Start"**, **"Implementation"**, and **"Done"** transitions each notify the people on the change-notice: the assignee, plus everyone assigned an action task. Whoever made the transition isn't notified of-their own action, and a change notice with no assignee and no assigned tasks advances silently. **"Engineering-Complete"** is silent for everyone. Once a change notice reaches **"Done"** it is locked — every editor is read-only.-**"Cancelled"** is locked too, but not lost: cancelling keeps every affected item's draft, and **"Reopen"**-takes the change notice back to **"Draft"** to pick up where it left off. Only **"Done"** is permanent.-Deleting a change notice is the destructive path — that discards each affected item's draft and any new-items the change notice minted, so nothing is orphaned.--## Implementation freezes the engineering content--Advancing to **"Implementation"** means "we are now rolling this out." From that moment the *engineering*-content is read-only, so what's being implemented can't shift underneath the people implementing it. The-*workflow* content stays editable, because coordinating the rollout is exactly the work that happens at this-stage.--| Locked at Implementation (engineering) | Still editable at Implementation (workflow) |-| --- | --- |-| Adding or removing affected items | Action tasks — add, complete, skip, reorder, delete |-| Changing an affected item's change type | Assignee |-| The staged **Bill of Material** and **Bill of Process** drafts | Due date |-| The cutover config (supersession mode, discontinuation date, successor effectivity date) | Priority |-| **Reason for Change** and **Description of Change** | Category |--The lock is enforced on the server, not just greyed out in the UI. If a stale tab tries to write a frozen-field you get *"This change notice is being implemented, so its changes are locked. Reopen it to make-changes."*--Freezing only blocks writes. The **Changes** rollup, each affected item's diff, and the impact panel all stay-visible at Implementation — you can read the whole change, you just can't edit it.--## Reopen--If review at Implementation turns up something that has to change, use **Reopen** in the **⋮** menu next to-the change notice id. It sends the notice back one stage to **"Engineering Complete"**, which unfreezes the-affected items, the drafts, the cutover config, and the narrative fields. Nothing you've already done is-discarded — the drafts, diffs, and action tasks are exactly as you left them. Edit, then advance to-Implementation again. (The same **Reopen** action appears on a **"Cancelled"** notice, where it returns it to-**"Draft"** instead.)--Reopen exists only at **"Implementation"** (before release) and at **"Cancelled"** (nothing was released).-Releasing to **"Done"** has already activated the new method versions, revealed the new items, and written the-supersessions that downstream MRP and Get Method are now acting on. Un-doing that would mean retracting live-planning decisions, so Carbon doesn't offer it. To change the same parts again, raise a new change notice —-the released methods and items are its starting point.--## The impact panel--Alongside the affected items, a change notice shows an **Impact** panel: a where-used tree for each affected-item across jobs, job materials, method materials, purchase orders, receipts, quotes, issues, maintenance,-and assembly instructions.--The panel is there so you can see what a change touches before you commit, not to gate you. Nothing in it-stops a release; the copy says as much: *"Where the affected items are used across the system. Informational —-nothing here blocks releasing."*--## Review the changes, then release--You don't have to wait for release to see what a change notice does. The overview page carries a **Changes**-card, between the description and the action tasks, that rolls up **every** affected item's diff as you author-it — each item labeled with its change type, its diff rendered read-only. It's the same view the release dialog-shows, available the whole time so you can check your work before you commit. An item with nothing edited yet-reads *"No changes yet."*--Release itself lives on the change notice at **"Implementation"**. The **"Release change notice"** dialog lays out-that same per-item diff one more time before you commit — *"Review each item's changes, then confirm —-releasing can't be undone."*--Each item's diff compares its edited draft against the method it was snapshotted from, across four sections:--- **Bill of Materials** — added, removed, and modified BoM lines, field by field.-- **Bill of Process** — added, removed, and modified operations and their steps, parameters, and tools.-- **Properties** — changed item fields (name, description, unit of measure, tracking type, replenishment- system, and the rest), one row per changed column.-- **Supplier Parts** — for a purchased Revision, Replacement Part, or New Part, the `docs/reference/change-orders/change-types`, each listed as an- addition with its part number, unit price, min order qty, order multiple, conversion factor, and purchasing- unit. A draft starts with none, so every supplier you add shows here.--There's no shadow copy of your edits to drift out of sync. You edited an actual draft method, so the diff is-simply that draft compared against the live one it came from. What you review is exactly what releases.--## What release does--On confirm, Carbon walks the affected items and, per `docs/reference/change-orders/change-types`:--1. **Activates the draft method** — it becomes the new **Active** version and the prior Active version is- **Archived** (kept as history, never deleted).-2. **Reveals the new item** — for a Revision, Replacement Part, or New Part, the newly created item is switched- live and stamped with the change notice id. A Version has no new item.-3. **Writes the supersession** — for a Revision or Replacement Part only, from the old item to the new one,- using that affected item's cutover settings. A New Part has no predecessor, so it supersedes nothing. See- `docs/reference/change-orders/supersession`.--New Part items are released first, so a parent assembly whose draft BoM references a consolidated new part-finds it already active. When every affected item is processed, the change notice flips to **"Done"**.--Each affected item is marked done the moment its draft's change-notice id is cleared, so a re-run skips items-already released and resumes at the first unreleased one. The final flip to **"Done"** is a compare-and-swap-on the **"Implementation"** status, so two people releasing at once can't double-apply.--## Parallel change notices on the same part--Two change notices can revise the same part at once. Each drafts its own method version, and Carbon steps-around version collisions so they don't clobber each other. Whichever releases second activates on top of the-first, and the earlier version is archived as history rather than overwritten — so no work is lost. There's no-merge-conflict step to resolve.--## Related-- - Supersession & cutover How a released revision phases over downstream.- - Revise a part The release flow told as a story.--## Troubleshooting--### "This change notice is being implemented, so its changes are locked. Reopen it to make changes."-The change notice is at **"Implementation"**, where the engineering content is frozen — affected items, the BoM/BoP drafts, the cutover config, and the Reason for Change / Description fields. Use **Reopen** in the **⋮** menu next to the change notice id to send it back to **"Engineering Complete"**, make the edit, then advance to Implementation again. Nothing is lost in the round trip. Action tasks, assignee, due date, and priority are *not* frozen — if one of those is refusing to save, the cause is something else (permissions, or the notice is closed).--### "This change notice is closed, so its changes are read-only."-The change notice is at **"Done"** or **"Cancelled"**. At **"Done"** it is a locked historical record and **Reopen is not available** — releasing already activated the new methods and wrote the supersessions that planning is acting on. To make further changes to the same parts, raise a new change notice; the released methods and items are its starting point. At **"Cancelled"** it is also locked, but the **"Reopen"** action returns it to **"Draft"** for further editing.--### Release button not available-The **"Release"** action only appears at the **"Implementation"** stage. If the user can't find it, check the change notice's current stage — it must be advanced (one stage at a time, no skipping) to Implementation first.--### Can't find Reopen-**Reopen** sits in the **⋮** menu beside the change notice id. It appears at **"Implementation"** (back to **"Engineering Complete"**) and at **"Cancelled"** (back to **"Draft"**). It is not offered at Draft, Start, or Engineering Complete — nothing is frozen at those stages, so there's nothing to unlock — nor at **"Done"**, which is terminal. Editing also requires the `parts` update permission.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/setup.md b/apps/erp/app/modules/agent/kb/docs/reference/change-orders/setup.mddeleted file mode 100644index 44d6eb9d79..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/setup.md+++ /dev/null@@ -1,72 +0,0 @@-# Categories & actions--> The company-scoped lookups beside change notices: the category list and reusable action-task templates, plus linking a task to Linear.--Two configuration lists live next to change notices in the Items nav. Both are company-scoped and edited by-employees with the `parts` permission.--## Change notice categories--**Items → Change Notice Types** holds the values for a change notice's **"Category"** field — the same idea as-issue types in Quality. Carbon seeds eleven to start: *Design Improvement*, *Cost Reduction*, *Quality / Reliability Improvement*, *Supplier / Sourcing Change*, *Material or Component Change*, *Obsolescence / End-of-Life*, *Regulatory / Compliance*, *Safety*, *Manufacturing / Producibility*, *Customer Request*, and *Documentation Error / Correction*. Add,-rename, or remove them to match how your shop classifies changes.--Category is descriptive: it groups and filters change notices, but it doesn't change how release behaves. That-job belongs to the `docs/reference/change-orders/change-types` on each affected item.--## Change notice actions--**Items → Change Notice Actions** holds reusable **action-task templates** — the checklist items a change-notice commonly needs. Carbon seeds seven:--- Engineering Review-- Update Drawings / CAD-- Update BOM / Routing-- Cost Impact Review-- Quality Review-- Inventory Disposition (rework / scrap / use-as-is)-- Notify Affected Parties--A new change notice can seed its task list from the active templates. On the change notice, each task tracks a-status — **Pending**, **In Progress**, **Completed**, or **Skipped** — plus an assignee, due date, and notes.--Tasks are a coordination checklist, not an approval workflow. A task's status never blocks a stage from-advancing or a change notice from releasing — the `docs/reference/change-orders/lifecycle` are the-only gate.--Because tasks are the *workflow* side of a change notice rather than its engineering content, they stay-editable at the **"Implementation"** stage, when the drafts and affected items are already frozen. See-`docs/reference/change-orders/lifecycle`.--## Link a task to Linear--If engineering tracks its work in Linear, an action task can point at the ticket instead of duplicating it.-This works exactly the way it does on a `docs/reference/quality` action tasks — same dialog,-same behavior.--The affordance is a Linear icon on the task row, and it only appears when your company has the `docs/integrations/project-management` connected. Once a task is linked, the icon is replaced by-the ticket's identifier, so you can see at a glance which tasks are being worked outside Carbon.--Opening the dialog gives you two tabs:-- - **Link Existing**: Search your Linear issues and attach one to this task.- - **Create New**: Create a fresh ticket from the task and attach it in one step.--A linked task shows the ticket's title, identifier, state, and assignee, with a link out to the ticket itself-and an **Unlink** button to break the connection. A task holds at most one ticket per provider — the tabs are-disabled while a link exists, so unlink first if you need to point somewhere else.--Edits to the task's **notes** in Carbon are pushed to the linked ticket's description. In the other direction,-when the ticket changes in Linear, a webhook syncs its **status**, **assignee**, **due date**, and-**description** back onto the Carbon task — so completing the ticket in Linear marks the action task-completed here. Whoever is doing the work never has to update two systems.--The same task row also offers a Jira icon, with the identical Link Existing / Create New dialog and two-way-sync. Jira only shows up when the integration is connected *and* the server has Jira OAuth credentials-configured, so on most installs Linear is the one you'll see.--## Related-- - Create a change notice Where the category is set and tasks are seeded.- - Lifecycle & release The stages that actually gate a change notice.- - Project management integrations Connecting Linear and Jira in the first place.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/supersession.md b/apps/erp/app/modules/agent/kb/docs/reference/change-orders/supersession.mddeleted file mode 100644index 4411662cbf..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/change-orders/supersession.md+++ /dev/null@@ -1,58 +0,0 @@-# Supersession & cutover--> How a released Revision or Replacement Part phases over, the cutover fields you tune per item, and how MRP and Get Method honor supersession downstream.--For a **Revision** or **Replacement Part** affected item, release auto-writes a supersession from-the old item to the new one. You don't create it by hand — you only tune *how* the phase-over behaves, per-affected item, through the cutover fields.--A **Version** supersedes nothing, because it edits the same item. A **New Part** supersedes nothing either,-because it's net-new — there's no predecessor to phase out. Only the two change types that derive a new item-*from* an existing one write a supersession.--The rule is the predecessor: a Revision phases the old revision over to the new one, and a Replacement Part-phases the affected part over to the new number. Version and New Part have no old item to redirect, so release-skips supersession for them entirely.--## Cutover fields--Set these on a Revision or Replacement Part affected item before you release.-- - **Supersession Mode**: How planning treats the old item. See the modes below. Defaults to **Consume First**.- - **Discontinuation Date**: When the old item stops being usable. Empty means no planned discontinuation.- - **Successor Effectivity Date**: When the successor becomes effective for redirect. Empty means effective immediately at release.--## Supersession modes--The supersession mode controls what downstream planning does with the old-item:--| Mode | Behavior |-| --- | --- |-| Consume First | Exhaust on-hand of the old item, then redirect new demand to the successor. |-| Prefer New | Redirect new demand to the successor immediately. |-| Stock Only | Keep only a minimum service reserve of the old item; no production use. |-| No Stock | Drop the old item from planning entirely. |--Those two modes tell planning to route the old item's demand — times its conversion factor — to the-successor. Stock Only and No Stock govern the old item's own stocking rather than redirecting to a successor.--## How downstream honors it--Once a supersession is effective (on or after its successor-effectivity date), two systems act on it:--- **MRP** redirects planned demand for the old item to the successor, applying the conversion factor and- collapsing multi-hop chains (if A was superseded by B and B by C, demand routes straight to C).-- **Get Method** substitutes the successor onto Buy and Pull bill-of-materials lines when a new job is- created, recording the source item so the substitution is traceable.--Existing stock stays on the old item, and jobs already created keep the exact materials and method version-they were built against. Open documents follow the same rule: a purchase order, sales order, or quote line-that names the old item keeps it; nothing warns or rewrites it at release. Supersession only steers *forward*-planning — a job created after the successor's effectivity date picks up the new item; one created before it-does not shift. That's what makes releasing safe on a busy floor.--## Related-- - Reordering & planning How the replenishment system and reordering policy read supersession.- - Change types Which change types write a supersession (Revision and Replacement Part), and which don't.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/company-settings.md b/apps/erp/app/modules/agent/kb/docs/reference/company-settings.mddeleted file mode 100644index f7f98c1f38..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/company-settings.md+++ /dev/null@@ -1,90 +0,0 @@-# Company settings--> The company record, its feature toggles, base currency, logos, and tags — the company-wide configuration every module reads from.--Everything in Carbon is scoped to a **company**, and two records hold its configuration: the `company` row (identity, address, currency, logos) and a paired `companySettings` row holding the company-wide feature flags and defaults. Settings live under **Settings** in the app, grouped into **Company**, **Modules**, and **System**. Every route is employee-only; **Billing** additionally needs company ownership on a Cloud environment, and **Companies** and **Backups** are internal-only.--## The company record--Edited under **Settings → Company**:-- - **name**: Company name.- - **addressLine1 / addressLine2 / city / stateProvince / postalCode / countryCode**: The registered address. `addressLine1`, `city`, `postalCode`, and `countryCode` are required.- - **baseCurrencyCode**: The currency every posted amount is expressed in. See [base currency](#base-currency).- - **phone / fax / email / website**: Contact details.- - **taxId / vatNumber / eori**: Tax registration identifiers printed on documents.- - **logoLight / logoDark / logoLightIcon / logoDarkIcon / logoWatermark**: The five logo slots, edited under **Settings → Logos**: light/dark pairs for UI backgrounds, compact icon variants, and a watermark printed behind documents.- - **parentCompanyId**: Set when this company is a subsidiary of another.- - **isEliminationEntity**: Marks a consolidation-only company that nets intercompany pairs out of consolidated reports.- - **companyGroupId**: Groups related companies for the company switcher.- - **selectedModules**: Which modules this company turned on during onboarding.- - **industryId / customIndustryDescription**: The industry chosen at onboarding.- - **auditLogEnabled**: Whether change history is recorded. See `docs/reference/audit-log`.--Company membership is per-user: one login can hold several companies and switch through the company picker, and each company carries its own settings, currency, and numbering. Nothing crosses the boundary. A company with a `parentCompanyId` is a subsidiary; consolidation and elimination are covered in `docs/reference/intercompany`.--## Feature toggles and defaults--`companySettings` is a single row per company, edited across the **Settings → Modules** pages. These are the real column names:-- - **accountingEnabled**: Master switch for the ledger. When off, operations complete without posting journal entries.- - **timeCardEnabled**: Turns on shop-floor time cards.- - **consoleEnabled**: Enables MES console (shared-station) mode, where operators pin in with a 4-digit PIN. Business plan; toggled from **Settings → People** by someone with `settings_update`, and only through that screen — the API refuses a direct write to this column. See `docs/reference/mes`.- - **requireMfa**: Everyone needs an authenticator app to open this company. Edited from **Settings → System → Security**; locked on in controlled (ITAR) deployments. See `docs/reference/two-factor`.- - **useMetric**: Whether material units default to metric.- - **materialGeneratedIds**: Whether new materials get an auto-generated readable id.- - **plmReleaseControl**: The release-control policy for item revisions.- - **kanbanOutput**: What a Kanban card prints: `label`, `qrcode`, or `url`.- - **productLabelSize / shelfLabelSize**: Default label sizes.- - **updateLeadTimesOnReceipt**: Whether receiving recalculates supplier lead times.- - **purchasePriceUpdateTiming**: When purchase prices refresh: `Purchase Invoice Post` or `Purchase Order Finalize`.- - **maintenanceGenerateInAdvance / maintenanceAdvanceDays**: Whether preventive maintenance is generated ahead of time, and by how many days (1–90).- - **samplingStandard**: The default inspection sampling standard.- - **enforceInspectionFourEyes**: Requires a second person to sign off inspections.- - **qualityIssueTarget**: The quality issue target used in reporting.- - **assetTaxDepreciationEnabled / assetTaxRate**: Whether a separate tax-depreciation schedule is tracked for fixed assets, and its rate.- - **showCustomerReadableId / showSupplierReadableId**: Whether customer/supplier readable ids are surfaced in the UI.- - **inventoryShelfLife**: Every shelf-life knob in one blob. See `docs/reference/shelf-life`.- - **digitalQuoteEnabled / digitalQuoteIncludesPurchaseOrders**: Whether customers get a digital quote, and whether it includes purchase orders.- - **quoteLineCategoryMarkups**: Per-category default markups applied to quote lines.--The same row also carries the **notification groups** (who to notify for digital quotes, RFQ-ready, supplier quotes, job completions, dispatches, gauge-calibration expiry), the AP/AR email addresses, and default CC lists — see `docs/reference/notifications` for how they fan out.--`accountingEnabled` gates the *entire* ledger: off means jobs, shipments, and invoices complete but nothing posts, with no per-transaction exceptions. Turning it on mid-stream doesn't backfill past activity.--## Base currency--Every company has one `baseCurrencyCode`: the currency all *posted* amounts are stored and reported in, with foreign-currency transactions converted at their exchange rate before posting. It's chosen at onboarding and is the denomination of your whole history, so it isn't something you flip casually. A subsidiary can carry a different base currency from its parent; consolidation is where they meet.--## Theme and tags--Carbon ships eight color themes (Modern, Brutal, Cherry, Apricot, Lemon, Mint, Blueberry, Lavender). Theme is **per-person**, stored in a browser cookie rather than on the company record, so two people in one company can run different themes; document templates have their own separate theme setting. **Tags** are free-form labels scoped to a company *and* a table, so the same label can mean different things on items versus jobs, and vocabularies never leak across companies.--## Related system configuration-- - Numbering sequences The per-company generators behind every readable document number.- - API keys Scoped secrets that let external systems call the Carbon API.- - Approvals Approval rules that gate documents above a threshold.- - Licensing Which features exist at all depends on plan and edition.--## Internals and troubleshooting--Settings nav groups come from `useSettingsSubmodules.tsx` (internal gates in `internalOnlyRoutes`). Company fields are validated by `companyValidator` (`settings.models.ts:81`; `baseCurrencyCode` required at `:77`); subsidiaries by `subsidiaryValidator` (`:279`); themes by `themeValidator` (`:306`, definitions in `packages/utils/src/themes.ts`). Reads: `getCompany` (`settings.service.ts:230`, rewrites logo paths to public URLs), `getCompanies` (`:139`), `getEmployeeCompanies` (`:183`, filters supplier/customer-only memberships), `getCompanySettings` (`:283`). `companySettings` columns are in `packages/database/src/types.ts:6653`; each Modules page saves through its own small validator (`timeCardSettingsValidator`, `consoleSettingsValidator`, `materialUnitsValidator`, `materialIdsValidator`, …). Tags live in the `tag` table via `getTagsList` / `insertTag` (`shared.service.ts:929`, `:987`). Theme is set by a cookie action (`routes/x+/account+/theme.tsx`).--### I can't find the Companies or Backups settings page-Internal-operator-only (`internalOnlyRoutes`). Tenants create and switch companies through onboarding and the company picker.--### I can't see the Billing settings page-Billing needs company ownership *and* a Cloud environment; self-hosted editions and non-owners don't get it.--### Nothing posts to the ledger though jobs and invoices complete-`accountingEnabled` is off. Turn it on under Settings → Modules; it does not backfill past activity.--### My theme changed but a colleague still sees the old one-Theme is per-user (a cookie), not per-company. Document templates carry a separate theme setting.--### I can't change the base currency-By design: it's the denomination of the whole posted history, chosen at onboarding. Subsidiary/parent currency differences reconcile at consolidation, not by switching a base.--### A Modules toggle does nothing I expect-Flags are read by modules at runtime, and the feature may also be gated by plan/edition. Check licensing before assuming the toggle is broken.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/configurator.md b/apps/erp/app/modules/agent/kb/docs/reference/configurator.mddeleted file mode 100644index b6a2d3b22e..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/configurator.md+++ /dev/null@@ -1,73 +0,0 @@-# Configurator--> Turn one part number into a parametric family. Inputs drive rules that resolve the BOM, routing, and price per order.--Some parts aren't one fixed recipe. A bracket comes in three lengths, a panel in four finishes, a valve in a dozen bore sizes. Carbon's **configurator** lets a single item carry a set of **parameters** the ordering user fills in, and **rules** that read those parameters to resolve the item's method at order time: which components go on the `docs/reference/methods`, how the routing runs, and what the line costs. One part number, a parametric family behind it.--A part becomes configurable when you tick **"Requires Configuration"** on its manufacturing settings (`requiresConfiguration`, `apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsx:82`). From then on the part is configured: its stored method is a *template*, and every job or quote line built from it runs the rules to produce its own resolved copy.--## Parameters — the inputs--Parameters are the questions the configurator asks. Each one is defined on the part (`configurationParameterValidator`, `apps/erp/app/modules/items/items.models.ts:341`) with a **label**, a machine **key**, and a **data type**. The key is alphanumeric with underscore separators (`length`, `wall_thickness`), lowercase by convention — it's the name your rules reference.-- - **text**: A free-text value.- - **numeric**: A number — a length, a count, a bore size.- - **boolean**: A yes/no toggle.- - **list**: One of a fixed set of options you supply (`listOptions` is required for this type).- - **material**: A reference to a real material item, optionally filtered to one material form.- - **date**: A calendar date.--The base set (`text`, `numeric`, `boolean`, `list`, `material`) is `configurationParameterDataTypes` (`items.models.ts:22`); `date` is added by the validator (`items.models.ts:347`). `material` was added to the underlying enum in migration `20250809000000_add-material-configurator-type.sql`.--Parameters can be sorted into **groups** so the order form reads as sections (Dimensions, Finish, Tolerances) rather than one flat list. A group is just a named heading with a sort order (`configurationParameterGroupValidator`, `items.models.ts:325`); parameters land in an auto-created **"Ungrouped"** group until you file them. Both groups and parameters reorder by drag-and-drop, and both surfaces edit the same rows (`ConfigurationParameters.tsx`).--## Rules — deriving the method--A **rule** binds a *field* of the method to a snippet of code (`configurationRuleValidator`, `items.models.ts:369`). The field names which piece of the resolved method the rule sets; the code computes the value from the parameters.--Rules attach per-field right on the embedded `docs/reference/methods` editors. On the bill of materials each component exposes configurable fields — `itemId` (swap the component), `quantity`, `unitOfMeasureCode`, and `methodType` (`BillOfMaterial.tsx:841,866,890,1043`); on the bill of process, operation fields like the work center, process, and setup/labor/machine times. A field with a rule shows a "configured" marker instead of a static value.--You author the code in a **Monaco editor** (`ConfigurationEditor.tsx`) that generates the function skeleton and type definitions for you from the parameters, with a **Run** button to test the output before saving. The code is the body of a `configure(params)` function; `params` holds your parameters by key, and you `return` the value for that field:--```typescript-function configure(params: Params): number {- // one thread every 2mm of engagement, minimum 4- return Math.max(4, Math.ceil(params.engagement_length / 2));-}-```--Rule code runs in an isolated JavaScript sandbox (QuickJS, `packages/database/supabase/functions/shared/configuration-rule.ts`), both when a method is created and when you test a rule in the editor. The parameters are the only input and the returned value is the only output: a rule has no network, timers, or access to the page or server it runs in, and each run is limited in time and memory. A rule that fails to compile, throws, or exceeds a limit is ignored: a field keeps its default, and a bill of materials or process keeps all of its lines. Rules are for deriving a value from the inputs, not for side effects.--Rules can also **filter** the method wholesale: a `billOfMaterial` or `billOfProcess` rule returns the list of component or operation names to keep, so a boolean parameter can drop a whole subassembly or an outside-processing step from the recipe.--## Choosing a configured item at order time--The configurator is exercised where a configured part is put on a `docs/reference/quotes` or a `docs/reference/sales-orders` line, and where a `docs/reference/jobs` is created for it. When the picked item requires configuration, the line form shows a **"Configure"** button (`QuoteLineForm.tsx:556`, `JobForm.tsx`) that opens the parameter form. Until it's filled in, **"Save"** stays disabled — you can't commit a configured line without answering its parameters.--Submitting the configuration stores the answers on the line (`quoteLine.configuration` / `job.configuration`, JSON) and calls the `docs/reference/methods` engine with those values (`x+/quote+/$quoteId.$lineId.configure.tsx`). The rules run, and the line gets its own resolved bill of materials, routing, and cost — a concrete instance of the parametric family, not the template. Reconfiguring clears the line's prices and re-derives everything.--Because the method is resolved from rules, you can't point a job or line at a different method for a configured item — the get-method engine rejects it ("Cannot override method of configured item"). Change the parameters, not the recipe.--## Troubleshooting--Validator rejections when defining parameters, and the gates around configured items.--### "Key must be lowercase and underscore separated"-A parameter's machine **key** doesn't match the allowed shape (alphanumeric with single underscore separators, e.g. `wall_thickness`). Fix the key — spaces, hyphens, or leading/trailing/doubled underscores are rejected. The key is what your rules reference, so it can't be free text.--### "List options are required"-You set a parameter's data type to **list** but didn't supply its options. A `list` parameter must define the fixed set of choices; add them, or switch the type.--### "Cannot override method of configured item"-You tried to point a job or line at a different `docs/reference/methods` for an item whose `requiresConfiguration` is on. A configured item's method is resolved from rules, not chosen — the get-method engine rejects the override. Change the **parameters**, not the recipe.--### A rule returns null / falls back to the default-The rule tripped the sandbox. Rule code runs in a restricted sandbox that bans `fetch`, `setTimeout`/`setInterval`, dynamic `import`, `new Promise`, and the `Function` constructor; a rule containing any banned pattern is neutered to `return null`, and any rule that throws falls back to the field's default. Keep rules pure — derive a value from the inputs, no side effects.--### "Save" stays disabled on a configured line-When the picked item requires configuration, **"Save"** is disabled until the line is configured — the form shows a **"Configure"** button until you answer its parameters. Click **"Configure"**, fill in the parameters, and submit; Save then enables. (Reconfiguring clears the line's prices and re-derives its method.)--## Related-- - Items The item master and its type-specific settings, including "Requires Configuration".- - Methods & sourcing The bill of materials and routing a configurator resolves per order.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/custom-fields.md b/apps/erp/app/modules/agent/kb/docs/reference/custom-fields.mddeleted file mode 100644index feccee1b81..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/custom-fields.md+++ /dev/null@@ -1,46 +0,0 @@-# Custom fields--> Company-defined extra fields that attach to core records like customers, parts, and orders.--Carbon ships a fixed schema for every entity, but your process almost always needs one more field: a customer's "PPAP level", a part's "RoHS status", a job's internal "line number". Custom fields let each company add its own fields to a core record without a schema change. Define one under **Settings → Custom Fields** and every record of that entity shows it on its form, saves it alongside the built-in fields, and exposes it through the API.--## Defining a field-- - **Name**: The label shown on the record's form. Unique per table, per company.- - **Data Type**: One of nine types (below). **Once saved, the type can't be changed**; delete and re-create to switch.- - **List Options**: Required only for the **List** type: the dropdown's choices.- - **Required**: The field must be filled before the form saves. Boolean fields are never treated as required.- - **Tags**: Scopes the field to records carrying a matching tag; leave empty to show it on every record of the table.--The nine data types each render a specific input: **Boolean** (toggle), **Date** (date picker), **List** (dropdown of your options), **Numeric**, **Text**, **File**, and three reference types (**User**, **Customer**, and **Supplier**) that store a pointer to an existing Carbon record rather than free text.--Existing values are stored as-is, so Carbon locks the type after creation. Picked Text and need Numeric? Create a new field and migrate the values; there is no in-place conversion.--## Which entities support custom fields--The catalog is curated, not universal — the settings page lists one row per eligible entity with its module and field count. Coverage spans most modules: **Sales** (customer, sales order, sales invoice, RFQ, their contacts and lines), **Purchasing** (supplier, purchase invoice, supplier quote, RFQ lines), **Items** (part, tool, material, consumable, costing/planning records; see `docs/reference/items`), **Resources** (employee job, work center, equipment, department, location), **Inventory** (shipment, warehouse transfer, picking list), **Production** (job), and **Accounting** (account, payment term, journal). An entity not listed on the settings page isn't supported yet.--## How values save, and where they reach--Custom inputs render below the built-in fields on the record's form and save into a single `customFields` JSON column that every core table carries — no schema change per field. That column is exposed on the API like any other: readable and filterable on the entity's endpoint, with the caveat that its keys are field IDs, not display names, so pair an API read with the definitions from the settings catalog.--The CSV flows map built-in fields only; neither import nor the table download touches the `customFields` column. Populate custom fields on the form or through the API; see `docs/reference/import-export` for what CSV does cover.--## Internals and troubleshooting--Definitions live in the `customField` table (`20240311021818_custom-fields.sql:21`); the form validator is `customFieldValidator` (`settings.models.ts:109`). The eligible-entity catalog is `customFieldTable`, seeded from `20240511125727_seed_custom_fields.sql` onward; the settings page renders it in `CustomFieldsTable.tsx:32`. Forms drop in the shared `` (`components/Form/CustomFormFields.tsx`; rendering switch at `:75`), inputs are named with a `custom-` prefix, and route actions collect them via `setCustomFields(formData)` / repopulate via `getCustomFields` (`utils/form.ts`). The nine types are the `DataType` enum (`modules/shared/types.ts:83`). Swagger exposes `rowFilter.<table>.customFields`.--### "Required" on a custom field that won't submit-Requiredness is enforced by a runtime validator the form registers per table (`CustomFormFields.tsx:44`), separate from the entity's zod schema. Fill the field or clear its Required flag. Boolean fields are never treated as required, even with the flag on (`CustomFormFields.tsx:31`).--### List custom field rejected on save-A List field with no options or an empty option fails the validator's refine (`settings.models.ts:121-131`). Give it at least one non-empty choice.--### The Data Type dropdown is disabled when editing-By design: the form sets `isReadOnly` on the type select and shows "Data type cannot be changed" (`CustomFieldForm.tsx:110-116`). Delete and re-create to switch types.--### Custom-field values missing from CSV import/export-Expected — the `import-csv` edge function maps only built-in fields and the download omits the JSONB. Use the form or the API.--### The entity I want has no Custom Fields row-Only entities in the code-managed `customFieldTable` catalog are eligible; there's no way to add one from the UI.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/customer-portal.md b/apps/erp/app/modules/agent/kb/docs/reference/customer-portal.mddeleted file mode 100644index 7d1c048945..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/customer-portal.md+++ /dev/null@@ -1,25 +0,0 @@-# Customer portal--> A standing, read-only link where a customer watches their open orders and shop-floor progress, no Carbon account needed.--The customer portal is a **standing, read-only window** into one customer's work. Where a `docs/reference/quotes` closes a deal, the portal is what the buyer watches afterward: their sales order lines with status, the buyer and engineer contacts, order and due dates, part number and revision, quantity complete, quantity shipped, and per-operation job progress. There are no forms — the customer can look, not act.--## Creating a portal--Open **Sales → Portals** and create a portal for the customer. Each row carries the portal's private URL with a copy control; send that link to your customer contact. The link needs no login, so whoever holds the URL can open it — treat it like a password and send it only to the right person.--A portal is scoped to a single customer record: it lists that customer's orders and nothing else. Files attached to their job operations can be downloaded from the portal, limited to the customer's own jobs and rate-limited per visitor.--## Related-- - Digital quotes The customer-facing bookend before the order: accept or reject a sent quote.- - Sales orders The orders and statuses the portal reflects.- - External sharing How Carbon's private links work across quotes, supplier requests, and SCARs.--## Troubleshooting--### Why does the customer portal link show "Not found" / a 404?-The customer portal is gated behind the `CUSTOMER_PORTALS` plan feature (Business plan). A company without it gets a 404 on the portal URL (and a 403 on file downloads). Upgrade the plan to enable the portal.--### Why did downloads from the portal start failing (HTTP 429)?-File downloads on the portal are rate-limited to ten per minute per IP. Wait a minute and retry; the limit is per requesting IP address, not per file.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/dimensions.md b/apps/erp/app/modules/agent/kb/docs/reference/dimensions.mddeleted file mode 100644index a2761a426b..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/dimensions.md+++ /dev/null@@ -1,80 +0,0 @@-# Dimensions & cost centers--> Tag axes on journal lines that slice the general ledger without multiplying the chart of accounts.--A shop wants to know COGS *by location*, spend *by department*, revenue *by customer*, without carving a separate account for every combination. A reporting dimension is how Carbon does that: a company-defined tag axis that gets attached to individual journal lines, so the same handful of accounts can be sliced along whatever axes the business reports on. **Cost centers** are one such axis, plus a standalone hierarchy for organizing cost ownership.--Dimensions and cost centers live in the `docs/reference/accounting` module and are defined once per company group, alongside the chart of accounts.--## What a dimension is--A **dimension** is a named tag axis with an **entity type** that decides where its values come from. You define it once (`dimension` table, `name` + `entityType`, scoped by `companyGroupId`); every posted journal line can then carry at most one value on that axis.-- - **Entity-type dimension**: The values *are* rows of an existing table. A `Location` dimension draws its values from your locations, an `Employee` dimension from your people. You don't type the values in — they resolve from the entity the posting already references.- - **Custom dimension**: `entityType` is `Custom`. You supply the allowed values yourself as `dimensionValue` rows (Project A, Project B, …). Use it for an axis Carbon doesn't already model as a table.--The full set of entity types (`dimensionEntityType`, `accounting.models.ts:577`): `CostCenter`, `Custom`, `Customer`, `CustomerType`, `Department`, `Employee`, `FixedAssetClass`, `Item`, `ItemPostingGroup`, `Location`, `Process`, `Supplier`, `SupplierType`, `WorkCenter`. Each was added to the database enum as the posting paths learned to resolve it.--A dimension carries two flags: **active** (an inactive dimension stops being attached to new postings) and **required**. Names are unique per company group.--`dimension` and `dimensionValue` are scoped by `companyGroupId` — a dimension you define is shared across every company in the group. The *tags on a journal line* (`journalLineDimension`) are scoped by `companyId`, like the journal itself.--## How a value lands on a journal line--Dimensions are stored in a join table, `journalLineDimension`, with one row per tag: `journalLineId`, `dimensionId`, and a **`valueId`**. That `valueId` is deliberately **polymorphic** — for a `Custom` dimension it points at a `dimensionValue.id`; for an entity-type dimension it points straight at the entity row's id (`location.id`, `customer.id`, `costCenter.id`). It is intentionally *not* a foreign key; the reference target depends on the dimension's entity type and is enforced in application code (`20260228024512_dimensions.sql:131`). A line can hold at most one value per dimension (`UNIQUE("journalLineId", "dimensionId")`).--The interesting part is that you rarely set these by hand. When accounting is enabled and a document posts, the posting path resolves them automatically:--1. It loads every **active** dimension for the company group into a map keyed by entity type (`post-shipment/index.ts:171`).-2. As it builds each journal line, it already knows the source facts — the customer, the item, the item posting group, the location, the cost center behind that line.-3. For each of those facts, **if an active dimension exists for that entity type**, it attaches a `journalLineDimension` row pointing the `valueId` at that entity's id (`post-shipment/index.ts:1222`). No dimension defined for an axis means no tag on that axis — defining the dimension is what turns tagging on.--So a `Location` dimension isn't a field you fill in on the shipment. You define the dimension once, and from then on every shipment, receipt, invoice, and inventory posting carries its location automatically, because the posting already knew the location. The same pattern runs in `post-receipt`, `post-sales-invoice`, `post-purchase-invoice`, `post-inventory-adjustment`, `post-payment`, and the other posting functions.--A hand-entered journal doesn't have a source document to resolve tags from, so its lines carry the dimension values you assign in the entry form. `saveJournalLineDimensions` (`accounting.service.ts:2647`) replaces a line's tags wholesale — it clears the line's existing `journalLineDimension` rows and inserts the new set.--## Cost centers--A **cost center** is a named organizational unit for grouping cost — a plant, a line, a service team. Cost centers form a **hierarchy**: each one may name a `parentCostCenterId`, so you can roll child centers up into a parent (`getCostCentersTree`, `accounting.service.ts:2212`). Each carries an **owner** (`ownerId`, a user) responsible for it.--Cost centers play two roles:--- **A standalone tree** (`costCenter` table, scoped by `companyId`) you assign to purchase lines and other records to attribute spend to the responsible unit.-- **A dimension axis.** Define a dimension with `entityType: "CostCenter"` and postings begin tagging their journal lines with the cost center the source document carries — exactly like any other entity-type dimension. That's how cost-center-level P&L reporting works: the cost center is a tag on the line, resolved from the document at posting time.--There is no `costCenterId` column on `journalLine` itself. A cost center reaches the ledger the same way every other axis does — as a `journalLineDimension` row whose `valueId` is the `costCenter.id`.--## Using dimensions in reports--Dimensions exist to be sliced. Because the tag lives on the individual journal line, any report built from journal lines can group or filter by a dimension value: COGS by location, expense by department, revenue by customer. The chart of accounts stays small — you don't create *COGS – West* and *COGS – East* accounts, you post to one COGS account and slice it by the `Location` dimension.--The trial balance, balance sheet, and income statement (`getTrialBalance`, `getFinancialStatementBalances`) report the *whole* company's balances — they don't take a dimension filter. Dimension slicing is the analytical layer on top of those totals: it answers "of this account's balance, how much belongs to each location / department / cost center", not "restate the whole balance sheet for one project".--Because dimension slicing reads posted journal lines, it's only meaningful once a period's postings are final. See `docs/reference/period-close` for how a month's balances get snapshotted.--## Related-- - Accounting & the ledger Accounts, journals, and the postings every flow produces — where dimension tags get attached.- - Period close Finalizing a period's balances, the numbers dimensions slice.--## Troubleshooting--Most dimension issues are missing preconditions, not error strings — a dimension has to exist and be active before any tag is attached.--### "Owner is required"-Saving a cost center fails without an owner. `ownerId` is required — pick the user responsible for the cost center, then save. (A cost center also requires a **Name**.)--### "Name is required" / "Entity type is required"-Saving a dimension needs both a unique **Name** (per company group) and an **Entity type**. Choose an entity type — one of the source-table types (Location, Customer, Department, CostCenter, …) or **Custom** if you'll supply the allowed values yourself — then save.--### My journal lines aren't getting tagged with a dimension-Tagging is opt-in by *defining the dimension*. At posting time the path loads every **active** dimension keyed by entity type and only attaches a tag when an active dimension exists for a fact the line already carries (customer, item, location, cost center, …). If no dimension is defined for that axis — or the dimension is marked **inactive** — no tag is written. Define the dimension (and keep it active) and it applies to *future* postings; already-posted lines are not retroactively tagged.--### A cost center isn't showing up in reports-A cost center only reaches the ledger as a `journalLineDimension` row — there is no `costCenterId` column on `journalLine`. You must define a dimension with entity type **CostCenter**; only then do postings begin tagging their lines with the cost center the source document carries. The standalone cost-center tree (assigned to purchase lines) does not by itself put anything on the GL.--### A dimension filter doesn't change the balance sheet or trial balance-By design. The trial balance, balance sheet, and income statement report the *whole* company's balances and take no dimension filter. Dimension slicing is an analytical layer over posted journal lines — it answers "how much of this account belongs to each location / department / cost center", not "restate the statements for one project".--### A manual journal's dimension tags disappeared after re-saving-`saveJournalLineDimensions` replaces a line's tags **wholesale** — it clears the line's existing `journalLineDimension` rows and inserts the set you submitted. Re-save the entry with the full set of tags you want on the line; omitted tags are dropped, not merged.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/documents.md b/apps/erp/app/modules/agent/kb/docs/reference/documents.mddeleted file mode 100644index d0591cbb58..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/documents.md+++ /dev/null@@ -1,112 +0,0 @@-# Documents--> A shared file library with favorites, labels, search, and AI extraction that reads PDFs and fills a form for you.--Every file your team uploads lands in one place: the **document explorer**. It is a flat, searchable library of files, not a folder tree on disk. A file can be a loose upload someone dropped in, or it can be **attached to a record** (a job, a purchase order, an RFQ) and show up both there and in the explorer. On top of the library sit three conveniences: personal **pins** and **labels**, full-text-ish **search**, and an AI **extraction** pass that reads a PDF and pre-fills the form you would otherwise type by hand.--Open the explorer from **Documents** in the sidebar. It defaults to the `All Documents` view (`useDocumentsSubmodules.tsx:15-45`).--## The explorer--The table lists every file you can see, one row per document, sorted with your pinned files first (`documents.service.ts:86-88`). Each row carries the file's **name**, its linked **source document** (if any), your **labels**, **size**, **type**, **extension**, and the usual created/updated audit columns (`DocumentsTable.tsx:174-405`).--Five views scope the list, switched by the tab rail down the left (`useDocumentsSubmodules.tsx:15-45`):-- - **All Documents**: Every active file in the company you have read access to.- - **My Documents**: Files you uploaded (`createdBy` = you).- - **Recent**: Sorted by last activity — the newest view, download, label, or edit first.- - **Pinned**: Only files you have pinned.- - **Trash**: Soft-deleted files, waiting to be restored or purged.--**Type** is derived, not chosen. When a file is uploaded, Carbon reads its name and classifies it into one of ten buckets: `Archive`, `Document`, `Presentation`, `PDF`, `Spreadsheet`, `Text`, `Image`, `Video`, `Audio`, or `Other` (`20230423023136_documents.sql:1-12`). The **extension** column is computed by the database from the filename itself (the text after the last dot), so it always matches the real file (`20230423023136_documents.sql:20`).--"Move to Trash" only flips the file's `active` flag to `false` — the row and the stored file both stay put, and "Restore from Trash" flips it back (`documents.service.ts:124-152`). To actually remove a file, use **Permanently Delete** from the row menu; that one cannot be undone (`DocumentsTable.tsx:461-471`).--### Uploading--**Upload** in the explorer header takes any file. The browser uploads it straight into the private storage bucket under `{companyId}/{random}.{ext}`, then posts the path, name, and size to create the document row (`DocumentCreateForm.tsx:22-69`). The upload records itself as a transaction, and every later action (download, edit, favorite, label) logs one too — that activity trail is what drives the **Recent** view (`useDocument.ts:44-57`, `20230423023136_documents.sql:117-146`).--## Who can see a file--Visibility is by **group**, not by role alone. Every document carries a `readGroups` and a `writeGroups` array, and a file is only visible to a user who belongs to one of its read groups (and holds the `documents` view permission). Editing or deleting needs membership in a write group plus the matching permission (`20230423023136_documents.sql:40-66`, `useDocument.ts:22-42`). The same rule guards the underlying stored file in the private bucket, so a link to a file you are not in the read groups for resolves to nothing (`20230423023136_documents.sql:68-119`).--Read and write groups are drawn from your company group membership, the same groups used elsewhere for scoping. Set them when you edit a document's properties; a file with no matching read group for a user is simply invisible to that user.--## Pins and labels--Two personal organizers sit on top of the shared library, and both are **per-user** — what you pin or label is yours alone, not the whole company's.--- **Pins** (shown as a pushpin, called "Favorite" in the row menu) float a file to the top of your list and power the **Pinned** view. Toggling one writes or removes a `documentFavorite` row keyed to you (`useDocument.ts:113-130`, `documents.service.ts:199-219`).-- **Labels** are free-text tags you attach to a file. Type into the label popover on a row to reuse an existing label or create a new one on the fly; click a label to filter the list down to it (`DocumentsTable.tsx:239-296`, `useDocument.ts:142-164`). Labels are stored per user, so your "Q3-audit" label doesn't clutter a colleague's view (`20230423023136_documents.sql:186-215`).--## Search--The explorer search box does a case-insensitive substring match across a file's **name** and **description** (`documents.service.ts:72-76`). It is a filename/description search, not a full-text search of the file's contents. Combine it with the column filters (source document, label, type, extension, creator) to narrow a large library, and with the view tabs to scope to your own, recent, or pinned files. The current result set is exactly what the table's **Download CSV** button exports, each row carrying a signed download link (`search.tsx`, `DocumentsTable.tsx:393-405`).--## How documents attach to records--A document can point back at the record it belongs to. The row's **Source Document** column shows that link and jumps straight to the parent record (`DocumentsTable.tsx:207-237`). The set of record types a document can attach to is fixed (`documents.models.ts:9-23`):-- - **Sales side**: Quote, Request for Quote, Sales Order, Sales Invoice, Sales Return Order, Shipment.- - **Purchasing side**: Purchase Order, Purchase Invoice, Purchase Return Order, Purchasing Request for Quote, Supplier Quote.- - **Production & quality**: Job, Gauge Calibration Record, Issue.- - **Items**: Part, Material, Tool, Consumable, Service.- - **Trading parties**: Supplier, Customer. These are the master records rather than transactions, for files that belong to the party itself.--The attachment is stored as a `sourceDocument` (the type) plus a `sourceDocumentId` (the record's id) on the file (`documents.service.ts:154-183`). Because the file also lives in the shared explorer, you can find it either by opening the record or by searching the library. See the `docs/reference/sales-orders`, `docs/reference/purchase-orders`, and `docs/reference/jobs` references for where each record surfaces its files, and `docs/reference/suppliers-and-customers` for the party-level Documents tab.--## AI extraction--Extraction is the one place documents stop being passive files. Upload a PDF into a supported flow and Carbon reads it, pulls out the fields, and hands them to the form so you can accept them instead of retyping. Two document kinds are supported today (`document-extraction.ts:9-13`, `documents.models.ts:126`):--- a **Request for Quote** PDF, on the sales side, and-- a **Purchase Invoice** PDF, on the purchasing side.--### What it does, step by step--When you drop a PDF into one of those flows, Carbon creates a `documentExtraction` row (starting at status `pending`) and enqueues a background job (`documents.service.ts:248-296`, `20260609001724_add-document-extraction.sql:4-30`). The job then (`extract-document.ts:26-232`):--1. flips the row to `processing`;-2. downloads the PDF from private storage and extracts its **text** with a PDF parser (this is text extraction, not image OCR — a scanned image-only PDF yields no text);-3. loads the company's candidate records so the model can resolve names to real ids itself — suppliers and payment terms for an invoice, customers for an RFQ (`extract-document.ts:84-140`);-4. sends the text plus those candidate lists to the AI model, which returns every field as a `{ value, confidence }` pair (`schemas.ts:1-88`);-5. **filters by confidence**: any field scoring below the threshold (default `0.85`) is dropped to `null`, so a low-confidence guess never lands in your form (`extract-document.ts:184-224`, `packages/env/src/index.ts:173-178`); and-6. normalizes dates to `YYYY-MM-DD` and saves both the raw output and the filtered result on the row, status `completed` (`extract-document.ts:184-232`).--The form then reads the filtered values and pre-fills itself, matching extracted contacts and addresses against the customer's or supplier's existing records where it can (`documents.models.ts:168-255`).--The model is handed the actual list of your suppliers, payment terms, or customers and told to return the id of the single best match or `null` — never to make one up (`extract-document.ts:141-152`). So `supplierId` / `customerId` / `paymentTermId` come back either as a real record you already have or as blank, and the form's own matching fills the rest.--### What it pulls out--For a **Purchase Invoice**, extraction targets the supplier (name, contact, address, and a resolved `supplierId`), the invoice header (number, invoice and due dates, payment terms and a resolved `paymentTermId`, referenced PO number, currency), the money (subtotal, tax, shipping, total), and the **line items** (part number, description, quantity, unit price, line total) (`schemas.ts:20-54`).--For a **Request for Quote**, it targets the customer (name, a resolved `customerId`, plus separate purchasing and engineering contacts and the customer address), the RFQ header (number, RFQ date, due date, requested delivery date), and the **line items** (part number, description, quantity) (`schemas.ts:63-86`).--A `documentExtraction` row is only a staging area — it never creates an invoice or an RFQ by itself. The extracted values pre-fill the normal form, and the real record is created through the usual permission-gated route action when you save (`20260609001724_add-document-extraction.sql:37-39`). If the background job can't be enqueued or the parse fails, the row is marked `failed` with the error, and you just fill the form manually (`documents.service.ts:272-295`, `extract-document.ts:225-231`).--Extraction quality depends on the PDF being text-based and on the AI keys being configured for your deployment; without them the flows still work, you simply type the fields yourself.--This page is about the file library. The separate **document template** feature — the drag-and-drop customizer for the PDFs Carbon *generates* (quotes, order confirmations, invoices) — is a different subsystem and isn't covered here.--## Troubleshooting--Deletion, visibility, and the limits of AI extraction.--### A deleted file is still there / a file I deleted came back-"Move to Trash" is a soft delete — it only flips the file's `active` flag to `false`; the row and stored file stay put and "Restore from Trash" flips it back (`documents.service.ts:124-152`). To remove a file for good, use **Permanently Delete** from the row menu (`DocumentsTable.tsx:461-471`); that one can't be undone.--### A file (or a link to it) is invisible to a user-Visibility is by **group**. A document carries `readGroups` and `writeGroups` arrays, and a user sees a file only if they belong to one of its read groups **and** hold the `documents` view permission (`20230423023136_documents.sql:40-66`). The same rule guards the stored file, so a link to a file the user isn't in the read groups for resolves to nothing. Add the user's company group to the document's read groups, or check they have the view permission. Editing/deleting additionally needs write-group membership.--### Search isn't finding text inside a file-The explorer search is a case-insensitive substring match over a file's **name** and **description** only (`documents.service.ts:72-76`) — not a full-text search of the file's contents. Rename or describe the file, or narrow with the column filters instead.--### Extraction returned nothing for a scanned PDF-Extraction does **text extraction, not image OCR** (`extract-document.ts` step 2). A scanned, image-only PDF yields no text, so no fields come back. Use a text-based PDF, or fill the form manually.--### A field I expected wasn't pre-filled from the PDF-Any extracted field scoring below the confidence threshold (default `0.85`) is dropped to `null` so a low-confidence guess never lands in the form (`extract-document.ts:184-224`, `packages/env/src/index.ts:173-178`, env var `EXTRACTION_CONFIDENCE_THRESHOLD`). Only Request for Quote and Purchase Invoice PDFs are supported, and `supplierId`/`customerId`/`paymentTermId` come back only when the model matches one of your existing records — otherwise blank, to be filled by the form.--### The extraction row shows `failed`, or nothing happened-A `documentExtraction` row moves `pending → processing → completed`, or is marked `failed` with the error if the background job can't be enqueued or the parse fails (`documents.service.ts:272-295`, `extract-document.ts:225-231`). Extraction also needs AI keys configured for the deployment; without them the flow still works, you just type the fields yourself. Either way the row is only a staging area — it never creates the invoice or RFQ, so on failure just fill the form manually.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/financial-reports.md b/apps/erp/app/modules/agent/kb/docs/reference/financial-reports.mddeleted file mode 100644index 7d68aee307..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/financial-reports.md+++ /dev/null@@ -1,78 +0,0 @@-# Financial statement reports--> The Balance Sheet, Income Statement, and Trial Balance built from posted journals by account class.--Three reports read the same posted `docs/reference/accounting` and present it three ways. The **Balance Sheet** shows what the company owns and owes as of a date; the **Income Statement** shows revenue minus expense over a period; the **Trial Balance** lists every posting account with its debit or credit balance. All three come from the same balance engine, so they tie out to each other by construction.--They live under Accounting and each require the `accounting` view permission. Like everything financial, they only show data once **accounting enabled** is on — see `docs/reference/accounting` for that switch. With it off, journals are never written and every balance reads zero.--## The three statements-- - **Balance Sheet**: Assets, Liabilities, and Equity as of an end date. Reads the cumulative balance up to that date, so there is no start date to pick. Carbon appends a computed **"Net Income"** equity line so the sheet ties.- - **Income Statement**: Revenue and Expense activity between a start and end date. Reads the net change within the range, not a running total.- - **Trial Balance**: Every posting (leaf) account with its balance split into a debit or credit column, across a date range. Normal-debit classes (Asset, Expense) show a positive balance as a debit; normal-credit classes (Liability, Equity, Revenue) show it as a credit.--The split isn't three data sources. The Balance Sheet and Trial Balance are the same account set at a cutoff; the Income Statement is the movement across a window. Every account carries an `incomeBalance` marker of either **"Balance Sheet"** or **"Income Statement"**, set when the account is created, that decides which statement it appears on. Asset, Liability, and Equity accounts are Balance Sheet; Revenue and Expense are Income Statement.--Balances always exclude **Draft** journals. Only posted (and reversed) entries move a report, so an unposted entry sitting in the Journal Entries list has no effect on any statement until it posts. This is why the account ledger, the reports, and the `docs/reference/period-close` snapshots all agree.--## How a balance is built--Every report starts from a single balance function that reads the posted ledger and returns three numbers per account:-- - **balance**: All-time cumulative balance, no date bound. The running total of every posted line on the account.- - **balanceAtDate**: Cumulative balance from inception up to the report's **end date**. This is the *as-of* figure the Balance Sheet shows.- - **netChange**: Activity *within* the start-to-end window only. This is the movement the Income Statement shows, and the period column on the Trial Balance.--Group (heading) accounts don't hold postings; their totals roll up from their children. Because a debit and a credit are stored with opposite signs, the roll-up is **sign-aware by account class**. Asset and Revenue accounts add to their parent; Liability, Equity, and Expense subtract. That single rule makes the accounting identities fall out cleanly: a Balance Sheet root nets Assets minus Liabilities minus Equity to roughly zero, and the Income Statement root is Revenue minus Expense, which *is* net income.--Undistributed profit lives in the Revenue and Expense accounts until a period close moves it. A Balance Sheet drawn at any date would otherwise be out of balance, because that profit belongs in equity. Carbon closes the gap by summing every Income Statement leaf account (Revenue minus Expense, with the same sign rule) and surfacing it as a single **"Net Income"** line inside the Equity group. It is a calculated row, not a real account you can post to. Don't create a "Net Income" account in the chart of accounts.--## Period and date selection--Each report has a period picker at the top, but they don't pick the same thing:--- The **Balance Sheet** is *as-of*: you choose an end date only (presets like **"Today"**, **"End of Last Month"**, **"End of Last Quarter"**, **"End of Last Fiscal Year"**, or a custom **"As of"** date). There is no start date, because the sheet is a cumulative snapshot.-- The **Income Statement** and **Trial Balance** are *range*: you choose a start and end date (presets like **"This Month"**, **"Last Quarter"**, **"This Fiscal Year"**, **"Fiscal Year to Date"**, **"All Time"**, or a custom range). Fiscal presets follow the company's fiscal start month from `docs/reference/period-close`.--These pickers slice by **posting date**, not by the `docs/reference/period-close` a journal landed in, so a report window can span open and closed periods freely. Closing a period doesn't change what a report shows; it just snapshots balances so the reads stay fast.--Alongside the date picker, a company selector lets you view a single company or roll several together (multi-company consolidation, with currency translation when a **"Show translated"** toggle is on), and an account search filters the tree by name or number.--## What the reports do not slice--There is one gap worth stating plainly, because it's easy to assume otherwise.--Journal lines can carry reporting dimensions (location, department, cost center, and custom axes), but the Balance Sheet, Income Statement, and Trial Balance **do not** offer a dimension filter. They aggregate every posting on an account regardless of its dimension tags. To analyze the ledger by dimension, use the `docs/reference/dimensions` tooling, not these three statements.--The account ledger drawer (the drill-down you get by clicking an account on any of these reports) lists that account's individual posted lines for the same window, so a report figure always traces back to the transactions that make it up.--## Related-- - Accounting & the ledger The journal, accounts, and the accounting-enabled switch these reports read from.- - Dimensions & cost centers The tag axes the core statements do not slice by, and where to analyze them instead.- - Period close Fiscal periods, the balance snapshots that keep reports fast, and fiscal-year settings.--## Troubleshooting--The financial reports (Balance Sheet, Income Statement, Trial Balance) rarely throw string errors; the common problems are wrong-looking numbers with a precondition cause.--### "Why are all my numbers zero"-The company's **accounting enabled** setting is off, so no journal entries have ever been written. Reports read the posted general ledger, and there is nothing to read. Turn accounting on in company settings; balances accrue from postings made after that point. A brand-new company with accounting on but no posted documents also reads zero until the first shipment, invoice, receipt, or journal posts.--### "Why do my numbers look too low / an entry is missing"-Balances exclude **Draft** journals. An entry that is still Draft in the Journal Entries list does not move any report until it is posted. Post it (or check its status) and the figure updates. Reversed journals *do* count, as their offsetting entry.--### "Why is my Balance Sheet out of balance / Assets ≠ Liabilities + Equity"-The Balance Sheet appends a computed **"Net Income"** equity line that carries undistributed Revenue-minus-Expense into equity. If a figure still looks off, it is almost always a date-selection issue (an as-of date before some postings) or an account created with the wrong class or `incomeBalance` marker (for example a Revenue account flagged Balance Sheet), which misroutes it in the sign-aware roll-up. Check the account's class and Balance Sheet vs Income Statement setting in the chart of accounts.--### "Why doesn't my dimension filter change the totals"-There isn't one. The core statements aggregate every posting on an account regardless of dimension tags. Dimension analysis is a separate tool, not a filter on these three reports.--### "Balance Sheet has no start date field"-By design. The Balance Sheet is an as-of snapshot (cumulative balance up to the end date), so it exposes only an end date. The Income Statement and Trial Balance are range reports and take both a start and end date.--### Preconditions to check first-- **accounting enabled** must be on (off by default) or every balance is zero.-- The report window is by **posting date**, independent of accounting-period close status; closing a period does not hide its postings from reports.-- The signed-in user needs the `accounting` view permission to open any of the three reports.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/fixed-assets.md b/apps/erp/app/modules/agent/kb/docs/reference/fixed-assets.mddeleted file mode 100644index 4cb7d0264c..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/fixed-assets.md+++ /dev/null@@ -1,59 +0,0 @@-# Fixed assets--> 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-- - **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**.--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.--## 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 |--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.--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.--## Related-- - Manufacturing accounting The narrative: putting a machine on the books and writing it down.- - Accounting Where an asset's acquisition, depreciation, and disposal entries land.- - Work centers The same machine as a production resource — a separate record.--## Troubleshooting--### "Fixed Asset invoice line … has no asset selected"-A purchase invoice line of type *Fixed Asset* has no asset record linked. Open the line and select (or create) the fixed asset before posting the invoice.--### "Asset is no longer in Draft status"-The register action found the asset already activated — usually someone else registered it between page load and save. Reload the asset; if it's Active, the registration already happened.--### Depreciation or receipt posting fails with a period error-Asset postings land in an accounting period like everything else. "Accounting period is closed/locked" means the run's period needs reopening — see `docs/reference/accounting`.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/forecast.md b/apps/erp/app/modules/agent/kb/docs/reference/forecast.mddeleted file mode 100644index c25d23e628..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/forecast.md+++ /dev/null@@ -1,63 +0,0 @@-# Demand projections--> Enter expected future demand for a make part, week by week, so planning orders ahead of the sales orders that haven't landed yet.--A demand projection is your best guess at how much of a part you'll need in a given week, entered before any sales order exists to prove it. Planning treats that guess as demand: it nets it against what you already have coming, explodes the part's method to pull in its components, and suggests the jobs and purchase orders you'd need to be ready. Projections are how you tell Carbon "we expect to sell 40 of these in March" so the long-lead parts are ordered in time.--You enter projections under **Production → Projections**, one part at a time, as a 52-week grid. Each cell is the quantity you expect to consume that week. Save it, and the next MRP run reads it.--## What a projection is--A projection lives on the `demandProjection` table, keyed by item, location, and a weekly `period` — one row per part / location / week with a `forecastQuantity` (`packages/database/supabase/migrations/20251020183630_mrp-projections.sql:3-25`). The `period` table is a shared, company-agnostic set of dated week buckets (`startDate`, `endDate`, `periodType`); Carbon creates them on demand as `getOrCreatePeriods` walks forward from today (`packages/database/supabase/migrations/20250610000433_demand-planning.sql:26-34`).--Only **make parts** carry projections. The item picker on the form is fixed to `type="Part"` with `replenishmentSystem="Make"` (`apps/erp/app/modules/production/ui/Projection/DemandProjectionForm.tsx:195-202`), so you project the things you build. Their purchased components inherit demand through the BOM explosion, not through their own projection.--Two tables look alike. `demandProjection` is your input — the numbers you type. `demandForecast` is planning's output — the exploded, per-component demand the MRP run writes back (`forecastMethod` = `"mrp"`). You never edit `demandForecast` by hand; it's rebuilt on every run (`packages/planning/src/mrp/mrp.ts:918-963`). The Projections screen only ever touches `demandProjection`.--## How you enter one--The form is a drawer with a part, a location, and 52 numeric week cells grouped into four quarter tabs, plus a live bar-and-line chart of weekly and cumulative demand (`apps/erp/app/modules/production/ui/Projection/DemandProjectionForm.tsx:264-304`). Week 1 starts at the current week; each cell is labelled with its calendar date.--On save, the action pairs each `week{i}` value with the matching `period` id and upserts the rows (`apps/erp/app/routes/x+/production+/projections.new.tsx:50-78`). A cell you set to zero is deleted rather than stored, so the grid stays sparse (`apps/erp/app/modules/production/production.service.ts:3780-3829`). Editing a part reloads its existing rows back into the grid; deleting a part's projections clears every future week for that item and location (`apps/erp/app/routes/x+/production+/projections.delete.$itemId.$locationId.tsx:30-40`).--The grid spans 52 weeks (`WEEKS_TO_PROJECT = 12 * 4`, `apps/erp/app/routes/x+/production+/projections.tsx:23`). The list view pivots the per-period rows back into week columns for scanning, labelling the first as "Present Week" (`apps/erp/app/modules/production/ui/Projection/DemandProjectionTable.tsx:60-103`). Creating, editing, and deleting projections all require the `production` permission.--## How planning consumes it--Planning runs in-process from `@carbon/planning` (`runMrp`), and it reads `demandProjection` directly as a demand source (`packages/planning/src/mrp/mrp.ts:159-161`). A projected week's full quantity drives gross demand — open production you've already planned is *not* pre-subtracted here; instead firm job and purchase-order supply is credited exactly once during the BOM explosion's running balance, so a projection you're partway to covering doesn't get double-planned.--A projection's full `forecastQuantity` enters gross demand at face value — it is *not* pre-netted against open production (`packages/planning/src/mrp/mrp.ts:430-461`). Firm job/PO supply is instead credited once through the BOM explosion's running on-hand/supply balance, so a projection partway covered by in-flight jobs isn't planned twice. Actual **sales orders** and **job material** demand are firm too — they're added in full alongside the projection (`packages/planning/src/mrp/mrp.ts:463-531`).--That projection demand joins actual demand (open sales order lines and open job materials) in the gross-demand tally, and MRP explodes each make part's method to push component demand down the BOM. The result is written to `demandForecast` and to a `demandForecastSource` lineage table that tags every unit with where it came from: `"Sales Order"`, `"Job Material"`, or `"Demand Projection"` (`packages/planning/src/mrp/mrp.ts:653-712`). On a part's planning page you can open the demand for any week and see exactly which projections, orders, and parent jobs make it up (`apps/erp/app/modules/items/items.service.ts:695-753`).--The run turns projected demand into *suggested* jobs and purchase orders. Nothing is created until you act on a suggestion. See `docs/reference/planning` for how those suggestions surface and how you convert them, and `docs/reference/reordering` for the per-part numbers (lead time, lot size, safety stock) that shape what a projection turns into.--## Fields-- - **Item**: The make part you're projecting demand for. Limited to parts with a **Make** replenishment system.- - **Location**: The inventory location the demand lands at. Projections are scoped per location, so the same part can carry different numbers in different plants.- - **Week 1 … Week 52**: Expected quantity consumed in each weekly bucket, starting from the current week. A blank or zero cell stores nothing.--Projections are a deliberately simple, manual input: there's no statistical or ML forecasting engine behind them, no seasonality model, no auto-generation from history. The schema reserves `forecastMethod` and `confidence` columns, but the Projections form writes neither — every projection is a hand-entered number. What makes them useful is the netting and BOM explosion on the planning side, not the forecasting itself.--## Troubleshooting--These are almost all preconditions — projections only exist for make parts, only planning writes the forecast, and creating/editing/deleting needs the `production` permission.--### The item I want to project isn't in the picker-The item picker is fixed to parts with a **Make** replenishment system (`type="Part"`, `replenishmentSystem="Make"`). You project the things you build; purchased components inherit demand through the BOM explosion, not through their own projection. If a part is missing, check that it's a Part with Make replenishment.--### I can't create, edit, or delete a projection-Creating, editing, and deleting projections all require the **`production`** permission. Without it the actions are blocked. Have an admin grant production access.--### I edited `demandForecast` but my change was overwritten-You never edit `demandForecast` by hand — it's planning's **output**, rebuilt on every MRP run (`forecastMethod = "mrp"`). Your input is `demandProjection`, edited only from the Projections screen. If you meant to change the projected numbers, edit them there and re-run MRP.--### Deleting a part's projection removed more than I expected-Deleting a part's projections clears **every future week** for that item and location (current week and beyond), not just the visible tab. It's an all-or-nothing clear per item/location, so delete only when you mean to wipe the whole forward projection.--### My projected quantity didn't turn into a full job/PO-Open production you've already planned reduces what a projection drives — but the credit happens once during the BOM explosion (firm job/PO supply is netted there), not by pre-subtracting from the projection. If you projected 100 and 30 units are already in flight, planning acts on the shortfall. And MRP only *suggests* jobs and POs; nothing is created until you act on a suggestion.--### A zero cell isn't saved-A blank or zero cell stores nothing — it's deleted rather than persisted, so the grid stays sparse. That's expected; only non-zero weeks become `demandProjection` rows.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/import-export.md b/apps/erp/app/modules/agent/kb/docs/reference/import-export.mddeleted file mode 100644index 20a897a7cc..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/import-export.md+++ /dev/null@@ -1,129 +0,0 @@-# Import and export--> Bring records into Carbon from a CSV, and download any table's current view as a CSV.--Carbon moves data both ways through CSV. Every data table can **export** its current view to a file with one click, and a set of core entities can be bulk **imported** from a CSV you upload, map, and submit. The two paths are unrelated in the code: export is a browser-side download of the rows already on screen, while import runs a guided wizard that hands the file to a privileged background function to insert or update records inside a transaction.--## Exporting a table to CSV--Open any data table (a parts list, a sales order dashboard, an inventory grid) and look for the small download icon in the table header — hover it and its **Download CSV** tooltip appears. There is no setting to turn it on: every table built on Carbon's shared data grid gets the button automatically.--The download reflects **what you are currently looking at**, not a full server dump:--- Only the **rows on the current page / result set** are written. Filter or search first to widen or narrow what lands in the file, then export.-- Only the **columns visible in your current saved view** are included, in the order you've arranged them. Hidden columns are left out; the synthetic select, expand, and actions columns never export.-- The CSV headers are the same human labels shown in the grid.--For id-bearing columns like item, supplier, employee, and customer, the export substitutes the readable **name** for the raw id so the file is legible. A few columns are marked export-only: they stay hidden in the grid but are always written to the CSV.--Export builds the file entirely in your browser and downloads it as `data.csv` with no server round-trip. Rename it after downloading if you're exporting several tables.--## What you can import--Bulk import is deliberately scoped. A **Bulk Import** menu appears in the table header only on the tables that opt into it, so you import an entity from its own list screen:-- - **Customers**: From the customers list. Optionally rides address, payment term, and contact-style fields on the same row.- - **Suppliers**: From the suppliers list. Also carries address, payment term, shipping method, and incoterm fields.- - **Parts, Materials, Tools, Consumables, Fixtures**: From each item type's list. A single row can optionally create a supplier-part link, set purchasing lead time, and seed unit cost alongside the item.- - **Work Centers**: From the work centers list, including labor, machine, and overhead rates and a location.- - **Processes**: From the processes list.- - **Inventory, Batch, and Serial Quantities**: From **Inventory → Quantities**. Adds opening stock for items that already exist, one import per tracking type. See [Opening stock](#opening-stock).--Beyond these table buttons, the importer also understands three **method** formats used to load bills of materials and operations against parts: a focused BOM file, a focused Operations file, and a combined part-with-method file that creates parts and their full BOM and routing together. These are richer, row-typed CSVs (each row is tagged `PART`, `BOM`, `BOP`, `STEP`, `TOOL`, or `PARAM`) driven from the method-building UI rather than a plain list screen.--The models list a `fixedAsset` import shape, but the import function's own table list omits it, so a fixed-asset CSV is rejected. Individual BOM material lines (`methodMaterial`) are likewise not wired up. Import the entities above; create assets and one-off BOM lines in the app.--## The import flow--Importing is a four-step wizard, then a background write.--**Upload.** Click **Bulk Import**, pick the entity, and drop your CSV. Carbon parses it in the browser to read the header row, and uploads the file to your company's private storage. You can download a **template** for the entity first: it's a one-row CSV whose header is every field label and whose single data row is a hint marking each column `REQUIRED` or `optional` and listing valid enum values. Overwrite that hint row with your data and re-upload.--**Map columns.** Match each of your CSV columns to a Carbon field. Required fields must be mapped; anything you leave as **N/A** is skipped. For enum fields (like replenishment system or tracking type), you also map your raw values to Carbon's, and the wizard fuzzy-matches obvious ones for you (a CSV `"B"` proposes `"Buy"`). Some lookups can be created inline: a type or status that doesn't exist yet can be added without leaving the wizard.--**Validate.** The mapped data is checked against the entity's schema. Missing a required field or an unparseable value surfaces before anything is written.--**Import.** Submitting posts your mappings to Carbon, which invokes a privileged **import** function. It re-downloads the file from storage, applies your column and enum mappings, decides insert-versus-update per row, and writes the results inside a database transaction.--When a CSV value has no mapping to a Carbon enum, the row imports with that field's configured **default** rather than failing. An unmapped `"Replenishment System"` cell, for example, lands as `"Buy and Make"`. Map your values deliberately if the default isn't what you want.--## Insert, update, or skip--The importer is **idempotent**: re-importing the same file updates records rather than duplicating them. It decides each row's fate before writing:-- - **Insert**: The row is new. No existing record matches its Unique ID or its Name, so Carbon creates it and records a CSV id mapping for next time.- - **Update**: An existing record matches. Carbon matches first by the CSV's Unique ID (via a stored CSV-to-record mapping), then falls back to matching by Name, and updates that record in place.- - **Skip**: The row is a duplicate of another row in the same file (same id, or same name) and is dropped as informational.- - **Error**: The row is missing required data, most often a blank Name. It's reported so you can fix and re-import.--Matching by Unique ID uses a shared external-mapping table keyed to the `csv` source, so the second import of a file with the same ids takes the update path instead of creating duplicates. If a record was created in the app and you later import a CSV using the same **Name**, the name fallback catches it and updates rather than duplicates.--Import writes the entity's standard fields plus its documented side-tables (address, payment, supplier-part, cost). It does **not** map into per-company custom fields. Set those in the app after importing, or via the record's own form.--## Opening stock--The **Inventory → Quantities** table carries three imports that load on-hand stock, typically once during go-live. Each row is posted as a **Positive Adjmt.** through the same posting core as a manual inventory adjustment: an item ledger entry at the item's current cost, dated today, and, when accounting is enabled, a line pair on **one** inventory adjustment journal for the whole file. A row whose item has zero cost posts no journal lines. Inventory adjustment business rules are not evaluated on import. These imports only ever **add** stock; they never reduce or set a quantity.--Pick the import that matches the item's tracking type. A row whose item is tracked differently is reported as an error naming the right import, and Non-Inventory items can't be stocked at all.-- - **Inventory Quantities**: For items tracked as **Inventory**. Columns: Part Number, Revision, Location, Storage Unit, Quantity, Comment.- - **Batch Quantities**: For items tracked as **Batch**. Columns: Part Number, Revision, Location, Storage Unit, Batch Number, Quantity, Expiration Date, Comment. Each row creates a new batch.- - **Serial Quantities**: For items tracked as **Serial**. Columns: Part Number, Revision, Location, Storage Unit, Serial Number, Expiration Date, Comment. There's no Quantity column: every row is one unit.--Rules shared by all three:--- **Part Number + Revision** must match an existing item; a blank Revision means `0`. An unknown item is an error.-- **Location** is mapped to one of your locations in the wizard. **Storage Unit** is optional and matched by name within that location, ignoring case. A named storage unit that doesn't exist there is an error; the import never creates one.-- **Quantity** must be a positive number.-- **Expiration Date** is optional and must be written `YYYY-MM-DD`. Left blank, an item with a fixed-duration shelf life gets its expiry calculated the same way a manual adjustment does.-- There's no Unique ID column, so these imports don't record CSV id mappings.--Inventory-tracked rows have no natural key, so every valid row posts, every time. Importing the same file twice doubles the quantities. Batch and serial rows are protected: a batch or serial number that already exists on that item (in any status) is **skipped**, and a number repeated in the file is skipped after its first row. The same serial number on two different items is allowed.--## Errors and partial failures--Import is **row-level tolerant**. A bad row doesn't abort the whole file: it's collected and reported while the good rows still import. The results come back as four numbers plus two lists:--- **inserted** and **updated** — counts of records written.-- **errors** — rows you should fix and re-import (missing required data), each with its row number, a reason, and the original cell values.-- **skipped** — rows intentionally not written (in-file duplicates, already-existing), same shape.--Because the results carry each failed row's original cells, the wizard's results view shows you exactly which rows to fix without re-parsing your file. A hard failure (the file can't be downloaded, or an unexpected database error) is the only case that fails the whole import and returns an error message instead of a per-row report.--The import function writes with a privileged database connection that bypasses RLS, so your **permission to import is checked once**, up front, when you submit: sales for customers, purchasing for suppliers, parts for items and methods, production for work centers and processes, inventory for storage units and opening stock. If you lack that module's update permission, the import is refused before any write. Opening stock imports also need inventory create permission, the same as a manual inventory adjustment.--## Related-- - Items The part, material, tool, consumable, and fixture records the item importers create.- - Methods Bills of materials and routings, loaded by the BOM, Operations, and combined method imports.- - Suppliers and customers The partner records the customer and supplier importers create, including their addresses and terms.- - Work centers The capacity records the work-center importer creates.- - Inventory On-hand quantities and the manual adjustments the opening-stock imports post.--## Troubleshooting--The gates and quiet defaults that surprise people during an import.--### "Table not found in the list of supported tables"-The import URL's `tableId` isn't a key of `importPermissions`, so the route rejects it before any work (`import.$tableId.tsx:16-17`). Import from the entity's own list-screen **Bulk Import** button, which only appears on supported tables, rather than hitting the route directly.--### The import is refused before any row is written-The importer bypasses row-level security, so your **module update permission is checked once, up front** on submit (`import.$tableId.tsx:20-22`): sales for customers, purchasing for suppliers, parts for items and methods, production for work centers and processes, inventory for storage units and opening stock. Opening stock also needs inventory create permission. Without the required permission the whole import is refused. Get the permission, then re-submit.--### A fixed-asset CSV is rejected-`fixedAsset` has a models entry but is **not** in the import edge function's own table enum (`packages/database/supabase/functions/import-csv/index.ts:18-33`), so it's rejected. Create fixed assets in the app. Individual BOM material lines (`methodMaterial`) are likewise not wired up — use the BOM/method imports or the app.--### An enum column imported as the wrong value-When a CSV value has no mapping to a Carbon enum, the row imports with that field's configured **default** rather than failing — an unmapped Replenishment System, for example, lands as `"Buy and Make"`. In the **Map columns** step, map your raw values deliberately (the wizard fuzzy-matches obvious ones) so the default doesn't silently win.--### Re-importing created duplicates — or didn't update what I expected-The importer matches by the CSV's Unique ID first (via a stored `csv`-source mapping), then falls back to Name. If neither matches an existing record, the row is inserted. Records created in the app with no CSV mapping are matched by **Name** — a name mismatch (or a blank Name, which errors) breaks the update and can create a new row instead.--### Opening stock doubled after a second import-The Inventory Quantities import has no natural key: every valid row posts a Positive Adjmt. each time the file is imported. Reverse the extra movements from the item's inventory page (a Negative Adjmt. or a correction) rather than re-importing. Batch and Serial Quantities skip numbers that already exist on the item, so re-importing those files is safe.--### An opening-stock row says the item is tracked differently-Each opening-stock import accepts one tracking type (Inventory, Batch, or Serial). The error names the import to use instead; move the row to that file.--### My custom fields are blank after import-Import writes standard fields plus documented side-tables (address, payment, supplier-part, cost) only — it does **not** map into per-company custom fields. Set those on the record's form after importing.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/inspections.md b/apps/erp/app/modules/agent/kb/docs/reference/inspections.mddeleted file mode 100644index d8dbe01afa..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/inspections.md+++ /dev/null@@ -1,131 +0,0 @@-# Inspections and sampling--> How Carbon inspects received goods against AQL sampling plans, and how inspection templates and ballooned FAI drawings define what gets checked.--A drum of 5,000 fasteners lands on the dock. You don't measure every one. You pull a sample, check it against a plan, and let the numbers decide whether the whole lot passes. That is what Carbon's inbound inspection does: when a receipt is posted for an item flagged to `docs/reference/quality`, Carbon holds the received units, computes a sample size from an AQL standard, and waits for an inspector to record pass/fail before the stock becomes available.--This page is the deep dive. The `docs/reference/quality` has the short version; here you get the lifecycle, the sampling math, the step types that build an inspection template, and the ballooned-drawing FAI system.--## The inbound inspection lifecycle--Inspection is **lot-based**: one inspection per received line (the `receiptLineId` is unique, so a line can't spawn two lots). The lot carries a snapshot of the resolved plan — sample size, acceptance number, rejection number, the standard, the code letter — frozen at receipt so later plan edits never rewrite history.-- - **Pending**: The lot exists but no samples are recorded yet. Its tracked entities were posted **On Hold** at receipt, not Available.- - **In Progress**: At least one sample has been inspected. The inspector is working through the sample size, recording each unit as Passed or Failed.- - **Passed**: The lot was **accepted** on disposition. Un-sampled entities are released to Available; sampled passes stay Available, sampled failures stay Rejected.- - **Failed**: The lot was **rejected**. Every entity in the lot flips to Rejected, and an issue can be opened automatically.- - **Partial**: Some units cleared and the rest stay On Hold. A middle disposition for when part of the lot is good and part isn't.--The status enum is exactly `Pending`, `In Progress`, `Passed`, `Failed`, `Partial` (`quality.models.ts:698`, matching the `inboundInspectionStatus` type in `20260419163058_inbound-inspection-sampling.sql:73`). **Passed / Failed / Partial are disposition outcomes**, not something an inspector reaches by finishing samples — the inspector records results, then presses **Accept Lot**, **Reject Lot**, or **Partial** to close the lot.--When a receipt posts for a `requiresInspection` item, its tracked entities are set to **On Hold**, not Available. They're received but you can't sell or consume them yet. Only Accept (or the per-sample passes) releases them.--### What triggers a lot--The `requiresInspection` flag lives on the item (`item.requiresInspection`, added in `20260419094132_inbound-inspections.sql:6`). The `post-receipt` edge function reads it and, for each received line whose item requires inspection and has `receivedQuantity > 0`, resolves a sampling plan and inserts an `inboundInspection` row with a fresh `II`-prefixed readable id. The checkbox that sets the flag only appears on **purchased** items (Buy replenishment), so inbound inspection is a receiving-side gate, not an every-item one.--### Recording samples--Each recorded result is an `inboundInspectionSample` row. For a **Serial** item, the inspector scans or selects a discrete tracked entity per sample; for **Batch / Inventory / Non-Inventory** items there's no discrete unit to scan, so the sample records just a Pass/Fail with `trackedEntityId` left null (`inboundInspectionSampleValidator`, `quality.models.ts:754`). Same modal either way — the serial path just adds a Scan/Select step.--### Disposition--The Accept / Reject / Partial buttons gate on the recorded results (`InboundInspectionLotView.tsx:143`):--- **Accept Lot** is available once the inspected count reaches the sample size and failures are at or below the **acceptance number**.-- **Reject Lot** is available the moment failures exceed the acceptance number — you don't have to finish the sample to reject a clearly bad lot.-- **Partial** is available as soon as any unit is inspected.--Disposition writes the terminal status, stamps `dispositionedBy` / `dispositionedAt`, and appends a row to `inboundInspectionHistory` (a log kept for future plan auto-switching). Rejecting a **non-tracked Inventory** lot also posts a compensating `itemLedger` negative adjustment under the `Inbound Inspection` document type, because that received quantity has no per-entity status to exclude it from on-hand (`quality.server.ts:305`). A reject can also open an issue automatically — the reject dialog has an "Open an NCR" checkbox, on by default, linking the new issue back through `nonConformanceInboundInspection`. See `docs/reference/quality` for how those issues run to closure.--## Sampling plans and AQL--Every lot needs a sample size and an accept/reject rule. That comes from the item's **sampling plan** (`itemSamplingPlan`, 1:1 with the item, created lazily) resolved against the lot size at receipt. There are four plan types (`samplingPlanTypes`, `samplingStandards.ts:17`):-- - **Inspect All**: Sample size equals the whole lot. Accept on 0 defects, reject on 1.- - **Inspect First N**: A fixed count off the top of the lot (`sampleSize`). Accept 0 / reject 1.- - **Percentage**: A share of the lot (`percentage`), rounded up, capped at the lot size. Accept 0 / reject 1.- - **AQL**: Statistical acceptance sampling per ANSI/ASQ Z1.4 or ISO 2859-1 — the sample size and accept/reject numbers come from the standard's tables.--The first three are simple counts with a zero-defect rule. **AQL** is the interesting one.--### How an AQL plan resolves--AQL — Acceptable Quality Limit — is the defect rate you're willing to treat as "good enough". The resolver (`resolveSamplingPlan` in `samplingStandards.ts`, mirrored for the edge function in `sampling-engine.ts`) takes the plan, the lot size, and the company's standard, then walks the standard's tables in two steps:--1. **Lot size → code letter.** A single lot-size-range table maps the lot to a code letter (A–R) for the chosen **inspection level**. Level II is the general default; I and III trade sample size for confidence, and S1–S4 are special small-sample levels (`inspectionLevels`, `samplingStandards.ts:20`).-2. **Code letter + AQL + severity → sample plan.** The code letter and AQL pick a cell giving the sample size `n`, the **acceptance number** (`Ac`, max defects to still accept), and the **rejection number** (`Re`). Severity switches which table is used: **Normal**, **Tightened** (stricter — used when a supplier's quality slips), or **Reduced** (`inspectionSeverities`, `samplingStandards.ts:31`).--The standard AQL values Carbon exposes are the twelve canonical steps `0.065, 0.1, 0.15, 0.25, 0.4, 0.65, 1.0, 1.5, 2.5, 4.0, 6.5, 10.0` (`standardAqlValues`, `samplingStandards.ts:34`). The whole Z1.4 / ISO 2859-1 constant tables live in `samplingStandards.ts` (and the Deno copy at `sampling-engine.ts`) — ISO 2859-1 cells match Z1.4 for the plans Carbon exposes, so both standards share the same tables today.--When the receipt posts, the resolved numbers are copied onto the `inboundInspection` row (`sampleSize`, `acceptanceNumber`, `rejectionNumber`, `aql`, `inspectionLevel`, `severity`, `codeLetter`). Editing the item's sampling plan afterward changes future lots, never the lot already on the dock. If no plan is configured, `post-receipt` defaults to `Inspect All`, level II, Normal.--The **standard** itself (`ANSI_Z1_4` or `ISO_2859_1`) is a company-wide setting, not per-item — it lives on `companySettings.samplingStandard`, defaulting to ANSI Z1.4. A company can also require **four-eyes** sign-off on inspections via `companySettings.enforceInspectionFourEyes`, so the person who records a sample can't be the one who dispositions the lot.--## Inspection templates and step types--Sampling decides *how many* to inspect. An **inspection template** decides *what to check on each one*. Templates are built from ordered steps, and every step has a **type** that determines what the inspector is asked to do (`procedureStepType`, `shared.models.ts:207`):-- - **Task**: A do-this instruction with no captured value — a checklist line.- - **Measurement**: A dimensional reading. Requires a **unit of measure**, and takes an optional min/max range that bounds an acceptable value.- - **Value**: A free numeric or text value with no unit requirement.- - **Checkbox**: A pass/acknowledge tick.- - **Timestamp**: Captures the moment the step was performed.- - **Person**: Captures who performed the step.- - **List**: A pick from a defined set of options (the `listValues`).- - **File**: An attachment — a photo, a scan, a cert.- - **Inspection**: A nested inspection reference.--The step validator (`qualityDocumentStepValidator`, `quality.models.ts:591`) enforces the type-specific rules: a **Measurement** step must have a unit of measure, a **List** step must have at least one non-empty option, and when both `minValue` and `maxValue` are set the max must be greater than or equal to the min.--## FAI, inspection documents, and balloons--For first-article inspection (FAI) and dimensional sign-off, Carbon works from the drawing itself. An **inspection document** is a part's PDF drawing overlaid with numbered **balloons**, each balloon marking a characteristic to inspect (`inspectionDocumentValidator` / `balloonFeatureValidator`, `quality.models.ts:106`).--Each balloon feature carries:-- - **balloonNumber**: The number stamped on the drawing next to the characteristic — the reference an inspector reads off.- - **description**: What the characteristic is (a bore diameter, a hole position, a surface finish).- - **nominalValue**: The target value.- - **tolerancePlus / toleranceMinus**: The allowed deviation above and below nominal.- - **unitOfMeasureCode**: The unit the nominal and tolerances are expressed in.--Balloons anchor to a region of a specific PDF page (normalized 0–1 coordinates, so they stay put at any zoom) and each balloon can carry a step **type** from the same `procedureStepType` set, so a ballooned characteristic can be a Measurement, a Checkbox, and so on. Carbon can also auto-detect balloons from the drawing and turn detected regions into features. Because a balloon, its geometry, and its inspection feature must be created together or not at all, saves go through a single atomic RPC (`saveInspectionDocumentAtomic`) rather than separate writes.--## Related-- - Quality The module overview — issues, dispositions, and where inbound inspection fits.- - Issues and NCRs A rejected lot can open an issue automatically; this is how issues are driven to closure.- - Shop floor (MES) Where in-process inspection steps surface for operators.- - Receive, match, bill The receiving flow that triggers an inbound inspection.--## Troubleshooting--Exact errors and the sampling/disposition preconditions from the inbound-inspection validators, the sampling engine, and the reject-to-NCR flow.--### "Status is required" / "Decision is required"-Recording a sample needs a result (**Passed**/**Failed**); dispositioning the lot needs a decision (**Accept**, **Reject**, or **Partial**). The corresponding field wasn't selected.--### "Inspection id mismatch"-The inspection id in the URL doesn't match the `inspectionId` on the submitted form — a stale page or a crossed request. Reload the inspection and try again.--### "Inspection not found"-The sample or disposition references an inspection that doesn't exist in this company. It was likely deleted or belongs to another company — reload the list.--### "Failed to save sample" / "Failed to accept lot" / "Failed to reject lot" / "Failed to mark partial"-The underlying transaction failed (inspection missing, an entity conflict, or a permission denial). Retry; if it persists the lot may already be in a terminal state — see below.--### A terminal lot won't take more samples-Once a lot is **Passed**, **Failed**, or **Partial** it's terminal and locks — no further samples can be recorded and the status won't recompute. Only Pending/In Progress lots accept samples. To re-inspect you'd need a fresh inspection.--### The lot passed or failed on its own after one bad sample-Accept/reject is derived by the sampling engine, not chosen by hand. For All / First N / Percentage plans the acceptance number is 0 and the rejection number is 1, so a single defect fails the lot; AQL plans look up the accept/reject numbers from the ANSI Z1.4 / ISO 2859-1 code-letter tables by lot size, inspection level, and severity. Lot passes when sampled defects are within the acceptance number; it fails once defects exceed the rejection number.--### "Lot rejected. Configure at least one Issue Type and a default user location to auto-create an NCR."-The reject succeeded but the automatic NCR couldn't be created: the company has no issue types, or your user has no default location. Set up an issue type and a default location, or create the NCR manually. The lot is still rejected either way.--### "Lot rejected, but failed to create NCR" / "… failed to create NCR tasks" / "… failed to load it for NCR"-The lot was rejected but a later step of the auto-NCR pipeline failed (inserting the issue, seeding its workflow tasks, or reloading the lot for the NCR title). The rejection stands; the NCR may need to be created or completed manually.--### Permission-gated: recording samples or dispositioning a lot-All inbound-inspection actions require `quality` **update** and employee role, enforced again by row-level security. A blocked action means your role lacks the quality update permission.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/intercompany.md b/apps/erp/app/modules/agent/kb/docs/reference/intercompany.mddeleted file mode 100644index e22d7c1782..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/intercompany.md+++ /dev/null@@ -1,95 +0,0 @@-# Intercompany accounting--> Match a sale in one company against the purchase in its sibling, then eliminate the pair for consolidated reporting.--When two companies under the same owner trade with each other, each books its own side: one records a receivable, the other a payable. On a consolidated statement those two entries are the same money counted twice. Intercompany accounting is how Carbon pairs them up and cancels them out.--The whole feature is scoped to a **company group**, and it only appears once a group has more than one company. If you run a single company, there is nothing here to do. Set up the group and its members first (see [Companies](#prerequisite-a-multi-company-group)); everything below assumes they exist.--## What a transaction is--An intercompany transaction records that one company in the group owes or is owed by another. Most are created for you: when you post a sales or purchase invoice whose customer or supplier is a **sibling company in the group**, Carbon writes the matching intercompany transaction as part of posting the invoice.--A customer or supplier counts as a sibling when it is linked to another company in the group. Carbon creates those links the moment a company joins the group, so a normal invoice between two group members is intercompany without any extra flagging.--- Posting an **intercompany sales invoice** books the receivable to the group's **Inter-Company Receivables** control account instead of regular AR, and records a transaction from the seller to the buyer for the invoice's pre-tax total.-- Posting an **intercompany purchase invoice** books the payable to the **Inter-Company Payables** control account instead of regular AP, and records the mirror transaction from the buyer to the seller for the invoice's pre-tax total.--Both control accounts come from the group's accounting defaults, so members that have them configured post against the same two accounts. A company that hasn't configured them falls back to its regular receivables or payables account.--The transaction is a byproduct of posting the invoice, not a separate step. The receivable or payable is already on the ledger the moment the invoice posts. The transaction record just remembers which sibling it was with, so matching and elimination can find the pair later.--### Recording one by hand--You can also create a transaction directly from the accounting **Intercompany** screen with **New IC Transaction**, choosing a **source company** and a **target company** (they must be different), an amount, a description, and the two accounts to hit. This posts a balanced journal on the source company — a debit line to one account and a matching credit to the other, both tagged with the target as the **intercompany partner** — plus the tracking record. Use it for an adjustment, or for a position no invoice created.--The source and target are picked from the group's active companies, and **elimination entities are excluded** from that list. You transact between real operating companies. The elimination entity is where the cancelling entries land later, not a party to the trade.--## The matching lifecycle--Every intercompany transaction carries a **status**. It starts life at **"Unmatched"**, is paired to its counterpart by matching, and is retired by elimination.-- - **Unmatched**: The transaction has been created and posted on its source company, but Carbon has not yet found the mirror-image transaction on the other company. This is the default on creation.- - **Matched**: Matching found the counterpart: a transaction in the reverse direction (its source is this one's target, and vice versa) for the **same amount** in the same group. Both sides flip to Matched together and each records the other's journal line.- - **Eliminated**: Elimination has generated the reversing journal that cancels the pair for consolidation. The transaction is retired and stops counting toward the intercompany balance.--These are the only three values, enforced by a database check constraint on the transaction's `status`.--## How a pair gets matched--Matching is a manual, run-on-demand step, not something that happens as you post. On the Intercompany screen, **Run Matching** sweeps the whole group.--The rule is deliberately strict. Two **Unmatched** transactions match only when they are true mirror images: company A → B pairs with company B → A, for the **exact same amount**, within the same group. When Carbon finds such a pair it sets both to **"Matched"** in one step and links each to the other's journal line. The result toast tells you how many matched and how many are still unmatched.--If a transaction stays **Unmatched** after a run, its mirror does not exist yet. The usual cause is that the sibling company has not posted its invoice yet, or the two invoices are for different amounts. Post or correct the counterpart, then run matching again.--Matching pairs the two sides. It does **not** post anything new or touch either company's ledger. The journals were written when you created each transaction; matching only records that they belong together and advances their status.--## Elimination--Matching sets the stage. **Elimination** is what actually removes the double-count for consolidated reporting. It, too, is a manual sweep: **Generate Eliminations** processes every **Matched** pair in the group.--For each matched pair, Carbon posts a single **elimination journal** that reverses the intercompany control-account entries on both sides. Each transaction points at one control line; from it, Carbon takes that line's account and document and reverses every line the same invoice posted to that account — the seller's **Inter-Company Receivables** and the buyer's **Inter-Company Payables** — booking the sign-reversed amounts. Because it reverses the actual ledger lines for the whole document, a multi-line invoice is cleared in full, not just its first line, and both control accounts clear to their exact balance with no rounding residual. The seller's receivable and the buyer's payable are equal and opposite, so the elimination journal balances. Each reciprocal pair is processed once.--That journal is booked not on either operating company but on a dedicated **elimination entity** — a special company in the group flagged for this purpose. Carbon routes the entry to the elimination entity belonging to the **lowest common parent** of the two transacting companies, which is what makes multi-tier hierarchies (parent-child, sibling, cousin) consolidate correctly; if there isn't one at that level it falls back to any elimination entity in the group, and if the group has none the run fails.--Once the reversing journal is posted, the pair flips to **"Eliminated"** and the elimination journal is recorded on each transaction. The run returns a count of the journals it created.--Elimination writes real reversing journal entries on the elimination entity. There is no one-click undo. Generate eliminations only when the matched pairs are correct, and confirm you have an elimination entity in the group before you run it.--## The intercompany balance--The Intercompany screen also shows a **from / to balance matrix** across the group's companies and a running count of how many transactions sit at each status. The balance sums **non-eliminated** transactions only: once a pair is eliminated it drops out of the matrix. So a clean, fully-consolidated group shows zeros, and any non-zero cell is an intercompany position that hasn't been matched and eliminated yet.--## Prerequisite: a multi-company group--Intercompany is only meaningful with a group of companies and at least one elimination entity:--- **The company group** ties the members together. The chart of accounts, currencies, and dimensions are shared at the group level, so every company posts against the same accounts. Members and their parent-child hierarchy are managed under company settings.-- **The elimination entity** is a company in the group marked as such. It holds no operating activity; it exists to receive the elimination journals. Without one, **Generate Eliminations** has nowhere to post and the run fails.--When a company joins a group, Carbon automatically creates the reciprocal intercompany customer and supplier records between it and each sibling, so the trading relationships exist as soon as the group does.--## Related-- - Accounting & the ledger The journal, accounts, and periods that intercompany transactions post into.- - Period close Closing the books, one period at a time.--## Troubleshooting--Exact errors surfaced by intercompany matching and elimination.--### "Debit and credit account must be different"-The new IC transaction picked the same account for both the debit and the credit line. Choose two distinct accounts — the whole point is to move value from one to the other.--### "Source and target company must be different"-An intercompany transaction is between two companies. Pick a target company other than the source.--### "No elimination entity found for company group …"-**Generate Eliminations** ran but the group has no company flagged as an elimination entity, so there is nowhere to post the reversing journals. Add an elimination entity to the group under company settings, then run elimination again.--### "Insufficient permissions to match intercompany transactions" / "… to generate elimination entries"-Running matching or elimination requires being an employee of a company in the group with accounting-create permission. Both actions sweep the entire group, so the check is against group membership, not just the active company.--### A transaction stays "Unmatched" after Run Matching-No mirror-image transaction exists. Matching only pairs an A → B transaction with a B → A transaction for the **exact same amount** in the same group. Confirm the sibling company has posted its invoice for the identical amount (or booked a manual counterpart), then run matching again.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/inventory-count.md b/apps/erp/app/modules/agent/kb/docs/reference/inventory-count.mddeleted file mode 100644index 27a7848161..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/inventory-count.md+++ /dev/null@@ -1,86 +0,0 @@-# Inventory counts--> Count real stock against a frozen snapshot, review the variances, and post the differences as adjustments.--An inventory count freezes what Carbon thinks is on hand, sends someone to count what is actually on the shelf, and posts the difference. You pick a location (optionally narrowing to a few storage units or one item type), Carbon snapshots the on-hand quantity for every stocked lot into count lines, a counter fills in what they see, and posting books each variance as an inventory adjustment. It is how a warehouse reconciles the item ledger back to physical reality without touching stock one item at a time.--## The count lifecycle--A count moves through three statuses in order. Posting is atomic, so a count is never left half-applied.-- - **Draft**: The count is being set up and counted. Carbon has snapshotted on-hand into the lines, and counters enter what they physically find. Lines can still be regenerated from scratch while the count is Draft.- - **Pending**: Counting is confirmed and the count is queued to post. The entered quantities are locked in for review; nothing has hit the ledger yet.- - **Posted**: Every non-zero variance has been booked as a Positive or Negative Adjustment, tracked-entity quantities updated, and (when accounting is on) a journal written. This is the pivotal transition.--Posting is final — a Posted count is never reopened. If a posted movement turns out to be wrong, correct that **movement** from the stock-movements screen: enter the quantity it should have been, and Carbon books an opposite movement for the difference, linked to the original and dated with the original's posting date. The original count and its fix both stay visible in the stock-movement screens, in the right time period.--## Creating a count--Every count is scoped to one **location**. From there you can narrow it two ways, both optional:-- - **Storage units**: Limit the count to specific bins. Leave it empty to count the whole location.- - **Item type**: Restrict to one of `Part`, `Material`, `Tool`, or `Consumable` — the stockable item types. Services are never counted (they hold no inventory).- - **Blind count**: When on, the counter doesn't see the expected quantity while counting. Use it so the system number can't bias what they write down.--A **full count** covers the whole location; a **cycle count** is the narrowed version — a slice of bins or a single item type, counted on a rotating schedule so you never have to stop the warehouse for a wall-to-wall inventory. The scope is only used at creation to decide which lines to generate; the resulting count is the same document either way.--When you generate the lines, Carbon aggregates on-hand from the item ledger into one line per item, storage unit, and lot. It **excludes Rejected and Consumed lots** — a count never lists stock that has already been scrapped or used up. Each line records the frozen **system quantity**; that snapshot is what the variance is measured against later, not live on-hand.--## Counting--A counter walks the lines and enters what they find. Two rules matter:--A **blank** counted quantity means "not counted" and is skipped at post — it leaves that stock untouched. An explicit **0** is a real count that zeroes the line. The two are different: don't leave a line blank when you mean the shelf is empty.--Serial-tracked lines can only be counted **0 or 1** — a serial number is a single unique unit. Enter anything else and the post is blocked, with the offending rows flagged so you can fix them before trying again.--Counted quantities are non-negative, so a count can never drive on-hand below zero.--## What posting does--Posting reconciles against the **frozen snapshot**, not live on-hand. For each counted line Carbon computes the variance as `counted − systemQuantity` and posts a single adjustment for it:--- A shortfall books a **"Negative Adjmt."**, an overage a **"Positive Adjmt."**, written to the item ledger with the document type **"Inventory Count"**.-- Cost layers are maintained on every variance. When the company has **accounting enabled**, one journal is written for the whole post, debiting or crediting inventory against the inventory adjustment variance account, valued at the item's current cost. Counts with accounting off still adjust quantity and cost layers, just without the GL entry.-- For a tracked lot, the same variance is applied to the entity's quantity — the delta is added, not set — so any receipt or shipment that posted between the snapshot and the post survives the count rather than being clobbered.--Reconciling against the snapshot delta (not live on-hand) is deliberate. If a receipt or shipment lands while the count is open, the correction is applied *on top of* it instead of erasing it. The counter's variance is exactly what they reviewed.--## Count vs. a direct adjustment--Both end in the same place — a Positive or Negative Adjustment on the ledger, and the same journal when accounting is on. The difference is the workflow:-- - **Inventory count**: A **bulk, reviewable document**. Snapshot many lots at once, count them, review the variances, then post them all in one atomic transaction. It has a Draft → Pending → Posted lifecycle.- - **Manual adjustment**: A **single, immediate movement** on one item in one storage unit. No snapshot, no review step, no lifecycle — you enter a delta or a *Set Quantity* target and it posts on the spot.--Reach for a count when you're reconciling a shelf or a whole location; reach for an adjustment when you already know one specific quantity is wrong.--## Related-- - Inventory & locations On-hand as a ledger, storage units, and the manual adjustment a count is the bulk version of.- - Traceability How serial and batch lots are tracked — the entities a count snapshots and adjusts.--## Troubleshooting--Exact errors from counting and posting.--### "… serial line(s) must be counted as 0 or 1 — a serial number is a single unit."-The post found serial-tracked lines counted to something other than 0 or 1. A serial number is one unique unit, so it's either present (1) or not (0). The message counts the offending lines and the post returns their ids so those rows are flagged — fix them and post again.--### "Counted quantity cannot be negative"-A line was given a negative counted quantity. Counts can never drive on-hand below zero. Enter 0 for an empty shelf (a real count), or leave the field **blank** to mean "not counted" and skip it at post.--### "Only a confirmed (pending) count can be made effective"-Post was attempted on a count that isn't **"Pending"**. Confirm the count first (Draft → Pending), then post it.--### "Only a draft count can be confirmed"-Confirm was attempted on a count that isn't **"Draft"**. Only a Draft count moves to Pending.--### "Only a pending count can be reopened"-Reopen (Pending → Draft) only works from **"Pending"**. A **Posted** count is final — to fix a posted movement, correct that movement from the stock-movements screen instead.--### "Inventory count is no longer pending"-A concurrent post already moved the count out of **"Pending"** while this post was running. Reload the count to see its current state before acting again.--### No journal was written for the post-GL journals are only written when the company has **accounting enabled**. With accounting off, the post still books the quantity variances (Positive/Negative Adjmt.) and maintains cost layers — it just skips the GL entry. All post actions require the **inventory update** permission.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/inventory.md b/apps/erp/app/modules/agent/kb/docs/reference/inventory.mddeleted file mode 100644index bdcbe9df24..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/inventory.md+++ /dev/null@@ -1,69 +0,0 @@-# Inventory & locations--> 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` · `Assembly Output` | Goods received or produced into stock. |-| `Sale` · `Consumption` · `Assembly Consumption` | Goods shipped or issued to a job. |-| `Positive Adjmt.` · `Negative Adjmt.` | Manual corrections. |-| `Transfer` | Movement between locations or storage units. |--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).--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.--## 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** posts a positive or negative entry to the ledger, or a *Set Quantity* that books the difference to a target. When accounting is enabled, every adjustment also posts a journal: a loss debits the inventory adjustment account and credits inventory, a gain is the mirror image, valued at the item's current cost. Inventory count variances post the same way. Moving stock between storage units posts no journal, because the value never left the location. `docs/reference/scrap` stock is a negative adjustment with a reason, offset to the scrap account instead of the adjustment account.--## Correcting a movement--The ledger is append-only — a posted movement is never edited or deleted. To fix one, use **"Correct Quantity"** on the movement in the Stock Movements screen and enter the quantity it should have been. Carbon books one **opposite movement for the difference**, linked to the original and dated with the original's posting date, so both sit in the right time period. The correction appears as its own row, flagged with a **Correction** badge that links it back to the movement it fixes. The journal for the correction posts into the original's accounting period. A **locked** period refuses the correction until it's unlocked; a **closed** period is permanent — once a movement's period has closed, it can no longer be corrected. Correcting the same movement again measures against what it currently nets to, so repeated corrections converge instead of stacking.--## Value--Inventory value is on-hand quantity times the item's unit cost, summed per item and location. The Valuation report shows it by location or by item, and its **"Tie-Out"** panel compares that subledger value to the GL inventory account balances. If the two disagree (adjustments made before the books were turned on are the usual reason), **"Reconcile"** drafts an adjusting journal for an accountant to review and post.--## Related-- - Items The tracking type that decides how an item's stock is counted.- - Receipts How goods enter inventory in the first place.--## Troubleshooting--### "Insufficient quantity for negative adjustment"-The decrease (or *Set Quantity* reduction) exceeds what's on hand in that storage unit. Manual adjustments are the one movement guarded against overdraw. Check on-hand for the exact item/location/storage unit (and lot, if tracked) and adjust by no more than that.--### "Serial number not found"-The serial or batch number entered for a negative adjustment doesn't exist in the selected storage unit. Verify the number and the storage unit — the stock may sit in a different bin.--### "Multiple tracked entities in this storage unit — select a specific row to adjust"-A negative adjustment on a tracked item was ambiguous: several lots/serials sit in that storage unit. Select the specific tracked-entity row (or enter its number) so Carbon knows which one to reduce.--### "Cannot edit expiry of a consumed tracked entity"-Expiration dates can't be changed on stock that's already **Consumed**. Only live entities (Available, On Hold) accept an expiry override.--### "The original movement's accounting period is closed — its movements can no longer be corrected."-A stock-movement correction posts its journal into the **original movement's** accounting period, and that period is closed. Closing is permanent — there is no reopening — so the movement stays as posted. The **locked** variant of this message is recoverable: unlock the period and correct again.--### "Corrected quantity matches the current effective quantity — nothing to correct"-The corrected quantity you entered equals what the movement already nets to (original plus any prior corrections). There's no difference to book.--### "Corrections on serial-tracked items must be whole numbers"-The correction delta on a serial-tracked item wasn't an integer. Serial stock moves in whole units.--### Storage unit hierarchy errors-- "Parent storage unit … is in location …, but this unit is in location …; they must match" — parent and child bins must share a location; pick a parent in the same location.-- "Cannot change locationId of storage unit … because it has child units" — move or delete the children first, then move the parent.-- "Cycle detected in storage unit hierarchy at …" — the chosen parent is a descendant of this unit; pick one that doesn't loop back.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/invoices.md b/apps/erp/app/modules/agent/kb/docs/reference/invoices.mddeleted file mode 100644index 59e8006ecb..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/invoices.md+++ /dev/null@@ -1,105 +0,0 @@-# Invoices--> 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 both are settled by a **separate posted transaction** — a payment or a credit or debit memo applied to the invoice, not a field you flip.--## 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.--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.--## 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. The two sides share a shape but name a few states differently.--| | Sales invoice | Purchase invoice |-| --- | --- | --- |-| Drafting | Draft, Pending | Draft, Pending |-| Posted | **Submitted** | **Open** |-| Paying | Partially Paid → Paid | Partially Paid → Paid |-| Reversed | Voided | Voided |-| Memo applied | Credit Note Issued | Debit Note Issued |-| Past due | Overdue | Overdue |--The posted state has a different name on each side, **Submitted** for sales and **Open** for purchase, but means the same thing: posted to the ledger, awaiting payment. **Overdue**, **Partially Paid**, and **Paid** aren't set by hand; they're computed from the invoice's settlements and due date. An unpaid invoice past its `dateDue` reads **Overdue**; once settlements cover the whole balance it reads **Paid**.--## Line types--An invoice line is one of a handful of types, most of which pull an item's details in for you. The two sides differ in one place:--| Type | Sales invoice | Purchase invoice |-| --- | --- | --- |-| Part, Service, Material, Tool, Consumable | Yes | Yes |-| Comment (a note, no charge) | Yes | Yes |-| Fixed Asset | Yes | — |-| G/L Account (charge straight to an account) | — | Yes |--A **G/L Account** line lets a purchase invoice book a cost directly to a ledger account with a description — freight, a fee, anything without an item behind it. Sales invoices don't offer it; they carry a **Fixed Asset** line instead, for billing a capitalized asset.--## Posting--Posting an invoice writes its general-ledger entries, but only when accounting is enabled for the company: receivables against sales for a sale, payables against inventory or WIP for a purchase. Posting also bumps the invoiced quantity on each order line and stamps the posting date.--Posting never marks an invoice **Paid** — it lands on **Submitted** or **Open**. Settling it 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.--## Settling an invoice--A posted invoice is settled by a separate posted document applied to it, never by flipping a field. Two kinds of document do the settling, and an **invoice settlement** is the row that links one to an invoice for a given amount.--A **payment** moves cash. A **Receipt** is money in from a customer (it settles sales invoices); a **Disbursement** is money out to a supplier (it settles purchase invoices). A payment carries a bank account, a date, a currency, and a total, and moves **Draft → Posted → Voided** like the invoice itself. While it's **Draft** you stage which invoices it applies to and for how much; posting it books the cash to the ledger — bank against the receivables or payables control account — and freezes those applications.--A **credit or debit memo** settles without cash. It's a party, an amount, and a reason: a **Credit** memo lowers what a customer owes (a return or allowance) or raises what you owe a supplier; a **Debit** memo does the reverse. Its offset is a general-ledger reason account, not the bank. A memo posts **Draft → Posted → Voided** too, and posting an applied credit against a customer invoice is what flips that invoice to **Credit Note Issued** (a supplier invoice reads **Debit Note Issued**). A memo belongs to exactly one party — a customer or a supplier, never both.--An **invoice settlement** carries three amounts, not one: **applied** (cash or credit that reduces the balance), **discount** (an early-payment discount you're granting), and **write-off** (a tiny remainder you're forgiving to the write-off account). At least one has to be positive. A memo-sourced settlement can only carry an applied amount — discounts and write-offs are for cash payments.--### What if a payment overpays?--Applying **more than an invoice's open balance** is blocked per-invoice — a settlement can't exceed what's left to collect on that invoice. But a payment's **cash total can exceed everything it applies**: the excess stays on the party's account as an unapplied credit, ready to apply to a later invoice. You can also run the reverse — a payment with **zero cash** that only applies the party's existing posted credits to open invoices. Applying more credit than the party actually has, though, errors out.--### Voiding and dust--Void reverses, it doesn't erase. Voiding a posted payment or memo writes a mirror-image journal and moves it to **Voided**. You can't void an invoice that still has payments applied — reverse (or unapply) those first. And you can't edit a payment's applications once it's posted; to change how a posted payment lands, void it and re-enter it.--Carbon forgives **dust**. When settlements leave a balance under one cent — smaller than the currency can represent — the invoice is treated as fully **Paid** and its balance reads zero, rather than sitting forever a fraction of a cent short.--## Related-- - Sales orders The order a sales invoice bills against.- - Purchase orders The order a purchase invoice reconciles to, line by line.- - Accounting Where a posted invoice's ledger entries land.--## Troubleshooting--Exact errors users hit when posting, voiding, deleting, or paying invoices.--### "Can only void posted purchase invoices"-Voiding applies only after posting. A Draft invoice can simply be edited or deleted.--### "Purchase invoice is already voided"-No action needed — the invoice was already reversed.--### "Cannot void a purchase invoice with payments applied. Reverse the payment first."-The invoice has settled payments against it. Reverse (or unapply) those payments, then void the invoice.--### "Cannot delete purchase invoice with status … Only Draft invoices can be deleted."-A database guard (same wording for sales invoices). Once an invoice leaves Draft it can't be deleted — void a posted invoice instead, which writes reversing entries.--### "Cannot modify a confirmed purchase invoice." / "Cannot modify a locked sales invoice."-Invoices lock the moment they leave Draft; posted numbers can't be edited in place. To change a posted invoice, void it and raise a new one (or issue a credit/debit note).--### "Applications can only be edited while the payment is Draft"-Once a payment is posted, its invoice applications are frozen. Reverse the payment and re-enter it to change how it's applied.--### "A receipt can only be applied to sales invoices" / "A disbursement can only be applied to purchase invoices"-Payment direction mismatch: a customer payment (receipt) settles sales invoices, a supplier payment (disbursement) settles purchase invoices. Check the payment's type.--### "A payment can only be applied to its own customer's invoices"-The invoice belongs to a different customer (or, for the supplier-side variant, a different supplier) than the payment. Apply the payment only to that party's invoices.--### "Only posted credits can be applied"-The credit memo being applied is still Draft (or voided). Post the credit memo first.--### "Applied amount must be greater than 0"-Enter a positive amount when applying a payment or credit.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/issues.md b/apps/erp/app/modules/agent/kb/docs/reference/issues.mddeleted file mode 100644index f67ab50583..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/issues.md+++ /dev/null@@ -1,125 +0,0 @@-# Issues (non-conformances)--> How Carbon logs a non-conformance, drives it through a configurable workflow of actions and approvals, and dispositions the affected material before closing.--An **issue** is Carbon's non-conformance record, an NCR: a logged defect or deviation plus the work to resolve it. This page is the deep dive behind the `docs/reference/quality`. It lives in the `quality` module (there is no separate `issue` module), and every issue carries an `nc`-prefixed internal id plus a readable `nonConformanceId` you see in the UI.--An issue opens several ways: by hand from the issues list, from the shop floor in MES, from Slack, or **automatically** when an `docs/reference/quality` rejects a lot. Whichever door it comes through, it lands in the same lifecycle.--## The lifecycle--A `nonConformanceStatus` has three values. A new issue defaults to **"Registered"**; **"Closed"** is terminal and locks the record.-- - **Registered**: The issue exists but no one has picked it up. The DB default for a new `nonConformance`. Editable.- - **In Progress**: Someone is working it. An issue auto-advances here the first time a user types into a task note while still Registered, or when you click **"Start"** in the header.- - **Closed**: Resolved and locked. `isIssueLocked(status)` is true only for Closed, which blocks edits to the issue and its task assignments. Closing clears the assignee and stamps `closeDate`. **"Reopen"** sends it back to Registered.--The header buttons drive these transitions, all gated by the `quality` update permission: **"Start"** (Registered → In Progress), **"Complete"** (In Progress → runs `closeIssue`), and **"Reopen"** (In Progress or Closed → Registered). The reopen path is why Closed isn't a dead end. It just re-opens the record for more work.--The issue header holds the priority, source, type, and workflow. The *affected material* lives in a separate junction (`nonConformanceItem`), so a single issue can cover several items and several tracked lots or serials, each dispositioned on its own. The header status is not the same thing as a per-item disposition.--## Header fields--Every issue carries a small set of classification fields. Type and location are required; the rest have defaults or are optional.-- - **Priority**: How urgent. Defaults to **"Medium"**.- - **Source**: Where the defect originated. Defaults to **"Internal"**. External covers supplier- and customer-side non-conformances.- - **Type**: A configurable category (`nonConformanceType`) — your own list, not a fixed enum.- - **Workflow**: An optional `nonConformanceWorkflow` that pre-seeds the issue's priority, source, required actions, approvals, and a document template. See below.- - **Location**: The site the issue is raised against.- - **Open / Due / Close date**: `openDate` is required; `dueDate` is optional; `closeDate` is stamped automatically on close.- - **Quantity**: The affected quantity, optional at the header level.--## Workflows: the 8D and its cousins--A **workflow** is a reusable template, not a rigid state machine. It stores a rich-text **issue template** (the investigation write-up you start from) plus a preset priority, source, a list of required actions, and approval requirements. Picking a workflow when you raise an issue copies those presets in and drops the template into the issue's content.--This is how Carbon models the 8D method: an "8D workflow" is just a workflow whose required actions cover the eight disciplines. A "containment workflow" is a lighter one. Nothing about 8D is hard-coded. You compose it from the same action building blocks as any other workflow, and you can build your own.--## Required actions and their system categories--Each issue references a set of **required actions** (`requiredActionIds`), and the moment the issue is set up, Carbon materializes one **action task** (`nonConformanceActionTask`) per required action, numbered by sort order. Those tasks are the checklist the team works through.--A required action can carry a `systemType` that classifies what kind of action it is. There are five:-- - **Containment**: The immediate action that quarantines affected stock or work before the root cause is known. Drives the issue's containment status (below).- - **Corrective**: The fix for a confirmed root cause.- - **Preventive**: The action that stops the problem recurring elsewhere.- - **Verification**: Confirms the corrective and preventive actions actually worked.- - **Communication**: Notifies the affected party, e.g. a customer.--The five system actions (Containment Action, Corrective Action, Preventive Action, Verification, Customer Communication) are seeded per company and **protected**: a database trigger blocks deleting them or changing their `systemType`, and each is unique per company. Any action you add yourself has no `systemType` and is fully editable.--The `issues` view computes a **containment status** from the action tasks. It reads **"Contained"** when a Containment-type task is In Progress or Completed, **"Uncontained"** when a Containment task exists but hasn't started, and **"N/A"** when the issue has no containment task at all. You don't set it. It follows the work.--### Working the tasks--Action tasks run their own small lifecycle: **"Pending"** → **"In Progress"** → **"Completed"**, with **"Skipped"** as an off-path exit. Tasks start Pending and do *not* auto-start. Completing a task stamps its completed date. A completed or skipped task can be reopened back to Pending. Tasks can be reordered, given due dates, and tied to specific processes, and a supplier-facing action task can be shared externally as a **SCAR** (Supplier Corrective Action Request) report.--The SCAR is a private, login-free link the supplier opens to respond. They see the non-conformance details, the current status, and the action tasks assigned to them — not the rest of the issue: dispositions, approvals, and closure stay internal. For each task the supplier can update the status and write notes in an editor that auto-saves as they type; entering notes on a **"Pending"** task promotes it to **"In Progress"** automatically. Once the issue is **"Closed"**, the SCAR locks and the supplier can no longer make changes. Whoever holds the URL can open it, so send it only to the supplier contact.--## Approvals and the Material Review Board--Beyond actions, an issue can require **approvals**. The only approval requirement Carbon ships is MRB (Material Review Board). Adding it materializes an approval task and, when MRB is newly required, seeds two **reviewers** with titles **"Engineering"** and **"Quality"**. Remove MRB and those seeded reviewers are cleared; reviewers you added by hand are left alone. A reviewer is just a title on the issue. You manage the list inline on the issue.--## Dispositions: deciding the material's fate--Closing an issue is where the affected material gets resolved. Each `nonConformanceItem` row carries a disposition — the decision about what to do with that material. The database enum has more values than the UI exposes; the active picker is a deliberate subset of five:-- - **Pending**: Not yet decided. The default. **Blocks closing** the issue if the row has linked material.- - **Return to Supplier**: Send it back. On close, linked tracked entities flip to **Rejected** and a Negative Adjustment ledger entry is written.- - **Rework**: Fix it and use it. On close, linked entities return to **Available**.- - **Scrap**: Write it off. On close, linked entities flip to **Rejected** with a Negative Adjustment ledger entry.- - **Use As Is**: Accept the deviation. On close, linked entities return to **Available**.--`closeIssue` runs a preflight over every affected-item row that has linked tracked entities. It refuses to close — *"Cannot close: Disposition is still Pending"* — if any such row is still Pending, if the linked quantities don't sum to the row quantity, or if a linked entity is missing or already Consumed. Only once the plan is clean does it stamp each entity's outcome and set the issue **"Closed"**. A row with no linked material is not gated: you don't have to disposition what you never traced.--## What an issue can point at--An issue links to the documents and records it concerns through typed association tables. There are ten association types: **items**, **customers**, **suppliers**, **job operations**, **purchase-order lines**, **sales-order lines**, **shipment lines**, **receipt lines**, **tracked entities**, and **inbound inspections**. These are what let quality trace a defect back to exactly where it came from — a specific received lot, a specific job operation, a specific supplier — and what makes supplier quality a *derived* number rather than a scorecard you maintain by hand.--From the issue header you can also spin up a `docs/reference/change-orders` directly, carrying the issue across as its source, when the fix is an engineering change rather than a one-off disposition.--## Related-- - Quality The module overview: issues, inbound inspection, gauges, documents.- - Calibration Gauges and calibration-due tracking, the other side of quality.- - Risk register Risks and opportunities tracked by source, alongside non-conformances.- - Change notices Turn an issue into an engineering change.--## Troubleshooting--Exact errors and blocking preconditions from the issue validator, the close/disposition gate, and the entity-move server logic.--### "Name is required" / "Location is required" / "Type is required" / "Open date is required"-Form-validation from `issueValidator`. A new issue needs a summary name, a location (the plant/warehouse where the defect originated), an issue type, and an open date before it saves.--### "Cannot modify a closed issue. Reopen it first."-The issue's status is **Closed**, which locks it against all edits — entity moves, splits, disposition changes. Reopen the issue first, then make the change. (A Closed issue is the only locked state; `isIssueLocked` returns true only for Closed.)--### "Cannot close: Disposition is still Pending; …"-One or more disposition rows are still set to **Pending**. Every tracked-entity row must have a final disposition (Rework, Scrap, Use As Is, Return to Supplier) before the issue can close. Open each row and pick an outcome.--### "Cannot close: Linked entity quantity (…) does not match row quantity (…); …"-The quantities of the tracked lots linked to a disposition row don't sum to the row's quantity — usually stale after a split or move. Re-split or re-link the entities so the totals match, then close.--### "Cannot close: Tracked entity … is already Consumed; …"-An entity in the disposition has already been consumed in production, so it can no longer be dispositioned. Unlink or replace the consumed entity, then close.--### "Cannot move entities between different NCRs" / "Cannot move entities onto the same row"-Entity moves are only valid between two disposition rows on the *same* issue, and the source and target rows must differ. Pick a different target row on the same NCR.--### "Split quantity (…) must be less than the current quantity (…)"-A split has to leave something on the original row — the split-off amount can't equal or exceed the row's current quantity. Reduce the split amount.--### "Disposition changed while closing; please retry."-Another user modified a disposition row (status, quantity, or an entity's state) between your preflight and the close transaction. This is a transient race — press Close again.--### MRB review is holding the issue open-When an issue requires **MRB** approval, an approval task and reviewer rows (Engineering, Quality) are seeded and the issue can't move to Closed until those reviewers complete their tasks. The issue sits In Progress until MRB signs off — complete the review tasks to unblock closure.--### Permission-gated: you can't create, edit, close, or delete an issue-Listing issues needs `quality` **view**; creating needs `quality` **create**; editing, closing, splitting, and moving entities all need `quality` **update**; deleting needs `quality` **delete**. If an action is blocked, your role is missing the corresponding quality permission (Settings → Roles).--### "Issue has been closed already. Unable to make changes" (SCAR)-A supplier tried to update a SCAR action task after the parent issue was set to `Closed`. Once the issue is Closed the SCAR is read-only. Reopen the issue internally if further supplier action is needed.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/items.md b/apps/erp/app/modules/agent/kb/docs/reference/items.mddeleted file mode 100644index 11134d0b0a..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/items.md+++ /dev/null@@ -1,34 +0,0 @@-# Items--> 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.--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-- - **Part number**: The readable id; with a non-zero revision it reads as `id.rev`.- - **Type**: *Part*, *Material*, *Tool*, *Consumable*, *Service*, or *Fixture*.- - **Replenishment system**: How it's sourced overall: *Buy*, *Make*, or *Buy and Make*.- - **Default method type**: The default per-line fulfillment: *Purchase to Order*, *Pull from Inventory*, or *Make to Order*.- - **Tracking type**: *Inventory*, *Non-Inventory*, *Serial*, or *Batch*.- - **Unit of measure**: The stock unit.- - **Active**: Whether it can be used on new documents.--**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.--## 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.--An item's costing method, one of *Standard*, *Average*, *FIFO*, or *LIFO*, lives on its cost record, not the item itself, and decides how consumption is valued.--## Related-- - Methods & sourcing How an item's bill of materials and routing are defined.- - Jobs A make-to-order item becomes a job that builds it.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/jobs.md b/apps/erp/app/modules/agent/kb/docs/reference/jobs.mddeleted file mode 100644index 3e8b989412..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/jobs.md+++ /dev/null@@ -1,103 +0,0 @@-# Jobs--> One run of production, covering 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.--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-- - **Job number**: A readable `WO`-prefixed id (e.g. *WO000001*), assigned from a per-company sequence.- - **Item**: What's being made. The job copies this item's method on release.- - **Quantity**: Good units to produce.- - **Scrap quantity**: Units expected lost; `production quantity` = quantity + scrap.- - **Quantity complete**: Good units finished so far.- - **Location**: The site the job runs at and receives into.- - **Storage unit**: The bin or shelf finished goods land in when the job completes.- - **Due date**: When it's needed, paired with the deadline type below.- - **Deadline type**: How hard the due date is: `ASAP`, `Hard Deadline`, `Soft Deadline`, or `No Deadline`. The scheduler treats each differently.- - **Source**: The sales order line or quote line it was raised for, if any.- - **Assignee**: The person responsible for the job.- - **Released / Completed date**: Stamped when the job moves to **Ready** and to **Completed**. The span between them is its actual production time.--## Status lifecycle--A job's status drives what you can do with it and what the floor sees.-- - **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.--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.--In the Jobs list, the **Ready** status is labelled **"Released"** — the underlying value is still `Ready`. Note also the spelling: a job is **Cancelled** (two L's), but a job *operation* is **Canceled** (one L). Different enums, different spelling.--## Operations--The job's routing is copied into job-specific **operations** on release, each a process on a work center, carrying its own setup, labor, and machine time. The floor runs the job by running its operations, and each carries its own status. A job reads **"In Progress"** the moment any single operation does.-- - **Todo**: Not yet worked, and not necessarily unblocked.- - **Ready**: Every operation it depends on is **Done**; this one can start.- - **Waiting**: An upstream dependency isn't finished, so it's blocked. It flips to **Ready** on its own once the last one completes.- - **In Progress**: A production event is open while someone runs it.- - **Paused**: Halted; time isn't accruing, but it isn't finished.- - **Done**: Finished. Completing it closes any open events and promotes downstream operations whose dependencies are now all done.- - **Canceled**: Won't run.--### Operation type--Each operation carries an operation type: **Process**, **Assembly**, **Inspection**, or **Outside Processing**. The first three run in-house on one of your work centers and price against its rates, and the type decides which execution view the operator sees on the shop floor. A plain **Process** operation runs the standard operation view. An **Assembly** operation opens a guided, step-by-step build view: 3D animated work instructions play each step's insertion motion, with the parts, tools, and reference images scoped to the step in front of the operator. An **Inspection** operation runs a quality check, recording measured features against a ballooned drawing (the same execution screen the quality module uses for received goods). An **Outside Processing** operation is subcontracted: instead of a work center it points at a supplier process, copies that supplier's cost and lead time, and drives an outside-processing purchase order. The process you pick carries the same type and defaults it on new operations.--An Outside Processing operation's cost and lead time are copied when you set the supplier process, not linked live. If the supplier's pricing changes, re-select the supplier process to refresh it.--### Sequencing--The **order** field sets each operation's position, and operation order (*After Previous* or *With Previous*) says whether it waits for the prior step or runs alongside it. Explicit **dependencies** are what gate a start: an operation can't reach **Ready** until every operation it depends on is **Done**, and finishing one re-checks everything downstream. Two operations with no dependency between them can be **Ready** at once and run in parallel.--### Time and output--The floor reports two separate things against an operation. A production event measures *time*, typed **Setup**, **Labor**, or **Machine**, with a start, an end, and the employee. A production quantity measures *units* (**Production**, `docs/reference/scrap`, or **Rework**) and rolls up automatically into the operation's completed, scrapped, and reworked totals. Scrapped units don't count toward the target, so the operation keeps going until the good quantity is met. Logging time implies no output, and reporting output implies no particular time, which is what lets Carbon cost on actual events while measuring yield on actual quantities. Untracked materials are backflushed as output is reported; tracked materials are issued deliberately.--### Procedures--Each operation can attach a procedure: a reusable set of work instructions keyed to a process. A procedure carries an ordered list of typed **steps** the operator completes (a value, a measurement with a min/max range, a checkbox, a list choice, a timestamp, a person, or a file), any of which can be marked required. It also carries **parameters**, the process settings the work runs at, such as a temperature or speed. Separately, the operation lists the **tools** it requires. A material or tool can be assigned to a single step, or left to apply across the whole operation — so an assembly view shows the operator exactly the parts and tools each step needs as they advance.--Because a procedure is keyed by process, you author it once and every operation running that process can attach it. It's versioned, moving through **Draft** while it's written, **Active** once ready for live work, and **Archived** when retired.--Revising a procedure bumps its version. A job already released keeps the version it was built with, so a change to the master never rewrites instructions on work in flight. Each step is captured as the operator fills it in, giving the finished job a recorded answer for every one it was built with.--## 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.--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.--## Related-- - Start with the order Watch a sales order become batched jobs, each with its own method.- - Manufacturing accounting How a job accumulates cost in work-in-process and settles at close.- - Routings The operations a job schedules onto the floor, before it copies them.- - Work centers The stations and rates that cost and schedule its operations.--## Troubleshooting--### "Manufacturing is blocked"-Releasing the job was stopped because the item's planning settings have manufacturing blocked. Open the item, clear the manufacturing-blocked flag under its planning settings, then release the job again.--### "Cannot modify a locked job. Reopen it first."-The job is **Completed**, **Closed**, or **Cancelled** — locked, as the status callout above describes. A Completed job can be reopened if books haven't been settled; a Closed job's costs are final.--### "No location found"-Creating the job needs a location and the company has none (or no default). Add a location in settings, or set the user's default location.--### "Tracked entity not found"-Completing the job to inventory referenced a serial or batch that no longer exists — usually consumed or deleted since the job's output was recorded. Re-check the job's tracked outputs and materials before completing again.--### "Failed to schedule job"-The scheduling engine errored while placing the job's operations. Check that every operation has a work center (in-house Process, Assembly, and Inspection operations) or a supplier process (Outside Processing operations) and that the job has a due date, then retry from the job's status menu.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/kanban.md b/apps/erp/app/modules/agent/kb/docs/reference/kanban.mddeleted file mode 100644index 31b92fc742..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/kanban.md+++ /dev/null@@ -1,85 +0,0 @@-# Kanban--> Scan-based pull replenishment. A kanban card ties an item to a bin, and scanning it fires a purchase order or a job.--A kanban in Carbon is a physical pull signal: a printed card (or QR code) that lives with the stock it replenishes. It ties one item to a location and storage unit, carries a reorder quantity, and — when someone scans it — creates the downstream order to refill that bin. Nobody watches a number; the card *is* the trigger.--This is deliberately different from a `docs/reference/reordering`. A policy runs inside the planning engine and reasons about on-hand levels, demand, and reorder points. A kanban is manual and physical: a person empties a bin, scans the card, and an order appears. Use a policy for planned, calculated replenishment; use a kanban for two-bin shop-floor pull where a scan should just *do the thing*.--## What a kanban holds--Each kanban is a small record: an item, where it lives, how much to reorder, and how to reorder it.-- - **Item**: The part, material, tool, or consumable this card replenishes.- - **Quantity**: How much to reorder each time the card is scanned (at least 1).- - **Replenishment system**: How the scan replenishes: `Buy` (raise a purchase order) or `Make` (create a job). See replenishment system.- - **Location**: The location whose stock this card refills.- - **Storage unit**: The bin the reordered stock lands in. Defaults from the item's pick method for that location if left blank.- - **Supplier**: Who to buy from. **Required for `Buy` kanbans.**- - **Purchase unit of measure / Conversion factor**: The unit you buy in and how many stock units that equals — applied to the PO line. (`Buy` only.)- - **Auto Release**: On a `Make` scan, release the created job to the floor immediately instead of leaving it in draft. (`Make` only.)- - **Auto Start Job**: On a `Make` scan, drop the operator straight into the first operation in MES. Requires Auto Release. (`Make` only.)- - **Completion Barcode**: The code operators scan to mark the job complete; auto-generated when left blank. (`Make` only.)--The replenishment system enum has three values (`Buy`, `Make`, `Buy and Make`), but the kanban form only offers **Buy** and **Make**. A kanban set to `Buy and Make` is rejected at scan time — a single card fires one clear action, not both.--## The scan flow--Every kanban card carries three scan targets, one per **action**: `order`, `start`, and `complete`. Scanning opens a URL that runs the action and redirects you into the resulting document. The QR codes are color-coded so the right one is obvious on the floor: order is black, start is emerald, complete is blue.--The **order** scan (the create signal) branches on the replenishment system:-- - **Buy**: The scan finds an open (`Draft` or `Planned`) purchase order for that supplier and adds a line for the kanban's quantity — or creates a new draft PO if none exists — then drops you on the purchase order. It applies the kanban's conversion factor, purchase unit, and storage unit to the line.- - **Make**: The scan creates a job for the item at the kanban's quantity, copies the item's method onto it, and links the job back to the card. With **Auto Release** on, it also runs planning and scheduling and marks the job `Ready`; with **Auto Start Job** on, it sends the operator straight into the first operation in MES.--**Start** and **complete** scans only apply to `Make` kanbans. They resolve the linked job's active operation and hand off to the MES operation start / complete screens, so an operator can drive the whole build from the same card that created the job.--A `Make` kanban links to the job it created (`jobId`). If you scan **order** again while that job is still open, Carbon doesn't create a duplicate — it routes you to a collision screen that shows the existing job and offers to remove the link so a fresh scan can start over. Once the job is completed or cancelled, the link clears automatically and the card is free to fire again.--## Output format--How a card is rendered is a per-company setting, **Kanban Output**, with three modes:--| Mode | What a card is |-| --- | --- |-| QR code | A scannable QR code (the default), color-coded per action. |-| Label | A printed PDF label — six to a page — with the QR, item thumbnail, name, storage unit, quantity, and supplier. |-| URL | A copyable link that hits the same scan endpoint directly. |--For `Make` kanbans, the list view also surfaces the **start** and **complete** affordances; `Buy` kanbans show only the order signal, since there's no job to start.--## Kanban vs. reordering policy--Both replenish stock, but they're different tools:--A `docs/reference/reordering` is evaluated by the planning engine, which computes suggested orders from on-hand, demand, and reorder points. A kanban skips all of that: a human scan creates a real purchase order or job on the spot. Reach for a kanban when the shop floor pulls material by hand and you want the refill to be one scan away.--## Related-- - Inventory & locations Where stock lives, the storage units a kanban refills, and how on-hand is tracked.- - Reordering policy The planning-driven alternative — when and how much each part replenishes automatically.--## Troubleshooting--Exact errors from scanning kanban cards.--### "… is not supported"-The **order** scan hit a kanban whose replenishment system is **`Buy and Make`**. A single card fires one clear action, so only `Buy` and `Make` are supported at scan. Set the kanban to `Buy` or `Make`.--### "Supplier is required"-A `Buy` kanban has no supplier. The order scan needs to know who to raise the purchase order against — set the supplier on the kanban.--### "Quantity must be at least 1"-The reorder quantity is below 1. Each scan reorders a fixed amount, which must be at least one stock unit.--### "There's already a job for this kanban."-You scanned **order** on a `Make` kanban that already created a job (it's linked by `jobId`). Carbon won't make a duplicate — it routes you to the collision screen showing the existing job, where you can view it or remove the link so a fresh scan can start over. The link clears automatically once the job is completed or cancelled.--### "No job found for kanban"-A **start** or **complete** scan ran on a kanban that has no linked job yet. Those actions only work on `Make` kanbans after an **order** scan has created the job — scan order first.--### "Kanban is not active"-The scanned card isn't found or belongs to a different company. Confirm the card is current and scoped to your company.--### The list view shows no Start / Complete affordances-Only `Make` kanbans surface **start** and **complete**; `Buy` kanbans show just the order signal, because there's no job to start. How cards render (QR code, Label, or URL) is the per-company **Kanban Output** setting.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/maintenance.md b/apps/erp/app/modules/agent/kb/docs/reference/maintenance.mddeleted file mode 100644index 32643ed3c5..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/maintenance.md+++ /dev/null@@ -1,47 +0,0 @@-# Maintenance--> 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**, raised 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:-- - **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). It also carries a **severity** that says who handles it: **Preventive**, **Operator Performed**, **Support Required**, or **OEM Required**. 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.--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.--## 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.--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.--## Material and cost--Parts used in maintenance are issued from inventory, drawing stock down through the item ledger as a *Maintenance Consumption* movement.--Maintenance material is an **expense**. Issuing it relieves the part's cost at its costing method. With accounting enabled, it posts a journal that debits the **Maintenance** default account and credits inventory, tagged with the dispatch's work center. Unissuing a part reverses it at the cost the dispatch booked. A part issued before maintenance consumption was valued comes back as a stock movement only, because nothing was expensed for it.--Maintenance time is an expense too. Each timecard on a dispatch is costed at its work center's **labor rate** (no overhead), and with accounting enabled posts a journal that debits the **Maintenance** default account and credits **Labor Absorption**, tagged with the employee, work center and location. It posts when the timecard ends (pausing or completing in MES, or saving a timecard with an end time in the back office). Editing a timecard posts the difference and deleting one reverses it.--## Related-- - Work centers The machine a dispatch maintains — and that a Down dispatch blocks.- - Jobs The production a blocked work center can't run until maintenance clears.- - Quality Where a Non-Conformance dispatch originates.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/materials.md b/apps/erp/app/modules/agent/kb/docs/reference/materials.mddeleted file mode 100644index 2d22cdf75b..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/materials.md+++ /dev/null@@ -1,73 +0,0 @@-# Materials--> The property tables that give a material its identity — substance, form, dimension, finish, grade, and type.--A **material** is an `docs/reference/items` of type *Material*: the raw stock you cut, form, and consume rather than a finished part. What makes it a material is a small set of structured **property tables**. Instead of typing "1/16-inch cold-rolled 304 stainless sheet" into a name field, you pick a **substance**, a **form**, a **dimension**, and optionally a **finish**, **grade**, and **type**. Those choices compose the material's identity and drive its readable name and code.--Each material row (`material` table) carries only foreign keys into these lookups: `materialSubstanceId`, `materialFormId`, `dimensionId`, `finishId`, `gradeId`, and `materialTypeId`. All six are nullable, so a material can be as loosely or tightly specified as you need.--## The property tables--Six lookup tables compose a material. Two describe the material in the abstract (**substance** and **form**); the rest are scoped to one of those, so the choices cascade.-- - **Substance**: What the material is made of: steel, aluminum, stainless, titanium. Has a `name` and a `code`.- - **Form**: Its shape or product form: sheet, plate, round bar, ingot. Has a `name` and a `code`.- - **Dimension**: A named size, scoped to a **form** (a sheet's dimension list differs from a bar's). Carries `isMetric`.- - **Finish**: A surface finish, scoped to a **substance**.- - **Grade**: A material grade, scoped to a **substance** (for example a steel grade like 1018).- - **Type**: A named product type keyed to a **substance and a form** together, such as hot-rolled steel plate. Has a `name` and a `code`.--Substance and form stand alone. **Grade** and **finish** are picked from the list for the chosen substance; **dimension** from the list for the chosen form; **type** from the intersection of both. Change the substance and the grade or finish list you can pick from changes with it. This is why the material form on new-material screens fills top down.--## Scope: system-wide or per company--The property tables ship with a starter taxonomy. Every lookup has a **nullable `companyId`**: rows with `companyId` null are system-seeded and visible to every company; rows with your company id are your own additions. You inherit a working set of substances, forms, and grades out of the box and extend it per company without touching anyone else's.--Uniqueness is enforced per scope so a system value and a company value never collide:-- - **materialSubstance**: Substances are unique by code within a company.- - **materialForm**: Forms are unique by code within a company.- - **materialDimension**: A dimension name is unique within its form.- - **materialFinish**: A finish name is unique within its substance.- - **materialGrade**: A grade name is unique within its substance.- - **materialType**: A type is unique by both code and name within a substance-and-form pair.--Only `materialSubstance` and `materialForm` have a `code`, custom fields, and audit columns. `materialDimension`, `materialFinish`, `materialGrade`, and `materialType` are lean lookups with no custom fields and no audit trail, and their seeded ids are human-readable (like `steel-1018`) rather than generated keys.--## How a material references them--A material links to its item positionally, not through a foreign key. When you create one, Carbon inserts the `item` row first with `type` set to *Material*, then inserts the `material` row using the **item's readable id** as `material.id`. There is no `itemId` column. The two are joined on `item.readableId = material.id` within a company, so a material's part number *is* its material id.--Because the join is on the readable id, one material can span several item records: separate **revisions**, and a separate item per stock size. The `sizes` you assign become selectable variants on `docs/reference/jobs` and purchase orders, each its own item row sharing the material's id.--When Carbon generates the material and its ids, `materialSubstanceId` and `materialFormId` are required; dimension, finish, grade, and type are optional. A material is minimally "a substance in a form" and everything else refines it.--## Naming and uniqueness--The property choices are what make a material both readable and unique. Carbon composes the display name and code from the taxonomy rather than from free text: substance, form, and where set the finish, grade, and dimension names build the readable name, while the substance, form, and type **codes** build the material code. Two materials that resolve to the same combination of properties are the same material, which is the point of driving identity from the tables instead of a typed string.--Because dimensions belong to forms and grades and finishes belong to substances, a valid material is always an internally consistent set of choices. You cannot pick a bar dimension for a sheet, or a stainless grade for aluminum, because those lists are filtered to the parent you already chose.--## Related-- - Items A material is an item of type *Material*; item fields like tracking and unit of measure live here.- - Methods & sourcing Materials become the components of a method's bill of materials.--## Troubleshooting--Materials are validated more by required-property gates than by error text. The gates below depend on whether ids are auto-generated.--### "Substance is required" / "Shape is required"-Raised when creating a material with **auto-generated ids** on (`companySettings.materialGeneratedIds`). In that mode Carbon composes the id and name from the taxonomy, so **substance** and **form** ("Shape") are both mandatory; dimension, finish, grade, and type stay optional. Pick a substance and a form.--### "Material ID is required"-Raised when ids are **manual** (`materialGeneratedIds` off): the form shows a Material ID field and it can't be blank. Turn auto-generation on to have Carbon derive the id instead.--### The Material ID field is missing (or is shown) when I didn't expect it-The field's visibility is the `companySettings.materialGeneratedIds` gate. **On** (auto): the id and short description are hidden and derived from the properties, and editing substance/form/type/dimension/finish/grade re-generates the id and name. **Off** (manual): you type the id yourself and it's required.--### Creating a property lookup is rejected for a missing parent-The property tables cascade, and each validator requires its parent scope: **finish** and **grade** need a substance ("Substance is required"), **dimension** needs a form ("Shape is required"), and **type** needs both ("Substance is required", "Shape is required"). Substance, form, and type also require a **"Name is required"** and **"Code is required"**; dimension, finish, and grade require only a name. Select the parent first, then name the value.--### "Failed to insert material" / "Failed to update material"-The save failed at the service layer. A common cause is a material id collision — an id that resolves to an already-existing material (materials are unique by their composed properties), surfaced as a database constraint error. Change a property or the id so the combination is unique.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/mes.md b/apps/erp/app/modules/agent/kb/docs/reference/mes.mddeleted file mode 100644index a02acf9535..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/mes.md+++ /dev/null@@ -1,151 +0,0 @@-# The MES app--> The shop-floor surface where operators run operations, report quantities, issue material, and log their time.--Carbon is two apps over one data model: the ERP is the office, the MES is the floor. Where a planner releases and schedules work in the ERP, an operator picks up that work here, on a station tablet or a shared kiosk, and reports it back in real time. This page is the scannable map of that surface. For the narrative walkthrough, read the `guides/floor`; for the entities behind it, see `docs/reference/jobs`, `docs/reference/picking`, and `docs/reference/quality`.--Every mutation here hits the network. The MES keeps an IndexedDB read-cache for the item and people pickers so a scan stays snappy, but there is **no offline mode**: without a connection you cannot start, report, or issue anything.--## Getting onto the floor--An operator signs in on the login screen with whichever methods the company has enabled: **"Sign in with Google"**, **"Sign in with Outlook"**, **"Sign in with Passkey"**, or **"Sign in with Email"** (a magic link, which lands on a **"Check your email"** confirmation). The available buttons follow the company's `AUTH_PROVIDERS`, so a floor that only allows passkeys sees only that one.--Once in, the operator sets their context. If the company has more than one location, a **"Location"** submenu appears in the sidebar to pick which floor they're standing on. With a single location the choice is skipped entirely. This selection scopes the board, the assigned lists, and everything they report.--### Console (shared-station) mode--A single tablet bolted to a work center can't ask every operator to log in and out all shift. **Console mode** turns that station into a shared kiosk. It's gated by the `consoleEnabled` company setting (Business plan), and when on, the sidebar exposes a **"Console Mode"** toggle. Switching a station INTO console mode takes `settings_update` on the account the station is signed in with; switching it back out is open to anyone, so a station is never stuck.--In console mode an operator identifies themselves with a **4-digit PIN**, not a full login. PINs are generated by Carbon and handed out by an admin — shown once when an operator is created or a PIN is reset, and stored only as a hash (see `docs/reference/permissions`). The station prompts to enter a PIN for the named operator, checks it, and attributes the work to that person. Three things stop it: **"Incorrect PIN"**, **"Too many incorrect PINs. Please wait a few minutes and try again."** after repeated wrong guesses, or **"No PIN set. Ask an admin to set a console PIN for you."** if the person has none yet.--A shared station is meant to hand off. **"Switch Operator"** re-prompts for a PIN so the next person takes over, and **"Pin Out"** clears the current operator. Ending the shift also pins out automatically. The PIN identifies *who did the work*; it is not a substitute for the person's real account.--## The operations board--The released work lands on the **"Schedule"** board: a Kanban with one column per work center, each column holding that center's queued operations sorted by **dispatch priority** so the top card is always the next thing to run.--The board is **display and filter only**. A Display popover lets each station tune its own view, toggling **"Empty work centers"** on or off and showing or hiding **"Customer"**, **"Description"**, **"Due Date"**, **"Duration"**, **"Progress"**, **"Status"**, **"Sales Order"**, and **"Thumbnail"** on each card. Filters narrow the queue by **"Work Center"**, **"Process"**, **"Tag"**, or **"Assignee"**.--Operators can filter and focus, but they cannot drag a card to reschedule it. Rebalancing the plan, moving an operation to a different work center or shifting a job's dates, happens on the `docs/reference/scheduling`, where a planner owns the sequence. What reaches the floor is the result.--### Focused lists--Alongside the board, three sidebar lists cut the queue down to what one operator cares about right now:-- - **Assigned to Me**: Operations assigned to the signed-in operator, grouped by work center. Empty state: **"No assigned operations"**.- - **Active**: Operations the operator currently has running (a production event is open). Empty state: **"No active operations"**.- - **Recent**: Operations the operator recently touched, for quick return. Empty state: **"No recent operations"**.--Each card carries a status badge, its progress, and a deadline chip (**"ASAP"**, **"No Deadline"**, or a date that turns red when overdue). The badge tracks the operation's own status, not the job's.--### Open Jobs--The **"Open Jobs"** list is the job-level view: columns for **Job**, **Item**, **Quantity**, **Tracking**, **Assignee**, **Due Date**, **Deadline**, and **Status**. One relabel to know here, because it trips people up:--The ERP job status jobs reach when they're cleared to run is `Ready`, but the MES Open Jobs list renders that same value as **"Released"** — the floor's word for "you can start this now." It's a display alias, not a different status. `Closed` jobs also surface in this list.--Opening a job shows its operations as a directed graph (the routing DAG), so an operator sees what feeds what. The toolbar lays it out **"Left to Right"** or **"Top to Bottom"** and offers **"Fit"**; nodes flag a **"Rework"** loop and a scrapped-quantity count when they apply.--## Running an operation--Open an operation and the station panel is where the shift actually happens. A big control starts and stops the clock: **"Start"** opens a production event, **"Pause"** closes it. A toggle picks which kind of time is being logged, matching the three production event types: **"Setup"**, **"Labor"**, or **"Machine"**. The panel is tabbed into **details**, **model** (the 3D part view), **procedure** (work instructions, with **attributes** and **parameters** sub-views), and **chat** (a per-operation note thread).--### The guided assembly view--An operation whose type is **Assembly** opens a guided 3D view instead of a plain part model: the assembly plays back one step at a time, and each step lights up the components it installs.--Deep into a build this creates a problem. The parts already fitted sit between the camera and the ones the current step is naming, so the operator is looking at a finished-looking lump and guessing where the next piece goes. A view control in the player toolbar answers that directly:-- - **Build**: The assembly as it stands on the bench right now: everything fitted so far is solid, and anything from a later step is not drawn. This is the default.- - **Focus**: The already-fitted parts fade to see-through, so the current step's components are visible in place without losing the shape around them.- - **Full**: Every component solid, the finished product.--The view only changes what the operator sees. It never changes the step order, the components a step installs, or anything reported back.--The author can also hide parts that get in the way on a particular step, and build a group of parts off to the side before it goes in as one piece. Both play here exactly as authored; see `docs/reference/assembly-instructions`.--Picking a view that hides parts also stops the camera treating them as obstacles. On **Build** and **Focus**, parts from later steps are not drawn, so the view angle never angles around them.--The same control appears in the ERP assembly editor, where an author checks that a step reads clearly before publishing. An author and an operator ask the model the same question, so the buttons mean the same thing on both screens.--### Reporting quantities--Good, bad, and reworked units are reported separately, so yield stays honest:-- - **Log Completed**: Records good units off this operation. **"Complete All"** fills the remaining quantity; **"Total Quantity"** sets it explicitly.- - **Log Scrap**: Records scrapped units against a required **"Scrap Reason"**, so the loss is attributable. The unit flips to **"Scrapped"**, a replacement is spawned, and the routing reopens — see `docs/reference/scrap`.- - **Log Rework**: Records units reworked in place at this operation, without sending them anywhere.--Reworking *in place* is different from sending a unit back upstream. **"Create Rework"** does the latter: pick an operation under **"Go back to operation"**, give a **"Reason for rework"**, and Carbon re-runs every operation from that point forward to the current one.--Closing the operation is a distinct action. **"Finish"** ends any open events and flips the operation to `Done`. If quantities or steps aren't satisfied Carbon warns (**"Insufficient quantity"**, **"Steps are missing"**) and offers **"Finish Anyways"**. A guard also fires when tracked material was never issued; the operator must acknowledge **"I understand and want to complete without issuing"** to proceed.--**"End Operations"** ends *all* the operator's active production events at once (a clean end-of-shift stop) and, when time cards are on, clocks them out. It does **not** complete or finish any operation. The work stays exactly where it was, ready to resume next shift.--### Issuing material--Material is consumed against an operation from the same panel. The **"Issue"** action has an Adjustment Type: **"Add to Inventory"** (a `Positive Adjmt.`) or **"Pull from Inventory"** (a `Negative Adjmt.`). For serial- or batch-tracked material, tabs let the operator **"Scan"** a barcode, **"Select"** from stock, or **"Unconsume"** to return material already issued.--Two edge cases surface right in the flow rather than failing silently. Issuing expired stock is governed by a policy (`Warn`, `Block`, or `BlockWithOverride`); an overridable block asks for a **"Reason for issuing expired stock"**. And when a pick splits a batch, the station reports a **"Batch Split Occurred"** and offers to **"Convert to New Size/Revision"** or scrap the remainder.--### Clocking in and out--When the `timeCardEnabled` company setting is on, the sidebar carries a time card: **"Clock In"** and **"Clock Out"**, a **"My Hours"** view (a table of **Date**, **Clock In**, **Clock Out**, **Duration**), and a **"Clocked in since"** badge with the start time while a shift is open. Leave a shift open too long and Carbon nudges: after twelve hours it asks **"Forgot to Clock Out?"** with **"I'm Still Working"** or **"Set Clock Out"**. Time cards are labor time for payroll and presence; they are separate from the per-operation production events that drive job costing.--## Picking, quality, inspections, and maintenance--The floor does more than run operations. Four adjacent surfaces live in the same app.--### On-floor picking--The **"Picking"** view lists the picking lists assigned to the operator. **"Start"** moves a list to `In Progress`; **"Finish"** takes it to `Completed`. Each line is worked with **"Pick"**, **"Unpick"**, **"Short"**, or **"Scan"** (for tracked material), and a **"No stock"** badge flags an empty source. A short pick asks **"How many were actually picked?"** and records the shortfall with **"Mark Short"**.--Once a list is `Completed` or `Cancelled` it locks. MES shows **"This picking list is closed. Reopen it from the ERP to continue."** — reopening requires an inventory permission the floor doesn't hold. See `docs/reference/picking` for the full lifecycle.--### Quality issues and inspections--An operator who spots a problem raises it without leaving the station. **"Create Quality Issue"** captures an **"Issue Type"**, a **"Priority"** (Low, Medium, High, or Critical), and a **"Description"**, and files a non-conformance for quality to triage. See `docs/reference/quality` for how that record is worked.--Inspections and work instructions run as typed steps inside the procedure tab. A step is one of nine kinds:-- - **Task**: A do-this instruction the operator marks complete.- - **Checkbox**: A yes/no confirmation.- - **Value**: A recorded text or free value.- - **Measurement**: A numeric reading with bounds — out of range, Carbon warns that the value must fall between the configured min and max for the unit of measure.- - **Timestamp**: Captures the moment the step was done.- - **List**: A choice from a predefined list.- - **Person**: Records who performed the step.- - **File**: An uploaded attachment (a photo, a document).- - **Inspection**: A pass/fail gate with a **"Passed Inspection"** switch.--### Maintenance dispatch--When a machine goes down, an operator raises a maintenance dispatch from the floor. Every dispatch created here is `Reactive` by source (scheduled and non-conformance dispatches originate elsewhere). It carries a severity, a priority, and an OEE impact; choosing an OEE impact of **"Down"** ends the work center's active production events, because the center can't produce while it's under repair. The maintenance worker executes it from a detail view with Play, Pause, and Complete controls, a **"Time Worked"** total, and a **"Spare Parts"** section (**"Add & Issue"**), landing on **"Maintenance Completed"** when done.--## Troubleshooting--The exact blocks operators hit on the floor, and what unblocks each.--### "Incorrect PIN"-In console mode the 4-digit PIN entered for the named operator didn't match. Re-enter it, or use **"Switch Operator"** to pick the right person. The PIN identifies who did the work; it is not the person's login password.--### "Too many incorrect PINs. Please wait a few minutes and try again."-Five wrong PINs for one person within 15 minutes lock that person's pin-in, from every station, for a minute at first (doubling on repeat offenses, up to an hour). A station is also capped at 30 wrong PINs in 15 minutes across all operators — and stations signed in with the same account share that cap. Wait, then enter the right PIN.--### "No PIN set. Ask an admin to set a console PIN for you."-The named person has no console PIN, so console mode can't attribute work to them. PINs aren't chosen on the floor: an admin generates one in the ERP — **Reset PIN** under **Settings → Users → Operators** for an operator, or **Set Console PIN** on the **Accounts** list for anyone else (that one also needs `settings_update`). Then the station can pin them in.--### "This picking list is closed. Reopen it from the ERP to continue."-The picking list is already `Completed` or `Cancelled`, which locks it — the floor can't pick, unpick, short, or scan against a closed list. Reopening it requires an inventory permission the MES doesn't hold; a user reopens it from the ERP.--### Finish is blocked or warns ("Insufficient quantity" / "Steps are missing")-**"Finish"** flips the operation to `Done`, but guards fire first. If reported quantity is short you'll see **"Insufficient quantity"**; if procedure steps aren't satisfied, **"Steps are missing"**. You can override with **"Finish Anyways"**. Separately, if tracked material was never issued, the operator must tick **"I understand and want to complete without issuing"** to proceed.--### "Forgot to Clock Out?"-A time card was left open for twelve hours or more. Choose **"I'm Still Working"** to keep the shift open, or **"Set Clock Out"** to close it. Time cards are labor/presence time for payroll — separate from the per-operation production events that drive job costing.--### The Console Mode toggle or the time card isn't there-Both are company-setting gated. **"Console Mode"** only appears when `consoleEnabled` is on and the plan includes it, and then only to an account with `settings_update` (or on a station already in console mode, so it can leave); the **"Clock In"/"Clock Out"** time card (and the 12-hour prompt) only appear when `timeCardEnabled` is on. If a floor needs either, an admin enables it in company settings.--### I can't drag a card to reschedule on the floor-The MES **"Schedule"** board is display and filter only — it never reschedules. Rebalancing the plan (moving an operation to another work center, or shifting a job's dates) happens on the `docs/reference/scheduling`, where a planner owns the sequence.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/methods.md b/apps/erp/app/modules/agent/kb/docs/reference/methods.mddeleted file mode 100644index fdeb087156..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/methods.md+++ /dev/null@@ -1,70 +0,0 @@-# Methods & sourcing--> 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. |--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.--## 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.--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.--## Related-- - Inside the build See method types, kits, and Get Method in the story of a satellite build.- - Reordering policy How the replenishment system pairs with a part's reordering policy.--## Troubleshooting--### "An item cannot be added to itself."-A bill of materials line was set to the same item as the parent being made — a self-reference. Pick a different component item.--### "Method tree not found"-Creating a job or quote method found no method to copy: the item has no **Active** make method. Open the item's methods, activate a version, and retry.--### "Cannot override method of configured item"-The target item requires configuration, so a plain method copy can't overwrite its (generated) method. Change the method through the item's configuration instead, or clear the requires-configuration flag if it's set by mistake.--### "Failed to get make methods"-The source item for a method copy has no make method to copy from. Create and activate a method on the source item first.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/notifications.md b/apps/erp/app/modules/agent/kb/docs/reference/notifications.mddeleted file mode 100644index 5c71b37023..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/notifications.md+++ /dev/null@@ -1,69 +0,0 @@-# Notifications--> Assignments, approvals, expirations, and reminders reach the right people over in-app, email, and Slack, with per-user channel opt-outs by topic.--A notification tells one person that something needs their attention: a job was assigned to them, an approval is waiting, a gauge's calibration lapsed. Carbon fans each one out to up to three channels: the **in-app inbox** (the bell in the top bar), **email**, and **Slack**. In-app is always on; email and Slack are extras a user can mute per topic. One rule holds everywhere: Carbon never notifies you about your own action.--## What raises a notification-- - **Assignments**: Someone is put on a record (job, order, RFQ, invoice, issue, risk, procedure, picking list, stock transfer, dispatch, training). The assignee is the recipient.- - **State changes & responses**: An approval was **requested**, **approved**, or **rejected**; a job **completed**; a change notice entered a new stage; a quote **expired**; a customer or supplier responded to a digital or supplier quote.- - **Expirations & reminders**: Time-driven, raised by scheduled jobs: a **gauge calibration expired**, a **maintenance dispatch** was auto-created, or the weekly **training reminder** rolls up a person's outstanding trainings.- - **Workflow**: A `docs/reference/workflows` reached a **"Notify someone"** step, the only path where you compose the wording yourself. Lands under the **General** topic.--Notifications are informational, never an approval step. Marking one read changes no record; the action lives on the underlying document, and the notification just points you there.--## Topics and channels--Every event maps to exactly one **topic**, the grouping key for the inbox and for muting: Approval, Job, Sales, Quote, Purchasing, Inventory, Quality, Maintenance, Training, Suggestion, Items, and General. Eleven are user-facing on the settings page; only **Items** has no toggle.--The channels differ in what they require:-- - **In-app**: The bell in the top bar. **Always written**, for every recipient, on every event — it cannot be turned off.- - **Email**: A per-notification email with a **View** button. Sent only when the company's plan includes email notifications.- - **Slack**: A DM in the connected workspace. Needs an active Slack integration *and* a matching Slack account for the recipient.--Email is **plan-gated**: companies without the `EMAIL_NOTIFICATIONS` plan feature skip the email channel entirely, regardless of the per-user switch. Slack has no plan gate — it only needs the integration. See `docs/platform/licensing`.--## Muting a topic--Each user controls their own email and Slack delivery under **Account → Notifications**: a grid with one row per topic, a column per channel, a switch in each cell. In-app has no switch.--The default is **on**; flipping a switch off mutes that one topic on that one channel, scoped to the current company. Muting Purchasing on Slack still leaves Purchasing emails, still leaves Slack DMs for Sales, and doesn't carry to another company you belong to. The Slack column appears only when Slack is connected; the email column always shows, with a note when the plan won't deliver it.--## Who receives an expiration or reminder--Assignments have an obvious recipient. The time-driven events resolve their own audience: a lapsed gauge calibration notifies a company-configured user list (set under `docs/reference/calibration` settings), an auto-created dispatch notifies every employee on that work center, and the training reminder is a weekly per-person digest. There is no general "notification group" entity — only gauge-calibration expiry uses a configured list; everything else derives recipients from the record itself.--## The inbox--The bell opens the inbox: recent notifications newest-first with an unread count, each row carrying an icon, a short description, who it came from, and a timestamp. Click through to the record, or mark a row read.--## Related-- - Approvals Requested, approved, and rejected each notify the approvers or the requester.- - Calibration A lapsed calibration notifies the configured group.- - Workflows Compose your own notification from a "Notify someone" step.- - Webhooks For machine-to-machine events rather than a person's inbox.--## Internals and troubleshooting--Every notification starts as a `carbon/notify` event with a specific type; the full set is `NotificationEvent` (`packages/notifications/src/index.ts:7`), destinations are `NotificationDestination` (`index.ts:108`), and the fixed event→topic mapping is `getNotificationTopic` (`index.ts:114`). The topic string is stored on every row (`notification.topic`) and is what a user's opt-out row matches on. Preferences are opt-out rows, one per `(user, company, channel, topic)` in `notificationPreference`; no row means enabled. The fan-out always adds the in-app destination (`notify.ts:210`), drops muted recipients from email/Slack lists (`notify.ts:302`), and skips email entirely without the `EMAIL_NOTIFICATIONS` plan feature (`notify.ts:509`). Most assignments default to email + Slack; callers can override channels per dispatch.--### Why am I not getting email notifications?-Email is plan-gated — check the company's plan first. Then confirm the topic isn't muted for email and that the specific event defaults to the email channel.--### Why am I not getting Slack DMs?-Slack needs an active integration and a matching Slack account for the recipient; users without one are silently skipped. Also check the topic's Slack mute.--### I muted a topic but still get in-app notifications-Expected: in-app is always written and cannot be turned off. Mutes affect only email and Slack.--### I turned a channel on but it still doesn't deliver-On just removes the mute; it doesn't override the channel's preconditions (plan feature for email, integration + account for Slack).--### I did something myself and got no notification-The sender is filtered out of the recipient list. Self-assignments notify nobody.--### A recurring reminder stopped arriving-Repeating email notifications for the same document stop after a few successful deliveries (`MAX_NOTIFICATION_DELIVERIES`, `index.ts:90`); only the weekly training reminder is recurring. The in-app row stands until read.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/onboarding.md b/apps/erp/app/modules/agent/kb/docs/reference/onboarding.mddeleted file mode 100644index b4020397e5..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/onboarding.md+++ /dev/null@@ -1,34 +0,0 @@-# Getting started--> The first-run setup wizard that creates your company, seeds its baseline configuration, and hands you a working tenant.--A brand-new account has no company yet, so Carbon holds you in the setup wizard at `/onboarding` until one exists. Onboarding counts as complete when the company has a **name** and at least **one location**; those two facts are the gate, and finishing the Company step supplies both.--**Theme.** Pick a color theme (cosmetic, stored in a cookie).--**Your profile.** First and last name, both required.--**Company.** Company name, full address, base currency, optional website.--**Industry.** How to start: a `docs/platform/demo-data` for your industry, or a clean, empty company. Carbon staff also get a `docs/platform/backups` restore option. Submitting creates the company and everything a usable tenant needs.--One step appears conditionally: **Plan** (Carbon Cloud only: Stripe checkout; self-hosted installs go straight to the app).--Creating the company also creates a **"Headquarters"** location from your address, links you as an employee, and seeds the baseline: chart of accounts, posting accounts, numbering sequences, payment terms, units of measure. Fiscal year, periods, and sequences are deliberately *not* asked for — they come pre-seeded and you tune them later under `docs/reference/company-settings`.--## Where to go next--The wizard's job is a working tenant, not a configured one. Refine the seeded settings under `docs/reference/company-settings`, set up your document numbering under `docs/reference/sequences`, add your team under `docs/reference/people`, and read the [guides](/guides) for how work flows through Carbon once you're set up.--## Internals and troubleshooting--The completion gate is the layout loader (`routes/onboarding+/_layout.tsx:33-44`); step order is `utils/path.ts:2103-2109`; conditional steps at `_layout.tsx:49-53`. Theme validator `settings.models.ts:306-311`; profile `onboardingUserValidator` (`account.models.ts:12-17`); company `addressValidator` (`settings.models.ts:95-107`). Provisioning runs `provisionOnboardingCompany` (`services/onboarding.server.ts`) with the seed via `seedCompany` (`settings.service.ts:751-765`).--### Stuck in the setup wizard / keeps redirecting to /onboarding-The company lacks a name or a location — there is no `onboarded` flag. Complete the Company and Industry steps; the Industry step creates both at once.--### "Restore from a backup" isn't offered on the Industry step-Internal Carbon staff accounts only. Its absence for regular sign-ups is expected.--### The Plan step isn't showing-Cloud-only (app.carbon.ms). Self-hosted installs skip it and land at `/x`.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/payments.md b/apps/erp/app/modules/agent/kb/docs/reference/payments.mddeleted file mode 100644index 41285375db..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/payments.md+++ /dev/null@@ -1,127 +0,0 @@-# Payments--> Cash receipts, disbursements, and credit or debit memos — the posted transactions that settle AR and AP.--A **payment** is a posted cash event that settles what a party owes you or you owe them. A **Receipt** is money in from a customer; a **Disbursement** is money out to a supplier. Alongside cash, a **credit or debit memo** adjusts a balance without cash. Both are standalone documents with their own lifecycle, and both settle invoices through one shared row: the `docs/reference/invoices`. This page is the entity view. For settlement seen from the invoice's side, see `docs/reference/invoices`.--A payment is a real transaction record, not a field on an invoice. You create a payment, stage which invoices it applies to, then post it. Marking an invoice "Paid" is a *derived* status that follows from posted settlements, not something you set.--## Payments--A payment carries a party, a bank account, a date, a currency, an exchange rate, and a total. Exactly one counterparty is set: a customer **or** a supplier, never both. Direction and party are deliberately decoupled so refunds work: a Disbursement can pay a *customer* (refunding an AR credit) and a Receipt can come from a *supplier* (refunding an AP debit).--| Field | What it is |-| --- | --- |-| `paymentType` | **Receipt** (AR, money in) or **Disbursement** (AP, money out) |-| `customerId` / `supplierId` | Exactly one — a Receipt requires a customer, a Disbursement a supplier |-| `bankAccount` | The GL account the cash moves through |-| `totalAmount` | Cash amount. **May be zero** — see pure credit-application below |-| `currencyCode`, `exchangeRate` | The payment's currency and its rate to base currency |-| `reference`, `memo` | Free-text reference and note |--Payments number per company from a `PAY-YYYY-MM-` sequence.--## Credit and debit memos--A **memo** is payment-shaped but non-cash: a party, an amount, and a **reason** general-ledger account instead of a bank account. It's its own document (not an invoice line). `direction` is whether it credits or debits the party's control account, and the four party-by-direction combinations map cleanly to AR/AP movement:--| Party + direction | Effect |-| --- | --- |-| Customer + **Credit** | AR down (a return or allowance to the customer) |-| Customer + **Debit** | AR up (an additional charge) |-| Supplier + **Debit** | AP down (a credit the supplier owes you) |-| Supplier + **Credit** | AP up (an additional amount you owe) |--A memo belongs to exactly one party. Its reason account is **not** a user choice: at posting Carbon derives it from the company's account defaults by party side (a customer memo uses the sales-discount account, a supplier memo the supplier-payment-discount account) and stamps it on the memo for the audit trail. Direction only flips which side of the entry the control and reason accounts land on.--Credit and debit memos number independently, from `CR-YYYY-MM-` and `DR-YYYY-MM-` sequences.--## The settlement row--Cash and memos both settle open items through one primitive: the **invoice settlement**. Each row nets one **source** against one **target**.-- - **source**: Exactly one of a `paymentId` (cash) or a `memoId` (memo) funds the settlement.- - **sourcePaymentId**: A *prior* posted payment supplying on-account credit. `NULL` means the row is funded by the applying payment's own cash. Either way `paymentId` stays the applying and voiding owner, so a credit-funded row can only sit on a cash payment, never on a memo.- - **target**: Exactly one of a sales invoice, a purchase invoice, or a memo. (A balance-increasing memo is itself an open item, settled by targeting it.)- - **sourceAmount**: Principal consumed **in the funding source's document currency**, stored independently of `appliedAmount`.- - **appliedAmount**: Target-document principal relieved, **in company base currency**.- - **discountAmount**: An early-payment discount you're granting, in **base currency**. **Cash payments only** — a memo-sourced settlement can't carry one.- - **writeOffAmount**: A remainder you're forgiving to the write-off account, in **base currency**. **Cash payments only.**- - **fxGainLossAmount**: The realized FX this one application books, in **base currency**: positive is a gain, negative a loss. Server-calculated at posting, never entered.- - **appliedDate**: When the application takes effect.--A settlement row has to move something: either applied, discount, and write-off sum to more than zero, or the row consumes a positive `sourceAmount`. An AR source only settles AR targets for the same counterparty, and an AP source only settles AP targets — the posting functions enforce party and side consistency (a Receipt rejects purchase invoices, a Disbursement rejects sales invoices, and a payment can only settle its own party's invoices).--Settlements are **staged while their source is Draft** and only go live when it posts. This includes a memo-sourced "apply credit" made through a payment: even though the memo itself is posted, its credit application is tied to the payment applying it and doesn't count until *that* payment posts — so the composer stays consistent with cash applications.--## Lifecycle--Payments and memos share one lifecycle. Draft is freely editable; posting books the GL entries and freezes the applications; voiding reverses. Voided is terminal.-- - **Draft**: The document is being composed. You edit the amount, party, and staged applications, and you can delete it outright. Nothing has hit the ledger.- - **Posted**: The GL journal is written and the settlements go live. Applications are frozen — to change how a posted payment lands, void it and re-enter it.- - **Voided**: A reversing (mirror-image) journal is written and the document is closed. It can't be edited or reused.--Only a **Draft** can be deleted; a **Posted** payment or memo must be voided instead, which preserves history. Voiding is only allowed from **Posted**.--## What posts to the general ledger--Posting only touches the ledger when accounting is enabled for the company; otherwise the document still moves to **Posted** and its settlements still apply, but no journal is written.--- **A payment** books the **bank account** against the **AR or AP control account** (receivables for a customer, payables for a supplier), split per application. Each settlement's discount goes to the discount account and its write-off to the write-off account. Realized FX is computed **per application** — the carrying value released from the funding source, less the base principal relieved on the target — and stored on that settlement row as `fxGainLossAmount`. The journal then books the **net** of those to the realized exchange gain or loss account as one line.-- **A memo** books a balanced two-line entry: the **control account** against the derived **reason account**. Applying a balance-reducing memo to an invoice afterward is GL-neutral — both sit in AR/AP — and realizes no FX, because Carbon only lets you apply a credit whose exchange rate matches the invoice's.--Every payment and memo journal line is tagged with the counterparty's type and entity dimensions, so AR and AP can be reported by customer or supplier. Voiding emits a paired reversing journal rather than mutating the original, and carries the same dimensions so dimension-filtered balances net to zero. See `docs/reference/accounting` for where these entries land.--## On-account credit and overpayment--Applying **more than an invoice's open balance** is blocked per invoice — a settlement can't exceed what's left to collect on that invoice, and the cap counts every posted settlement against it, cash and memo alike.--A payment's **cash total**, though, need not equal what it applies:--- **Overpayment** — when a payment's cash exceeds the invoices it applies to, the remainder stays on the party's account as **on-account credit**, ready to apply to a later invoice.-- **Pure credit-application** — a payment with **zero cash** that only applies the party's existing posted credits to open invoices. This is why `totalAmount` may be zero.-- **Applying more than cash** — when applications exceed the payment's cash, the excess draws down the party's available on-account credit (the net unapplied cash on their other posted same-direction payments). Only same-direction payments contribute: a Receipt from a customer leaves credit, a Disbursement to the same customer consumes it. Applying more credit than the party actually has errors out.--Carbon forgives **dust**. When settlements leave a balance under one cent — smaller than the currency can represent — the invoice reads fully **Paid** rather than sitting a fraction of a cent short.--## The AR / AP workbench--The **Receivables** and **Payables** workbenches present each side as an aged tree: counterparties at the root carrying the current and past-due aging buckets, expanding to the open documents (invoices, credit memos, debit memos) beneath them, plus any unapplied on-account credit. Each side also runs a **GL tie-out** that compares the subledger balance to the AR or AP control-account balance and flags any variance. Payments and memos are the transactions that move those numbers.--## Related-- - Invoices The open items a payment or memo settles, and settlement from the invoice's angle.- - Accounting Where a posted payment or memo's ledger entries land.- - Customers & suppliers The parties a payment or memo is drawn against.--## Troubleshooting--Exact errors users hit when posting or voiding payments and memos.--### "Cannot post payment in status … (only Draft)"-Only a Draft payment can be posted. A Posted payment is already booked; a Voided one is closed.--### "Cannot void payment in status … (only Posted)" / "Cannot void memo in status … (only Posted)"-Voiding applies only to a Posted document. A Draft can simply be edited or deleted.--### "Receipt cannot apply to purchase invoices" / "Disbursement cannot apply to sales invoices"-Payment direction mismatch. A Receipt (customer, money in) settles sales invoices; a Disbursement (supplier, money out) settles purchase invoices.--### "Invoice … belongs to a different customer/supplier than the payment"-The invoice's party doesn't match the payment's. Apply the payment only to that party's invoices.--### "Cannot apply payment to invoice … (must be Submitted/Open)"-The target invoice isn't in its posted-and-payable state (Submitted for sales, Open for purchase). Post the invoice first.--### "Application total … exceeds remaining open amount … on invoice …"-The applied + discount + write-off across the payment's settlements would over-settle the invoice, netting all prior posted settlements (cash and memos). Reduce the amount.--### "Applied exceeds payment cash by … but only … of on-account credit is available"-The payment applies more than its cash, and the shortfall exceeds the party's unapplied on-account credit. Add cash, apply less, or post more credit for the party first.--### "Cannot post payment: memo … is … (must be Posted)" / "Staged credit … exceeds remaining amount … on memo …"-A credit staged on this payment draws on a memo that was voided, or already drawn down, since staging. Post or re-select an available credit memo.--### "Accounting is enabled but this company has no account defaults configured"-Posting a payment or memo to the GL needs the company's account defaults (control, discount, write-off, realized-FX, and — for memos — the reason account). Configure account defaults in accounting settings.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/people.md b/apps/erp/app/modules/agent/kb/docs/reference/people.mddeleted file mode 100644index 350074e6ad..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/people.md+++ /dev/null@@ -1,114 +0,0 @@-# People--> The HR master data a company sets up — employees, departments, shifts, holidays, custom attributes, and time cards.--**People** is where you manage the human side of a company: the employees who work there, how they're organized, when they're scheduled, and the custom fields you track against each one. It sits alongside identity and access — an employee record is the org-and-scheduling layer, while login, roles, and what someone is *allowed* to do live in `docs/reference/permissions`.--A person in Carbon is one record split across three tables. The `user` is the global login identity. The `employee` is that user's membership in *this* company. The `employeeJob` holds their org placement — title, location, department, shift, and manager. They share the same id and are always scoped to a company, so the same person can be an employee of more than one company with a different title and manager in each.--## Employees--The **Employees** directory (under **Manage**) lists everyone in the company. Each row shows first and last name, email, employee type, location, and a **Status** of **"Active"**, **"Invited"**, or **"Inactive"** — derived from the employee record and any pending invite, not stored as a field. Open a person to see their **Profile**, **Job**, and **Notes**, plus a tab per attribute category and a **Timecards** tab when time cards are enabled.--When the company requires two-factor authentication, the list also carries a **Two-Factor** column showing whether each person has an authenticator set up, and the row menu offers **"Reset Two-Factor Auth"** for anyone who has lost their device. Both are covered in `docs/reference/two-factor`.--The **Job** section is the employee master data you edit here:-- - **Title**: The person's job title within this company. This is *not* their permission role — see the callout below.- - **Start Date**: When they started.- - **Location**: The site they're based at.- - **Shift**: Their assigned work schedule (optional). The scheduler reads this to know when the person is available for gated work.- - **Manager**: Who they report to; another employee.--"Job" here means a job *title*, not a production job. The `employeeJob` table is org placement — completely separate from the `job` table that holds work orders on the floor. And a person's title is separate again from what they can *do*: access is granted by their **employee type**, covered in `docs/reference/permissions`.--Adding and removing people (invites, deactivation) is part of the identity and access flow, not this master data. Deactivating a person tears down their membership — it removes them from the company, deletes their job placement, and revokes their access — so treat it as an access action, not an edit here.--## Departments--A **department** is an organizational unit. Each has a name and an optional Parent Department, so departments form a hierarchy you can roll headcount up through. Employees attach to a department via their job placement.-- - **Department Name**: Unique within the company.- - **Parent Department**: The department this one rolls up under; leave empty for a top-level department.--Departments are configuration, so they live under **Configure**. Deleting a department is a hard delete — check that no one is assigned to it first, since removing it leaves those job placements without a department.--## Shifts--A **shift** is a named work schedule tied to a location: a start time, an end time, and the days of the week it runs. You assign a shift to an employee through their **Job** section. Shift membership answers *who's scheduled today*, and it is a real `docs/reference/scheduling` input: the engine intersects each person's shift hours with a machine's operating hours to decide when ability-gated work can run, so editing a shift or a person's shift assignment queues a replan of the affected schedules.-- - **Shift Name**: What the schedule is called.- - **Location**: The site the shift belongs to. Required.- - **Start Time**: When the shift begins.- - **End Time**: When it ends.- - **Days**: Monday through Sunday toggles — the days the shift runs.--Shifts schedule both people and machines. A shift assigned to an employee defines when that person can be scheduled; a shift assigned to a `docs/reference/work-centers` defines that station's operating hours. And for operations whose process requires an ability, who's on shift *is* the binding constraint — no qualified operator on shift means the operation waits.--Deleting a shift is a soft delete — the record is marked inactive rather than removed, so historical assignments stay intact.--## Holidays--A **holiday** is a company non-working day: a name and a date. The year is derived from the date automatically, and the list groups by year so you can review one calendar year at a time.-- - **Holiday Name**: What the day is called.- - **Date**: The calendar date. Its year is computed from this.--## Attributes--**Attributes** are custom fields you track against people — things Carbon doesn't model natively, like a certification expiry, a badge number, or a t-shirt size. They're organized in two layers: an **attribute category** groups related fields, and each **attribute** inside it is one field with a data type.--A category carries a name, an emoji, and a Public toggle that controls whether its attributes show on a person's public profile or stay admin-only.--Each attribute defines:-- - **Name**: What the field is called.- - **Data Type**: The kind of value it accepts. See below.- - **List Options**: The allowed values, only when the data type is *List*.- - **Self Managed**: When on, employees can edit this value on their own profile; otherwise only admins can.--The Data Type comes from a fixed set: **"Text"**, **"Numeric"**, **"Yes/No"**, **"Date"**, **"List"**, and **"User"** (the same list also powers customer and supplier custom fields, which add **"Customer"**, **"Supplier"**, and **"File"**). A **"List"** attribute pulls its choices from its List Options.--Pick the data type when you create the attribute — it's fixed once the attribute has recorded values. Category and attribute deletes are soft deletes (marked inactive), so an attribute you retire won't erase the values already collected against it.--## Time cards--A **time card** is a clock-in / clock-out record for an employee. Time tracking is off by default and turns on per company with a **`timeCardEnabled`** setting; once on, the **Timecards** tab appears on each person and a company-wide list shows up under **Manage**.--Each entry captures the employee, a clock-in time, an optional clock-out time, and a note. An entry with no clock-out is still open — Carbon derives its **Status** from that:-- - **Active**: Clocked in with no clock-out yet — the employee is on the clock.- - **Complete**: Clocked out. The entry is closed and its duration is fixed.--Status is computed, not a stored field, and there is **no approval step** — a completed time card is final, not pending sign-off. Duration is calculated from clock-in to clock-out (or to *now* while still active), and weekly hours roll up from the current week's entries. You can also add, edit, or delete entries directly, so a missed punch can be corrected after the fact.--These are the office-side time card records. On the shop floor, operators clock time against specific job operations in the `docs/reference/mes` — that production time is a separate mechanism from an employee's clock-in/clock-out day.--## Related-- - Permissions Employee types, roles, and what a person is allowed to do.- - Two-factor authentication Authenticator codes, company-wide enforcement, and resetting a lost device.- - MES Clocking time against job operations on the floor.- - Work centers Where operations run, and how they're scheduled and costed.--## Troubleshooting--Validation and lifecycle rules for shifts, holidays, departments, and time cards.--### "Location is required"-Every shift must belong to a location — the `locationId` field is required on the shift form, unlike an employee's own shift assignment, which is optional. Pick a location before saving the shift.--### "Start time is required" / "End time is required"-A shift needs both a start and an end time; neither can be blank. Fill both time fields before saving.--### "Date is required"-Saving a holiday without a date fails. The year is derived from the date, so the date is mandatory (the name is required too — "Name is required").--### Deleting a department fails or orphans people-Department deletion is a **hard delete** — the row is removed outright. Reassign anyone whose job placement points at that department first, otherwise their placements are left with no department. This differs from shifts and attributes, which are soft-deleted (marked inactive) so historical assignments survive.--### The Timecards tab / time card list isn't showing-Time tracking is off by default. It only appears once a company turns on the `timeCardEnabled` setting; until then there is no Timecards tab on a person and no company-wide list under Manage.--### Looking for a time card approval / sign-off step-There isn't one. A time card's status ("Active" while clocked in, "Complete" once clocked out) is computed, not stored, and a completed entry is final — there is no pending-approval workflow. Correct a mistake by editing or deleting the entry directly.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/period-close.md b/apps/erp/app/modules/agent/kb/docs/reference/period-close.mddeleted file mode 100644index d46137d6d3..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/period-close.md+++ /dev/null@@ -1,114 +0,0 @@-# Period close--> Locking and closing a fiscal period: the close checklist, what a locked period stops, and how to reopen.--Bookkeeping happens continuously, but the books get *finalized* one period at a time. An accounting period is a dated window (a calendar month) that every posting falls into by its posting date. Closing it is the act of declaring that month's numbers final: no more postings land in it, and its balances are snapshotted for reporting. Carbon runs this as a three-state lifecycle with a NetSuite-style checklist gating the close.--The whole surface is gated on **accounting enabled** (`companySettings.accountingEnabled`). With accounting off, no journals are written, so there is nothing to close.--## The close lifecycle--A period carries a **close status** (`periodCloseStatus`) that moves in one direction, then back only by explicit reopen. This is a separate axis from the legacy `Active`/`Inactive` flag, which just marks the current period for lazy auto-creation.-- - **Open**: Postings land freely. Operational documents (receipts, shipments, invoices, payments) and journals both post by their date.- - **Locked**: Operational postings are refused; accounting adjustments can still be posted. The staging state you review in before finalizing.- - **Closed**: The month is final. Nothing enters, leaves, or changes. Balances are snapshotted. Reopen to post again.--A period must be **Locked before it can be Closed** — closing an Open period is refused with *"Period must be locked before closing."* The transitions live in `accounting.service.ts` (`lockAccountingPeriod`, `unlockAccountingPeriod`, `closeAccountingPeriod`, `reopenAccountingPeriod`), each rejecting a move from the wrong starting state.--A **Locked** period still accepts *accounting adjustments* — a manual journal posted with an accounting-adjustment intent goes through. It only blocks *operational* documents. A **Closed** period blocks everything, including reversals into it. Lock when operations are done for the month but the accountants aren't; close when the books are final.--## What a locked or closed period stops--The gate lives in `getOrCreateAccountingPeriod`, which every posting path calls before it writes:-- - **Closed**: Any posting is refused with *"Accounting period is closed. Reopen it before posting."* — operational documents and adjustments alike.- - **Locked**: Operational documents are refused with *"Accounting period is locked. Post as an accounting adjustment or unlock the period first."* Accounting adjustments pass.- - **Open**: Everything posts normally.--A database trigger (`check_accounting_period_open`) is the hard backstop underneath the service check: it rejects any `INSERT`, `DELETE`, or period-move of a journal into or out of a **Closed** period, so even a service-role job or edge function can't slip a posting into a closed month. (Locked semantics need actor identity, so they're enforced at the service layer; the trigger only guards the Closed invariant.) The one exception the trigger allows: a `Posted → Reversed` status flip, since the offsetting reversal lands in an open period.--## The close checklist--Closing runs through a persisted checklist — a company-level template of task definitions (`periodCloseTaskDefinition`) plus per-period instances (`periodCloseTask`) materialized the first time you open a period's close screen. Nine system tasks seed with every company (they can be deactivated but never deleted). Each task has a **type** (`Auto`, `Action`, or `Manual`) and Auto tasks carry a **severity**.-- - **Auto**: A readiness evaluator the system runs live — the task shows Done when the check passes, Open when it fails. You don't tick these; they reflect real state.- - **Action**: A task whose completion *is* a lifecycle transition. "Lock the period" is an Action task: its button drives the Open→Locked flip, and its Done state is read from the period's close status, not a stored tick.- - **Manual**: A human sign-off (e.g. "Review financial statements") you mark Done yourself.--Auto tasks fail *closed*: an Auto task whose evaluator can't be found is treated as failing, not silently passed, so the close stays gated and the reason stays visible.--### Severities gate differently--An Auto task's **severity** (`periodCloseTaskSeverity`) decides whether a failing check blocks the close or merely warns:-- - **Blocker**: A failing Blocker check hard-stops the close. You cannot close the period until it passes (or the task is skipped, which Blockers disallow).- - **Warning**: A failing Warning check surfaces the issue but doesn't stop the close. You can proceed, or skip the task with a reason.--The seeded checks, from `computePeriodReadiness`:--| Check | Severity | Fails when |-| --- | --- | --- |-| Post pending operational documents | Blocker | Un-posted receipts/shipments/invoices dated in this period exist. |-| Post or re-date draft journal entries | Blocker | Draft journal entries are dated in this period. |-| Trial balance in balance for the period | Blocker | Any posted journal has unequal debits and credits. |-| Post depreciation runs covering the period | Warning | A draft depreciation run ends in this period. |-| Match & eliminate intercompany transactions | Warning | Unmatched intercompany transactions involve this company. |--A seventh seeded Auto task, **Review negative on-hand inventory** (Warning), has no live evaluator yet, so it fails closed and stays a standing Warning you resolve by skipping with a reason. The remaining three seeded tasks are the two Action steps (**Lock the period**, **Close the period**) and one Manual step (**Review financial statements**).--### Completing and skipping tasks--An `Action`/`Manual` task is marked Done with `completeTask` (optional notes). Any non-Blocker task can be skipped with `skipTask`, which **always requires a non-empty reason** — and the service additionally refuses to skip a **Blocker** task. Auto tasks are never manually completed; their state is derived from the live readiness check every time the checklist loads.--The close itself (`closePeriodWithChecklist`) re-evaluates the whole checklist server-side. It refuses to close unless **every required task resolves to Done or Skipped and no Blocker check is failing**, surfacing the specific blocking task in the error. Never trust a disabled button: the gate is enforced on the server, and the DB trigger is the final backstop.--Periods close and reopen in order. Closing refuses if any **earlier** period isn't Closed (*"Earlier periods must be closed first"*). Reopening refuses if any **later** period is still Closed (*"Later periods must be reopened first"*) — you reopen from the most recent close backwards.--## Reopening--Reopening (`reopenAccountingPeriod`) flips a **Closed** period back to **Open**, clears its `closedAt`/`closedBy`, and deletes the balance snapshots the close wrote (its own and any later snapshot that embedded it, since snapshots are cumulative through their period's end date). After reopening, postings into the month resume and the balance reads fall back to a full-history scan until the period is closed again. A period that isn't Closed can't be reopened.--Unlocking (`unlockAccountingPeriod`) is the milder inverse: it moves **Locked** back to **Open** so operational documents can post again, clearing `lockedAt`/`lockedBy`. It writes no snapshots and touches no balances.--## Fiscal periods and the calendar--Periods are generated per **fiscal year** — twelve monthly periods from the company's fiscal start month, via `createFiscalYearPeriods` (idempotent; it skips any period number already present). Each period carries a `fiscalYear` and `periodNumber` derived from that start month: a fiscal year is named for the calendar year it *ends* in, so a July-start FY beginning in 2025 is FY2026.--Once the calendar is **committed** — any posting exists, or any period is Locked/Closed — the fiscal start month locks (`getFiscalCalendarCommitted`), because re-labeling already-reported periods would rewrite history. An empty, Open period can still be deleted (`deleteAccountingPeriod`) and regenerated; a period with journals posted to it, or in any non-Open state, cannot.--## Related-- - Accounting & the ledger Accounts, journals, dimensions, and the postings every flow produces.- - Invoices Where sales and purchase invoice postings come from — the operational documents a close gates.--## Troubleshooting--Exact errors from the close/reopen lifecycle and the checklist gate.--### "Period must be locked before closing."-You tried to close a period that is still **Open**. The lifecycle is Open → Locked → Closed; closing is only allowed from **Locked**. Run the "Lock the period" checklist step (Open → Locked) first, then close.--### "Accounting period is closed. Reopen it before posting."-The posting date falls in a **Closed** period, and a Closed period refuses every posting — operational documents and accounting adjustments alike. Reopen the period, or change the document's posting date to an Open period.--### "Accounting period is locked. Post as an accounting adjustment or unlock the period first."-The period is **Locked**, which blocks *operational* documents (receipts, shipments, invoices, payments) but still accepts *accounting adjustments*. Either post the entry as an accounting adjustment, or unlock the period back to Open.--### "Earlier periods must be closed first (sequential close)"-Periods close in order. An earlier period is not yet **Closed**, so this one can't close. Close the earliest open period first and work forward.--### "Later periods must be reopened first (reopen from the most recent close backwards)"-Reopening runs in reverse: a **later** period is still Closed, so this one can't reopen. Reopen from the most recent close backwards until you reach this period.--### "A reason is required to skip a task"-Skipping a checklist task requires a non-empty reason. Enter a reason and skip again — a blank reason is rejected.--### "Blocker tasks cannot be skipped; resolve the underlying issue first"-The task's severity is **Blocker**, and Blockers can never be skipped — only resolved. Fix the underlying condition (post the pending document, balance the journal, etc.) so the Auto check passes; only **Warning** tasks can be skipped with a reason.--### The Close button is disabled or the close is refused-The close re-evaluates the whole checklist server-side and refuses unless **every required task is Done or Skipped and no Blocker check is failing** — the error names the specific blocking task. A database trigger (`check_accounting_period_open`) is the final backstop: it raises *"Accounting period is closed for posting date …"* / *"Cannot delete journal …: accounting period is closed"* if anything tries to post into or delete a journal from a Closed period, even a service-role job.--### A period won't delete or its fiscal start month is locked-An accounting period can only be deleted while it's **empty and Open**; one with posted journals, or in any Locked/Closed state, refuses. The fiscal start month locks once the calendar is *committed* — any posting exists, or any period is Locked/Closed — because relabeling reported periods would rewrite history.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/permissions.md b/apps/erp/app/modules/agent/kb/docs/reference/permissions.mddeleted file mode 100644index 14914f9897..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/permissions.md+++ /dev/null@@ -1,108 +0,0 @@-# Permissions and access--> How Carbon decides who can see and change what, from the module-action model to employee types, groups, invites, and shop-floor PIN accounts.--Everyone who works in Carbon signs in against one company, and Carbon decides what they can do from a set of small, explicit grants. A grant is a pair: a **module** (a slice of the app, like Sales or Inventory) and an **action** on it (view, create, update, or delete). Grant someone `sales_view` and they can read sales orders; grant `inventory_update` and they can edit inventory. Nothing is implied and nothing is global. A person with no grants can sign in and see nothing.--You rarely set those grants one at a time. Each employee gets an **employee type** that carries a template of grants, and you tune the exceptions per person from there. This page is the map of that system, from the permission model at the bottom to the people at the top. For the individuals themselves see `docs/reference/people`; for programmatic access that uses the same model, see `docs/building/api-keys`. Permissions decide what someone may do once they are in; for how they prove who they are on the way in, see `docs/reference/two-factor`.--## The module-action model--A single permission is written `<module>_<action>` — `sales_view`, `inventory_update`, `purchasing_create`. The **modules** are a fixed set defined in the database (the `module` enum, `packages/database/supabase/migrations/20240909194622_jobs.sql:10`, with `Quality` added in `20250325103806_quality-module.sql:1`):--Accounting, Documents, Invoicing, Inventory, Parts, People, Production, Purchasing, Quality, Resources, Sales, Settings, and Users. A few internal modules exist in the data (Items, Messaging, Timecards) but are hidden from the permission screens (`apps/erp/app/hooks/usePermissionMatrix.ts:64`), so what you edit is the list above.--The **actions** are always the same four (`apps/erp/app/hooks/usePermissionMatrix.ts:56`):-- - **view**: Read records in the module. Without it, the module's pages are invisible to that user.- - **create**: Add new records.- - **update**: Edit existing records.- - **delete**: Remove records.--Every permission screen in Carbon is the same widget: a matrix with a **row per module and a checkbox per action** (`apps/erp/app/components/PermissionMatrix.tsx`). Toggle a cell for one grant, a row to flip a whole module, or the header to select everything. The employee-type template, a single employee's overrides, the bulk editor, and even an API key's scopes all render this identical matrix, so the mental model is the same everywhere.--Internally each grant stores the list of companies it applies to, so one person can hold different permissions in each company they belong to. In the UI you always edit permissions for the company you're currently in. The special value `"0"` means "all companies" and is how a true cross-company administrator is represented. See `docs/reference/intercompany` for how a user spans several companies.--Carbon enforces these grants in two places at once. The app checks them to show or hide screens and buttons, and the database enforces the same grants through row-level security, so a request that skips the UI still can't reach data the grant doesn't allow. That second layer is what makes the same model safe for `docs/building/api-keys`, which carry scopes in exactly this `module_action` shape.--## Employee types--An **employee type** is a named permission template. Instead of hand-checking dozens of cells for every hire, you define a type once (say "Buyer" with full Purchasing and view-only Inventory) and assign it. Each type is edited with the same matrix under **Settings → Users → Employee Types**, and its grants become the starting point for anyone you assign to it.--Changing a type's permissions only sets the defaults for people assigned *after* the change. Employees already on that type keep the permissions they have. To push a change to existing staff, use the bulk permission editor below.--Two types are seeded and can't be deleted, marked by a stable `systemType` value so an admin can rename their display label without breaking Carbon's internal lookups (`packages/database/supabase/migrations/20260401000000_protect-console-operator-type.sql:6`):-- - **Admin**: The full-access type. Assign it to the people who run the company's Carbon setup.- - **Console Operator**: The type given to shop-floor PIN accounts. It's managed automatically when you add an operator (below), not something you assign by hand.--Every other type is yours to create, rename, and delete. A company can hold at most one type of each system kind, enforced by a unique index (`20260401000000_protect-console-operator-type.sql:20`).--## Per-person overrides and bulk edits--A type gives everyone the same start; real people need exceptions. Open a single employee under **Settings → Users → Accounts** and their permission matrix is pre-filled from their type. Check or uncheck any cell to override just that person. Their type stays the same as a label. Switching the type from the person's screen doesn't silently rewrite their grants either — Carbon asks first whether you want to overwrite the current set with the new type's template or keep what they have.--When a change needs to reach many people at once, use the **bulk permission editor**. Select the users, pick a mode, then set the matrix:-- - **Add**: Layer the selected grants on top of whatever each user already has. Nothing is taken away.- - **Update**: Replace each selected user's permission set wholesale with the matrix below.--This is the tool for propagating an employee-type change to existing staff, or for granting a new module to a whole department in one action. The two modes are the difference between "give everyone these too" and "make everyone exactly this" — reach for **Update** only when you mean to overwrite.--Carbon caches each user's effective permissions for speed. When you change someone's grants, Carbon clears their cache so the new permissions apply on their next request. If a change ever seems not to have taken, it's almost always a stale session — signing out and back in forces a fresh read.--## Inviting people--You don't create passwords for people. You **invite** them by email, and they set up their own sign-in when they accept. Add an employee under **Settings → Users → Accounts** with their name, email, employee type, and location. Carbon creates their account, records an invite, and emails them a link to finish joining.--Because an invite is a real record, an employee has a clear **status** derived from it and their account (the `employees` view, `packages/database/supabase/migrations/20260529160000_employees-view-status.sql:16`):-- - **Invited**: The invite has been sent but not yet accepted. The person can't sign in until they follow the link.- - **Active**: The invite was accepted and the account is live. This is the normal working state.- - **Inactive**: The account has been deactivated, or the invite was revoked before acceptance. No access.--An invite is a company-scoped record keyed by email, and it carries the permission set the person will start with, so their grants are ready the moment they accept. While it's outstanding you can **resend** the invite email or **revoke** it entirely, both from the accounts list. Deactivating an active employee removes them from the company, strips their grants, and marks them inactive; it doesn't delete the person, who may still belong to other companies. For the full picture of a person's record, see `docs/reference/people`.--## Shop-floor PIN accounts--Not everyone who needs to touch Carbon has an email inbox. A machinist on the floor signs in to the `docs/reference/mes` with a **4-digit PIN** on a shared station tablet, not a magic link. These are **console operators**, and they're a distinct kind of account.--Add one under **Settings → Users → Operators** (visible only when console mode is enabled for the company) with a name and a location. Carbon creates a lightweight account with no email login, assigns it the **Console Operator** employee type automatically, and generates a 4-digit PIN that is shown once, when the operator is created — Carbon stores only a hash of it, so copy it then. On the shop floor the operator taps their name and enters the PIN, which Carbon checks before starting their session. If a PIN is lost, reset it from the same screen to generate a new one; the old PIN stops working immediately. Resetting an operator's PIN takes `users_update`; setting a console PIN for any other employee (from the **Accounts** list) also takes `settings_update`.--When a PIN account needs real ERP access, convert it: give it an email and a full employee type, and Carbon promotes the same person to a normal invited user without losing their history (`apps/erp/app/modules/users/users.server.ts:905`). Their old floor activity stays attached to the one identity.--PIN accounts are scoped to the floor by design. They carry only the grants their Console Operator type allows, which is why a lost or shared tablet can't be used to reach the office side of Carbon. For the operator experience itself — clocking on, reporting quantities, issuing material — see the `docs/reference/mes` and the `guides/floor`.--## Where each piece lives-- - People The individual accounts these permissions apply to.- - API keys Programmatic access using the same module-action scopes.- - The MES app Where console operators sign in with a PIN and run the floor.--## Troubleshooting--Access gates, PIN accounts, and why a permission change didn't take.--### "Incorrect PIN"-The 4-digit PIN entered on the shop-floor station doesn't match the operator's account. Re-enter it, or reset the operator's PIN from **Settings → Users → Operators**.--### "Too many incorrect PINs. Please wait a few minutes and try again."-Five wrong PINs for one person within 15 minutes lock that person's pin-in for a while, from every station; the lock lasts a minute at first and doubles on repeat offenses. A single station is also capped at 30 wrong PINs in 15 minutes across everyone, and stations signed in with the same login share that cap. Wait it out — a correct PIN afterwards clears the person's count.--### "No PIN set. Ask an admin to set a console PIN for you."-The person has no PIN on record, and PINs are never chosen on the floor: an admin generates one. For an operator, use **Reset PIN** on **Settings → Users → Operators** (needs `users_update`). For any other employee, use **Set Console PIN** on the **Accounts** list, which also needs `settings_update`, because a PIN lets whoever holds it act as that person on the floor.--### "Group members are required"-A bulk action — bulk permission edit, group edit, deactivate, resend/revoke invite — was submitted with no users selected. Select at least one user first.--### A user can sign in but sees nothing / can't open a module-Permissions are explicit grants; nothing is implied. A person with no `<module>_view` grant can't see that module's pages at all. Grant the needed `<module>_<action>` via their employee type or a per-person override. The database enforces the same grants through row-level security, so this holds even for API access, not just hidden buttons.--### Editing an employee type didn't change existing people's access-Changing a type's permissions only sets the defaults for people assigned *after* the change; employees already on that type keep their current grants. To push the change to existing staff, use the bulk permission editor (**Update** mode to overwrite, **Add** to layer on).--### A permission change doesn't seem to take effect-Carbon caches each user's effective permissions. A change applies on the user's next request; if it appears stale, have them sign out and back in to force a fresh read.--### The Operators screen isn't there-**Settings → Users → Operators** (shop-floor PIN accounts) is visible only when console mode is enabled for the company. Without it, there's no place to add PIN operators — regular users are invited by email under **Accounts** instead.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/picking.md b/apps/erp/app/modules/agent/kb/docs/reference/picking.mddeleted file mode 100644index 18cf789cb8..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/picking.md+++ /dev/null@@ -1,83 +0,0 @@-# Picking lists--> Staging a job's materials from the warehouse to the point of use, tracked line by line.--A picking list is a set of instructions to pull a job's materials out of the warehouse and stage them where the work happens. Each line names one material, how much to pick, where it lives now, and where it's going: the lineside bin at the operation's work center. A pick doesn't consume the stock; it *moves* it, so production can draw it down later.--## What a picking list picks against--Picking is driven by production, not by shipping. A list is generated from **job operations** that still have unstaged material. Carbon looks at each operation's materials, checks whether the operation's own lineside bin already holds enough on hand to cover them, and lists only what's genuinely outstanding. An operation already on a non-cancelled picking list won't be offered again, so you can't accidentally pick the same work twice.--Every line ties back to a specific job, job material, and (usually) job operation. There is no picking against a shipment or a sales order here. Shipments pull finished goods out to customers and are their own document; picking stages raw and component material *into* a job.--A material needs picking only when its lineside bin doesn't already cover the operation's issue quantity. Carbon tests the **actual on-hand at that bin**, not where the job material's record happens to point. Material line-stocked at the work center is already staged, not an outstanding pick.--## Header and line status--A picking list header moves through four states. It starts at **"Draft"**, flips to **"In Progress"** on the first pick, and reaches **"Completed"** when every line is resolved. **"Cancelled"** is a terminal off-ramp.-- - **Draft**: Generated and assigned, nothing picked yet.- - **In Progress**: At least one line has been picked, or the list was reopened with prior progress.- - **Completed**: Every line is fully picked or Cancelled. The list locks.- - **Cancelled**: The list is abandoned. It locks, and its lines no longer block re-generating those operations.--The header status is *derived from its lines* by a database trigger, not set by hand: as lines are picked and unpicked, the header recomputes. It only jumps to **"Completed"** once no line is still outstanding, and it never overrides a **"Cancelled"** header.--Each line carries its own status:-- - **Pending**: Not yet picked. Still outstanding work.- - **Picked**: The pick quantity has been moved to the lineside bin.- - **Short**: Picked less than required, and the shortage is acknowledged.- - **Cancelled**: The line's requirement is dropped. It no longer counts as outstanding.--## Short picks don't silently close the list--When there isn't enough stock, a picker enters how many were actually pulled and marks the line **"Short"**. That is a deliberate, human-acknowledged shortage, not an error.--A **"Short"** line that isn't fully picked keeps the list **"In Progress"** — it does *not* count as resolved. The list completes only through the explicit **"Complete"** action, so a shortage is always signed off by a person rather than being finalized in the background. A **"Cancelled"** line is different: its requirement is gone, so it no longer holds the list open.--## Where picking happens--Picking lists are generated and managed from the ERP, and the same lists are worked on the **MES shop floor**, where an operator opens an assigned list, taps **"Start"** to move it to **"In Progress"**, picks each line, and taps **"Finish"** to complete it. Tracked items (serial and batch) are picked by scanning the specific lot.--Once a list is **"Completed"** or **"Cancelled"** it locks: no further picks or unpicks. **Reopening is ERP-only** — it needs the inventory delete permission, so the floor can't reopen a closed list. The MES surface tells the operator to reopen it from the ERP instead. This keeps a finalized pick from being quietly reworked at the station.--## What posting a pick does to stock--A pick is a **transfer**, never a consumption. Posting one writes two balanced item-ledger entries: a negative at the warehouse source bin and an equal positive at the operation's lineside bin. On-hand doesn't drop; it just relocates to the point of use. Carbon also repoints the job material at the lineside bin, so when production backflushes or issues the material, it draws from where the pick just put it.--- **Untracked material** posts the transfer pair and marks the line **"Picked"**.-- **Serial and batch** picks additionally record a tracked-entity movement, so the exact lot is traceable end to end. Picking part of a batch **splits** it: the picked quantity moves to lineside and the remainder stays behind as a new lot.--An **unpick** reverses the transfer, restores the warehouse source as the consumption point, and returns the line to **"Pending"**. And at job complete, any picked-but-unconsumed remainder is walked back from the lineside bin to the warehouse automatically, so leftover staged stock never gets stranded at the line.--Because a pick only moves stock and never checks availability first, on-hand at a bin can go negative — the same way shipping and issuing do. Carbon lets the floor proceed and reconciles later rather than blocking the work.--## Related-- - Inventory & locations Storage units, the ledger, and how on-hand is tracked.- - Jobs The production work a picking list stages material for.- - Shipments The outbound counterpart: finished goods out to customers.- - Run the floor Where operators work picking lists at the station.--## Troubleshooting--Exact errors from picking, unpicking, reopening, and short picks.--### "This picking list is closed. Reopen it to make changes."-The list is **"Completed"** or **"Cancelled"**, so it's locked — no picks or unpicks. Reopen it first. Reopening is ERP-only and needs the **inventory delete** permission; the floor can't do it.--### "Reopen this picking list from the ERP."-The MES surface returns this when an operator tries to work a list that's already **"Completed"** or **"Cancelled"**. The shop floor can't reopen a closed list — go to the ERP, reopen it there (inventory delete permission), then the operator can continue.--### "Tracked items must be picked via the scan flow"-A serial- or batch-tracked line was picked through the plain quantity path. Tracked items are picked by scanning the specific lot, not by entering a number — use the scan flow on the line.--### "No lineside destination is set for this line"-The line has no lineside bin to move stock into, so the transfer has nowhere to land. The operation's work center needs a lineside storage unit configured before the pick can post.--### A short line won't let the list complete-A **"Short"** line that isn't fully picked still counts as outstanding, so the header stays **"In Progress"** and won't auto-complete. Finish the pick, **"Cancel"** that line to drop its requirement, or use the explicit **"Complete"** action to sign off the shortage — completion is always a deliberate human step, never a background finalization.--### The Reopen or Delete action is greyed out-Reopen requires the **inventory delete** permission and a non-Draft status. Delete additionally requires the **employee** role, a **"Draft"** status, and no already-picked lines. Start/Finish/Cancel need **inventory update** and the matching status (Start from Draft, Finish from In Progress).diff --git a/apps/erp/app/modules/agent/kb/docs/reference/planning.md b/apps/erp/app/modules/agent/kb/docs/reference/planning.mddeleted file mode 100644index 3f23597940..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/planning.md+++ /dev/null@@ -1,59 +0,0 @@-# Planning (MRP)--> 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 that you choose to act on.--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 satellite 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 forecasts (plus the demand and supply *actuals* it read). 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.--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.--## 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*. Each is tuned by reorder point, order quantity, accumulation period, and min/max/multiple rounding. See `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.--**"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"**.--## 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-- - Reordering The replenishment policies and parameters that size a suggestion.- - Jobs What a Make suggestion becomes once you order it.--## Troubleshooting--### "Manufacturing is blocked for item …"-Ordering a suggested job was stopped because that item's planning settings have manufacturing blocked. Clear the flag on the item, then order again from planning.--### "Manufacturing requires configuration for item …"-The item is configurable, and planning can't supply a configuration. Create the job from a context that sets the configuration (for example the sales order line) instead of from the planning page.--### "Failed to create job method for item …"-The job was created but copying the item's method into it failed — usually the item has no **Active** make method. Activate a method on the item, then delete and re-order the job (or run Get Method on it).--### "Failed to load any locations"-Planning needs at least one location. Create one in settings and set a default.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/pricing.md b/apps/erp/app/modules/agent/kb/docs/reference/pricing.mddeleted file mode 100644index c233d98b4e..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/pricing.md+++ /dev/null@@ -1,123 +0,0 @@-# Pricing rules and overrides--> How Carbon resolves the price on a line, from base price through overrides and rules.--When you add an item to a quote line or a sales order line, Carbon doesn't just copy the item's list price. It runs a resolution engine: it starts from a base price, applies any customer-specific override, then layers on discount and markup rules, and records the whole computation as a trace on the line. Two mechanisms feed that engine — price overrides (per-customer negotiated prices with quantity breaks) and pricing rules (company-wide discount/markup logic). This page covers both, and exactly what wins when several apply.--## Pricing rules--A **pricing rule** is a company-scoped rule that adjusts a price up or down. Each rule is a `Discount` or a `Markup`, expressed as either a `Percentage` or a `Fixed` amount, or a `Configuration` rule that prices a configured part's options (below). A rule only fires when the line matches its conditions.-- - **Rule type**: `Discount` (lowers the price), `Markup` (raises it), or `Configuration` (prices a configured part's options).- - **Amount type**: `Percentage` or `Fixed`. A percentage is stored as a fraction from 0 to 1 (10% is `0.10`), so the form caps it at 100%.- - **Amount**: The discount/markup value. For a percentage, the fraction of the running price; for fixed, an absolute amount.- - **Priority**: Higher priority wins among discounts and orders the markup stack. Defaults to `0`.- - **Min / max quantity**: The line quantity range the rule applies to.- - **Customers / customer types**: Restrict the rule to specific customers or customer types. Empty means all.- - **Items / item posting group**: Restrict to specific items or an item posting group. Empty means all.- - **Valid from / valid to**: The date window the rule is active in. Empty bounds are open-ended.- - **Active**: Inactive rules are skipped without being deleted, preserving them for audit.--A rule matches a line only when every set condition holds: the quantity is within `min`/`max`, the date is inside the valid window, and the item and customer fall inside the item/customer restrictions (empty restriction means no restriction). Only matching, active rules go into the calculation.--A `Percentage` amount is a fraction between 0 and 1 (`0.10` for 10%). The rule form rejects anything above 1. If you enter 15 expecting 15%, that's a 1500% adjustment.--### Configuration rules--A `Configuration` rule has no amount or item scope of its own. Instead you pick one **configured part** (only parts that require configuration are listed), and the form shows a **Configuration Prices** section listing that part's configuration parameters. Each amount is a per-unit surcharge added to the line's unit price when the line's configuration matches:--- **List** parameters take an amount per option (`Color = Red → 10`).-- **Boolean** parameters take an amount for when the value is true.-- **Numeric** parameters take an amount per unit of the value (`0.50 × Length`).--Text, date and material parameters can't be priced. Amounts are signed, so a negative amount gives a credit. The surcharges from every matching Configuration rule stack. They are added before the discount and markup rules, so a discount also applies to the surcharges. Each one appears in the price trace as a `Configuration` step labelled with the parameter's name. The customer scope, dates, quantity range and priority work as on any other rule. A price override that doesn't apply rules on top still takes the configuration prices, because they price the chosen options rather than the part.--Configuration prices apply wherever the line has a configuration: quote lines, which reprice when a line is configured or reconfigured, and sales order lines, which have their own **Configure** button.--## Price overrides--A **price override** pins a negotiated price for a specific item, optionally with quantity breaks. Unlike a rule, an override replaces the base price outright rather than adjusting it. Overrides are scoped one of three ways, and a single override targets exactly one scope:--- **Customer** — this item, this customer.-- **Customer type** — this item, everyone of this customer type.-- **All customers** — this item, every customer (both customer and customer type left blank).--An override can't set both a customer and a customer type; the database enforces the exclusive scope. Each override carries a list of **quantity breaks** — rungs of `quantity` → `override price`. For a given line quantity Carbon picks the highest break whose quantity is at or below the ordered quantity. Order eight when the rungs are 1, 5, and 10, and you get the price on the 5-rung.-- - **Item**: The item this override prices.- - **Customer**: Scope to one customer. Mutually exclusive with customer type.- - **Customer type**: Scope to a customer type. Mutually exclusive with customer.- - **Quantity breaks**: One or more `quantity` → `override price` rungs. Duplicate quantities are rejected.- - **Apply rules on top**: When on (the default), pricing rules still layer onto the override price. When off, the override price is final and rules are skipped.- - **Valid from / valid to**: The date window the override is active in.- - **Active**: Inactive overrides are skipped but retained for history.--You can seed one customer's or type's price list from another with **Duplicate price list**, choosing a `skip` or `overwrite` strategy for items the target already prices.--An override sets the starting price directly. Whether rules then adjust it is governed by the override's `Apply rules on top` flag, per override — not a global setting.--## How the engine picks a price--Resolution runs top to bottom. The result, plus every step, is stored on the line as a **price trace**, and the line records which `pricing rule` (if any) drove the final number.--**Start from the base price.** The item's unit sale price, or the cost-rollup price the quote already computed. Trace source: `Base`.--**Apply the best-matching override, if any.** Carbon checks the three scopes in strict precedence and commits to the first that yields a break: **customer override, then customer-type override, then all-customers override.** Once a scope matches, it never falls through to a lower one. If the ordered quantity is below the override's smallest break, that scope doesn't match and Carbon tries the next. The winning override sets the starting price. Trace source: `Override`, `Type Override`, or `All Override`.--**Layer on pricing rules**, unless the winning override set `Apply rules on top` to off. All matching active rules apply here, in the order below. Trace source: `Rule`.--**Clamp and record.** A negative result is floored at zero, and the final price is written to the line along with the full trace.--So the precedence is: **customer override > customer-type override > all-customers override > base price**, and then rules run on top of whichever starting price won.--### What wins when rules collide--Discounts and markups combine differently, and this is the part that surprises people:--- **Discounts don't stack — the single highest-priority discount wins.** When several discount rules match, Carbon ranks them by priority (ties broken by the larger effective amount) and applies **only the top one**. The rest are discarded. You never get two discounts on the same line.-- **Markups stack and compound.** Every matching markup rule applies, in priority order, each computed against the already-adjusted running price. A 10% markup after a 20% markup compounds, it doesn't simply add.--Configuration prices are added first, then the discount, then the markup stack, then the zero floor.--If a customer qualifies for both a 10% and a 15% discount rule, they get 15% only — never 25%, and never both applied in sequence. Markups are the opposite: all of them apply, compounding.--Resolution runs when the item or quantity changes on a line and fills in the unit price. It's a starting point you can still edit by hand; the trace records how the suggested number was reached.--## Where it applies--The same engine prices both surfaces. On a **quote line** it runs during cost rollup and re-price. On a **sales order line** the line form calls the same resolution as you pick an item or change the quantity, filling the unit price and storing the trace. Both line types carry the resolved price and its provenance, so a price traces back to the exact override and rule that produced it.--There's no separate "price list" document in Carbon — the price list is simply the set of overrides scoped to a customer or customer type, and the resolution is computed in the application, not in the database.--## Related-- - Quotes Where negotiated pricing is first recorded, with quantity breaks per line.- - Sales orders The confirmed order whose lines carry the resolved unit price.--## Troubleshooting--Exact form-validation and gates for pricing rules and price overrides.--### "Percentage must be between 0% and 100%"-On a pricing rule with `Amount type` = `Percentage`, the amount is stored as a fraction between 0 and 1, so the validator rejects anything above 1 (100%). If you meant 15%, enter `0.15`, not `15` — entering `15` is a 1500% adjustment and fails this check.--### "Duplicate quantity across breaks"-A price override's quantity-break table has two rungs with the same quantity. Each break must have a unique quantity — merge or renumber the duplicate rung.--### "Cannot set both Customer and Customer Type" / "Cannot set both customerId and customerTypeId"-A price override targets exactly one scope. You set both a customer and a customer type on the same override. Clear one — leave both blank only for an all-customers override. (The first string is the form message; the second is the service-level guard.)--### "At least one break is required"-A price override was saved with no quantity breaks. Add at least one `quantity` → `override price` rung.--### "Valid From must be on or before Valid To"-The override or rule has a `Valid from` date later than its `Valid to` date. Fix the window so from is on or before to, or clear one bound to make it open-ended.--### "Please select a target scope"-Duplicate price list was submitted without picking a target customer or customer type to copy into. Choose the target scope.--### Why did pricing rules not apply to an override price?-The winning override has `Apply rules on top` set to off, which makes the override price final and skips all rules for that scope. Turn `Apply rules on top` on if you want discounts/markups to still layer on. Note also that a rule only fires when the line falls inside its quantity range, date window, and item/customer restrictions — an out-of-window rule is silently skipped, not an error.--### Why can't I edit a price override's Valid To or Active fields?-Those lifecycle fields lock once the override is created unless you have the sales delete permission. Editing a rule or override otherwise needs sales update; creating one needs sales create.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/printing.md b/apps/erp/app/modules/agent/kb/docs/reference/printing.mddeleted file mode 100644index 23f00ea37f..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/printing.md+++ /dev/null@@ -1,136 +0,0 @@-# Printing & labels--> Printer routing, ZPL and PDF labels, and the print-job queue that turns a receipt or a finished job into a label on a shelf.--When you post a receipt, split a batch, or finish the first operation on a job, Carbon can put a physical label on the part without you asking. That path is the printing system: a queue of print jobs, a set of **printer routes** that map a location and a context to a physical printer, and two renderers, ZPL for thermal label printers and PDF for documents.--This is a separate machine from the PDF documents Carbon emails and archives (invoices, purchase orders, quotes, job travelers). Those are generated on demand and delivered as files. Printing is about getting bytes to a **physical printer** on the shop floor, and its default output is a thermal ZPL label, not a page.--## Two renderers, one queue--A print job renders in one of two formats, chosen by the printer it's routed to:--- **ZPL** is the text command language thermal label printers speak. It's the default for part and storage labels. A ZPL label needs a media size with ZPL dimensions configured, or it can't render.-- **PDF** is a real document, rendered by the same React-PDF engine that produces invoices and travelers. Kanban cards are **PDF only**, so a kanban card sent to a ZPL-only printer fails unless a template covers it.--Three document types exist (`packages/printing/src/registry.ts:10`):--- **productLabel**: Labels for tracked entities (serial or batch numbers). Printed from a `Receipt`, `Shipment`, `Operation`, `Entity`, `Job`, `Split`, or `StockTransfer`.-- **storageUnitLabel**: Labels for shelves, bins, and storage locations. Printed from a `StorageUnit`.-- **kanbanCard**: Replenishment cards for kanban bins. Printed from a `Kanban`.--The source document is what maps to the doc types worth printing. Posting a shipment yields product labels; scanning a storage unit yields a storage label. `getDocumentTypesForSource` does that lookup (`registry.ts:49`).--## Printer routes--A **printer route** is one physical printer (`printerRoute` table, `20260326000000_print-manager.sql:37`). Each route carries:--- **name**: What you call the printer, unique per location. "e.g. Zebra 2x1".-- **format**: "ZPL (Thermal Label)" or "PDF (Document)". A CHECK constraint enforces the two values.-- **mediaSizeId**: The label size this printer loads. ZPL printers only offer thermal (ZPL-capable) sizes; PDF printers offer all.-- **printerUrl**: The ProxyBox HTTP endpoint jobs are delivered to, e.g. `https://pbx-XXXX.pbxz.cloud/api/v1/print/…`.-- **apiKey**: Optional key sent as an `X-API-Key` header on delivery.-- **templateId**: A BinderyPress template id. "Leave blank for built-in" — leave empty to use Carbon's built-in renderers.-- **locationId**: The location the printer lives at (optional; a route can be company-wide).--You manage routes under **Settings → Printing** (`apps/erp/app/routes/x+/settings+/printing.tsx`). Each route has a **Test** action that sends a small ZPL test label straight to its `printerUrl`, so you can prove a printer is reachable before wiring it into a workflow. Test print only works for ZPL printers with a media size, and returns `"Test label sent to printer"` on success.--Carbon reaches printers through **ProxyBox**, an HTTP endpoint on the shop-floor network. Carbon never talks to a printer's raw port. Delivery is a POST of the rendered bytes to `printerUrl`. If a route also has a `templateId` and the deployment has a BinderyPress key, rendering is delegated to BinderyPress instead of the built-in renderer.--## Assignments: which printer, in which context--A route is the printer; an **assignment** decides when it's used. Assignments live in the company's printing settings (`companySettings.printing` JSONB), one block per location. Within a location you assign a printer to each **context** (`packages/printing/src/assignments.ts:7`):--- **default**: The location's fallback printer. Every other context inherits this one when it has no printer of its own.-- **shipping**: Used when the source document is a `Shipment`.-- **receiving**: Used when the source document is a `Receipt`.-- **inventory**: Used for a `StockTransfer` or a `StorageUnit`.-- **workCenter**: Per work center, for labels printed from a job operation. A work center with no assignment inherits the location default outright.--Each context row also carries an **Auto-print** switch. When it's on, the matching business event prints without a click. `getPrinterContextForSource` maps the source document to its context, and `resolveContextAssignment` walks the fallback: an unassigned context uses the location's default printer.--The auto-print switch defaults **on** for a context that has no explicit entry, even when the location default has auto-print off. If you want a location's shipping station silent, set its shipping row explicitly, don't rely on the default row.--Because routing is resolved from a Redis cache (key `printing:{companyId}:{locationId}:{context}`, 1-hour TTL), any change to a route or an assignment invalidates the cache for the company. If you edit a printer and the old one keeps printing, the cache is the thing that just got cleared for you on save.--## The print-job queue--Every print, manual or automatic, becomes a **`printJob`** row (`20260326000000_print-manager.sql:80`) and moves through a fixed set of statuses:--- **generating**: The job exists; its content is being rendered (ZPL text or a base64 PDF).-- **queued**: Rendered and ready. Carbon sends a delivery event to push it to the printer.-- **printing**: Handed to ProxyBox; delivery is in flight.-- **completed**: Delivered, or rendered with no printer to send to (a download-only job).-- **failed**: Rendering or delivery failed. The `error` column holds the reason and `attempts` counts tries.--Each job records its `origin`, one of **auto** (an automatic print behind a business event), **manual** (someone clicked print), or **reprint** (re-run from the jobs list). It also keeps the `sourceDocument`, `sourceDocumentId`, a readable id, the `contentType`, and the `printerUrl` it was sent to.--You watch the queue under **Settings → Printing → Print jobs** (`printing.jobs.tsx`). The table streams in real time and shows status, description, source, type, origin, and when. Expanding a row exposes the printer URL, attempts, timestamps, and any error. From there you can **View** the content (ZPL previews via Labelary, PDF via an inline frame), **Reprint** it (a fresh job with `origin: "reprint"`), or **Delete** it.--Print jobs are pruned on a schedule: completed jobs after 30 days, failed jobs after 90. A failed job stays around long enough to diagnose.--## Auto-print behavior--Auto-print is the point of the whole system: labels appear when the physical world moves, no button. After a business event Carbon resolves the printer config for the relevant location and context, checks its `autoPrint` flag (treated as **on** when nothing is configured), and enqueues a job. The whole block is wrapped in try/catch so a printer problem never blocks the receipt, shipment, or job it's attached to.--The wired-in events:--| Event | Context | Prints |-| --- | --- | --- |-| Post a receipt | receiving | Product labels for received tracked entities. |-| Post a shipment | shipping | Product labels, plus `Split` labels for batch splits. |-| Split a stock-transfer line | inventory | A `Split` label, and an `Entity` reprint of the original batch. |-| Complete the first operation on a job (MES) | work center | The job's product label. |--To stop a station auto-printing, turn off Auto-print on that location's context row. To trigger a print by hand instead, use the **Print** button on the relevant screen, or send a source document to the manual print route (`/x/print`), which validates the request and enqueues the same kind of job.--Automatic prints for the same source document are **de-duplicated within 30 seconds**. If two events fire for one entity in quick succession, the second is dropped rather than printing a duplicate label. Manual prints and reprints are never de-duplicated.--## Print vs download--Not every screen has a configured printer. The **Print** button adapts: if the location has any printer routes, it opens a printer picker (pre-selecting the resolved default) and enqueues a job on confirm. If there are no routes at all, it opens a **download** modal instead, offering the same label as a ZPL or PDF file to save and print yourself. So a shop with no ProxyBox printers still gets labels, just as downloads rather than pushes.--## Label sizes--Media sizes are a fixed catalog (`packages/utils/src/labels.ts`): `label2x1`, `label4x2`, metric `label100x50mm` and `label50x25mm`, and PDF-only `avery5163`. Only sizes with ZPL dimensions can print to a thermal printer; a PDF-only size like Avery can't.--Two places set a size. A printer route pins its own `mediaSizeId` (the size loaded in that physical printer). And the company has a **default product-label size** (`companySettings.productLabelSize`), set on the document-template screen, used by the interactive label-download routes when no route dictates one. See `docs/reference/company-settings` for where that default lives, and `docs/reference/documents` for the customizer that styles the built-in label templates.-- - Company settings Where the default product-label size and other company-wide printing defaults live.- - Inventory & locations Storage-unit labels and the tracked entities most print jobs describe.- - Traceability The serial and batch numbers a product label carries.- - Kanban Replenishment bins and the PDF cards you print for them.--## Troubleshooting--Why a label didn't print, and the exact strings the printing system surfaces.--### My label didn't print (no error shown)-Most silent failures are configuration, not crashes. Check, in order: (1) the location + context has a printer route assigned and its **Auto-print** switch is on; (2) the printer route has a `printerUrl` — a route with no reachable ProxyBox endpoint means the job renders but can't deliver; (3) the print job isn't sitting in **failed** in Settings → Printing → Print jobs (open the row for the `error`). Auto-print is also wrapped in try/catch, so a failure is logged as "Auto-print failed" and never surfaces on the receipt/shipment screen — the print jobs list is the place to look.--### Nothing printed after posting, and there's no print job at all-The location/context resolved to no printer *and* auto-print was off, or the source document isn't one Carbon auto-prints from. Auto-print only fires on receipt post, shipment post, stock-transfer split, and MES first-operation completion. For anything else, use the **Print** button or the manual route.--### "Print jobs already exist for … …"-The 30-second auto-dedupe fired: an automatic print job for the same source document id was created less than 30 seconds ago, so this one was dropped (non-retriable) to avoid a duplicate label. Expected when two events fire for one entity in quick succession. To force a second copy, reprint from the print jobs list — reprints aren't de-duplicated.--### "Document type "…" requires a BinderyPress template."-The job's document type has no built-in renderer and the route has no `templateId` (or no BinderyPress key is configured). Either assign a route whose format Carbon can render built-in, or set a BinderyPress `templateId` on the printer route.--### "Rendering failed: …"-The job's content couldn't be generated. A common cause: a ZPL label routed to a media size that has no ZPL dimensions (built-in ZPL requires a ZPL-capable label size). Check the printer route's media size, or that a kanban card (PDF only) isn't being sent to a ZPL-only printer.--### "Delivery timed out — content may have been printed. …"-ProxyBox didn't answer in time. This is intentionally **not retried** because the label may already have printed — retrying would print a duplicate. Verify at the printer; if it didn't print, reprint from the jobs list.--### "Print job not found: …" / "Print job has no content"-The delivery step couldn't load the job or its content. "no content" means the job never finished rendering (still generating, or rendering failed first). Check the job's status and error in the print jobs list.--### "ProxyBox delivery failed: … … — …"-The printer's ProxyBox endpoint returned an HTTP error. The trailing text is ProxyBox's own response. Usually the printer is offline, the `printerUrl` is wrong, or the `apiKey` is missing/invalid. Use the route's **Test** action to isolate reachability.--### "Test print is only supported for ZPL label printers with a media size configured."-The Test action only works on a ZPL-format route that has a media size set. PDF routes and ZPL routes without a media size can't be test-printed.--### "Cannot reprint a job with no content" / "Cannot reprint a job that is still generating"-Reprint copies the original job's rendered content into a new job. A job that never rendered (still generating, or failed before render) has nothing to copy — resolve the original first, or trigger a fresh print from the source document.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/purchase-orders.md b/apps/erp/app/modules/agent/kb/docs/reference/purchase-orders.mddeleted file mode 100644index 740a697e6a..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/purchase-orders.md+++ /dev/null@@ -1,66 +0,0 @@-# Purchase orders--> 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.--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. It only closes when both are satisfied. Receiving and billing advance the same order along separate axes.--## Line fields-- - **Item**: What's being bought.- - **Purchase quantity**: Ordered quantity.- - **Quantity received**: Received so far; `quantity to receive` is the remainder.- - **Quantity invoiced**: Billed so far; `quantity to invoice` is the remainder.- - **Conversion factor**: 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.-- - **Draft**: Being built.- - **Planned**: Suggested by planning.- - **To Review**: A planning-suggested order awaiting review before it's sent.- - **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**: Fully received and invoiced.- - **Closed**: Ended.- - **Rejected**: Sign-off was declined.--## Related-- - RFQ to bill Shop suppliers, place the order, receive and bill against it.- - Receipts How goods are received against a purchase order.- - Approvals Orders at or above a set amount wait for sign-off before they can be sent.--## Troubleshooting--### "Cannot modify a confirmed purchase order." / "Cannot delete lines on a confirmed purchase order."-A purchase order is locked at **"To Receive"**, **"To Receive and Invoice"**, **"To Invoice"**, **"Completed"**, and **"Closed"** — from release onward. Only Draft (and pre-release) orders are freely editable. Reopen the order to make structural changes.--### "Cannot finalize: supplier is not approved (Active)"-The company requires approved suppliers, and this order's supplier is *Pending*, *Inactive*, or *Rejected*. Set the supplier's status to **Active** (or get it approved), then finalize again.--### "You are not authorized to finalize this purchase order"-The order belongs to a different company than the one the user is signed into. Switch to the owning company.--### "Receiving can only be closed or reopened on a released purchase order"-Short-closing a line only applies once the order is released (at "To Receive", "To Receive and Invoice", "To Invoice", or "Completed"). Release the order first.--### "This line cannot be received"-The line is a comment or G/L account line — only item lines carry a receivable quantity.--### "This line has no outstanding quantity to receive"-The line is already fully received; there's nothing left to short-close. Reopen receiving on the line if more goods are expected.--### "Receiving is already closed for this line" / "Receiving is not closed for this line"-The close/reopen action was applied twice. The line is already in the requested state — refresh the page to see the current state.--### "Failed to finalize purchase order"-Generic wrapper. Common underlying causes: no PO number sequence configured for the company, or a PDF/email step failing (separate "Failed to generate PDF" / "Failed to send email" messages). Ask for the full error text and check the supplier contact's email if sending failed.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/quality-documents.md b/apps/erp/app/modules/agent/kb/docs/reference/quality-documents.mddeleted file mode 100644index 9dbf530f42..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/quality-documents.md+++ /dev/null@@ -1,93 +0,0 @@-# Quality documents--> Controlled SOPs and work instructions, versioned so a new revision supersedes the old one without deleting it.--A **quality document** is a controlled procedure: an SOP or work instruction that your team writes once, publishes, and revises under control. Think "Incoming Inspection Procedure" or "Solder Reflow Work Instruction". Each document carries an ordered list of **steps** (a mix of tasks, measurements, checkboxes, and sign-offs) plus a rich-text body, and it moves through a small lifecycle before anyone treats it as authoritative.--The point of controlling it is auditability: you never overwrite a live procedure in place. Publishing a new revision creates a **new version** and archives the one it replaces, so the old text is still there to point an auditor at.--## The lifecycle--A quality document has exactly three states, and only one version of a given document is ever **Active** at a time.-- - **Draft**: The starting state. You edit the name, the work-instruction body, and the steps freely. Not yet authoritative.- - **Active**: The published, in-force revision. Publishing it archives any other Active version with the same name automatically.- - **Archived**: A retired revision. Superseded by a newer Active version, or manually pulled. Still readable; can be reactivated.--You publish from the document header. The button reads **"Publish"** for a Draft, **"Reactivate"** for an Archived version, and **"Submit for approval"** when an `docs/reference/approvals` covers quality documents (more on that below). All three drive the status toward **Active**.--Going Active is exclusive by name. A database trigger archives every *other* Active document that shares this one's name in the same company the moment this one publishes, so "the current procedure" is always a single row. You never end up with two live copies.--Archiving or reverting to Draft is available too, but reverting a version that has a pending approval request is restricted: only the person who requested it or a designated approver can pull it back to Draft.--## Versioning--Versions are the heart of the "controlled" part. A document is identified by its **name**, and each revision is a separate row stamped with a **version** number (starting at 0). The name is unique per version, so `"Incoming Inspection Procedure"` can exist at V0, V1, and V2 side by side.--To revise a published document, open the **Versions** menu in the header and choose **New Version**. Carbon copies the current document's body, steps, and tags into a fresh Draft at the next version number. Nothing about the old version changes. When you publish the new one, the trigger archives the previous Active version. The prior revision is never deleted, so the version history stays intact for audit.--Editing an already-Active document in place is the wrong move for a controlled record. Cut a **New Version** instead. That is what keeps the paper trail honest: an auditor can see exactly what V1 said and when V2 took over.--The header's Versions dropdown lists every revision of the document with its version badge and status, so you can jump between them and read a retired revision without reactivating it.--## Approval--Whether publishing needs a sign-off depends on your company's `docs/reference/approvals`. Quality documents are one of the document types the shared approval engine covers.--- **No approval rule** — the **Publish** button flips the document straight to **Active**.-- **An approval rule applies** — the button reads **Submit for approval** and creating an approval request instead of going Active. A qualified approver then sees **Approve** / **Reject** in the header. On **Approve**, the document transitions to **Active** in one transaction; the approvers are notified when the request is raised.--Only one pending approval request exists per document at a time, and submitting an Archived version for approval moves it back to Draft while the request is open.--## Steps--Each document holds an ordered set of **steps**, the same step model Carbon uses for a procedure on a job. A step has a name, an optional description, a **sort order**, and a **type** that decides what gets recorded when someone runs the document:-- - **Task**: A do-this instruction with no data captured beyond done/not-done.- - **Value**: A free-form recorded value.- - **Measurement**: A numeric reading against a **unit of measure** (required for this type), with optional min and max bounds.- - **Checkbox**: A yes/no confirmation.- - **Timestamp**: A recorded time.- - **Person**: A recorded person.- - **List**: A pick from a fixed set of options you define.- - **File**: A file upload, optionally constrained to given file types.- - **Inspection**: An inspection step.--A **Measurement** step must name a unit of measure and can set a min/max range; a **List** step must supply its options. These constraints are enforced when you save the step.--## What a quality document is not--Quality documents are standalone controlled records. They are **not** attached to a specific process, item, or inspection through a link on the document itself, and they are distinct from two neighbors people often conflate:--- A procedure is the versioned work instruction that gets copied onto a job's operation to give it steps and run parameters. It shares the step model with a quality document but lives in the production method, not the quality library.-- An `docs/reference/inspections` is a ballooned drawing used for first-article and in-process dimensional inspection. That is a separate feature with its own tables.--For the wider quality module (issues, dispositions, inbound inspection), see `docs/reference/quality`.--## Troubleshooting--Mostly preconditions: this surface has few literal errors and a status/approval lifecycle instead.--### "Name is required" / "Quality document is required" / "Type is required"-Form-validation from the document and step validators. A document needs a name; a step needs its parent document, a name, and a step type before it saves.--### "Unit of measure is required" / "List options are required"-Step-type constraints. A **Measurement** step must name a unit of measure; a **List** step must supply at least one option. These are enforced on save.--### "Maximum value must be greater than or equal to minimum value"-A measurement step's min/max range is inverted. Swap the values so the maximum isn't below the minimum.--### "Invalid quality document content format" / "Failed to insert quality document" / "Failed to delete quality document"-The rich-text content didn't parse as valid JSON, or the insert/delete transaction failed (often a permission denial). Reload and retry; check that your role has the needed quality permission.--### Activating a document is stuck in Draft-Documents run Draft → Active → Archived, but if approval is required for `qualityDocument`, submitting a Draft (or Archived) for activation creates an approval request and the document stays Draft until an authorized approver signs off. It only reaches Active after approval — check the pending approval request, and confirm the approver has the right role.--### "Approval request not found"-The approval action references a request that isn't the document's latest — usually a stale page after another approval cycle. Reload the document and act on the current request.--### A new version didn't replace the old record-Versioning copies the source document (content, tags, and all steps) into a new record with an incremented version number rather than editing in place — all versions share the same name and are queryable together. The old version still exists by design; that's the version history, not a duplicate to delete.--### Permission-gated: view, create, edit, or delete a document-Reading needs `quality` **view**; creating needs `quality` **create**; editing and publishing need `quality` **update**; deleting needs `quality` **delete**. A blocked action means your role is missing that permission.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/quality.md b/apps/erp/app/modules/agent/kb/docs/reference/quality.mddeleted file mode 100644index 4ab84578f7..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/quality.md+++ /dev/null@@ -1,61 +0,0 @@-# Quality--> 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. The five options are *Pending* (not yet decided), *Return to Supplier*, *Rework*, *Scrap*, and *Use As Is*.--When accounting is enabled, closing the issue posts each disposition's stock movement to the general ledger. *Scrap* and *Return to Supplier* write the material off — relieving its inventory cost layers and posting **debit Scrap / Cost of Quality, credit Inventory** — so scrapped and returned value lands on a dedicated cost-of-quality account rather than distorting on-hand inventory. *Use As Is* and *Rework* keep the material as stock, restoring any value an earlier rejection had written off. Once an issue has posted these entries it can no longer be reopened; a correction is booked forward as a new adjustment, never by unwinding the original.--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.--## 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).--An inspection moves through **Pending**, **In Progress**, and one of three outcomes: **Passed**, **Failed**, or **Partial**. Dispositioning the lot decides what happens: **Passed** accepts it and the units become available; **Failed** rejects it, marks the units rejected, and opens an issue automatically; **Partial** clears some and holds the rest.--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.--### Executing an inspection--Whatever raised it, an inspection is worked on one screen: a features × samples grid laid over the item's ballooned drawing. Each column is a sample (scanned serials and batches label their own column); each row is a feature to measure, recording a value or a pass/fail. Sample and lot status are derived from those readings against tolerance. The same screen serves an inbound lot held off a receipt and an in-house **Inspection** job operation — an Inspection operation resolves the part's inspection document and runs this grid on the shop floor.--## Also in quality--The module also covers `docs/reference/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 features), and a **risk register**.--## Related-- - Receive, match, bill Where inbound inspection sits in the receiving flow.- - Receipts How received goods are posted — and held for inspection.- - Approvals A quality document can require sign-off before it goes Active.--## Troubleshooting--### "Cannot modify a closed issue. Reopen it first."-**Closed** issues are read-only — dispositions, tasks, and fields are all frozen. Use the reopen action on the issue to bring it back to *In Progress*, make the change, then close it again.--### "Cannot move entities between different NCRs"-Tracked entities can only be moved or split between item rows of the **same** issue. To handle material under a different issue, add the item to that issue and assign the entities there.--### "No linked entities to split"-The item row being split has no tracked entities (serials/batches) linked to it yet. Assign entities to the row first, then split.--### "Split quantity exceeds the linked entity quantity"-The quantity entered for the split is more than the selected entity carries. Enter a quantity at or below the entity's linked quantity.--### "Duplicate entity in split selection"-The same serial or batch was selected twice in the split dialog. Each entity can appear only once — deselect the duplicate.--### "Failed to accept lot" / "Failed to reject lot"-The inbound-inspection disposition failed. Usual causes: the lot was already dispositioned by someone else, or its tracked entities changed state (consumed, moved) since the page loaded. Refresh the inspection and check its current status before retrying.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/quotes.md b/apps/erp/app/modules/agent/kb/docs/reference/quotes.mddeleted file mode 100644index 1ecf1c39ff..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/quotes.md+++ /dev/null@@ -1,65 +0,0 @@-# Quotes--> 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.--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, since 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-- - **Customer**: Who the offer is for.- - **Lines**: The items quoted, each with quantity-break pricing.- - **Revision**: Bumped as the quote is reworked, so history isn't overwritten.- - **Expiration**: When the offer lapses.- - **Status**: Where the quote is in its lifecycle (below).--## Status lifecycle-- - **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**, leaving any **No Quote** line as it is.--## Digital quotes--A **Sent** quote can be shared with the customer over a private link, no login — the URL is in the quote's share dialog. The page shows the quote lines with images, the quantity-break pricing, the totals (subtotal, discount, tax, shipping), the shipping method and payment term, and any external notes. Internal notes are stripped before anything renders, so the customer never sees your working comments.--From that page the customer **accepts** — entering their name and email, picking the quantity break per line, and optionally attaching a purchase-order PDF — and the quote converts straight to a sales order, stamping who accepted it. Or they **reject**, again with a name and email, and the quote moves to **Lost**.--There is no account or password behind the link — whoever holds the URL can open the quote. Send it to the right person and don't post it anywhere public. Both actions are gated on status: only a **Sent** quote can be answered, and once the `expirationDate` passes the page shows an expired state and the buttons are gone.--A companion `docs/reference/customer-portal` then shows the buyer live order and job status as the work proceeds.--## Becoming an order--Converting a quote, internally or by the customer accepting, builds a sales order from its lines at the negotiated price. It opens at **To Ship and Invoice** when a line ships physical goods, or **To Invoice** for a service-only order with nothing to ship. The quote itself flips to **Ordered**, or **Partial** if only some lines converted.--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.--## Related-- - Sales orders What a quote becomes once it's accepted.- - Quote to cash The full narrative: quote, order, ship, invoice, paid.--## Troubleshooting--### "Cannot modify a locked quote. Reopen it first."-A quote locks the moment it leaves **Draft** — any other status (Sent, Ordered, Lost, and so on) is read-only. Use the quote's reopen action to bring it back to Draft before editing. Reopen is disabled once the quote has become an order.--### "An item cannot be added to itself."-In the quote line's bill of materials, the item being made was selected as one of its own components. Pick a different item for the sub-assembly or material line.--### "Failed to convert quote to order"-The conversion action failed after line selection. Have the user retry with the lines re-selected; if it persists, check that the selected lines have valid quantities and pricing, and ask for the full error text.--### "This quote is no longer available for a response." (digital quote)-A customer tried to accept or reject a digital quote whose status is no longer `Sent` (it's already `Ordered`, `Partial`, `Cancelled`, or similar). Only a `Sent` quote can be answered — the accept/reject buttons are hidden once it leaves that state.--### "Oops! The link you're trying to access has expired or is no longer valid." (digital quote)-A `Sent` quote past its `expirationDate` shows the expired state on its public page and can no longer be accepted. Re-send a fresh quote with a new expiration date; the old link stays expired.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/receipts.md b/apps/erp/app/modules/agent/kb/docs/reference/receipts.mddeleted file mode 100644index aa99d9e0b6..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/receipts.md+++ /dev/null@@ -1,53 +0,0 @@-# Receipts--> 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. Posting is what turns a delivery into stock on hand.--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. When accounting is enabled, it also debits inventory (or work-in-process, for outside processing) against a goods-received-not-invoiced accrual that the supplier invoice later clears.--## Fields-- - **Source document**: The purchase order (or transfer) being received.- - **Received quantity**: Units on this receipt, per line.- - **Conversion factor**: Converts the supplier's purchase unit to the stock unit.- - **Location**: Where the goods land.--## Status-- - **Draft**: Being prepared; nothing posted.- - **Pending**: Queued to post.- - **Posted**: Inventory increased and the order advanced.- - **Voided**: Reversed after posting.--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.--## Related-- - Receive, match, bill Posting a receipt in the RFQ-to-bill flow.- - Purchase orders The document a receipt advances.--## Troubleshooting--Exact errors users hit when working with receipts, with cause and resolution.--### "Receipt is empty"-The post dialog blocks posting when no line has a received quantity above zero (and no fixed-asset line is marked received). Enter the received quantity on at least one line, then post again.--### "Batch number is required"-A batch-tracked line has no batch number assigned. Fill in the batch number in the line's batch properties before posting.--### "Serial numbers are missing"-A serial-tracked line has fewer serial numbers entered than its received quantity. Every received unit needs a serial number before the receipt can post.--### "Can only void posted receipts"-Voiding applies only to a receipt at **"Posted"**. A Draft or Pending receipt can be edited or deleted instead — there is nothing to reverse yet.--### "Cannot void a receipt created by a purchase invoice. Void the invoice instead."-This receipt was generated by posting a purchase invoice, so it must be reversed through that invoice: void the purchase invoice and the receipt reverses with it.--### "Cannot delete a posted receipt"-A posted receipt is history and can't be deleted. Void it instead, which writes reversing entries; only Draft and Pending receipts can be deleted.--### "Failed to post receipt"-The generic wrapper when the posting function fails. Most common underlying causes: the `docs/reference/accounting` for the posting date is closed or locked, or the company's default accounts (inventory, goods received not invoiced) aren't configured — the underlying message is then "Error getting account defaults". Check the period first, then the default accounts, and ask the user for the full error text if they have it.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/reordering.md b/apps/erp/app/modules/agent/kb/docs/reference/reordering.mddeleted file mode 100644index bdb6791638..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/reordering.md+++ /dev/null@@ -1,33 +0,0 @@-# Reordering policy--> 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 in an accumulation window | enough to cover that window's demand (plus any safety stock), 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-- - **Reorder point**: On-hand level that triggers a new order. *(applies to: Fixed Reorder Quantity, Maximum Quantity)*- - **Reorder quantity**: Fixed amount to order each time. *(applies to: Fixed Reorder Quantity)*- - **Maximum inventory quantity**: Level to top stock back up to. *(applies to: Maximum Quantity)*- - **Minimum / maximum order quantity**: Clamp each suggested order into an orderable range. *(applies to: all)*- - **Lot size**: Round an order up to a multiple. *(applies to: all)*- - **Demand accumulation period**: Window that groups demand into a single order. *(applies to: Demand-Based Reorder)*- - **Demand accumulation safety stock**: Buffer each accumulation window is topped up to. *(applies to: Demand-Based Reorder)*--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.--## Related-- - Plan ahead See reordering policies feed the planning run that proposes jobs and POs.- - Methods & sourcing The replenishment system that decides buy vs make.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/risks.md b/apps/erp/app/modules/agent/kb/docs/reference/risks.mddeleted file mode 100644index 76defb69e7..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/risks.md+++ /dev/null@@ -1,85 +0,0 @@-# Risk register--> Track risks and opportunities against any entity, rated by severity and likelihood, and drive each to a resolution.--A risk entry is a titled concern you raise against something in Carbon: a supplier who ships late, an item that fails inspection, a job with a tight deadline. Each entry carries a **type** (a downside risk or an upside opportunity), two independent 1–5 ratings for **severity** and **likelihood**, an assignee, and a status you move from `"Open"` toward `"Closed"` or `"Accepted"`. The register lives in the quality module and reads back into the entity it's attached to, so a part's risks show on the part, a supplier's show on the supplier.--Open the register at **Quality → Risks** for the company-wide list, or add one inline from an item, customer, supplier, job, quote line, or maintenance dispatch page.--## What a risk entry holds--Every entry is one row in `riskRegister` (`quality.models.ts:673`, `riskRegisterValidator`). The fields you set:-- - **title**: Short name for the risk. The only always-required text field.- - **type**: `Risk` or `Opportunity` — the register tracks both downside and upside. Defaults to `Risk`.- - **severity**: How bad the impact would be. An independent rating, shown as colored bars (see below).- - **likelihood**: How probable it is. Rated on the same 1–5 scale, independent of severity.- - **status**: Where the entry sits in its lifecycle. Defaults to `"Open"`.- - **source**: The kind of entity this risk is tied to — `Customer`, `General`, `Item`, `Job`, `Quote Line`, `Supplier`, or `Work Center`. Set automatically when you add from an entity page; a standalone risk is `General`.- - **assignee**: The person responsible. Defaults to whoever created the entry when left blank; a change fires a notification (see below).- - **description**: A one-line summary shown in the list and on the entity card.- - **notes**: Rich-text detail, stored as JSON.--Severity and likelihood are stored as two separate 1–5 integers (`CHECK (severity BETWEEN 1 AND 5)`, `migration 20251210060100`). Carbon never multiplies them into a single number or a risk-matrix cell. The UI shows the two ratings side by side, and that is by design. Don't read the register expecting a computed priority.--## Rating severity and likelihood--Both ratings use the same 1–5 scale, rendered by `RiskRating.tsx` as a row of colored bars — one bar per point, colored by level: 1–2 emerald, 3 yellow, 4 orange, 5 red. On an entity card the severity bars sit behind a warning icon and the likelihood bars behind a dice icon, so you can read both at a glance without a number.--Because the two ratings are independent, a low-likelihood, high-severity risk (a rare but catastrophic failure) and a high-likelihood, low-severity one (a frequent nuisance) both show honestly rather than collapsing to the same middle score. You decide how to weigh them.--## Status lifecycle--Status is a free-set enum (`riskStatus`, `quality.models.ts:96`). Carbon does not enforce a state machine — any status can move to any other; you set where the entry stands.-- - **Open**: A newly raised risk, not yet worked. The default for a new entry.- - **In Review**: Being assessed — someone is deciding whether and how to act on it.- - **Mitigating**: A treatment is in progress: you're actively reducing the severity or likelihood.- - **Closed**: Resolved. The risk was mitigated away or no longer applies.- - **Accepted**: A deliberate decision to live with the risk as-is rather than treat it. An off-path resolution, distinct from `"Closed"`.--There is no separate "mitigation action" entity: treatment is tracked by moving the status through `"In Review"` → `"Mitigating"` and recording detail in the notes field, then landing on `"Closed"` (treated) or `"Accepted"` (tolerated).--## Attaching risks to entities--The same register surfaces as a card on the pages of the things it protects. Each entity page mounts the shared card with a fixed `source` and passes the record's id, so the card shows only that entity's risks and new entries inherit the right source. Wired entry points:--- **Items** — parts, materials, tools, consumables, and services, via `ItemRiskRegister.tsx` (`source="Item"`, which also fills the dedicated `itemId` foreign key).-- **Customers** — `CustomerRiskRegister.tsx`, at the customer's Risks tab.-- **Suppliers** — `SupplierRiskRegister.tsx`, at the supplier's Risks tab.-- **Jobs** — `JobRiskRegister.tsx` (`source="Job"`).-- **Quote lines** — `QuoteLineRiskRegister.tsx` (`source="Quote Line"`).-- **Maintenance dispatches** — the dispatch page mounts the card as well.--The `Work Center` source has no dedicated card; work-center risks are created from the company-wide list and joined into the `riskRegisters` view for display. A standalone risk created from **Quality → Risks** with no entity gets `source="General"`.--The company-wide list (`getRisks`) reads the `riskRegisters` view, which joins the work center name onto the row. The per-entity cards and the single-record edit page read the base `riskRegister` table directly, filtered by `source` and the entity id. Same data, two read paths.--## Who can do what--Creating a risk requires only that you're an **employee** of the company — the new-risk route gates on `role: "employee"`, not a `quality` create permission, so anyone on the floor can raise one. Editing and deleting are stricter: the edit route requires `quality` **update** and the delete route requires `quality` **delete**, both enforced again at the database by row-level security (`migration 20251210060100`).--When you set or change an assignee, Carbon fires a `RiskAssignment` notification to that person (a background `notify` job). On edit it only notifies when the assignee actually changed, so re-saving an entry doesn't re-ping the same owner.--## Relation to issues and CAPA--The risk register is its own table and is **not** linked to non-conformances or their corrective/preventive actions in code — a risk does not spawn an issue, and closing an issue does not touch a risk. They're complementary: an `docs/reference/quality` records a defect that already happened and drives it to closure through workflow tasks, while a risk register entry is forward-looking, capturing something that *might* go wrong (or an opportunity worth pursuing) so you can weigh and treat it before it does. Use the risk register for proactive assessment and the issue system for reactive containment.--## Troubleshooting--Mostly preconditions: the risk register has a permission split and a few validators, but no state machine.--### "Severity is required" / "Likelihood is required" / "Title is required"-Form-validation from the risk validator. A risk needs a title, a severity, and a likelihood before it saves.--### Severity or likelihood is rejected outside 1–5-Both are integers constrained to **1 through 5 inclusive**, enforced by a database CHECK constraint. A value outside that range (or non-integer) is refused. There is no separate `score` column — severity and likelihood are stored independently and not multiplied into a combined score anywhere.--### "Failed to create risk" / "Failed to update risk" / "Failed to delete risk"-The write failed — typically a permission denial at the route or row-level security. See the permission split below.--### Status won't advance the way you expect-Risk status (`Open`, `In Review`, `Mitigating`, `Closed`, `Accepted`) is a **free-set enum, not a state machine** — any value can be set from any other; nothing enforces an order or blocks a transition. If a status "isn't sticking," it's a save/permission failure, not a workflow rule.--### Permission-gated: you can create a risk but can't edit or delete it-Creating a risk only requires that you're an **employee** of the company — anyone on the floor can raise one. Editing requires `quality` **update** and deleting requires `quality` **delete**, both enforced again by row-level security. If create works but edit/delete is blocked, your role has employee access but not the quality update/delete permissions.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/rmas.md b/apps/erp/app/modules/agent/kb/docs/reference/rmas.mddeleted file mode 100644index db9376201c..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/rmas.md+++ /dev/null@@ -1,99 +0,0 @@-# RMAs--> Customer return authorizations: receive shipped goods, disposition them, issue credit, and create replacements.--A **return merchandise authorization (RMA)** records what a customer is allowed to send back. It ties the returned quantity to the original sale when possible, then keeps receiving, material disposition, customer credit, and replacement fulfillment connected without treating them as one event.--## What an RMA controls--Confirming an RMA authorizes a return; it does not move inventory or post accounting. The physical movement begins when you choose **Receive** and post the resulting receipt. Credit and replacement actions are separate, so you can receive goods before deciding the final commercial outcome.--Whenever the original delivery is known, add lines from a posted shipment. Carbon shows shipped lines for the selected customer that still have quantity available to return. A source-linked line retains links to its sales order, shipment, and invoice, and confirmation prevents the combined quantity on active RMAs from exceeding what originally shipped.--Use **Add manually** for a blind return when the original document is unavailable. A manual line is not checked against a source-document return limit, so review its item and quantity before confirmation.--An RMA is the authorization, not the receipt. Inventory, cost, and the received counter change only when the return receipt is posted.--## Header fields-- - **RMA ID**: The readable return number. Carbon assigns the next `RMA` sequence when you do not enter one.- - **Customer**: The customer returning the goods; required.- - **Sales Order**: Optional link to the order behind the return.- - **Customer Reference**: The customer's case, ticket, or authorization reference.- - **Customer Contact / Location**: Who is coordinating the return and the customer address involved.- - **Order Date**: The date of the authorization; required.- - **Expiration Date**: The date shown as the authorization's expiry. Carbon does not currently block receiving after this date.- - **Return Location**: The Carbon location that will receive the goods.- - **Currency**: The currency used to value customer credit.- - **Assignee**: The employee responsible for the RMA.--## Line fields-- - **Item**: The item being returned.- - **Return Quantity**: The quantity authorized to come back.- - **Unit Price**: The commercial price used as the basis for customer credit, not the inventory cost of the returned stock.- - **Restock Fee Percent**: The percentage deducted from the gross credit for this line.- - **Return Reason**: A company-defined reason such as Defective, Warranty, or Damaged in Transit.- - **Disposition**: What to do with received material: *Pending*, *Use As Is*, *Return to Customer*, *Scrap*, or *Rework*.- - **Received**: The posted received quantity compared with the authorized quantity.--After confirmation, the item, quantity, unit, price, restock fee, and source links are fixed. Reopen the RMA before changing those structural fields. Return reason and disposition remain the operational controls while the RMA is open.--## Status-- - **Draft**: Build the authorization and add its lines.- - **To Receive**: Confirmed; at least one line still expects goods.- - **Completed**: Every line is fully received or marked **Stop Receiving**.- - **Cancelled**: The authorization was withdrawn before a return remained against it.--Status is driven only by receiving. Posting receipts increases each line's received quantity; voiding a receipt reverses it. **Stop Receiving** short-closes an outstanding line, while **Resume Receiving** makes that remainder expected again. There is no manual Complete action, and issuing credit, setting disposition, creating a replacement, or shipping goods back does not complete the RMA.--Only one Draft receipt can exist for an RMA. Choosing **Receive** again opens that receipt instead of creating a duplicate, and it includes only quantities that are still outstanding.--## Tracked items and disposition--For a Serial- or Batch-tracked item, select the identity that physically arrived on the receipt. The RMA line itself does not reserve an expected identity. Carbon offers consumed identities from posted shipments to the same customer; a blind return can use the normal serial or batch entry flow.--Posting the receipt puts returned tracked stock **On Hold**. Disposition determines what happens next:--- **Use As Is** releases held tracked stock to Available.-- **Scrap** or **Rework** opens a linked quality issue. Closing that issue performs the material disposition; Rework currently releases the tracked stock and does not create a production job.-- **Return to Customer** makes received quantity eligible for a no-revenue shipment back to the customer.--A fully received RMA becomes Completed immediately. Set the intended disposition while the RMA is still open when possible, especially on a one-line return.--## Credit and replacement orders--**Issue Credit** creates a Draft customer credit memo for received quantity that is not already reserved by another non-voided memo. The amount is quantity × unit price, less the restock fee. Creating the memo does not post it, apply it to an invoice, or refund cash; finish those steps in the normal memo and settlement flow.--**Create Replacement** creates a separate Draft sales order. It copies every authorized RMA line at its full return quantity and resolves current pricing, so review the new order if the replacement should be free or use warranty pricing. Replacement shipment has no effect on RMA completion.--## Related-- - Sales orders See the customer commitment and source lines behind an RMA.- - Receipts Learn when posting brings returned goods into inventory.- - Issues Resolve Scrap and Rework dispositions through quality.- - Invoices and credit memos Post and settle the customer credit created from an RMA.--## Troubleshooting--### "Cannot confirm a return order with no lines"-Add at least one return line, then confirm again.--### "Line …: cannot authorize … — only … remains returnable for the linked document line"-Another active RMA already reserves part of the source quantity, or the requested quantity exceeds what shipped. Reduce the line, cancel the competing authorization, or use the correct source line.--### "Cannot reopen: quantity has already been received. Void the receipt first."-A posted receipt still owns returned quantity. Void it before reopening the RMA to Draft.--### "Cannot cancel: a receipt exists for this return order. Delete or void it first."-Even a Draft receipt blocks cancellation. Delete a Draft receipt or void a Posted one, then cancel.--### "Cannot void: a credit memo exists for this return order. Void it first."-A non-Voided memo reserves credit against the return. Void the memo before voiding its receipt.--### "Cannot void: stock received on this return was already consumed. Correct the remainder with an inventory adjustment instead."-Something has already consumed the receipt's cost layer. The receipt can no longer be reversed safely; correct the remaining inventory instead.--### "Configure at least one Issue Type and a location to escalate this line to an Issue"-Scrap and Rework need a quality issue type plus either a return location or user-default location. Configure both, then choose the disposition again.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/routings.md b/apps/erp/app/modules/agent/kb/docs/reference/routings.mddeleted file mode 100644index 3a2e047e84..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/routings.md+++ /dev/null@@ -1,34 +0,0 @@-# Routings--> 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."--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-- - **Operation**: The step performed (its description, e.g. *Cut*, *Weld*, *Inspect*).- - **Work center**: Where the operation runs; supplies the rates used for scheduling.- - **Setup time**: Fixed time to prepare the operation, independent of quantity.- - **Labor time**: Operator time per unit, in the operation's standard factor unit.- - **Machine time**: Machine time per unit, in the operation's standard factor unit.- - **Sequence**: 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.--A routing with no operations can't be scheduled — the job will sit in **Planned** until at least one-operation exists.--## Related-- - Run the floor See routings in context: how a job inherits one and turns it into a schedule.- - Methods & sourcing Where a routing's operations live alongside the part's materials.- - Jobs What a routing operation becomes once a job copies it, runs it, and attaches its procedure.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/sales-orders.md b/apps/erp/app/modules/agent/kb/docs/reference/sales-orders.mddeleted file mode 100644index c846e15c43..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/sales-orders.md+++ /dev/null@@ -1,52 +0,0 @@-# Sales orders--> 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.--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--A line carries a **type** that sets what it sells: *Part*, *Service*, *Material*, *Tool*, or *Consumable* for the five item kinds, plus *Fixed Asset* and *Comment* (a non-charged note line).-- - **Item**: What's being sold.- - **Sale quantity**: Ordered quantity.- - **Quantity sent**: Shipped so far; `quantity to send` is the remainder.- - **Quantity invoiced**: Billed so far; `quantity to invoice` is the remainder.- - **Unit price**: Price per unit, net of discounts.- - **Method**: 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.-- - **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**: Ended early.- - **Cancelled**: Abandoned.--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.--## Related-- - Quote to cash How a quote becomes a sales order, then ships and invoices.- - Jobs A make-to-order line becomes a job that builds the item.--## Troubleshooting--### "Cannot modify a confirmed sales order." / "Cannot modify a locked sales order. Reopen it first."-A sales order is locked at **"To Ship and Invoice"**, **"To Ship"**, **"To Invoice"**, **"Completed"**, **"Cancelled"**, and **"Closed"** — that is, from confirmation onward. Only a **Draft** order is freely editable. Reopen the order to Draft to change it (fulfillment that already happened stays on the books).--### "Cannot add lines to a locked sales order. Reopen it first." / "Cannot delete lines on a locked sales order. Reopen it first."-Same lock as above, hit from the line editor. Reopen the order to Draft before adding or removing lines.--### "No jobs were created"-The convert-lines-to-jobs action found no eligible lines — none of the selected lines is fulfilled by making (Make method). Check each line's method; *Pull from Inventory* and *Purchase to Order* lines never produce jobs.--### "Failed to insert job"-Converting a line to a job failed. Usual causes: the item has no active make method, or no valid location is set. Check the item's method status and the order's location, then retry.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/sales-rules.md b/apps/erp/app/modules/agent/kb/docs/reference/sales-rules.mddeleted file mode 100644index f80e8d23d4..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/sales-rules.md+++ /dev/null@@ -1,127 +0,0 @@-# Sales rules--> Predicate guards on sales documents: block a restricted item with an error, or warn and let the user acknowledge and continue.--A **sales rule** is a guard that runs when an item is put on a sales document. It checks the line against a-condition you define and, if the condition fails, either **blocks** the write or **warns** and lets the user-acknowledge and continue. Rules fire on **quote lines**, **sales order lines**, and **sales-invoice lines**.--For example, to keep an export-controlled part away from a restricted destination: scope the rule to the-item's group, fire on all three surfaces, and require `customer.location.countryCode` `notIn` your restricted-list. Severity **error**, message `` `{item.id}` cannot ship to this destination``. Add that item to a quote-for a customer in a listed country and the line is stopped with exactly that message.--Sales rules are a **compliance** layer, not a hint. They re-run at every commitment point — finalizing a-quote, converting it to an order, confirming the order, posting the shipment, posting the invoice — so a line-that slipped in through a conversion, an import, or the API is still caught before it matters. A blocked-document writes nothing.--## What a rule checks--Each rule holds a small **condition tree**, a match kind over one or more field/operator/value rows:--- **Match kind**: `all` (every condition must hold), `any` (at least one), or `none` (none may hold).-- **Field**: chosen from a fixed registry: item facts (`item.type`, `item.replenishmentSystem`,- `item.itemTrackingType`, item custom fields), customer facts (`customer.customerTypeId`,- `customer.customerStatusId`, customer custom fields), the document's ship-to country- (`customer.location.countryCode`), and the line's `transaction.quantity`.-- **Operator**: `eq`, `neq`, `in`, `notIn`, `isSet`, `isNotSet`, `gt`, `lt`.--The **message** shown on a violation supports tokens like `` `{item.id}` `` and-`` `{customer.location.countryCode}` ``, so the text can name the offending line. The rule "passes" when its-conditions hold; a violation fires when they don't.--Aside from the `isSet` / `isNotSet` checks, a condition pointing at a field that has **no value** fails as a-*"…is required"* violation. A country rule on an order with no ship-to location fails closed as *"Customer-location is required"* rather than waving the line through. The same applies to a standalone invoice line-with no source order: it has no ship-to, and the bill-to address is never substituted for it.--## Where rules fire--A rule lists the **surfaces** (sales-document line types) it applies to: `quoteLine`, `salesOrderLine`, and-`salesInvoiceLine`. Two kinds of checkpoint run them:--- **Line checks** as a line is created or edited on a quote, sales order, or sales invoice.-- **Document gates** at each commitment point: finalizing a quote, converting a quote to an order (or an RFQ to a quote),- confirming a sales order, posting its shipment, and posting a sales invoice. The gate re-reads **every**- line on the document, so it also catches staleness — a rule authored after the line was written, or a- ship-to that changed.--The ship-to that country rules evaluate is where the goods actually go: a drop shipment-overrides the order header's address, and an invoice line converted from a sales order resolves its-destination through that order.--On the customer-facing digital quote page, `error` violations refuse acceptance with a neutral message and-your internal rule text never reaches the customer. `warn` violations are logged for the seller and the-acceptance proceeds — there is no employee present to acknowledge them.--## Block or warn--| Severity | Behavior |-| --- | --- |-| `error` | Blocks the line or document until the condition is satisfied. Cannot be acknowledged past. |-| `warn` | Surfaces the message but lets the user **acknowledge and continue**. |--Both outcomes leave a trail: a blocked write and an acknowledged warning are each recorded as evidence-(rule, document, line, item, who, when), and the people in the **sales rule notification group**-(Settings → Sales) are notified by email.--## Scope and assignment--A rule reaches the lines it applies to in one of two ways:--- **By filter**: scope to **item types** and/or **item groups**, combined with OR or AND. An empty filter- matches **every** item.-- **By assignment**: pin a rule to a specific item from the **Sales rules** card on that item's Inventory- page.--Unlike `docs/reference/storage-rules`, sales rules always target items — there is no-work-center target.--## Rule fields-- - **Name**: A unique name for the rule.- - **Severity**: `error` (block) or `warn` (acknowledge and continue).- - **Conditions**: The match kind plus the field / operator / value rows.- - **Message**: Shown on a violation; supports `{token}` interpolation.- - **Surfaces**: Which sales-document lines the rule fires on.- - **Item filters**: Item types and/or groups to scope a rule (empty = all items).- - **Active**: Whether the rule is currently evaluated.--## Where to manage them--Sales rules live in the **Sales** area, under **Sales Rules**. Create, edit, and toggle them there. To attach-an existing rule to a single item, use the **Sales rules** card on the item's Inventory page.--Sales rules are an **Enterprise** capability, gated to the **Business** plan. On other plans the screen shows-an upgrade prompt and no rules are evaluated.--## Related-- - Storage rules The sibling rule family: the same condition builder, applied to inventory transactions instead of sales- documents.- - Quotes The first surface: rules run as quote lines are written and again at finalize and convert.- - Sales orders Rules gate order confirmation and the shipment that fulfills it.- - Invoices The last checkpoint: an invoice raised with no upstream order is still checked at post.--## Troubleshooting--Sales-rule violations carry **custom, company-authored messages** — there is no fixed error string to match.-If a user pastes an unfamiliar error from saving a quote, sales order, or sales invoice line, or from-finalizing, converting, confirming, or posting one of those documents, and it reads like a business rule-("cannot ship to this destination", "customer status", a country or item named in the text), it is very-likely a sales rule firing.--How to resolve one:-1. Find the rule: **Sales → Sales Rules** — the rule's *Message* column will match the pasted text (token- values like the item id filled in).-2. If the document is wrong, fix the data the rule checks: the customer's ship-to location, the customer- type or status, the item on the line.-3. If the rule is wrong or too strict, edit its conditions, change its severity from `error` to `warn`, or- toggle it off (*Active*).-4. A `warn`-severity violation isn't an error — the user can acknowledge the dialog and resubmit; it goes- through. Acknowledgments are recorded and the sales rule notification group is emailed.--A violation ending in "…is required" means the rule checked a field that has no value on the line — most-often a missing ship-to location on the document. Supply the value rather than changing the rule.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/scheduling.md b/apps/erp/app/modules/agent/kb/docs/reference/scheduling.mddeleted file mode 100644index 880f131585..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/scheduling.md+++ /dev/null@@ -1,113 +0,0 @@-# Scheduling--> Finite-capacity scheduling — how jobs are placed onto real work-center and operator calendars, and the boards that show and steer the result.--Scheduling in Carbon answers three questions for the floor: *when* will each `docs/reference/jobs` actually run, *in what order* does each `docs/reference/work-centers` pick up its operations, and *does the plan fit* the capacity you really have. The engine is **finite-capacity**: it places every operation forward onto real work-center operating hours and, where an operation needs a qualified operator, onto real people's shifts. A machine can hold one operation at a time, so a busy shop genuinely pushes work out rather than pretending everything fits.--## Where scheduling lives--Everything is reached from the **Production** area of the ERP.--- **Priorities** (under *Scheduling*) is where you steer. It opens on a **Week** view of jobs laid out by due date; a view switcher at the top-left also offers **Month** and a **Work Centers** view, an operations Kanban with a column per work center. Dragging a job card onto a day or week writes the job's **due date**; dropping it on **Unscheduled** clears the date. Dragging an operation card on the Work Centers view writes its work center and its dispatch priority. Reordering within a column changes only the pickup order; moving an operation to a *different* work center also queues a reschedule, since the engine has to re-place it on the new machine's calendar.-- **Forecast** (also under *Scheduling*) is where you read the result: a Gantt of every work center's booked time, with an explanation for each bar. More on it [below](#the-forecast-explains-the-schedule).-- **Resource Planning** (under *Planning*) is the manning board: drag employees onto work-center columns per day or week, record time off and overtime, and review a capacity view of scheduled versus available hours. Who is manned where is a scheduling input, so every change here queues a reschedule too. See `docs/reference/people` for the shift model behind it.-- The shop-floor app's **Schedule** page (MES) looks like the Work Centers view but is **display only**. Operators read their station's queue, sorted by dispatch priority, and open an operation to run it. No drag on the MES board writes anything.--Due dates, dispatch order, and manning are all set in the ERP. The MES board reflects the same operation records the engine writes, but changes nothing about the schedule.--## Placement against real capacity--The engine schedules **forward**: each operation is placed at the earliest feasible moment after *now* and after its predecessors in the `docs/reference/routings` finish. There is no backward pass that anchors work on the due date; the projected finish that falls out of placement *is* the forecast, and slack is real. Two finite resources gate every placement:--1. **The work center.** One operation at a time, placed only inside its operating hours. Hours come from a ladder: a **lights-out (24×7)** work center is always open; otherwise its own assigned shifts apply; otherwise the location's shifts; otherwise a stock Mon–Fri, 8-hour day. Open `docs/reference/maintenance` dispatches that take a work center offline subtract their downtime from those hours, lights-out machines included.-2. **Qualified people**, when the operation's process requires an ability. See [the next section](#people-are-part-of-capacity).--When a process can run on more than one work center, the engine picks the candidate that **finishes earliest**, so work naturally routes around a backed-up or unstaffed machine. An operation that has already started stays on its work center, and only the *remaining* work is reserved: labor and machine time are scaled by the quantity still open, and setup counts as done once any production event exists.--The dispatch order the boards show falls straight out of placement. The engine groups placed operations by work center, sorts by projected start, and numbers them 1, 2, 3. The top card in a column is the next thing to run there. The job's deadline type matters here as a *ranking* signal: jobs claim capacity in deadline-class order (ASAP first, then Hard Deadline, Soft Deadline, No Deadline), then by due date. No deadline type blocks or gates placement.--The old model computed dates as if every machine had infinite room, and load only picked which station won a tie. Now a full machine or a booked-up operator pool delays the operation, and the delay is visible and explained. A job with no due date still schedules fine; the due date is the yardstick lateness is measured against, not a placement anchor.--## People are part of capacity--A process can be marked as **requiring an ability**. Operations of that process only run while at least one *qualified* operator is available: someone holding the ability whose qualification hasn't expired, present on shift, not absent, and not already reserved by other work. The engine looks first at the people **manned to the station** on the Resource Planning board, running the operation as a team (labor parallelizes across present members; setup and machine time never compress). If nobody is manned there, it falls back to qualified **floaters** — people with no board assignment anywhere. A person manned to one station is committed to it and is never silently pulled to another.--Each location also has a staffing policy on the Production settings page, described there as: *"Require an assigned operator before the scheduler places work at a location. When on, unstaffed work centers get no work and an operation with no manned coverage shows as unschedulable. Lights-out (24×7) work centers are exempt."* With **"Staffing required"** on, the floater fallback is off and even ability-free operations need a manned station, so work routes only to where you've put people.--If one person holds the ability a station needs and you man them elsewhere, that station's operations become unschedulable rather than double-booking the person or sneaking onto an unmanned night shift. The Forecast flags them as "can't be scheduled" so you can see the gap and fix the manning.--## Two dates on every operation--Each operation carries **two dates with different jobs**, and reading them as one is the most common misunderstanding of the new model:--- **Projected start and finish** are the engine's forward placement: when the work will actually happen given capacity. They are recomputed on every scheduling run.-- The **due date** is the need-by target: working backward from the job's due date through the routing's lead times, when this operation *must* finish to keep the job on time. It is a stable target, changing only when the job's due date, routing, or lead times change. It never constrains placement.--When the projected finish runs past the need-by target, the operation shows an **amber** state: the bill of process and the ops-board cards render the projected date in amber (*"Projected Sep 12"*) with a *"Behind target by N day(s)"* tooltip. Amber is an early warning, not a conflict; the whole job may still make its due date.--You can **pin** an operation's due date from the date picker on the bill of process. The pin's tooltip says it plainly: *"Pinning it overrides the calculated target."* A pin means a human owns the *target*, and upstream operations derive their targets from it. It does **not** freeze the placement; the engine still re-projects a pinned operation's start and finish every run. The one exception is a pinned outside operation, which keeps its stored window because the vendor's turnaround isn't yours to re-place.--## The Forecast explains the schedule--The **Forecast** page renders the schedule the engine actually booked: a lane per work center (idle stations included), operation bars labeled with the job and operation, and operator segments underneath showing who is reserved. Every bar is a stored capacity reservation, so what you see is exactly what the engine committed, not a redraw from dates. Amber maintenance bars show downtime in the same lanes.--Click any bar and a side panel explains its timing. A **schedule note** answers "why does this start when it does" in plain language, for example *"Waited 14h for the work center — queued behind J000001 (3 ops)"* or *"Waited 2d 3h for a qualified operator to be available"*. The panel also separates **work** from **span**: an operation stretched across shift boundaries might show 6 hours of work across a 22-hour span, which is honest rather than alarming. A popover on each lane, *"How are these hours calculated?"*, shows which rung of the availability ladder is in use and what downtime and staffing subtract from it.--A **released `docs/reference/batching`** — several operations that run together on one batchable process — books a **single** reservation, so it appears as one bar labeled by the batch, *"BAT000005 · 2 jobs"*, not one bar per member. Its side panel names the batch and its action button opens the **batch** rather than a single member's job.--An **operation batch** (`BAT…`) groups job operations that run together on a machine — a scheduling concept. It is unrelated to batch tracking, the lot/batch numbers that trace a quantity of identical units through inventory. Same word, different feature.--The header counts two kinds of trouble separately:--- **Conflicts** are placed operations that finish **after the job's due date**. The stored reason names the cause, e.g. *"Finishes 2026-09-12 but the job is due 2026-09-05 — waited for a qualified operator, queued behind J000001 (3 ops)"*. The same reason appears as a tooltip on the red-flagged card on the ops board.-- **"Can't be scheduled"** operations found no feasible slot at all: no qualified operator exists, no manned coverage under a staffing-required policy, or no open capacity within the horizon. They get a non-binding placeholder bar marking where they *would* run, flagged with an **"Unschedulable"** chip; the panel notes the bar *"isn't holding capacity"* against other jobs. The placeholder is drawn on the next **working day**, so it never lands on a night or weekend just because that's when the schedule ran. A released **batch** can be unschedulable for a different reason: its member operations carry **no estimated time** at all, so there's nothing to size the run from. The panel shows an **Estimated time** of **0h** and the reason *"add setup, labor, or machine time to its operations to schedule it"* — the fix is data entry on the operations, not capacity.--The engine always produces a complete answer. Late work is placed and flagged, unplaceable work gets an explained placeholder, and the job's projected completion extends over both, so the forecast finish is never quietly optimistic.--## When the schedule recomputes--Scheduling reacts to its inputs. Editing anything the engine reads — a due date on the Priorities board, a manning assignment, a shift, a work center's hours or active flag, an operator qualification, a process's ability requirement, machine downtime — stamps the affected jobs **schedule outdated** and queues a **replan wave**. The wave is debounced about 30 seconds, so a burst of edits triggers a single regeneration of each affected location rather than one run per keystroke. The Forecast's **Regenerate** button runs the same whole-location regeneration on demand.--Two paths skip the wave and reschedule immediately: releasing or changing the status of a job, and the kanban auto-release flow. And a nightly pass re-anchors any schedule whose planned start has slipped into the past, so a quiet shop's forecast doesn't drift stale.--When a regeneration pushes jobs past their due dates that were previously on time, each affected job's assignee gets a **"Jobs projected late"** notification listing the newly late jobs. Silence means the change fit.--A regeneration always re-places every open job at the location, in deadline-class then due-date order, each job claiming capacity ahead of the ones behind it. That is what makes the answer reproducible: the same inputs always produce the same schedule.--## Troubleshooting--What the flags mean and why dates move (or don't) after an edit.--### An operation shows a red conflict flag-A conflict means the placement **finishes after the job's due date**, or the operation could not be placed at all. The stored `conflictReason` names the cause (e.g. *"Finishes … but the job is due … — waited for a qualified operator, queued behind …"*, *"No qualified operator for …"* naming the ability, *"No operator assigned"* under a staffing-required policy). It is **not** a "start date is in the past" signal; that old definition is gone. Fix the cause: move the due date out, add capacity or hours, man the station, or qualify an operator.--### An operation shows an amber "Projected" date-Amber is **behind target**, not a conflict: the projected finish is later than the operation's need-by target (its `dueDate`). The job may still be on time overall. It clears when capacity frees up or the target moves.--### The Forecast says "can't be scheduled"-No feasible slot existed: no qualified operator for the required ability, no manned coverage while the location's **Staffing required** policy is on (lights-out work centers exempt), or no open capacity in the horizon. The bar shown is a placeholder marking where the work would run; it holds no capacity, and it's drawn on the next working day rather than the day the schedule happened to run. Man the station, qualify someone, or relax the constraint.--### A batch can't be scheduled and the panel shows "Estimated time 0h"-The batch's member operations carry no setup, labor, or machine time, so the engine has nothing to size the run from. The 1-hour bar you see is a nominal placeholder, not real work — that's why the panel reports the estimated time as **0h**. Add time standards (setup, labor, or machine) to the operations and the batch schedules on the next run.--### New dates didn't appear right after my edit-Most edits (due-date drags, manning changes, shift/work-center/ability edits) stamp jobs **schedule outdated** and queue a debounced replan wave (~30 seconds after the last change, batched per company). Dates land when the wave finishes. Job release and status changes reschedule immediately. In local dev the jobs worker must be running or the wave never fires.--### Nothing rescheduled when I reordered cards on the Work Centers view-Reordering within the same column writes only the dispatch position, by design. Moving an operation to a **different work center** does queue a reschedule, because the engine must re-place it on the new machine's calendar. The MES Schedule board writes nothing at all.--### A pinned operation's dates still moved-A pin owns the **need-by target** (`dueDate`), not the placement. The engine re-projects a pinned operation's start and projected finish every run; only its target stays put (and upstream targets derive from it). The exception is a pinned outside-processing operation, which keeps its stored window.--### Flipping "Staffing required" didn't change the schedule-The toggle takes effect at the **next** regeneration; it does not queue one itself. Make any scheduling edit, press Regenerate on the Forecast, or wait for the nightly pass.--### I can't edit the boards-Board edits require the **production update** permission; viewing requires **production view**. The Forecast page requires the Business plan.--## Related-- - Jobs The work orders whose operations the engine places and sequences.- - Work centers The stations, their operating hours, and the rates that cost them.- - People Shifts, abilities, and the manning that gates qualified work.- - Run the floor What operators see and do on the MES board once work is queued.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/scrap.md b/apps/erp/app/modules/agent/kb/docs/reference/scrap.mddeleted file mode 100644index dbf0c53378..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/scrap.md+++ /dev/null@@ -1,55 +0,0 @@-# Scrap and unscrap--> Writing off defective or lost material, and restoring it if the write-off was a mistake.--Scrap is how Carbon records material you can't recover: a unit ruined at an operation, a subcomponent that failed, or stock lost in the warehouse. Every scrap names a **reason**, moves the value off inventory or out of work-in-process, and (when accounting is on) posts a journal. If you scrapped in error, **Unscrap** puts it back exactly as it was.--There are three places you can scrap, and they behave differently. What they share: the affected tracked entity ends at status **"Scrapped"**, which keeps its quantity as the record of what was lost and, unlike **"Consumed"** or **"Rejected"**, can be reversed.--## Scrapping a unit on the floor--When the unit you're building goes bad, an operator taps **"Log Scrap"** on the operation, enters a quantity, and picks a required **"Scrap Reason"**. For a Serial part the currently selected serial is the one scrapped.--Carbon records a **Scrap** production quantity, backflushes the unit's bill of material into WIP (the material really was consumed making the ruined unit), flips the serial to **"Scrapped"**, and spawns a fresh replacement serial for you to keep working.--A scrapped unit is not treated as output. Its quantity never counts toward the operation's target, completed operations reopen to **"Ready"**, and a replacement serial is spawned automatically, so the job keeps producing until the *good* quantity meets the target. The planned quantity itself is never rewritten; Carbon only tops up the operation's run quantity when cumulative scrap runs past the allowance you planned for.--## Scrapping a subcomponent--A component that was picked or already issued into the unit is scrapped from the **"Scrap"** tab of the issue-material dialog, which lists that material's **Available** and **Consumed** tracked entities. Each row's **"Scrap"** button opens a dialog for the reason and, for a make-to-order component, an optional **"Make a replacement"**.--What posts depends on the entity's *state*, not the item's method:--An **Available** part is scrapped straight out of its bin as a negative adjustment, and the job's issued quantity is left untouched. A **Consumed** part is relieved from the job's WIP at its unit cost, and the material's issued quantity is decremented so the requirement reopens for a replacement. Either way the entity ends at **"Scrapped"**; make-to-order can additionally reopen the subassembly's routing and spawn a replacement with a rework row.--## Scrapping stock--Warehouse stock that never reached a job is scrapped from the storage-unit adjustment form: set the adjustment type to **"Scrap"** and pick a **"Scrap Reason"**. This books a negative movement at the item's cost. A serial flips to **"Scrapped"** and keeps its quantity; scrapping part of a batch splits the lot, and only the scrapped portion becomes **"Scrapped"**.--## Unscrap--Unscrap reverses a scrap. On the tracked-entities table, the **"Unscrap"** action appears on any row at status **"Scrapped"** (filter the status column to **"Scrapped"** to find them). It restores the entity to **"Available"** at the same bin, and asks only for an optional comment.--Unscrap restores the entity at the exact cost it was scrapped from, read back from the original scrap's cost layers, so a scrap-then-unscrap nets to nothing in the ledger. You don't re-enter the reason either; Carbon inherits it from the scrap movement it's reversing, and links the restoring entry back to that movement. (Untracked stock is the one exception: it comes back at current cost and needs a location.)--## Accounting for scrap--Scrap posts to the ledger only when `docs/reference/accounting` is enabled; the stock and cost layers move regardless. Every path debits a single **scrap account** (`accountDefault.scrapAccount`, which falls back to the inventory adjustment variance account). Where the credit lands depends on where the value was:--| Scrap path | Debit | Credit |-| --- | --- | --- |-| Unit on the floor | Scrap | Work-in-process |-| Consumed subcomponent | Scrap | Work-in-process |-| Available subcomponent, or stock | Scrap | Inventory |-| Unscrap | Inventory | Scrap |--Carbon deliberately posts all scrap to one account rather than a per-reason chart of accounts. It tags each scrap journal line with **ScrapReason**, **WorkCenter**, and **Employee** dimensions (work center only where there's an operation behind the scrap), so you slice scrap by reason, cell, or operator in reporting without proliferating accounts. The ScrapReason dimension reads its values live from your scrap-reason list, so a new reason is immediately reportable.--This scrap is distinct from a quality **disposition** of *Scrap*: closing a quality `docs/reference/issues` with a Scrap disposition writes the material off to a cost-of-quality account and flips the entity to **"Rejected"**, not **"Scrapped"**.--## Related-- - Traceability The tracked-entity statuses, including Scrapped, and the Unscrap action.- - Jobs Production quantities and how scrap is reported against an operation.- - Inventory The item ledger and manual adjustments scrap posts against.- - Accounting The journal, the scrap account, and posting dimensions.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/sequences.md b/apps/erp/app/modules/agent/kb/docs/reference/sequences.mddeleted file mode 100644index 4669f89a0e..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/sequences.md+++ /dev/null@@ -1,82 +0,0 @@-# Numbering sequences--> The per-company generator behind every readable document number — jobs, change notices, payments, and more.--Every document Carbon creates gets a human-readable number: a job is `J000001`, a change notice is `CN-000001`, a payment is `PAY-2026-07-000001`. Those numbers come from sequences, one small counter per document type per company. Sequences live under **Settings → Sequences**; every company is seeded with a full set, and you can retune any of them (prefix, counter, padding) without touching code.--When something needs a number, Carbon assembles it from three parts and advances the counter in the same operation, so two documents never collide:--```-{prefix}{next + step, zero-padded to size}{suffix}-```--Once created, a document's number never changes. Retuning a sequence only affects documents created **after** the change; it never renumbers what exists.--## Fields-- - **Prefix**: Text prepended to the number. Optional; supports date tokens, so `PAY-%{yyyy}-%{mm}-` renders as `PAY-2026-07-`.- - **Current**: The last value handed out; the next document gets `Current + Step`. Set it to restart or fast-forward numbering. Must be `≥ 0`.- - **Size**: Zero-padding width: size `6` gives `000001`. Accepted range `1`–`20`; most sequences ship at `6`.- - **Step**: How much the counter climbs each time. Almost always `1`; must be `≥ 1`.- - **Suffix**: Text appended after the number. Optional; same date tokens as the prefix.--### Date tokens--Prefix and suffix can embed the current date — how payments and journal entries get their year/month partitioning. Tokens are interpolated when the number is generated, not when you save: `%{yyyy}` (2026), `%{yy}` (26), `%{mm}` (01–12), `%{dd}` (01–31), plus `%{hh}` and `%{ss}` for hour and second.--Customers, suppliers, and quotes are numbered by a database trigger that only understands the four **date** tokens; putting `%{hh}` or `%{ss}` in those sequences leaves the literal token in the number. Stick to date tokens unless you know the document type is generated by an edge function.--## Seed defaults--A new company is seeded with a sequence for every numbered document type:--| Document type | `table` | Prefix | Example |-|---|---|---|---|-| Job | `job` | `J` | `J000001` |-| Quote | `quote` | `Q` | `Q000001` |-| Sales order | `salesOrder` | `SO` | `SO000001` |-| Sales RFQ | `salesRfq` | `RFQ` | `RFQ000001` |-| Sales invoice | `salesInvoice` | `AR` | `AR000001` |-| Purchase order | `purchaseOrder` | `PO` | `PO000001` |-| Purchase invoice | `purchaseInvoice` | `AP` | `AP000001` |-| Purchasing RFQ | `purchasingRfq` | `PRFQ` | `PRFQ000001` |-| Supplier quote | `supplierQuote` | `SQ` | `SQ000001` |-| Receipt | `receipt` | `RE` | `RE000001` |-| Shipment | `shipment` | `SHP` | `SHP000001` |-| Warehouse transfer | `warehouseTransfer` | `WT` | `WT000001` |-| Stock transfer | `stockTransfer` | `ST` | `ST000001` |-| Picking list | `pickingList` | `PL` | `PL000001` |-| Inventory count | `inventoryCount` | `IC` | `IC000001` |-| Change notice | `changeOrder` | `CN-` | `CN-000001` |-| Issue (NCR) | `nonConformance` | `NCR` | `NCR000001` |-| Inbound inspection | `inboundInspection` | `II` | `II000001` |-| Gauge | `gauge` | `G` | `G00001` |-| Maintenance dispatch | `maintenanceDispatch` | `MAIN` | `MAIN000001` |-| Customer | `customer` | `CUS` | `CUS000001` |-| Supplier | `supplier` | `SUP` | `SUP000001` |-| Fixed asset | `fixedAsset` | `FA` | `FA000001` |-| Depreciation run | `depreciationRun` | `DR` | `DR000001` |-| Journal entry | `journalEntry` | `JE-%{yyyy}-%{mm}-` | `JE-2026-07-000001` |-| Payment | `payment` | `PAY-%{yyyy}-%{mm}-` | `PAY-2026-07-000001` |-| Credit memo | `creditMemo` | `CR-%{yyyy}-%{mm}-` | `CR-2026-07-000001` |-| Debit memo | `debitMemo` | `DR-%{yyyy}-%{mm}-` | `DR-2026-07-000001` |--A prefix on an older company may differ: a few sequences added after launch were backfilled with different defaults (jobs as `WO`, change notices re-prefixed from `ECO-` without renumbering existing records). Either way, change it under **Settings → Sequences**.--Accounting posts are the heaviest user of this machinery: every GL post pulls a fresh `journalEntry` number as it books, which is why that sequence carries a month token by default. Sequences are company-scoped, so two companies in the same `docs/reference/intercompany` number independently even when they share a chart of accounts. Where the numbers land day to day: `docs/reference/jobs`, `docs/reference/change-orders`, and `docs/reference/payments`.--## Internals and troubleshooting--A sequence is a row in the `sequence` table keyed by `("table", "companyId")` (`20230525025310_sequences.sql`, PK moved in `20240704105128_rfq.sql:120`). The counter advances in the same operation that reads it (`functions/shared/get-next-sequence.ts:23`). The form's live preview is `SequenceForm.tsx:38`; seed defaults are `functions/lib/seed.data.ts:222`. Payments pick the right sequence by memo direction — credit memos draw `CR-`, debit memos `DR-` (`20260630093809_ar-ap-payments.sql:567`).--### A sequence field won't save (Current, Step, or Size)-`sequenceValidator` bounds them (`settings.models.ts:285-292`): Current `≥ 0`, Step `≥ 1`, Size `1`–`20`. Values outside those ranges are rejected.--### My `%{hh}` or `%{ss}` token shows up literally in the number-Customers, suppliers, and quotes are numbered by a database trigger through the `get_next_sequence` RPC, which interpolates only `%{yyyy}`, `%{yy}`, `%{mm}`, `%{dd}` (`20241115101526_rpc-get-next-sequence.sql:42-51`). Edge-function-generated documents support all six tokens. Use date tokens only for customer/supplier/quote prefixes.--### Editing a sequence didn't renumber existing documents-By design: numbers are written at creation and never recomputed.--### A prefix on my company doesn't match the seed defaults-Backfilled defaults for older companies differ in places — jobs were backfilled as `WO` (`20240909194622_jobs.sql:363`) though new companies seed `J`; change notices were re-prefixed `ECO-` → `CN-` for new records only, leaving minted `ECO-` ids untouched. Change it under Settings → Sequences.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/sharing.md b/apps/erp/app/modules/agent/kb/docs/reference/sharing.mddeleted file mode 100644index 1570ec776f..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/sharing.md+++ /dev/null@@ -1,16 +0,0 @@-# External sharing--> How Carbon's private, login-free links work — a customer accepts a quote, a supplier prices a request or answers a SCAR, a buyer watches order status.--Some of Carbon's work happens with people who don't have a Carbon login. Rather than email a PDF and wait, Carbon hands them a **private link** to a single, live document: open it and you act right there in the browser — no account, no password, just the one record the link points at. The link is the only credential, so guard it like a password: whoever holds the URL gets in.--Four things reach an outside party this way. Each is documented where the feature lives:-- - Digital quotes A **"Sent"** quote the customer accepts or rejects.- - Supplier quotes A request the supplier prices and submits, line by line.- - Customer portal A standing, read-only view of a customer's orders and shop-floor progress.- - SCARs A supplier corrective action request the supplier responds to.--Each link is only as live as the record behind it: an expired or answered quote turns its page read-only, and a closed issue locks its SCAR. There is no separate link-revocation step to remember.--Two other pages *look* shared but aren't: the RFQ preview is an internal view of how a supplier's request will look (purchasing login required), and training assignments require an employee login. Neither hands anything to an outside party.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/shelf-life.md b/apps/erp/app/modules/agent/kb/docs/reference/shelf-life.mddeleted file mode 100644index 3601517ac9..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/shelf-life.md+++ /dev/null@@ -1,113 +0,0 @@-# Shelf life--> How Carbon stamps expiration dates on tracked stock, and blocks consuming it once expired.--**Shelf life** is how Carbon decides when a batch or serial of an item *expires*, and what happens when-someone tries to use it after that. It only applies to **Serial-** or **Batch-tracked** items, because the-expiration date lives on the physical lot, the **tracked entity**, not on the item master.--Three records work together: a **policy** per item (how expiry is decided), an **expiration date** per-tracked entity (the actual date), and a **company-wide rule** for what to do with expired stock.--Say a batch of adhesive is received under a **180-day** policy: Carbon stamps that lot to expire about six-months out. Try to issue it to a job on day 200 and the issue is **blocked**. Expired stock can't flow into-a build unless someone with permission overrides it.--## How a date gets set: the three modes--An item's shelf-life policy has one **mode**. `NotManaged` is the default — no expiry is tracked, and choosing it removes any existing policy. The other three modes each decide how the expiration date is computed:--| Mode | The date is… | Applies to |-| --- | --- | --- |-| Fixed Duration | a start event **+ a number of days** | Make or Buy items |-| Calculated | the **earliest expiry of the components** consumed to make it | Make items |-| Set on Receipt | **typed in by the operator** at receipt. Nothing is computed | Buy items |--Shelf life is **not** a single "days" field on the item. Only **Fixed Duration** is a day count.-*Calculated* inherits the soonest expiry of its inputs, and *Set on Receipt* captures the supplier's-printed date by hand. A "received date + N days" mental model is wrong for two of the three modes.--## When the clock starts--For **Fixed Duration**, the start event depends on how the item is sourced:--- **Made** items start at a **job operation** finishing (or starting) — optionally gated to a specific- **trigger process** (say, *Pasteurise* or *Packaging*), with **Before** or **After** timing. Sub-assemblies- stamp their own batches from their own operations.-- **Bought** items start from the **receipt's posting date**, not "today", plus the configured days.--**Calculated** items take the minimum expiration date across the tracked components they consume, so a build-can never outlive its shortest-dated ingredient. Whether that minimum spans **every** dated input or only-inputs that themselves carry a shelf-life policy is the company's *calculated input scope*: `AllInputs`-(the default) or `ManagedInputsOnly`.--## Policy fields--The policy lives on the item's pick method:-- - **Mode**: *Fixed Duration*, *Calculated*, or *Set on Receipt*. *(applies to: all)*- - **Days**: The shelf-life length added to the start event. *(applies to: Fixed Duration)*- - **Trigger process**: The operation that starts the clock; blank means any operation. *(applies to: Fixed Duration (made))*- - **Timing**: Whether the clock starts **Before** or **After** that process. *(applies to: Fixed Duration (made))*- - **Calculate from BOM**: Also cap the date at the earliest expiry of the consumed components. *(applies to: Fixed Duration)*--The expiration date is only ever written once, where it was blank. Carbon never silently overwrites a date a-batch already carries. A manual override is available, but it requires a **reason**, which is kept on the-entity's history.--## What happens to expired stock--A company-wide **expired-entity policy** governs every material issue and stock transfer:--| Policy | Effect when stock is past its date |-| --- | --- |-| Warn | Allowed, with a warning. |-| Block | Rejected. *(default)* |-| BlockWithOverride | Rejected unless the user supplies an override reason. |--Expiry is **enforced, not cosmetic.** The default policy is **Block**. Consuming or transferring an expired-batch is rejected outright, with the error *"Cannot consume expired tracked entit(y/ies)"*. The check runs-wherever stock is consumed or moved (material issues, stock transfers, and maintenance work), so it holds-whether the action comes from the office or the floor.--Picking is **FEFO-aware**: available tracked entities are offered earliest-expiry-first, so the oldest stock-leaves first by default. A **near-expiry warning** highlights batches approaching their date in the tracked-entity-lists; set its lead time (in days) in company settings. Leaving it blank turns the warning badges off.--## Company settings--Set company-wide in **Settings → Inventory**:-- - **Expired-entity policy**: *Warn*, *Block*, or *BlockWithOverride* for issues and transfers.- - **Near-expiry warning (days)**: Lead time for the amber "expiring soon" badges; blank disables them.- - **Default shelf-life days**: Fallback length when a policy needs a default.- - **Calculated input scope**: `AllInputs` or `ManagedInputsOnly` for *Calculated* mode.--## Where you set it--| Setting | Where |-| --- | --- |-| The per-item policy (mode, days, trigger process, timing) | On the item's **pick method** (item ↔ location), under its shelf-life fields. |-| The expired-entity policy, near-expiry days, default days | **Settings → Inventory**, in the shelf-life section. |-| A one-off date correction | The expiry-edit action on a tracked entity (reason required). |--Setting a shelf-life policy is only allowed on **Serial** or **Batch** items. Fungible *Inventory* and-*Non-Inventory* items have no tracked entity to carry a date, so the option doesn't apply.--## Related-- - Traceability Expiration lives on the tracked entity — the same lot/serial record traceability follows.- - Inventory Where the expired-entity policy and near-expiry warning are configured.- - Items Only Serial- and Batch-tracked items can carry a shelf-life policy.- - Storage rules The other inventory guard: validate transactions instead of dating stock.--## Troubleshooting--### "Cannot consume expired tracked entity" / "Cannot consume expired tracked entities"-The expired-entity policy is **Block** (the default) and a material issue, stock transfer, or maintenance consumption touched a batch past its date. Options: pick a non-expired lot (FEFO ordering surfaces the oldest valid stock first), correct the expiration date on the entity (reason required), or switch the policy to *Warn* or *BlockWithOverride* in Settings → Inventory.--### "Cannot post shipment with expired batch"-The shipping counterpart of the block above — the full message names the batch id. Allocate a different batch, fix the entity's expiration date, or relax the company rule to Warn.--### "Cannot edit expiry of a consumed tracked entity"-Expiry can only be overridden on live stock. A **Consumed** entity's date is history and stays as recorded.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/shipments.md b/apps/erp/app/modules/agent/kb/docs/reference/shipments.mddeleted file mode 100644index 6c3cb6a5b9..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/shipments.md+++ /dev/null@@ -1,58 +0,0 @@-# Shipments--> 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 order, an outbound transfer. Each is tagged by what it came from, so the same posting logic handles them all.--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-- - **Source document**: The order, return, or transfer being shipped.- - **Shipped quantity**: Units on this shipment, per line.- - **Fulfillment**: Where a line is sourced: *Inventory* (from stock) or *Job* (from a production job).--## Status-- - **Draft**: Being prepared; nothing posted.- - **Pending**: Queued to post.- - **Posted**: Inventory relieved and the source document advanced.- - **Voided**: Reversed after posting.--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.--## Related-- - Ship, invoice, get paid Posting a shipment in the quote-to-cash flow.- - Sales orders The document a sales shipment advances.--## Troubleshooting--Exact errors users hit when posting, voiding, or picking shipments.--### "Shipment is empty"-The post dialog blocks posting when no line has a shipped quantity above zero (and no fixed-asset line is marked shipped). Enter the shipped quantity on at least one line first.--### "Tracked entity is not available"-A batch assigned to a shipment line isn't in **Available** status — it may be Reserved, On Hold (for example pending inbound inspection), Consumed, or Rejected. Free it up (clear the hold, finish the inspection) or allocate a different batch.--### "Serial numbers are missing or unavailable"-A serial-tracked line doesn't have enough available serial units to cover the shipped quantity. Allocate more available serials or reduce the shipped quantity.--### "Cannot post shipment with expired batch"-The full message names the batch id. The company's expired-stock rule is **Block** (or **Block with override**) and a batch on the shipment is past its expiration date. Options: allocate a different batch, correct the expiration date on the tracked entity (reason required), or change the rule in Settings → Inventory to Warn. See `docs/reference/shelf-life`.--### "Posted shipment with expired batch"-The Warn-policy counterpart of the error above — the shipment posted, this is informational. Switch the company rule to Block if this should stop future posts.--### "Batch has insufficient quantity"-The quantity allocated to the line exceeds what that batch has on hand. Reduce the allocation or pick an additional batch.--### "Can only void posted shipments"-Voiding applies only to a shipment at **"Posted"**. A Draft or Pending shipment can be edited or deleted instead.--### "Cannot delete a posted shipment"-A posted shipment can't be deleted — void it instead, which writes reversing entries.--### "Failed to post shipment"-Generic wrapper when the posting function fails. Common underlying causes: the `docs/reference/accounting` for the posting date is closed or locked, or default accounts are missing ("Error getting account defaults"). Ask the user for the full error text if available.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/single-sign-on.md b/apps/erp/app/modules/agent/kb/docs/reference/single-sign-on.mddeleted file mode 100644index f31b456d9c..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/single-sign-on.md+++ /dev/null@@ -1,84 +0,0 @@-# Single sign-on--> Route sign-in for your company's email domains through your own identity provider with enterprise SAML SSO.--Single sign-on hands control of Carbon sign-in to your own identity provider: Okta, Entra ID, Google Workspace, or any SAML 2.0 IdP. Register your email domains once, proving you own each with a DNS record, and everyone on them signs in to both ERP and MES with their normal work email — Carbon recognizes the domain and routes to your IdP automatically, no SSO button to find. Registering takes nothing away: the magic link and other methods keep working until you turn on [Require SSO](#requiring-sso).--## Requirements--SSO is an Enterprise Edition (EE) feature of your own `docs/platform/self-hosting` deployment (`CARBON_EDITION=enterprise`, which requires a `docs/platform/licensing`). Carbon Cloud sign-in is unaffected. Enable it through `docs/platform/self-hosting/environment-variables`:--Add `sso` to the comma-separated list of sign-in methods.-Turns on the SAML engine in the auth service.-The SAML signing key: a base64-encoded PKCS#1 DER RSA key, minimum 2048-bit. The `openssl` command is in `.env.example`.--## Connect your identity provider--Everything lives on one screen: **Settings → Security**, under **"Single Sign-On"** (viewing needs `settings` view; saving needs `settings` update).--**Copy Carbon's service provider details.** The **"Service Provider Details"** card shows the **"ACS URL"** and **"SP Metadata URL"** with copy buttons.--**Register Carbon in your IdP** as a SAML application using those two URLs. The assertion must include an **email attribute**; the email is how Carbon matches each sign-in to a person and a company.--**Paste the IdP metadata back into Carbon.** In the **"Identity Provider"** card, provide the **"IdP Metadata URL"** *or* the raw **"IdP Metadata XML"** (exactly one), then **"Save"**. The card gaining a **"Require SSO"** switch and a **"Deactivate"** button is the sign the connection is active.--**Verify your email domains.** The **"Email Domains"** card appears once the connection exists. Add each domain your people sign in with, publish the DNS record it shows, and click **"Verify"**. Only verified domains route SSO sign-ins.--## Verifying a domain--Each added domain starts **Pending** with a unique TXT challenge shown on the card:--| Record | Value |-| --- | --- |-| **Host** | `_carbon-challenge.example.com` |-| **Type** | `TXT` |-| **Value** | `carbon-domain-verification=<your unique token>` |--Publish the record at your DNS host, click **"Verify"**, and on a match the domain flips to **Verified**. Verification is one-time; the TXT record can be deleted afterwards. A Pending domain has no effect anywhere, so adding one is always safe.--Only one company can hold a domain verified, first to prove DNS control wins, and the claim survives even if DNS control later changes hands. The clean handover is for the holding company to **Remove** the domain, which frees it for the new owner to verify.--## How sign-in works--The login page is email-first and the SSO fork is invisible: the user types their email, presses **"Continue"**, and Carbon either redirects to your IdP (active connection on that domain) or falls through to the ordinary magic-link flow. Before any session is created, the asserted email's domain must be one of the connection's **verified** domains, so even a misconfigured or hostile IdP can't sign someone into another company.--Provisioning is **invite-first**: no self-serve signup through SSO. An existing member signs straight in (their first SSO sign-in quietly links the SAML identity to their account; the magic link keeps working). Someone with a pending invite has it accepted by their first SSO sign-in, landing with exactly the invite's role. Anyone else is rejected by name and nothing is provisioned; create the invite in the `docs/reference/people` and the retry just works.--## Requiring SSO--Once a sign-in has worked, the **"Require SSO"** switch on the Identity Provider card makes the IdP the only way in for verified domains: magic links, Google, Outlook, and passkeys are all refused server-side. The switch exists only on an active connection, so the path is always *set up, prove a sign-in works, enforce last*. Turning it off — or **"Deactivate"**, which deletes the connection and releases the domain claims — immediately restores the other methods.--If enforcement is on and your IdP is unreachable, nobody on the covered domains can sign in to turn it off. Operators can lift it directly in the database, and magic-link sign-in works on the next attempt:--```sql-UPDATE "ssoConnection" SET "requireSso" = false WHERE "companyId" = '<id>';-```--SSO sessions skip Carbon's `docs/reference/two-factor` and the company-wide requirement in every environment, including controlled (ITAR) deployments: your IdP already enforced its own MFA policy at sign-in. Magic-link logins still get Carbon's own challenge.--## Behavior details and exact messages--Providers are registered directly against the auth service (GoTrue) with the service-role key; no Supabase account or plan is involved. The domain-has-SSO check on the login page is rate-limited and reveals nothing beyond yes/no.--Domain rules: lowercased bare hostnames only (no `@`, no spaces), punycode (`xn--`) for internationalized domains; public email providers (`gmail.com`, `outlook.com`, …) are refused. Several companies may hold a *pending* claim on the same domain at once — exclusivity kicks in at verification. Re-adding your own domain fails with "This domain has already been added". The metadata form rejects both-or-neither with "Provide either a metadata URL or metadata XML (exactly one)".--### Verification fails-Three causes, named in the message: the record isn't visible yet (DNS propagation — wait and retry); the value doesn't match the token (re-copy exactly); or the DNS lookup itself failed (the server's outbound DNS access is blocked). Gotcha: many DNS providers auto-append the domain to the record name — in Cloudflare enter only `_carbon-challenge` and check the preview shows the host once, not twice.--### "Verify" fails on a domain another company verified-Deliberately generic message so the button can't be used to probe which domains are registered where. Handover: the holder removes the domain, or a self-host operator deletes the claim (`DELETE FROM "ssoDomain" WHERE "domain" = 'example.com';`). The previous holder's provider registration keeps routing the domain until its connection is re-saved, but sign-ins on it are rejected once the row is gone.--### "SSO sign-in rejected: this email domain is not registered for your company's SSO connection."-The IdP asserted an email outside the connection's verified domains. Add and verify the domain, or fix the IdP's attribute mapping.--### "SSO sign-in succeeded but no invite exists for `[email protected]`. Contact your administrator."-Invite-first provisioning: the person authenticated at the IdP but is neither a member nor invited. Create the invite and have them retry. Invite emails for SSO-active domains link to the login page with the address prefilled instead of a magic-link code, so the IdP is never bypassed.--### "Complete your first SSO sign-in in Carbon ERP, then return here." (MES)-MES enforces the same domain rules but doesn't run first-time provisioning. One ERP sign-in fixes it permanently.--### "Your organization requires single sign-on. Sign in with your work email to continue."-Require SSO is on and the user tried a non-SSO method on a verified domain. Expected; they sign in via email → IdP redirect. A pending domain enforces nothing.--### "Deactivate Single Sign-On" confirmation-Warns "Users on your registered domains will no longer be able to sign in through your identity provider. This cannot be undone." — the registration is deleted outright and domain claims released; re-enabling means saving the connection again and re-verifying domains.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/storage-rules.md b/apps/erp/app/modules/agent/kb/docs/reference/storage-rules.mddeleted file mode 100644index 387687790a..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/storage-rules.md+++ /dev/null@@ -1,118 +0,0 @@-# Storage rules--> Predicate guards that validate inventory transactions: block with an error, or warn and let the user continue.--A **storage rule** is a guard that runs when an inventory transaction posts. It checks the line against a-condition you define and, if the condition fails, either **blocks** the transaction or **warns** and lets the-user acknowledge and continue. Rules attach to **items** or to **work centers**.--For example, to keep batch chemicals out of ambient bins: target **items** in your chemicals group, fire on-**receipt** and **place** (put-away), and require `storageUnit.storageTypeId` `eq` your cold-storage type.-Severity **error**, message `{item.id} must be stored in cold storage`. Receive that item into the wrong-bin and the post is stopped with exactly that message.--Storage rules are a **validation** layer. A rule never transforms data, sets defaults, or computes a-price. Its only output is a message and a severity.--## What a rule checks--Each rule holds a small **condition tree**, a match kind over one or more field/operator/value rows:--- **Match kind**: `all` (every condition must hold), `any` (at least one), or `none` (none may hold).-- **Field**: chosen from a fixed registry: item facts (`item.type`, `item.replenishmentSystem`,- `item.itemTrackingType`, custom fields), storage location (`storageUnit.storageTypeId`,- `storageUnit.locationId`), work-center facts, and the line's `transaction.quantity`.-- **Operator**: `eq`, `neq`, `in`, `notIn`, `isSet`, `isNotSet`, `gt`, `lt`.--The **message** shown on a violation supports tokens like `{item.id}` and `{transaction.quantity}`, so the-text can name the offending line. The rule "passes" when its conditions hold; a violation fires when they-don't.--Aside from the `isSet` / `isNotSet` checks, a condition pointing at a field that has **no value** fails as a-*"…is required"* violation. So the same rules double as presence checks (for instance, require a lot number-before a shipment can post).--## Operators--| Operator | Meaning |-| --- | --- |-| `eq` · `neq` | equals · does not equal |-| `in` · `notIn` | value is · is not in a list |-| `gt` · `lt` | greater than · less than |-| `isSet` · `isNotSet` | field has · does not have a value |--## Where rules fire--A rule lists the **surfaces** (transaction types) it applies to. The available surfaces depend on the-target:--| Target | Surfaces |-| --- | --- |-| Item | receipt, shipment, stockTransfer, warehouseTransfer, inventoryAdjustment, place, pick |-| Work center | operationStart, operationFinish, materialIssue, materialReceive |--Rules are evaluated server-side as the transaction posts, before any accounting or stock movement is-written. A blocked transaction writes nothing.--## Block or warn--| Severity | Behavior |-| --- | --- |-| `error` | Blocks the transaction until the condition is satisfied. |-| `warn` | Surfaces the message but lets the user **acknowledge and continue**. |--An `error` always blocks. A `warn` blocks only until the user acknowledges it, then the same submit goes-through — useful for "are you sure?" guardrails that shouldn't hard-stop the floor.--For instance, a `warn` rule on **inventory adjustments** where `transaction.quantity` `gt` `1000`, with the-message `Large adjustment — confirm the count`, lets the count post once the user acknowledges it while still-flagging the outlier.--## Scope and assignment--A rule reaches the lines it applies to in one of two ways:--- **By filter**: item-target rules can scope to **item types** and/or **item groups**, combined with OR or- AND. An empty filter matches **every** item.-- **By assignment**: pin a rule to a specific item from the item's **Rules** tab, or to a specific work- center. Work-center rules can also be set to apply to all work centers.--## Rule fields-- - **Name**: A unique name for the rule.- - **Severity**: `error` (block) or `warn` (acknowledge and continue).- - **Conditions**: The match kind plus the field / operator / value rows.- - **Message**: Shown on a violation; supports `{token}` interpolation.- - **Surfaces**: Which transactions the rule fires on.- - **Target**: `item` or `workCenter`.- - **Item filters**: Item types and/or groups to scope a rule (empty = all items).- - **Active**: Whether the rule is currently evaluated.--## Where to manage them--Storage rules live in the **Inventory** area, under **Storage Rules**. Create, edit, and toggle them there.-To attach an existing rule to a single item, use the **Rules** tab on that item.--Storage rules are an **Enterprise** capability, gated to the **Business** plan. On other-plans the screen shows an upgrade prompt and no rules are evaluated.--## Related-- - Sales rules The sibling rule family: the same condition builder, applied to quote, sales order, and sales invoice- lines.- - Items The most common rule target: scope by item type or group, or assign per item.- - Inventory Storage rules run on inventory transactions: receipts, shipments, transfers, picks.- - Work centers The other target: guards on operation start/finish and material issue/receive.- - Shelf life The other inventory guard: date tracked stock and block it once expired.--## Troubleshooting--Storage-rule violations carry **custom, company-authored messages** — there is no fixed error string to match. If a user pastes an unfamiliar error from posting a receipt, shipment, transfer, adjustment, pick, or a shop-floor operation step, and it reads like a business rule ("must be stored in cold storage", "lot number is required", quantities named in the text), it is very likely a storage rule firing.--How to resolve one:-1. Find the rule: **Inventory → Storage Rules** — the rule's *Message* column will match the pasted text (token values like the item id filled in).-2. If the transaction is wrong, fix the data the rule checks: the storage unit chosen, the missing lot number, the quantity.-3. If the rule is wrong or too strict, edit its conditions, change its severity from `error` to `warn`, or toggle it off (*Active*).-4. A `warn`-severity violation isn't an error — the user can acknowledge the dialog and resubmit; it goes through.--A violation ending in "…is required" means the rule checked a field that has no value on the line (see the presence-check callout above) — supply the value rather than changing the rule.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/supplier-quotes.md b/apps/erp/app/modules/agent/kb/docs/reference/supplier-quotes.mddeleted file mode 100644index 2c15d33701..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/supplier-quotes.md+++ /dev/null@@ -1,84 +0,0 @@-# Supplier quotes--> A supplier's priced response to your RFQ, one per supplier, ready to convert into a purchase order.--A **supplier quote** is a vendor's priced answer to a purchasing RFQ: for the items you asked about, at the quantities you named, here's my price, my lead time, and my shipping. It's the buy side of a quote, and it is not a sales quote. A sales quote is what *you* send a customer; a supplier quote is what a *supplier* sends *you*.--You keep one quote per supplier per exchange, and once you've compared them you convert the winner into a purchase order. Converting also writes the supplier's prices back onto the item's supplier part, so the next order already knows what this vendor charges.--## Where a quote comes from--Most quotes are the response half of an RFQ. You send a purchasing RFQ to several suppliers, and each supplier's reply becomes its own supplier quote, all hanging off the same request. A quote can also be entered directly, without a preceding RFQ, when you already have pricing to record.--Either way the quote lives under a **supplier interaction**, the umbrella record that ties this supplier's quote, RFQ, and any resulting purchase order together so you can trace the whole exchange in one place.--A supplier quote is single-supplier by design. When you fan an RFQ out to five vendors you get five quotes back, not one quote with five columns. The side-by-side comparison is a separate view that reads across the sibling quotes, not a field on any one of them.--## Lines and pricing--A quote line names one item (or a G/L account line for non-stock spend) and the quantities you're pricing. Because you usually ask for a price at several volumes, the line's requested quantities are an **array**, and each quantity carries its own price row. This is the quantity-break table: a lead time, a unit price, and a shipping cost per quantity.-- - **Item**: The part, material, tool, consumable, or service being priced. A `G/L Account` line prices non-stock spend instead.- - **Quantity**: The quantities you're asking the supplier to price. Each one gets its own price row.- - **Unit price**: The supplier's price at that quantity, in the supplier's currency. `unitPrice` in your base currency is derived from the exchange rate.- - **Lead time**: Days to deliver at that quantity.- - **Shipping cost**: Per-unit shipping at that quantity, in the supplier's currency.- - **Conversion factor**: Inventory units per one purchase unit, when the supplier sells in a different unit than you stock in.--The unit price, shipping, and extended price you type are the supplier's numbers, in the supplier's currency. Carbon stores the base-currency equivalents as generated columns using the quote's exchange rate, so the comparison and the resulting purchase order are always in your currency. Change the header exchange rate and every price row re-derives.--## Lifecycle--A quote is editable only while it's a **"Draft"**. Finalizing moves it to **"Active"**, which is the state comparison and conversion read from. Everything past Draft is locked.-- - **Draft**: Being built. The only editable state: you can add lines, enter prices, and adjust dates here.- - **Active**: Finalized. Locked, and the state the comparison and convert-to-order flows read.- - **Expired**: Past its expiration date. Pricing is no longer trustworthy.- - **Declined**: The supplier declined to quote.- - **Cancelled**: Withdrawn before it went anywhere.--Any status other than Draft locks the quote. If a supplier revises their pricing after you've finalized, you record the new numbers on a fresh quote rather than editing the old one, which keeps the paper trail intact for the comparison.--## The supplier's link--Sending the quote emails the supplier a private link along with the request — no Carbon login needed. The supplier prices the work directly on the page: for each quantity they choose, they enter a **unit price**, a **lead time** in days, **shipping cost**, and **tax**, and can attach a note per line. When every selected line has both a price and a lead time, **"Submit Quote"** lights up; they enter their name and email and submit. They can instead **"Decline Quote"**, optionally leaving a reason.--Both flows are open only while the quote is a **"Draft"**; once submitted or declined the page is read-only, and a Draft past its expiration date shows an expired state. Each visit stamps the link's last-accessed time, so you can see whether the supplier has opened it. Whoever holds the URL can open the page — send it to the right contact and nowhere public.--## From quote to purchase order--When you've picked a winning quote, **"Convert to Order"** turns it into a purchase order. You choose which lines and which quantity tier to buy, and Carbon raises a purchase order for that supplier with the item lines, the supplier's contact and location, and the exchange rate all carried across from the quote. If the quote came from an RFQ, the new order is linked back to that RFQ.--Converting does one more thing that matters: it updates the item's **supplier part**. For each converted line Carbon writes the quantity-break prices onto that supplier's `supplierPart` for the item (source: `Purchase Order`), and sets the supplier part's headline unit price to the best tier. So the quote doesn't just produce one order, it teaches Carbon what this vendor charges for the part going forward.--The quantity-break prices land on the supplier part in *inventory* units: the supplier's per-purchase-unit price is divided by both the exchange rate and the conversion factor before it's stored. That's why a quote in another currency, in the supplier's pack size, still shows a sensible per-stock-unit cost afterward.--For the full narrative, from sending the RFQ through comparing quotes to raising the order, see the `guides/rfq-to-po`. For what happens to the order once it exists, see `docs/reference/purchase-orders`.--## Troubleshooting--Exact errors and gates for supplier quotes, finalizing, and converting to a purchase order.--### "Expiration date must be today or after"-The quote's expiration date is in the past. Set it to today or a future date.--### "Supplier contact is required for email"-Finalizing with the notification method set to `Email` but no supplier contact selected. Pick a supplier contact, or change the notification method.--### "Cannot convert to order: supplier is not approved (Active)"-Your company requires supplier approval, and this supplier's status isn't `Active`. Approve the supplier (set them to Active) before converting the quote, or the Convert to Order action stays blocked.--### "Failed to convert quote to order"-The convert edge function returned an error. Common underlying causes: the quote or its lines were not found, or required supplier payment/shipping records are missing. Confirm the quote has lines and the supplier's payment and shipping terms are set, then retry.--### Why is the quote read-only / why can't I edit lines?-A supplier quote is editable only while its status is `Draft`. Any other status (`Active`, `Expired`, `Declined`, `Cancelled`) locks it. Record revised pricing on a fresh quote rather than editing a finalized one.--### Why is the Finalize or Send button disabled?-Finalize/Send require the purchasing update permission and at least one line on the quote. Send is also disabled once the quote is already `Active`. Delete additionally requires the purchasing delete permission, an unlocked (Draft) quote, and an employee login.--### Why is the supplier's "Submit Quote" button disabled (on the public link)?-Submit lights up only when every selected line has both a unit price and a lead time greater than zero, and only while the quote is `Draft`. Once submitted or declined the page is read-only.--### The supplier's link shows "expired or is no longer valid"-A `Draft` supplier quote past its `expirationDate` shows the expired state and can no longer be submitted. Re-send a fresh request with a new expiration date.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/supplier-returns.md b/apps/erp/app/modules/agent/kb/docs/reference/supplier-returns.mddeleted file mode 100644index a639a94ddf..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/supplier-returns.md+++ /dev/null@@ -1,104 +0,0 @@-# Supplier returns--> Return received goods to a supplier, preserve serial or batch identity, claim credit, and create a replacement PO.--A **Supplier Return** records goods your company is authorized to send back to a supplier. It connects the original receipt or purchase order to the outbound shipment, supplier credit, quality issue, and any replacement order while keeping those events independently auditable.--## What a Supplier Return controls--Start from **Purchasing → Returns**, choose **Supplier Return**, and select the supplier. The supplier may give you its own authorization number; record that in **Supplier RMA #**. Carbon's customer-facing RMAs are a different Sales entity.--Whenever possible, choose **Add from receipt**. Carbon lists posted receipt lines for the supplier that still have quantity available to return, newest first. A source-linked line retains its receipt, purchase order, and invoice provenance. At confirmation, Carbon locks the relevant source rows and prevents active returns from authorizing more than was received.--Use **Add manually** for a blind supplier return when no source document is available. A manual line deliberately skips the source-quantity cap, so confirm the item, unit, price, and quantity yourself.--Confirming authorizes the outbound return but does not remove inventory. Stock and cost change only when the linked shipment is posted.--## Header fields-- - **Return ID**: The readable return number. Carbon assigns the next `RTS` sequence when you do not enter one.- - **Supplier**: The supplier receiving the goods; required.- - **Purchase Order**: Optional link to the original order.- - **Supplier RMA #**: The authorization or case number supplied by the vendor.- - **Supplier Contact / Location**: Who is coordinating the return and the vendor address involved.- - **Order Date**: The date of the return authorization; required.- - **Expiration Date**: The authorization expiry shown on the return. Carbon does not currently block shipping after this date.- - **Return Location**: The Carbon location shipping the goods back.- - **Currency**: The currency used for the supplier credit.- - **Assignee**: The employee responsible for the return.--## Line fields-- - **Item**: The item being returned.- - **Return Quantity**: The quantity authorized to leave, expressed in the item's inventory unit.- - **Unit Price**: The supplier credit basis per inventory unit.- - **Restock Fee Percent**: The percentage deducted from the gross supplier credit.- - **Return Reason**: A shared company-defined reason such as Defective, Warranty, or Wrong Item Shipped.- - **Serial numbers / Batches to return**: The on-hand tracked identities selected for this line.- - **Shipped**: The posted returned quantity compared with the authorized quantity.--Purchase quantities may use a supplier pack or other conversion factor, but Supplier Return quantities and prices are stored in the inventory unit. When a line comes from a receipt or purchase order, Carbon converts it during authoring rather than carrying the supplier unit into the return.--After confirmation, the item, quantity, unit, price, restock fee, and source links are fixed. Those fields can only be changed while the return is Draft. Return reason and the selected serials or batches remain operational details while the return is open.--## Status-- - **Draft**: Build the authorization and select what will go back.- - **To Ship**: Confirmed; at least one line still expects shipment.- - **Completed**: Every line is fully shipped or marked **Stop Shipping**.- - **Cancelled**: The authorization was withdrawn before a shipment remained against it.--Status is driven only by shipping. Posting the return shipment increases each line's shipped quantity; voiding it reverses that quantity. **Stop Shipping** short-closes a remainder, while **Resume Shipping** makes it outstanding again. Supplier credit and a replacement purchase order do not participate in completion.--Only one Draft shipment can exist for a Supplier Return. Choosing **Ship** again opens it, and Carbon fills it with the outstanding quantity on lines that have not been short-closed.--## Tracked items--For a Serial- or Batch-tracked item, pick the specific on-hand identities to send. Carbon offers Available identities whose receipt provenance resolves to a posted receipt from this supplier. A receipt-linked line with exactly one eligible identity selects it automatically.--Posting a full serial or batch return changes that tracked entity to Consumed. A partial batch return splits off a consumed departing child while leaving the reduced parent available. Voiding the shipment restores the identities and records a separate genealogy event.--Supplier Return lines do not have a disposition field: the material leaves inventory. If an issue's affected material is marked **Return to Supplier**, Carbon can create a Draft Supplier Return from the issue and preserve its source and tracked-entity links. That issue cannot close until the linked return is shipped, short-closed, or cancelled.--## Supplier credit and replacements--**Issue Credit** is available after quantity ships. It creates a Draft supplier memo for shipped quantity not already reserved by a non-voided memo. Although the button uses the business phrase “Issue Credit,” Carbon stores this AP document as a **Debit** memo because it reduces what you owe the supplier.--The memo amount is quantity × unit price, less the restock fee. Creating it does not post the memo or settle cash. Open it under Supplier Credits and choose **Post**. A Draft memo already reserves the creditable quantity, while the Supplier Returns list counts only Posted credit in its **Credited** total.--A non-Voided debit memo, including a Draft one, blocks voiding the supplier-return shipment. Void the memo first if the physical shipment must be reversed.--**Create Replacement** makes a separate Draft purchase order and links it back to the return. It copies all authorized lines, not only shipped or credited quantities, and converts them back to the appropriate purchase unit. Review pricing and quantities before releasing the replacement PO.--## Related-- - Purchase orders See the supplier commitment and source lines behind a return.- - Receipts Understand the inbound documents that establish returnable quantity.- - Shipments Learn when posting removes returned goods from inventory.- - Issues Create a Supplier Return from affected material marked Return to Supplier.--## Troubleshooting--### "Cannot confirm a return order with no lines"-Add at least one line, then confirm again.--### "Line …: cannot authorize … — only … remains returnable for the linked document line"-The line exceeds what the source says was received after quantities reserved by other active Supplier Returns. Reduce it, cancel a competing authorization, or select the correct source.--### "Cannot reopen: quantity has already shipped. Void the shipment first."-A posted shipment still owns returned quantity. Void it before reopening the return to Draft.--### "Cannot cancel: a shipment exists for this return order. Delete or void it first."-Even a Draft shipment blocks cancellation. Delete a Draft shipment or void a Posted one, then cancel.--### "Cannot void: a debit memo exists for this return order. Void it first."-A Draft or Posted supplier memo reserves credit against the shipment. Void that memo before voiding the shipment.--### "Shipping can only be closed or reopened on a confirmed return order"-Stop Shipping and Resume Shipping apply only after confirmation, while the return is To Ship.--### "Could not resolve a single supplier — select one explicitly"-An issue-based return found either no supplier or more than one possible supplier. Select the supplier in the Create Supplier Return card.--### "Return order confirmed, but the PDF could not be generated"-The Supplier Return is already confirmed. Retry or download the Return to Supplier PDF separately instead of confirming again.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/suppliers-and-customers.md b/apps/erp/app/modules/agent/kb/docs/reference/suppliers-and-customers.mddeleted file mode 100644index 7e7cd1e2ce..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/suppliers-and-customers.md+++ /dev/null@@ -1,62 +0,0 @@-# Suppliers & customers--> 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.--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.--## 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.--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.--## 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 `docs/reference/customer-portal`.--## Bank accounts--Both parties can carry bank accounts: the account you pay a supplier into, and the one you refund a customer to. They live on the **Bank Accounts** tab of the record, and they are reference data. Nothing in Carbon moves money from them; a person reads the details and enters them in their own banking system.--The fields adapt to the account's country, because banking identifiers are not the same everywhere. Pick France and the account field is labelled **"IBAN"** with no routing field, since an IBAN already identifies the bank. Pick India and you get an **"IFSC Code"** field plus a required SWIFT / BIC, because one routes the payment inside the country and the other gets it there.-- - **Name**: Your label for the account, so two accounts at one bank stay distinguishable.- - **Account Holder**: Only needed when it differs from the party's own name.- - **Bank Name**: The bank the account sits with.- - **Bank Address**: Printed onto payment files; correspondent banks route international wires on it.- - **Country**: Selects which validation rules apply to everything below.- - **Currency**: The currency the account settles in.- - **Account Number / IBAN**: Labelled by country. Validated by checksum where the scheme has one.- - **Routing code**: Named for the country: *Routing Number (ABA)*, *Sort Code*, *BSB*, *IFSC Code*, or *Transit & Institution*. Absent for countries whose IBAN carries it.- - **SWIFT / BIC**: Required wherever the country expects a cross-border payment to route.- - **Notes**: Free text for anything the fixed fields do not cover.--Most people who can open a supplier should not see its bank account, so the tab is gated on **accounting** rather than the module that owns the record. Without `accounting` view permission the tab does not appear in the sidebar, and opening its URL directly is refused. Adding, editing, and deleting are gated separately.--Account numbers display masked, showing the last four characters with a toggle to reveal the rest. That deters someone reading over your shoulder or catching it in a screenshot; it is not an access control, and the permission above is what actually protects the data.--A checksum confirms an IBAN was typed correctly. It cannot tell you the account belongs to the supplier you think it does. Confirming that is an out-of-band step, a call to a number you already had, and it is the control that stops payment-redirection fraud.--## Documents--Both records have a **Documents** tab for files that belong to the party itself rather than to one transaction: a W-9, an insurance certificate, a signed master agreement. Drop a file on the tab and it is filed against that record, and it also appears in the shared `docs/reference/documents`, so you can find it either by opening the party or by searching.--## Related-- - Quote to cash How a customer's quote becomes an order.- - RFQ to bill How a supplier quote becomes a purchase order.- - Approvals A new supplier can be held at Pending until approved.--## Troubleshooting--### "Cannot edit a protected customer type" / "Cannot edit a protected supplier type"-System-defined types are protected and can't be renamed or deleted. Create a new custom type instead and assign parties to it.--### The purchase order's Finalize button is greyed out-When supplier approval is required, a purchase order can't be finalized while its supplier's status isn't **Active** (it's *Pending*, *Inactive*, or *Rejected*). This is enforced as a disabled button, not an error message. Approve or activate the supplier, then finalize the order — see `docs/reference/purchase-orders`.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/traceability.md b/apps/erp/app/modules/agent/kb/docs/reference/traceability.mddeleted file mode 100644index 4dd63a074a..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/traceability.md+++ /dev/null@@ -1,38 +0,0 @@-# Traceability--> 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:-- - **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.- - **Scrapped**: Written off as unrecoverable, with a reason. Unlike Consumed and Rejected, it can be reversed with `docs/reference/scrap`.--## 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.--The inverse is a **merge**, which combines lots of one item into a single lot carrying their summed quantity and the earliest expiry date among them. Both lots stay in the graph as inputs to that merge, so the new lot traces back through each of them. `docs/reference/batching` merges the members a run completed under one batch number; lots kept separate can still be merged from the batch's drawer.--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.--## 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-- - Jobs Where entities are consumed and produced as a job runs.- - Quality Inspection holds and rejects tracked entities.- - Scrap and unscrap Writing an entity off to Scrapped, and restoring it.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/training.md b/apps/erp/app/modules/agent/kb/docs/reference/training.mddeleted file mode 100644index 52ee52962e..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/training.md+++ /dev/null@@ -1,111 +0,0 @@-# Training--> Training programs, quiz questions, group assignments, per-period completion tracking, and the weekly reminder digest.--**Training** is where you build the courses your team has to complete, assign them to groups of employees, and track who has finished. A training is a named program with rich content and an optional quiz. You assign it to employee groups, and Carbon tracks completion per employee for the current period, chases the stragglers with a weekly email, and lets a manager mark someone complete by hand. It lives in the `docs/reference/work-centers` area and is governed by the `resources` permission.--A quick example: you create a "Lockout/Tagout" training, set its type to **"Mandatory"** and frequency to **"Annual"**, write the material, add a few quiz questions, then assign it to the "Machinists" group. Every machinist now shows as **"Pending"** for the current year until they complete it — and every Sunday night anyone still outstanding gets a reminder.--## The training catalog--Each training is one row in the `training` table (`packages/database/supabase/migrations/20251205021915_training.sql:18`). You create one from the training list with just a **Name** — the create form is deliberately minimal (`apps/erp/app/modules/resources/ui/Training/TrainingForm.tsx:76`). Everything else is edited afterward from the training's **Properties** panel (`apps/erp/app/modules/resources/ui/Training/TrainingProperties.tsx`), which saves each field on change through a bulk-update action.--- **name**: The training's title.-- **type**: Whether completion is required. Drives the badge on the list and, for mandatory trainings, the sense of "you must finish this."-- **frequency**: How often the training must be re-taken. **"Once"** means complete it a single time, forever. **"Quarterly"** and **"Annual"** are *recurring* — completion is tracked per period and resets when a new period begins.-- **status**: Lifecycle of the training itself. See below.-- **content**: The training material, stored as rich JSON (`content`). This is the body an employee reads.-- **estimatedDuration**: A free-text estimate of how long the training takes.-- **tags**: Free-form tags for filtering the catalog.-- **assignee**: The person responsible for the training.--The status enum is a simple linear lifecycle on the training record — not to be confused with an employee's *completion* status further down.--- **Draft**: Being authored. Not yet meant for assignment.-- **Active**: Published and in use. Assignments and reminders operate against active trainings.-- **Archived**: Retired. Kept for history, no longer assigned.--## Quiz questions--A training can carry a quiz. Each question is a row in `trainingQuestion` (`20251205021915_training.sql:229`), owned by one training, ordered by `sortOrder`, and marked `required` or not. Carbon supports five question types (`apps/erp/app/modules/resources/resources.models.ts:343`):--- **MultipleChoice**: Pick exactly one correct answer from a list of options.-- **MultipleAnswers**: Pick one or more correct answers from a list.-- **TrueFalse**: A boolean question with a `correctBoolean` answer.-- **MatchingPairs**: Match left items to right items, stored as JSON pairs.-- **Numerical**: Enter a number; graded against a `correctNumber` within a `tolerance`.--Questions are authored on the training detail page and can be reordered. The stored answer key columns differ by type: `options` and `correctAnswers` for the choice types, `correctBoolean` for true/false, `matchingPairs` for pairs, and `correctNumber` / `tolerance` for numerical (`20251205021915_training.sql:229`).--## Assigning training to groups--You don't assign a training to individuals one at a time — you assign it to **groups**. A `trainingAssignment` (`20251205021915_training.sql:93`) links one `trainingId` to an array of `groupIds`. Every employee who belongs to one of those groups is on the hook for the training.--The assignment stores `groupIds`, not employee ids. Carbon expands the groups to their members when it computes who owes the training, so adding a person to a group automatically enrolls them — you don't re-assign.--Open an existing assignment and switch to the **Status** tab to see the per-employee roster: each member with their current status, a completion date if they've finished, and a **"Mark Complete"** button (`apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx`). Assigning also fires a notification to the newly-covered employees (see `docs/reference/notifications`).--## Completion and status--Completion is recorded in `trainingCompletion` (`20251205021915_training.sql:156`) — one row per employee per assignment per period, with a `completedAt` timestamp and `completedBy`. For recurring trainings the row also carries a `period` string, and a unique constraint stops double-recording the same employee for the same period.--The **period** is the heart of the recurring logic (`20251206000000_training_assignments.sql`). Carbon derives the current period from the training's frequency:--- **Once**: No period (`NULL`). Complete it once and you're done for good.-- **Quarterly**: A string like `Q1-2026`. Completion in one quarter doesn't carry into the next.-- **Annual**: A string like `2026`. Resets at the start of each year.--An employee's status is *computed*, not stored — Carbon evaluates it from whether a completion exists for the current period and when the employee started. There are four possible values (`apps/erp/app/modules/resources/resources.models.ts:318`):--- **Pending**: Assigned, in the current period, not yet completed. The default state.-- **Completed**: A completion row exists for this employee and period.-- **Overdue**: A recurring period has already ended and the employee never completed it.-- **Not Required**: The employee started after the period ended, so they were never on the hook for it.--Recurring trainings check the employee's start date against the period. Someone who joined after a past period closed shows **"Not Required"** for that period, not **"Overdue"** — so onboarding a new hire doesn't instantly paint their record red.--A manager marks completion from the assignment's Status tab; the action posts to `markTrainingComplete` with the employee and the current period (`apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx`). An employee already **"Completed"** or **"Not Required"** has no button — there's nothing to mark.--## The weekly reminder--Every Sunday at 21:00 UTC, a scheduled job sweeps outstanding training and emails the stragglers (`packages/jobs/src/inngest/functions/scheduled/weekly.ts`, cron `0 21 * * 0`). For each company it pulls the assignment status, keeps only the employees whose status is a reminder-worthy one (**"Pending"** or **"Overdue"**), groups them by person, and sends one digest per employee.--The notification is the `TrainingReminder` event (`training-reminder`) under the `Training` topic. Its email heading is **"Training reminder"** and the call-to-action button reads **"View training"** (`packages/notifications/src/index.ts`). It's the only *recurring* notification event in Carbon — so it needs a guard against nagging forever.--A recurring reminder is capped: once an outstanding training has had five successful reminder emails delivered for the current period, Carbon stops re-sending it. For quarterly and annual trainings the count is keyed to the period, so the cap resets when a new period begins. If a reminder "stopped coming," this cap is usually why.--Two related one-shot events fire when work is handed to people rather than chased: **"Training assigned to you"** (`training-assignment`) and **"New training available"** (`resource-training-assignment`). See `docs/reference/notifications` for how these are delivered and how a person tunes them.--## Abilities are a separate system--Carbon also tracks employee **abilities** — a skill or certification with a learning curve — under the `docs/reference/people` side of the app (`apps/erp/app/modules/people/ui/Person/PersonAbilities.tsx`). An ability defines a starting proficiency, the weeks to reach full proficiency, and a shadowing period; each employee's progress against it is tracked as `NotStarted`, `InProgress`, or `Complete` (`apps/erp/app/modules/resources/types.ts`).--Despite the shared vocabulary, abilities and trainings are **two independent systems today**. There is no active link between a training and an ability, and work centers do not require a specific ability — the fields that would connect them (`requiredAbilityId` on a work center, an `abilityId` on a training) exist only as commented-out placeholders in the code (`apps/erp/app/modules/resources/resources.models.ts:495`). Completing a training does not advance an ability, and vice versa.--Because they're separate, plan around it: use **training** for course-and-quiz compliance with reminders, and **abilities** for skill-curve tracking on a person's profile. Don't expect one to update the other.--## Troubleshooting--Exact strings and preconditions for training assignment, completion, and reminders.--### "Training is required"-The assignment form was submitted without picking a training (`apps/erp/app/modules/resources/resources.models.ts:325`). Select a training in the **Training** field before saving. The field is read-only when editing an existing assignment, so this only bites on create.--### "At least one group is required"-An assignment must target at least one group; the `groupIds` array was empty. Add one or more groups in **"Assign to Groups"** before saving.--### "Training assignment is required" / "Employee is required"-The mark-complete action needs both `trainingAssignmentId` and `employeeId` (`apps/erp/app/modules/resources/resources.models.ts:333`). These come from hidden fields on the Status-tab row; an empty value means the row didn't carry them — reload the assignment and try again from the Status tab.--### "Why didn't a reminder send?"-Not an error string — a common question. Checklist of preconditions for the weekly digest (`packages/jobs/src/inngest/functions/scheduled/weekly.ts`, cron `0 21 * * 0`, Sunday 21:00 UTC):-- The employee's computed status must be **"Pending"** or **"Overdue"**. **"Completed"** and **"Not Required"** are skipped.-- The reminder cap is five successful deliveries per training per period. If five have already gone out this period, sending stops until the next period (recurring) — this is the usual reason a reminder "went quiet."-- The employee must have the `Training` notification topic enabled for the channel; a user who muted training notifications won't be emailed.-- New hires who started after a past recurring period show **"Not Required"** for it and are intentionally never reminded about it.--### "Why can't I mark someone complete / assign a training?"-The action is gated by the `resources` permission — `resources_update` to mark complete and edit, `resources_create` to create a training or assignment (`apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx`). Without it the **"Mark Complete"** and **Save** buttons are disabled. (These permissions were `people_*` before migration `20251211012654_training-to-resources.sql`; the code now checks `resources`.)--### "A completed training re-appeared as Pending"-Expected for recurring frequencies. A **"Quarterly"** or **"Annual"** training tracks completion per period; when the new period starts (a new `Q?-YYYY` or `YYYY`), a fresh completion is required and the employee resets to **"Pending"** (`20251206000000_training_assignments.sql`). Only **"Once"** trainings stay completed forever.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/two-factor.md b/apps/erp/app/modules/agent/kb/docs/reference/two-factor.mddeleted file mode 100644index cf24bd2d5b..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/two-factor.md+++ /dev/null@@ -1,60 +0,0 @@-# Two-factor authentication--> Add authenticator-app codes to sign-in, require them company-wide, and reset a lost device.--Two-factor authentication adds a second proof to sign-in: a six-digit code from an authenticator app on your phone, changing every thirty seconds. You can turn it on for yourself, and an admin can require it for everyone in a company. The two are related but not the same: **the requirement belongs to a company; the authenticator belongs to you.**--## Turn it on for yourself--Open **Account → Security** and press **"Add Authenticator App"**.--Scan the QR code with any TOTP app (Google Authenticator, 1Password, Authy), or tap the secret beneath it to copy and enter it by hand.--Type the current code into the six-box field and press **"Verify"**. Nothing is active until the code checks out — abandoning the dialog halfway leaves nothing behind.--Carbon emails you a receipt the moment it's on; if one arrives that you didn't cause, remove the factor and tell an admin. To remove it yourself, press the trash icon next to the factor and enter a current code.--Once verified, every sign-in asks for a code — magic link, Google, Outlook, and passkey alike. `docs/reference/single-sign-on` is the one exception: an SSO session arrives with your identity provider's MFA already enforced, so Carbon skips its own code screen.--## Require it for everyone--Open **Settings → System → Security** and turn on **Two-Factor Authentication Enforcement**. It takes effect on each person's next page load, and every active employee is emailed the announcement. Anyone without an authenticator then sees a full-screen **"Set up authenticator app"** prompt — they complete the same QR-and-code flow right there, or sign out; there is no way past it.--Once enforcement is on, **People → Employee accounts** shows a **Two-Factor** column reading **"Enabled"** or **"Not set up"** per person. The column only renders while the company requires two-factor.--If you belong to two companies and only one requires two-factor, you're prompted to enroll only while in that company — but once enrolled, you're asked for a code at **every** sign-in, to either company. In controlled (ITAR/CMMC) deployments two-factor is mandatory and the switch is locked on; SSO sessions stay exempt even there.--## When someone loses their phone--There are no printed backup codes — recovery is an admin action, which keeps it auditable. An admin with permission to update users opens **People → Employee accounts** and chooses **"Reset Two-Factor Auth"** from the person's row menu. Their next sign-in is an ordinary magic link, and they enroll a fresh device.--The authenticator is attached to the account, not the membership, so removing it removes it everywhere. Keep user-management permission on at least two people — if your only admin loses their phone, there is no self-service way back in.--## What it doesn't cover--Machine access is never challenged: `docs/building/api-keys` and integrations keep working, and shop-floor PIN operators are never prompted — they pin in at a shared terminal, so two-factor applies to whoever signed the terminal in. To restrict what an authenticated person can *reach*, that's `docs/reference/permissions`.--## Troubleshooting--Behavior details: a code is valid for its thirty-second window plus one window either side; repeated attempts are rate-limited on the sign-in budget. Sessions are re-checked on each request, so pre-existing sessions on other machines get the code screen on next use. The authenticator-app entry is labelled `Carbon (Company Name)` over the user's email — the company name is baked in at enrollment and doesn't update on rename. The enforcement announcement email goes out on each off → on transition only.--### "That code isn't right" on a code the user just read-Almost always clock drift on the phone — set the device to network time. Failing that, confirm they're reading the entry for the right company; two Carbon entries are distinguished by the company name in the label.--### Someone is stuck on the setup screen and can't get in-That's a company with enforcement on and a person without an authenticator. They complete setup on that screen and continue. If they can't (no phone to hand), the only other option is signing out.--### The Two-Factor column isn't in the employee list-The column only renders while the company requires two-factor. Turn the setting on in **Settings → System → Security** and it appears.--### Turning enforcement on didn't prompt anyone-It applies on each person's next page load, not retroactively to idle sessions. The announcement email is what reaches them in the meantime.--### Nobody got the announcement email-It's sent only when the setting transitions from off to on, and only to active employees. If it was already on (someone else flipped it, or the deployment is a controlled environment where it's locked on), there's no transition to announce.--### An admin can't turn enforcement off-The deployment is a controlled (ITAR) environment, where two-factor is mandatory and the switch is locked on.--### Passkey users are asked for a code — is that a bug?-No. A passkey resolves into an ordinary session like any other sign-in method, so exempting it would leave a way around the requirement. Only SSO sessions skip the challenge (the identity provider owns their MFA), in every environment including controlled ones.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/work-centers.md b/apps/erp/app/modules/agent/kb/docs/reference/work-centers.mddeleted file mode 100644index 076ff1b7b1..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/work-centers.md+++ /dev/null@@ -1,40 +0,0 @@-# Work centers--> 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, tied to a location: a station, a machine, a cell. It carries the rates used to cost and schedule work, and performs one or more **processes** (the capabilities, like *cut* or *weld*).--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-- - **Name**: Unique within its location.- - **Location**: The site it belongs to.- - **Labor rate**: Cost per labor hour.- - **Machine rate**: Cost per machine hour.- - **Overhead rate**: Cost per hour of overhead.- - **Department**: The department the work center rolls up to.- - **Default unit**: The standard factor time is expressed in (e.g. *Minutes/Piece*).- - **Always on**: Lights-out (24×7) operation. The scheduler treats the work center as continuously open, and it is exempt from a location's staffing-required policy.- - **Shifts**: Shifts assigned to this work center. They define its operating hours for scheduling; without them, the location's shifts (or a stock Mon–Fri, 8-hour week) apply.--## 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.--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.--## 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 and operating hours--A work center is a **finite resource**: the `docs/reference/scheduling` places one operation on it at a time, inside its real operating hours. Those hours come from a ladder, first rule wins: **Always on** (lights-out, continuously open) → the work center's own assigned shifts → the location's shifts → a stock Mon–Fri, 8-hour week. Booked time is materialized as capacity reservation rows, which is what the Forecast page draws.--An open maintenance task that takes the work center offline subtracts its downtime from those hours (lights-out machines included), so the scheduler routes work around a machine that's down rather than booking it.--## Related-- - Routings The operations that get scheduled onto work centers.- - Manufacturing accounting How a work center's rates become a job's labor and machine cost.diff --git a/apps/erp/app/modules/agent/kb/docs/reference/workflows.md b/apps/erp/app/modules/agent/kb/docs/reference/workflows.mddeleted file mode 100644index df9df619aa..0000000000--- a/apps/erp/app/modules/agent/kb/docs/reference/workflows.md+++ /dev/null@@ -1,124 +0,0 @@-# Workflows--> Build an automation on a canvas: one trigger, conditions, and steps that act, with every firing recorded step by step in run history.--A workflow watches for something happening in Carbon and then does something about it: notify the account manager when a sales order changes hands, open an issue when a job is put on hold, or call your own service when a shipment is posted. You build one on a canvas under **Automate → Workflows**, wire the steps together, and press **"Publish"**. It is a canvas, not a list of rules: steps are cards you drag from the palette and connect by their handles, so one trigger can fan out into several branches that each end differently. Every firing is recorded step by step; see [runs and history](#runs-and-history) below.--## What starts a workflow--Every workflow has exactly one **Trigger** step, and it works one of two ways. The **"Trigger type"** toggle picks between **"Event"** and **"Schedule"**; choosing one clears the other.--**Events.** An event is a specific change to a specific record:--| Shape | Example | What you get |-| --- | --- | --- |-| Created | `job.created` | The new record |-| Deleted | `purchaseOrder.deleted` | The record as it was |-| A column changed | `customer.assignee.changed` | The record, plus its `before` and `after` values |--You pick the exact field you care about. Ten record types can be watched — purchase orders, sales orders, jobs, items, receipts, shipments, quotes, suppliers, customers, and issues — each with its own short list of watched fields. A change to a field nobody watches starts nothing at all.--**Business moments.** Below the per-record events, the picker has one group headed **"Business moments"**: the nine points in Carbon's own flows where something meaningful finished: a job released or put on hold, a job operation completed, a quote sent or accepted, a receipt or shipment posted, a sales or purchase invoice posted. A business moment hands your workflow the *identity* of each record, not a copy of its fields; add a **Find** step when you need to read something the moment didn't name.--**Schedules.** In **"Schedule"** mode you pick a **"Frequency"** of Daily, Weekly, or Monthly, the days it applies to, a **"Time of day"**, and a **"Timezone"**; the builder shows a live **"Next fires at:"** line as you change it.--The time is stored as wall-clock time plus a zone, so 09:00 stays 09:00 across daylight-saving changes. A monthly schedule set to the 31st simply **skips** months with no 31st, and after an outage Carbon resumes from the next due time instead of replaying missed ones. Anything more than an hour late is recorded as skipped. Each workflow also carries a small fixed offset of up to five minutes, so a 9:00 schedule fires somewhere in 9:00–9:05.--**"Triggered by".** Event triggers also choose *who* caused the change: **"People"**, **"Workflows"**, or **"Both"**. A new trigger starts at **"People"**, which is the safe answer: it stops a workflow from reacting to edits made by workflows, including its own. Switch it to **"Both"** deliberately, when you want one automation to feed another.--## The steps you can add--Six kinds, in palette order:--| Step | What it does |-| --- | --- |-| **Trigger** | Starts the workflow. One per workflow, and nothing can connect into it. |-| **Condition** | Sends the run down one path. Each path is a set of clauses, with an optional **"Otherwise"**. |-| **Action** | Does the work — notifies, creates, updates, or calls out. Has separate **Success** and **Failure** handles. |-| **Compute** | Works out a number from a record, such as an order total or a scrap percentage. Read-only. |-| **Find** | Looks a record up so later steps can use it. |-| **Filter** | Keeps only the items in a list that match your rules. |--**Actions** come in three families. Four create records (a job, an issue, a purchase order, or a sales order), each through the same service Carbon's own screens use, so sequences, defaults, and required fields behave identically. Ten update an existing record, one per watched record type. The last two are **"Notify someone"** and **"Call an outside URL"**.--An update step can only set the fields Carbon lists for that record: an assignee, a due date, a reference, a priority. Statuses are not writable from a workflow, and there is no delete action of any kind. What a workflow can *watch* and what it can *write* are two different lists.--## Filling in a step--Most fields take either a value you type or a value from an earlier step. Type `{` in a text field and a menu opens listing the steps above this one, their outputs, and up to two levels of properties. Only steps *guaranteed* to have run before this one are offered — a value from the other side of a condition is not on the menu, and referring to one is rejected at publish.--**Repeating steps.** There is no repeat checkbox. Wire a list into a field that expects a single value and the step runs once per item, which the form confirms in place, up to 100 items. Wiring two lists into the same step is an error at publish time rather than a guess about which one to loop over.--## Calling an outside URL--The **"Call an outside URL"** action sends an HTTP request, a webhook, so another system can react to something in Carbon.-- - **URL**: The `https` address to call. Variables are allowed, so the address can include a record's id.- - **Method**: `GET`, `POST`, `PUT`, `PATCH`, or `DELETE`. A new step starts at `GET`.- - **Headers**: Extra information sent with the request, such as an authorization key. Values can contain variables, and every header *value* is masked in run history.- - **Body**: The request payload, with variables substituted. Only shown and sent for `POST`, `PUT`, and `PATCH`.--Plain `http` is rejected, and so is any address resolving to a private or link-local network, `localhost` and cloud metadata endpoints included. Redirects are not followed, the call gives up after ten seconds, and any answer that isn't a success status fails the step. Eight headers are set by Carbon and cannot be overridden. Carbon does not sign the request — if the receiving system needs to verify the caller, give it a shared secret in a header.--## Saving, publishing, and versions--There is no Save button: the builder saves as you work and reports **"Saving…"**, **"Saved"**, or **"Could not save"** next to the title. A half-finished draft saves happily; nothing is checked until you publish.--**"Publish"** is all-or-nothing. Carbon validates the whole workflow — a trigger exists, no step loops back, every required field is filled, every variable resolves and comes from upstream — and if anything is wrong, nothing is written; the problems appear in a panel and clicking one pans the canvas to the offending step. Publishing is also the only on/off switch: whichever version you publish is the one that runs, and **"Unpublish"** stops the workflow entirely. Nothing is deleted, so publishing again starts it back up. A workflow with nothing published reads as **Draft**.--Publishing freezes that version. To keep working, use the version menu to create a new version, which copies the published one and numbers it one higher. A run already in flight keeps using the version it started with even if you publish another mid-run. The trigger card also has a **"Test run"** button (owner only): it executes for real, but the result is never written to run history.--## Who can do what--Workflows have their own permission module: **View** opens the list, builder, and run history; **Create** adds workflows and versions; **Update** edits, publishes, and test-runs; **Delete** removes a workflow with its versions and history. Every route also requires an employee account.--Every step reads and writes with the owner's permissions, re-checked at each step. If the owner's access is revoked the run stops with a plain message naming the area. Nothing a workflow does can reach outside the company it belongs to — and run history is read-only in the database itself, so no user, however privileged, can edit or forge a run log.--## Runs and history--Every firing is recorded as a workflow run: one row for the run and one per step, with the values in, the values out, and why it ended the way it did. Open **Automate → Runs** for the list: status, workflow, trigger, the record it started from, duration, owner, and a **Chain** cell reading **"Hop 2"** when the run was caused by another run. Rows update live while anything is queued or running.-- - **Queued**: Accepted and waiting for a worker to pick it up.- - **Running**: A worker has claimed it and is walking the steps.- - **Succeeded**: Every step that ran finished without error.- - **Failed**: At least one step failed, or the run hit the 500-step ceiling.- - **Blocked**: A loop guard stopped it before any step ran. The reason is on the run.- - **Skipped**: It never started: the workflow was unpublished, or a scheduled run came due too late, or its previous run was still going.--Clicking a row opens the **"Run Details"** drawer with a one-line plain-English outcome (*"Failed at 'notify the buyer': The address answered 500."*). Below it the steps appear in workflow order rather than execution order, so a step that never ran still holds its place, greyed and marked **"Not reached"** or skipped with its reason. Expand a step for its **Input**, **Output**, and — on conditions — a clause-by-clause **Why** with the path taken marked. A repeating step records each item plus a summary that counts what actually ran (*"Ran 100 of 150; 50 were not used"* means the 100-item cap, not an error).--If a condition matches none of its paths and has no **"Otherwise"**, that step *succeeded* — it correctly decided not to continue. The run ends successful with most steps never reached, which is why the outcome sentence spells out what happened instead of leaving you to read a green badge. Missing data is likewise a skip, not a failure, and a condition whose values cannot be read does **not** fall through to its **"Otherwise"**: an unknown is not a no.--A failed step stops its branch, not the run: other branches keep going, and a wired **Failure** handle is followed, though the run is marked failed at the end regardless. The one exception is a permission failure, which stops the branch outright even when a failure path exists.--**Chains.** When a workflow's writes trigger another workflow, the runs are linked and the drawer draws the whole chain. Two guards record a **Blocked** run rather than looping forever: a cycle (the same workflow already ran in this chain) and a depth limit of ten hops. The [**"Triggered by"**](#what-starts-a-workflow) setting is the first line of defence.--A finished run cannot be re-run from the Runs page. Fix the outside cause and let the next trigger fire, or use the builder's **"Test run"**. A run that crashes mid-flight is retried automatically by the queue, and because each step is claimed before it acts, the retry cannot repeat work that already completed.--**Retention.** A nightly job tidies history in four passes, ignoring runs still in flight: after 24 hours a run still queued or running is closed as failed; after 7 days recorded values are summarised in place; after 30 days step rows are deleted (the run survives); after 90 days the run is deleted entirely. Values whose names look like credentials are stored as `[REDACTED]` and every webhook header value is masked, while ordinary fields that merely sound sensitive (an item key, who authorised something) are left alone: a debugging tool that hides too much is as broken as one that hides too little.--## Related-- - Notifications Where a workflow's "Notify someone" step lands, and how people mute topics.- - Approvals Rule-based gates on documents, the other half of Automation.- - Audit log The separate, entity-centric record of who changed what.--## Internals, exact messages, and troubleshooting--Builder: the variable menu placeholder is "Type { to insert a variable"; cross-branch references are rejected at publish with "This uses a value from a step that does not always run before it."; a list wired into a single-value field confirms "A list is wired into … so this step runs once for each item in it — up to 100." The Compute step was previously named "Record" — old workflows open as Compute and keep their step names. Webhook: blocked headers fail publish with "… is set by Carbon and cannot be changed here."; Content-Type defaults to application/json on body-carrying methods; the response status is the step's output and the first part of the body is kept in the step summary. Publish problems appear in a panel headed like "3 problems — not published". The published-version lock reads "This version is published. Create a new version to edit." Test run notes "The result will not appear on the Runs page."--Runs: step statuses are Running / Succeeded / Failed / Skipped only (Queued and Blocked are run-level). Outcome sentence examples: "Completed — 4 of 6 steps ran."; "Nothing happened — 'only if overdue' matched none of its conditions, so the 3 steps after it never ran."; "Stopped early — 'find the customer' was skipped: That list was empty, so there was nothing to do."; "Blocked — Cycle: this workflow already ran in this chain". Skip labels: "Not reached", "Skipped — the check above didn't match", "Skipped — an earlier step failed". Repeating summaries: "Ran 3 of 3; 1 failed." — the summary succeeds if at least one item succeeded; an empty list is one skipped step ("That list was empty, so there was nothing to do."). Blocked reasons: "Cycle: this workflow already ran in this chain" and "Chain depth limit reached (10 hops)". A "Show raw" toggle dumps the underlying JSON. Scheduled runs have a blank Record cell.--Retention banners: the 24-hour reaper writes "This run stopped reporting and was closed automatically after 24 hours."; after summarising the drawer shows "Values in this run have been summarised. Full detail is kept for 7 days."; after step deletion, "Step detail is kept for 30 days. This run's steps have been removed." Redacted key patterns include secret, token, password, authorization, api key, bearer, cookie; deliberately NOT redacted: itemKey, authorizedBy, keyword, sessionId. Owner-permission failures read like "The owner of this workflow no longer has access to Purchasing."--### A run is missing from the Runs page-Test runs are never written to history. Scheduled runs more than an hour late are recorded as Skipped, not missing. Runs older than 90 days are deleted by retention.--### Why did my workflow fire twice / react to itself?-"Triggered by" is set to "Both" (or "Workflows"). Set it to "People" to ignore workflow-caused edits, including its own.--### The run shows Succeeded but nothing happened-A condition matched no path and had no Otherwise — that is a successful decision not to continue. Read the outcome sentence; it names the condition.--### Steps are gone from an old run-Retention: step rows are deleted after 30 days, the run header after 90. The drawer's banner distinguishes "steps purged" from "run has no steps yet".diff --git a/apps/erp/app/modules/agent/kb/guides/build.md b/apps/erp/app/modules/agent/kb/guides/build.mddeleted file mode 100644index cbc1f0d663..0000000000--- a/apps/erp/app/modules/agent/kb/guides/build.md+++ /dev/null@@ -1,40 +0,0 @@-# Inside the build--> How each satellite part is made or bought.--Open the job you just released and look at what it actually takes to build a satellite bus. 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 satellite bus's bill of materials (BoM) is a tree. SAT-1000 is built from subassemblies — the BUS-STR-001 structural frame, the EPS-001 electrical power subsystem, ADCS-001, COMMS-001 and the rest — and each of those is built from parts of its own: the power subsystem from solar array wings and a battery pack, the frame from aluminium plate and fasteners. Carbon shows the whole structure at a glance, with every node carrying an icon for how it's obtained.--## 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:--- Make to Order: you manufacture it. The structural frame and the solar array wings are built in-house, so each becomes its own job with its own operations.-- Purchase to Order: you purchase it. The battery packs come from a supplier, so they flow through `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 `docs/reference/items`, and every BoM that uses that item mirrors it. Switch a part's method type once, and it cascades everywhere the part appears.--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.--## Kits & subassemblies--Because the structural frame and the power subsystem 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:--- Subassembly: built as its own job, with its own routing and its own completion. You can release the structural frame independently of the final satellite, 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.--## 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 bus's method lists the structural frame, the power subsystem, and their siblings; open the power subsystem and you're in its method, its solar array wings set to Make to Order and its battery pack 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.--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.diff --git a/apps/erp/app/modules/agent/kb/guides/change-order.md b/apps/erp/app/modules/agent/kb/guides/change-order.mddeleted file mode 100644index 7171be3a64..0000000000--- a/apps/erp/app/modules/agent/kb/guides/change-order.md+++ /dev/null@@ -1,119 +0,0 @@-# Revise a part--> An engineering change, drafted against the real method, reviewed as a diff, and released so planning phases over on its own.--The satellite bus's antenna pointing bracket needs a thicker wall and one fewer fastener. In a lot of systems that means editing-the live part and hoping nothing in flight notices. Carbon makes you do it deliberately: you open a-change notice, edit a hidden draft of the part's method, review exactly what changed, and release-when it's ready. Until that moment, every job, plan, and cost calculation still sees the old bracket.--> A change notice is the paper trail and the workbench at once. You revise on a draft that no one else can-> see, and release turns that draft into the new truth.--## Start with the parts, not the change--You can start from **Items → Change Notices → New**, but you'll usually start from the bracket itself. Its part-header has a **"Create Change Notice"** action, its row in the parts table has the same, and the method's-version menu — the one with **New Version** — offers **New Change Notice** right where you're looking at the-recipe. Each of those pre-attaches the bracket as the first affected item. A change can even start from a-quality issue, which links the non-conformance to the change notice so the fix traces back to the problem.--However you start, the header form is short: a **"Name"**, a **"Category"** (your change-notice types, seeded-with a starter set like *Design Improvement*, *Cost Reduction*, and *Obsolescence / End-of-Life*), a **"Reason for Change"** and **"Description-of Change"**, an **"Owner"**, **"Priority"**, and dates. If you started from a quality issue, that-non-conformance rides along as the linked issue. The affected item is the unit of work, and once you're on the-change notice the **Add Affected Item** picker is deliberately narrow: **Parts only**. A material, consumable,-or service doesn't carry an engineering revision, so it never appears.--Before you touch the bracket, though, its own page already warned you this was coming. A part that's on an-open change notice shows a heading right on its detail page — *"This part is on 1 open change notice"* — with the-change notice linked, so nobody revises a design that's already mid-change. The alert informs rather than-blocks: a second change notice on the same part is allowed, and Carbon keeps their draft versions from-colliding, so a deliberate parallel change is fine.--Carbon doesn't ask you to describe a change as a list of add-this, delete-that rows. You select the affected-part and then edit its actual bill of materials and bill of process inside the change notice. The change is-whatever the finished draft says it is.--## Draft the change in place--Add the bracket and Carbon quietly snapshots its live method into a new **Draft**-version stamped to this change notice. That draft is invisible everywhere else — it won't show in a version-switcher, a copy-target list, or anything MRP, jobs, or costing read. You edit it with the same **Bill of-Material** and **Bill of Process** editors you'd use on the part directly.--Before you edit, pick a **change type** on the affected item. It's the most consequential choice on the whole-change notice, because it decides both what you can touch and what release will create. You can switch it-later, but not for free: switching discards the draft and mints a fresh one from the live method, so any-edits you'd made are reset. Decide the type first, then edit.--- Version revises how the *same* part is made. You edit its BoM and- BoP; release publishes a new method version and archives the old one. No new part, nothing superseded.-- **Revision** mints a new revision of the part (same Part ID, next revision). You edit its attributes,- documents, and method; release reveals the new revision and supersedes the old one.-- **Replacement Part** derives a brand-new part *number* from this one. Release reveals it and supersedes the- old part with it. The 1:1 replacement.-- **New Part** introduces a genuinely new part with no old part behind it. Release reveals it, but supersedes- nothing, because there's no predecessor to phase out.--This trips people up. A **Version** bumps the recipe on the existing bracket, so existing stock and history-stay put and nothing is superseded. A **Revision** and a **Replacement Part** each derive a new item *from* the-old one, so each auto-writes a supersession at release. A **New Part** is net-new — there's no old part to-phase out, so it supersedes nothing. Pick the wrong type and you either strand stock or fail to phase it over.-A purchased part has no method to version, so adding a **Buy** item lands on **Revision** automatically.--For the bracket we want the wall change to carry a new drawing revision and phase over cleanly, so this is a-**Revision**. You thicken the wall in the attributes, drop the extra fastener line from the BoM, and attach-the updated drawing — all on the draft.--If the revised part were purchased instead of made, its line would carry a **Supplier Parts** grid. The draft-starts with none, because the old revision's suppliers aren't copied over. Leave it empty and the new part-releases with nowhere to buy it — no purchase order can reference it. So for a **Buy** revision you add the-supplier, part number, price, and order quantities on the line before you release.--## Review the diff--Advance the change notice through its stages: **Draft**, then **"Start"**, then **"Engineering Complete"**,-then **"Implementation"**. It only moves forward, one step at a time, and **"Start"**, **"Implementation"**,-and **"Done"** each notify the assignee and the action-task assignees, so the people working the change hear-about every stage it enters. There's no separate approval step to configure — the stages are the-workflow, and the change notice is its own gate. If the change doesn't pan out, you're not trapped in the-forward march either: a **"Cancel"** action sits in the header at every open stage. Cancelling locks the-change notice but keeps every draft, and **"Reopen"** takes it back to **Draft** later with your edits-intact, so shelving a change costs nothing.--You don't have to reach Implementation to see what you've done. The overview page carries a **Changes** card-that rolls up every affected item's diff as you edit — the dropped fastener, the thicker wall, any supplier you-added — so the review is available the whole time, not just at the gate.--At **"Implementation"** the **"Release"** action opens. It doesn't just apply the change: it shows you every-affected item's change as a read-only diff first. Materials added and removed, operations and their steps-changed, attributes that moved — laid out line by line against the method you snapshotted from.--There's no shadow copy of your edits to drift out of sync. You edited an actual draft method, so the diff is-simply that draft compared against the live one it came from. What you review is exactly what releases.--## Release, and let supersession carry it--Confirm the release and Carbon walks the affected items. For the bracket revision it activates the draft-method, archives the prior version, reveals the new revision as a live item, and writes a-supersession from the old revision to the new one. When every item is done, the change notice-flips to **"Done"** and locks as a read-only record.--You never wrote that supersession by hand. You only chose *how* it phases over, through the affected item's-cutover fields: a supersession mode (defaulting to **Consume First**), a-discontinuation date, and a successor effectivity date. From there, planning takes over.--**Consume First** exhausts on-hand of the old bracket before switching; **Prefer New** redirects new demand-immediately. Once the successor is effective, MRP redirects planned demand to the new revision and **Get-Method** substitutes it onto new jobs, recording where the substitution came from.--Existing stock stays on the old bracket, and any job already created keeps the exact material and method-version it was built against. The same goes for paperwork: an open purchase order or quote line that names-the old revision keeps it, and nothing warns or rewrites it at release. Supersession only touches forward-planning — a job cut after the effectivity date picks up the new revision, one cut before it does not.-That's what makes releasing safe on a busy floor.--Afterward the new revision carries a *"Created by CN-…"* back-link to the change notice that made it, and the-bracket's page shows its full change history. The trail from "the wall was too thin" to the released revision-is one click, and the floor never built a single bracket against a design that wasn't done.diff --git a/apps/erp/app/modules/agent/kb/guides/fixed-assets-acquire.md b/apps/erp/app/modules/agent/kb/guides/fixed-assets-acquire.mddeleted file mode 100644index 78687f55d8..0000000000--- a/apps/erp/app/modules/agent/kb/guides/fixed-assets-acquire.md+++ /dev/null@@ -1,33 +0,0 @@-# Acquire and depreciate--> Put a machine on the books and write its value down over time.--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.--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.--## 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.--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.--## 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.--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.--## 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/erp/app/modules/agent/kb/guides/fixed-assets-sell.md b/apps/erp/app/modules/agent/kb/guides/fixed-assets-sell.mddeleted file mode 100644index 6381264152..0000000000--- a/apps/erp/app/modules/agent/kb/guides/fixed-assets-sell.md+++ /dev/null@@ -1,23 +0,0 @@-# Sell or dispose--> Two ways an asset leaves the books: sold to a buyer, or scrapped.--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.--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.--## 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"**.--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.--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.--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/erp/app/modules/agent/kb/guides/floor.md b/apps/erp/app/modules/agent/kb/guides/floor.mddeleted file mode 100644index 2b6a999c78..0000000000--- a/apps/erp/app/modules/agent/kb/guides/floor.md+++ /dev/null@@ -1,54 +0,0 @@-# Run the floor--> Work hits the floor; the floor reports back.--Time to build. You release the first production job 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.--## The schedule--The released work lands on the MES "Schedule" board, a Kanban with one column per work center. Each column holds the operations queued at that center, sorted by dispatch priority so the operator always sees what to run next. The Display popover lets each station tune its own board, toggling empty work centers on or off and showing or hiding the customer, description, due date, duration, progress, status, sales order, and thumbnail on each card. Filters narrow it further, by work center, process, tag, or assignee.--The MES board is a live read of the schedule, so operators can filter and focus but they don't drag work to reschedule it. Rebalancing the plan, moving an operation to a different work center or shifting a job's dates so Carbon reschedules it, happens on the `docs/reference/scheduling`, where a planner owns the sequence. What lands here is the result.--## Operations & work centers--Open a job and its routing is an ordered list of operations. Each operation names a process (Mill, Weld, 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. Hard-anodizing the structural panels, say: the step leaves your floor, goes out, and comes back to finish its routing.--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 frame is away being anodized.--## Work instructions--On the shop-floor view, an operator doesn't see a spreadsheet — they see rich work instructions: an ordered checklist of steps, each with its description and the measurement tolerance it has to meet, for the exact operation in front of them. It reads like a great minimal manual, and it's always the current revision.--## At the station--When the operator opens their operation on the MES, the controls feel physical, closer to a machine panel than a form. A big Play button reads "Start"; press it and it becomes "Pause". Everything they do here flows straight back to the job:--- Clock time against the operation's work type: the button beside the Play control reads "Labor", and starting and stopping it opens and closes a production event, so the operation's estimated hours meet the actual ones. An operation that also carries setup or machine time offers those work types in the same control.-- "Issue Material" to issue the operation's components onto the job as they're consumed.-- "Log Completed" for good units, "Log Scrap" with a scrap reason, or "Log Rework" as pieces come off the operation. "Complete All" reports the whole remaining quantity in one tap.-- "Finish" to close the operation. It ends every active production event in one move and flips the operation to "Done".--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 `guides/job-costing`.--"Finish" closes one operation for good. "End Operations", from the sidebar, is the end-of-shift move: it stops every production event you have running without completing or finishing any of them, so the clock stops but the work stays open for the next person to pick up. If time cards are turned on, clocking out does the same to your labor clock.--## 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 frames or the batch-tracked battery packs, 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.--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 `guides/job-costing` — while the parts that truly need tracing stay explicitly issued.--## 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 `docs/reference/traceability`: the child is marked consumed, the unit is marked produced, and the link between them is permanent.--Serialize what you track one-by-one: the finished satellite, its structural frame, its solar array wings. Batch-track what moves in lots: battery packs, fasteners, aluminium plate. Scan a serial into a batch and Carbon records the link, so the satellite's record knows exactly which battery lot it carries.diff --git a/apps/erp/app/modules/agent/kb/guides/job-costing.md b/apps/erp/app/modules/agent/kb/guides/job-costing.mddeleted file mode 100644index 6d378eed71..0000000000--- a/apps/erp/app/modules/agent/kb/guides/job-costing.md+++ /dev/null@@ -1,37 +0,0 @@-# How a job costs out--> Where a job's cost comes from, and how it piles up in work-in-process.--The `guides/order` built satellites. This flow follows the money those jobs spend. As a job is worked, Carbon accumulates its cost (materials consumed, plus labor, machine, and overhead 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.--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.--## 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, machine, and overhead.** Every production event a worker or machine logs carries a duration. Carbon prices it against the **work center's** rates and posts it in real time: a debit to WIP, a credit to an absorption account, tagged *Production Event*. Labor and machine time each post at their own rate (hours times the rate); if the work center also carries an overhead rate, the event books a second pair, a debit to WIP and a credit to an overhead-absorption account, at that rate. All three rates come from the work center, not from the operation's estimate.--WIP is the sum of consumed material and the priced production events. Each event posts labor and machine at the work center's rates, and when the work center has an overhead rate, that too is absorbed into WIP alongside the time, gated on the overhead-absorption account being configured. WIP is real material plus real time, not a standard estimate.--## 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.--Scrap and rework are recorded as their own production quantities. Scrapping a tracked part relieves its cost from the job: debited to a dedicated scrap account and credited out of WIP (or straight out of inventory, for a part still in stock), tagged with the reason, work center, and operator. The ruined value leaves the job rather than riding along to close, and the scrap reopens the routing so a replacement gets built. See `docs/reference/scrap`.--## 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 `docs/reference/accounting`**, 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.--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.diff --git a/apps/erp/app/modules/agent/kb/guides/job-finish-close.md b/apps/erp/app/modules/agent/kb/guides/job-finish-close.mddeleted file mode 100644index 5f3ba7eba0..0000000000--- a/apps/erp/app/modules/agent/kb/guides/job-finish-close.md+++ /dev/null@@ -1,35 +0,0 @@-# Finish, sell, close--> WIP becomes finished goods, finished goods become COGS, and the job settles.--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, you complete the job. The **"Complete Job"** dialog confirms the move — it shows the **"Quantity Completed"**, derived from the serials and batches completed in MES rather than typed in, and warns that the job will no longer be available on the shop floor. Carbon then backflushes any untracked material still owed — serial- and batch-tracked material has to be scanned in on the floor, so it is never backflushed — catches up any labor that hasn't posted yet, and **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.--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.--## 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.--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.--## 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 `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.--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.--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/erp/app/modules/agent/kb/guides/order-to-cash.md b/apps/erp/app/modules/agent/kb/guides/order-to-cash.mddeleted file mode 100644index a8c93f7e76..0000000000--- a/apps/erp/app/modules/agent/kb/guides/order-to-cash.md+++ /dev/null@@ -1,47 +0,0 @@-# Ship, invoice, get paid--> Fulfill the order, post the shipment and invoice, then record payment.--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, apply a payment against it. 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 `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.--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.--## 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.--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.--## 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.--## 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 moves the invoice to **"Submitted"**. Note what it is *not*: posting never marks an invoice **"Paid"**.--Payment is its own posted entity now, not a checkbox on the invoice. You record a **payment** (a **"Receipt"** on the sales side) and apply it to one or more invoices through a **settlement**. Each settlement line carries the principal it applies, plus any early-payment discount or write-off. A **credit memo** works the same way: it's a posted balance you apply via a settlement rather than cash. The payment itself moves through **"Draft"**, **"Posted"**, **"Voided"**, and posting it writes the cash-account and Accounts-Receivable entries.--The invoice's paid status is *derived* from those settlements, not stored by hand. Once applied settlements cover the total the invoice reads **"Paid"**; part-way there it reads **"Partially Paid"**; past its due date and unsettled it reads **"Overdue"**. Need to undo a posted invoice? Voiding writes compensating reversing entries; you can't simply delete it.--There's a real payment record (a **"Receipt"** for cash in) that you apply to invoices through settlements, and credit memos settle the same way. The invoice's **"Paid"** / **"Partially Paid"** status is computed from what's been applied, so the ledger and the balance always agree. All postings are gated on accounting being enabled.--That's quote to cash end to end: an opportunity priced into a quote, accepted into an order, shipped, invoiced, and settled by an applied payment, each step its own posted move, each leaving a trail you can stand behind.diff --git a/apps/erp/app/modules/agent/kb/guides/order.md b/apps/erp/app/modules/agent/kb/guides/order.mddeleted file mode 100644index d344e97648..0000000000--- a/apps/erp/app/modules/agent/kb/guides/order.md+++ /dev/null@@ -1,46 +0,0 @@-# Start with the order--> A 90-unit solar array wing order becomes real work.--Meet the shop we'll follow through this guide: Nebula Aerospace, an OEM that builds satellites. One customer, NovaSat Networks, just placed an order for 90 solar array wings. By the end, you'll have followed that order all the way from the sales desk to 90 finished wings 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.--## The sales order--Open the sales order dashboard. There's already an order on the books: SO000009, 90 SAW-001 Solar Array Wings at $35,000 each. But the customer doesn't want all 90 at once, so the order carries three lines of 30 — one this week, one next week, one the week after. That delivery schedule is going to shape everything downstream.--Shipping part of an order doesn't close it. The badge on the header reads **"In Progress"**, the display status Carbon shows while the order's make-to-order lines still have production to finish; the stored status underneath is **"To Ship and Invoice"** while any unit has yet to ship. Once every unit has shipped but you haven't billed yet, it moves to **"To Invoice"**. The order closes only when everything has both shipped and been invoiced. That's what lets one order be fulfilled in batches without losing track of what's left.--Carbon has a full Quote module with quantity-break pricing, so the 90-unit price could have been negotiated in quote to cash first. We'll pick the story up at the confirmed sales order, where the build truly begins.--## Batch it into jobs--You don't build 90 wings as one monolithic job. To match the three-week delivery schedule, the order's three lines of 30 become three jobs of 30, one per delivery, each scheduled, released, and shipped on its own timeline.--You create those jobs from the sales order itself. The **"Jobs Required"** banner at the top of the order is the prompt; its **"Create Jobs"** button covers the whole order at once. To do it line by line, use the line's **Jobs** card: click **"Make to Order"** and the **"Convert Line to Job"** dialog opens with the **Quantity** already prefilled at the line's 30. Create the first job, then repeat for the second and third lines. Carbon counts down the units still waiting on a job (90 → 60 → 30), so you always know how much of the order is left to batch. To build only part of a line, lower the prefilled **Quantity** and convert the remainder later.--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.--## Create the job--From the sales order, create the job. Carbon carries the part, quantity, and due date across automatically. The job inherits exactly what was sold. That way, the shop floor always has the up-to-date specifications and requirements for the job.--Carbon carries one more thing across, and it's the most important: the part'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.--## 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 and every operation, into a job-specific method that belongs to this job alone.--That copy is the whole point. Say this batch needs a one-off substitution, like a different fastener or 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.--Editing a job never silently rewrites your part library, and updating a part never disturbs a job already in flight. Nothing flows between them automatically: you copy the recipe down when the job is created, and push improvements back up only when you choose to.--## Release or plan--Now the key decision. You'll release one job, week one, and leave the other two in planning. The difference is 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 the shop floor seeing it on the schedule. They are not yet notified about this job in any way.--Planning weeks two and three now means you can order materials that have a long lead time — without cluttering this week's schedule with jobs the floor can't touch yet.diff --git a/apps/erp/app/modules/agent/kb/guides/plan.md b/apps/erp/app/modules/agent/kb/guides/plan.mddeleted file mode 100644index ee29d89fb2..0000000000--- a/apps/erp/app/modules/agent/kb/guides/plan.md+++ /dev/null@@ -1,36 +0,0 @@-# Plan ahead--> Orders and forecast become jobs and POs.--Creating that first job created demand. Carbon now knows it needs structural frames, battery packs, and machine time. But your sales orders only show part of the picture. The pipeline says more satellite buses 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 two SAT-1000 satellite buses a week for the next fortnight, climbing to four a week by week six, and to the subsystems that ride with them: ADCS-001 and EPS-001. That's real demand with no order behind it yet. Forecasting puts it into the plan anyway.--## 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.--A part set to Buy turns a replenishment into a purchase order; set to Make, it turns into a job. The reorder quantity and the minimum / maximum order quantities round the raw number into something you can actually order or build.--## 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: `docs/reference/planning` suggests the jobs to build, purchasing planning suggests the purchase orders to raise.--Purchasing planning applies conversion factors as it goes, so a satellite'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.--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.--## 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 BAT-LIION-48V battery packs, Carbon captures the batch number right on the receipt line, and a conversion factor converts what you bought into what you stock, so a case of ten packs becomes ten units on the shelf. Months later, you can answer exactly which lot of packs went into which satellites.diff --git a/apps/erp/app/modules/agent/kb/guides/quote-to-cash.md b/apps/erp/app/modules/agent/kb/guides/quote-to-cash.mddeleted file mode 100644index 873158f874..0000000000--- a/apps/erp/app/modules/agent/kb/guides/quote-to-cash.md+++ /dev/null@@ -1,47 +0,0 @@-# From quote to order--> An RFQ becomes a quote; an accepted quote becomes a sales order.--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.--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.--## 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 one can differ from the price for twenty-five. 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: **"Draft"**, **"In Progress"**, then **"Complete"** once you've settled its pricing. The line states let you quote a multi-item inquiry piecemeal instead of all at once, marking lines complete one by one rather than all at once.--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** — the page ends with an **"Accept Quote"** button — and the quote converts straight into a sales order; the option to attach their PO as a PDF appears once they've accepted. Or they **reject**, via the **"Reject Quote"** link underneath, and the quote moves to **"Lost"**. Either way the outcome lands back in Carbon without a single email thread.--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.--## 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.--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.--## 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.--There is no path from a quote straight to a production job. A `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.diff --git a/apps/erp/app/modules/agent/kb/guides/receive-and-bill.md b/apps/erp/app/modules/agent/kb/guides/receive-and-bill.mddeleted file mode 100644index b1a89172f5..0000000000--- a/apps/erp/app/modules/agent/kb/guides/receive-and-bill.md+++ /dev/null@@ -1,45 +0,0 @@-# Receive, match, bill--> Goods come in, the supplier bill arrives, and Carbon reconciles the two.--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"**.--Posting a receipt always updates inventory. The accounting entries are written only when accounting is enabled for the company: debit inventory or WIP, credit the goods-received-not-invoiced (GR/IR) clearing account. Inventory and the general ledger advance on different switches.--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.--## 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 outstanding purchase quantity is multiplied by the factor, so the receipt lands stock, and moves the item ledger, in your *inventory* unit. You still agree the order with the supplier in *their* unit, 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.--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.--## Match and post--Posting the purchase invoice writes the payable side of the ledger, all gated on accounting being enabled: credit Accounts Payable, debit inventory or WIP, reverse the GR/IR clearing the receipt set up, and send any price difference to variance. 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, a payment is its own posted entity, not a field. You record a **payment** (a **"Disbursement"** for cash out) and apply it to the bill through a **settlement** that carries the principal plus any discount or write-off; a **debit memo** settles the same way without cash. The bill's status is *derived* from what's applied: **"Partially Paid"** part-way, **"Paid"** once covered, **"Overdue"** if the due date passes first. Voiding a posted invoice writes reversing entries rather than deleting it.--Posting settles the accounting against the order and receipt; it doesn't disburse cash. The bill waits at **"Open"** until you post a payment (a **"Disbursement"**) and apply it via a settlement, which is what records the outflow and flips the bill to **"Paid"**.--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/erp/app/modules/agent/kb/guides/rfq-to-po.md b/apps/erp/app/modules/agent/kb/guides/rfq-to-po.mddeleted file mode 100644index 60fd206bcc..0000000000--- a/apps/erp/app/modules/agent/kb/guides/rfq-to-po.md+++ /dev/null@@ -1,39 +0,0 @@-# From RFQ to PO--> Shop one item to many suppliers, then turn the winning quote into an order.--Every satellite 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"**.--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.--## 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.--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.--## 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 is one of two kinds: a plain **"Purchase"**, 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.--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.--## 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 `guides/job-costing`. The subcontracted step lands in the same cost balance as the operations you ran in-house.--Outside-processing orders bridge purchasing and the floor: the vendor performs a step on your part, and receiving the PO both moves the `guides/order` job's operation forward and charges its cost to WIP. Purchasing, production, and accounting meet on one document.diff --git a/apps/erp/app/modules/agent/kb/guides/ship.md b/apps/erp/app/modules/agent/kb/guides/ship.mddeleted file mode 100644index c924adf1f4..0000000000--- a/apps/erp/app/modules/agent/kb/guides/ship.md+++ /dev/null@@ -1,41 +0,0 @@-# Quality, trace & ship--> Prove it's right, ship it, close the books.--Building the satellite 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 short in the EPS wiring harness. 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 and the job operation it was found on, so the bus now carries that open issue everywhere it appears in the system.--## 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:--- 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.--A review step gates what happens to the non-conforming assemblies: use as is, rework, scrap, or return to the supplier. Nothing is dispositioned on a hunch; the decision is recorded against the issue alongside its actions.--## 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 structural frame is assembled, you publish a new revision; every future job picks it up, and every job already running keeps the revision it started on.--New jobs pick up the latest published version; in-flight jobs never shift mid-build. And every satellite's record pins the exact procedure revision it was actually built to.--## Traceability--Because everything was captured at build time, the genealogy of a finished satellite 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 frame, which battery lot, which plate of aluminium) or forward to every place a lot was used.--One click, or one scan of the satellite'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?--## Ship & invoice--The first finished units are ready. You create a `guides/order-to-cash` against the sales order. It drafts its lines from what's outstanding, and you ship only what's actually built: on SHP000001 the line reads 2 shipped against 3 ordered, so 1 stays outstanding. Post it, then invoice that same 2. Because the order still has a unit to ship, it stays at "To Ship and Invoice" and simply carries the remainder forward; the line's shipped count rolls up as each batch goes.--Carbon ties the invoice straight into your accounting system, so the build that started at the `guides/quote-to-cash` closes on the books — partial quantity and all.--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 satellite. 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/erp/app/modules/agent/kb/manifest.json b/apps/erp/app/modules/agent/kb/manifest.jsondeleted file mode 100644index 37ad1b4849..0000000000--- a/apps/erp/app/modules/agent/kb/manifest.json+++ /dev/null@@ -1,1915 +0,0 @@-{- "_comment": "GENERATED by docs/scripts/generate-agent-kb.ts from docs/content. Do not hand-edit — run `pnpm run generate:agent-kb`.",- "docs": [- {- "slug": "docs/building/api-keys",- "title": "API keys",- "description": "A scoped secret that lets an external system call the Carbon API on your behalf, with its own permissions.",- "keywords": ["api", "keys", "docs", "building"],- "headings": [- "Creating a key",- "Authenticating a request",- "Scopes and rate limit",- "What the key unlocks",- "Keys versus webhooks",- "Internals and troubleshooting",- "\"API key lacks required permissions\"",- "403 on every call despite correct scopes",- "\"Rate limit exceeded\"",- "\"API key has expired\"",- "\"API key not found\"",- "I lost the key / can't see it again"- ]- },- {- "slug": "docs/building/architecture",- "title": "Architecture",- "description": "One journey from a button click, through the server, into Postgres, out to background jobs, and back to the screen.",- "keywords": ["architecture", "docs", "building"],- "headings": [- "Part 1: The map",- "Part 2: Follow one click all the way down",- "The short version",- "The same story, with real files",- "Part 3: Layer by layer",- "3.1 The browser and the route file",- "3.2 The gate: who is allowed to do what",- "3.3 The service layer: four doors to the database",- "3.4 The database",- "Part 4: What happens after the write",- "Part 5: The other engines",- "Workflows: the customer's own automations",- "The Assembler: the Rust service",- "Part 6: The repo map",- "Part 7: Where it all runs",- "7.1 On a laptop",- "7.2 The cloud Carbon runs",- "7.3 On a customer's own server",- "7.4 How a merge becomes production",- "7.5 Knowing what is happening",- "Part 8: There's a bug, where do I look?",- "Part 9: House rules",- "Glossary",- "Related"- ]- },- {- "slug": "docs/building/local-development",- "title": "Local development",- "description": "Run the full Carbon stack locally with the crbn CLI, in isolated per-worktree environments.",- "keywords": ["local", "development", "docs", "building"],- "headings": [- "Setup",- "Stack commands",- "Worktrees",- "Portless vs localhost",- "Sync files from main",- "Configuration"- ]- },- {- "slug": "docs/building/webhooks",- "title": "Webhooks",- "description": "Get an HTTP callback when a Carbon record is created, changed, or deleted.",- "keywords": ["webhooks", "docs", "building"],- "headings": [- "Subscribable tables",- "The payload",- "Configuration",- "Delivery & reliability",- "Related"- ]- },- {- "slug": "docs/glossary",- "title": "Glossary",- "description": "Every Carbon term, defined and linked: the manufacturing and accounting vocabulary the rest of the docs lean on.",- "keywords": ["glossary", "docs"],- "headings": []- },- {- "slug": "docs/index",- "title": "Overview",- "description": "Carbon is a manufacturing system: ERP for the office, MES for the floor. These are the technical docs.",- "keywords": ["overview", "docs", "index"],- "headings": ["How the docs are organized", "Build on Carbon"]- },- {- "slug": "docs/integrations/accounting",- "title": "Accounting",- "description": "Mirror invoices, bills, and GL journals to Xero, QuickBooks, or Rillet, and keep exchange rates current.",- "keywords": ["accounting", "docs", "integrations"],- "headings": [- "How the sync works",- "Connect a ledger",- "Configure the sync",- "Watch it run",- "Exchange rates",- "Related"- ]- },- {- "slug": "docs/integrations/assistant",- "title": "Assistant",- "description": "Bring the Carbon Assistant into Slack, with nonconformance notifications.",- "keywords": ["assistant", "docs", "integrations"],- "headings": ["Slack", "Related"]- },- {- "slug": "docs/integrations/cad",- "title": "CAD",- "description": "Sync CAD data from Onshape and Onshape Government into Carbon.",- "keywords": ["cad", "docs", "integrations"],- "headings": ["Onshape", "Onshape Government", "Related"]- },- {- "slug": "docs/integrations/email",- "title": "Email",- "description": "Send outbound email through Carbon-managed Resend or your own SMTP server.",- "keywords": ["email", "docs", "integrations"],- "headings": ["Email"]- },- {- "slug": "docs/integrations/estimating",- "title": "Estimating & quoting",- "description": "Pull quotes and bills of material from Paperless Parts into Carbon.",- "keywords": ["estimating", "quoting", "docs", "integrations"],- "headings": ["Paperless Parts", "Related"]- },- {- "slug": "docs/integrations/index",- "title": "Integrations",- "description": "Connect Carbon to your accounting, CAD, project-management, estimating, and messaging tools.",- "keywords": ["integrations", "docs", "index"],- "headings": [- "How a connection works",- "What's available depends on your deployment",- "Browse by category",- "Related"- ]- },- {- "slug": "docs/integrations/project-management",- "title": "Project management",- "description": "Link Carbon quality issues to Linear or Jira so engineering tracks them in their own tool.",- "keywords": ["project", "management", "docs", "integrations"],- "headings": ["Linear", "Jira", "Related"]- },- {- "slug": "docs/platform/backups",- "title": "Backups",- "description": "Snapshot a company's data and files, see at a glance whether each backup can still be restored, and restore in place with one-click revert.",- "keywords": ["backups", "docs", "platform"],- "headings": [- "What a backup contains",- "Create a backup",- "If the backup fails",- "Is it still restorable?",- "Restore in place",- "If the restore is blocked by corrupted data",- "Start a company from a backup",- "Troubleshooting",- "The Backups page isn't in my Settings menu",- "A backup shows \"Not restorable\" or \"Restorable with changes\"",- "A backup shows \"Incomplete\"",- "\"Backup failed\" banner with rows that \"link to data outside this company\"",- "Can't start a restore — told to finish the current one first",- "Restore finished but integrations are disconnected"- ]- },- {- "slug": "docs/platform/demo-data",- "title": "Demo data",- "description": "Fill a company with a realistic industry story, so every screen has something in it, and put back exactly what was there before with one click.",- "keywords": ["demo", "data", "docs", "platform"],- "headings": [- "The templates",- "Apply a template",- "Demo data at sign-up",- "Troubleshooting",- "The Demo Data page isn't in my Settings menu",- "I applied a template and want my old data back",- "The apply or revert looks stuck",- "Can't apply a second template",- "Applying failed with an error",- "Applying failed with \"Seed: this company trades with other companies in its group\"",- "Applying failed with \"Seed: this company has N posted or voided card transaction(s)\"",- "Material Planning, Scheduling or Priorities are empty right after applying",- "The Webhooks, API keys or Audit log screens are empty after applying",- "The Documents list is empty after applying a template",- "The demo dates look recent — is that real activity?"- ]- },- {- "slug": "docs/platform/licensing",- "title": "Licensing",- "description": "Carbon is dual-licensed: AGPLv3 for Community Edition (CE), and a commercial license for Business features or for keeping your changes private.",- "keywords": ["licensing", "docs", "platform"],- "headings": [- "Editions",- "What each plan unlocks",- "How to buy",- "Carbon Cloud — we run it",- "Self-hosted — you run it",- "The AGPL obligation",- "How the agreements fit together",- "When you need a commercial license"- ]- },- {- "slug": "docs/platform/self-hosting/aws-sst",- "title": "AWS with SST",- "description": "Deploy the Carbon stack to your own AWS account with SST: ECS Fargate, ECR, and a WAF.",- "keywords": ["aws", "with", "sst", "docs", "platform", "self", "hosting"],- "headings": ["What gets provisioned", "Prerequisites", "Deploy"]- },- {- "slug": "docs/platform/self-hosting/docker-caddy",- "title": "Docker with Caddy",- "description": "Self-host the full Carbon stack on a single Linux VPS with a Docker Swarm and an automatic-HTTPS Caddy reverse proxy.",- "keywords": [- "docker",- "with",- "caddy",- "docs",- "platform",- "self",- "hosting"- ],- "headings": [- "What runs",- "Prerequisites",- "Install",- "How secrets work",- "Operating",- "Production checklist"- ]- },- {- "slug": "docs/platform/self-hosting/environment-variables",- "title": "Environment variables",- "description": "Every variable that configures a Carbon instance, grouped by concern. The source of truth is packages/env.",- "keywords": [- "environment",- "variables",- "docs",- "platform",- "self",- "hosting"- ],- "headings": [- "Core",- "Database — Supabase",- "Auth & sessions",- "Jobs & cache",- "Email & billing",- "AI & analytics",- "Integrations",- "Infrastructure — SST"- ]- },- {- "slug": "docs/platform/self-hosting/index",- "title": "Self-hosting",- "description": "Run the whole Carbon stack on your own infrastructure, a single VPS or your own AWS account, instead of Carbon Cloud.",- "keywords": [- "self-hosting",- "docs",- "platform",- "self",- "hosting",- "index"- ],- "headings": ["Recipes"]- },- {- "slug": "docs/reference/account",- "title": "Your account",- "description": "Personal, self-service settings for profile, passkeys and two-factor, notification preferences, theme, and language — separate from company-wide settings.",- "keywords": ["your", "account", "docs", "reference"],- "headings": [- "Profile",- "Signing in",- "Notification preferences",- "Theme, language, and attributes",- "Internals and troubleshooting",- "Can't change your email from the Account screen",- "There's no password to change",- "The passkey card isn't showing",- "There's no language picker",- "The Slack or Email notification column is missing"- ]- },- {- "slug": "docs/reference/accounting",- "title": "Accounting & the ledger",- "description": "How operations become journal entries: accounts, periods, and the postings behind every flow.",- "keywords": ["accounting", "the", "ledger", "docs", "reference"],- "headings": [- "Accounting is a switch",- "The journal",- "Accounts come from one place",- "Dimensions",- "Periods",- "Related",- "Troubleshooting",- "\"Accounting period is closed. Reopen it before posting.\"",- "\"Accounting period is locked. Unlock it before posting operational documents.\"",- "\"Cannot delete journal …: accounting period is closed\"",- "\"Posted journal … is immutable and cannot be deleted; reverse it instead\"",- "\"Posted journal … is immutable; only the Posted -> Reversed transition is permitted\"",- "\"Journal line … is immutable because journal … is posted\"",- "\"Cannot post to a group account\"",- "\"Account not found\""- ]- },- {- "slug": "docs/reference/agent",- "title": "In-app assistant",- "description": "A read-only chat assistant inside the ERP that answers questions about how Carbon works from the product documentation and points you to the right page.",- "keywords": ["in-app", "assistant", "docs", "reference", "agent"],- "headings": [- "What it can do",- "Where it appears",- "Threads and messages",- "Limits and availability",- "Troubleshooting",- "\"Rate limit exceeded. Please wait a moment.\"",- "\"Upgrade required\"",- "\"Failed to create thread\"",- "\"I couldn't find that in the docs\"",- "Why can't I see the assistant?",- "The assistant says it can't read my data"- ]- },- {- "slug": "docs/reference/approvals",- "title": "Approvals",- "description": "Route purchase orders, quality documents, and suppliers for sign-off before they take effect, with amount-tiered approval rules.",- "keywords": ["approvals", "docs", "reference"],- "headings": [- "What can be approved",- "Approval rules",- "Who can approve",- "The decision",- "Related"- ]- },- {- "slug": "docs/reference/assembly-instructions",- "title": "Assembly instructions",- "description": "Step-by-step 3D build guides for a made part, authored in the ERP from its CAD model and played to operators on the shop floor.",- "keywords": ["assembly", "instructions", "docs", "reference"],- "headings": [- "Versions and status",- "Steps",- "Step details",- "Components and hidden parts",- "Playback settings",- "Building a group off to the side",- "Materials, tools, and slides",- "On jobs and the shop floor",- "Related",- "Internals, exact strings, and troubleshooting"- ]- },- {- "slug": "docs/reference/audit-log",- "title": "Audit log",- "description": "A per-company change history for key business entities. What gets recorded, how to view and filter it, and how old entries are archived.",- "keywords": ["audit", "log", "docs", "reference"],- "headings": [- "Turning it on",- "What gets logged",- "Viewing and filtering",- "Retention and archives",- "Related",- "Troubleshooting",- "\"Upgrade to Business to enable audit logging\"",- "\"Upgrade to unlock audit history\"",- "\"Audit logging is not enabled\"",- "\"Failed to enable audit logging\" / \"Failed to disable audit logging\"",- "\"Failed to generate download URL\"",- "Empty history for a record you expected to see changes on",- "An older change is missing from the live log"- ]- },- {- "slug": "docs/reference/batching",- "title": "Operation batching",- "description": "Group identical operations from several jobs to run as one setup and one timer at a work center, with time and cost split back per job by quantity.",- "keywords": ["operation", "batching", "docs", "reference"],- "headings": [- "Making a process batchable",- "Building a batch",- "Lifecycle",- "On the schedule",- "On the shop floor",- "Picking materials",- "Completing the batch",- "Related",- "Internals, exact strings, and troubleshooting",- "The batch card is missing from the operations board / MES",- "Can't dissolve, unrelease, remove a member, or change the work center",- "An operator sees a job that was never released",- "Retry Completion rejects my corrected quantities",- "The builder hides some operations on the process",- "The pick modal says a batch number is not available",- "A shared pick left every member short",- "Completed the batch but the lots did not merge",- "Suggested batches look wrong / too small"- ]- },- {- "slug": "docs/reference/calibration",- "title": "Gauges and calibration",- "description": "Track measurement instruments, schedule their calibrations, and flag any gauge that falls out of calibration.",- "keywords": ["gauges", "and", "calibration", "docs", "reference"],- "headings": [- "The gauge record",- "The calibration schedule",- "Recording a calibration",- "Calibration status and going overdue",- "Related",- "Troubleshooting",- "\"Calibration interval is required\"",- "\"Type is required\" / \"Gauge is required\" / \"Date is required\"",- "\"Failed to insert gauge\" / \"Failed to update gauge\" / \"Failed to insert gauge calibration record\"",- "A calibration recorded Pass but the gauge still reads Out-of-Calibration",- "An overdue gauge is not blocking inspections",- "Deactivate vs. delete a gauge"- ]- },- {- "slug": "docs/reference/change-orders/change-types",- "title": "Change types",- "description": "Version, Revision, Replacement Part, and New Part — the per-affected-item choice that decides what you can edit and what release creates.",- "keywords": ["change", "types", "docs", "reference", "orders"],- "headings": [- "The four types",- "When to use which",- "What each type gates",- "Add a net-new part",- "Supplier parts on a purchased line",- "Related"- ]- },- {- "slug": "docs/reference/change-orders/creating",- "title": "Create a change notice",- "description": "The entry points that open a change notice, the fields on the create form, and how change notices surface back on a part or tool page.",- "keywords": [- "create",- "change",- "notice",- "docs",- "reference",- "orders",- "creating"- ],- "headings": [- "Entry points",- "The create form",- "Where change notices surface on a part",- "Related"- ]- },- {- "slug": "docs/reference/change-orders/index",- "title": "Change notices",- "description": "How Carbon drafts an engineering change against real methods, reviews it as a diff, and releases it so downstream planning supersedes the versions it replaces.",- "keywords": ["change", "notices", "docs", "reference", "orders", "index"],- "headings": [- "The affected item is the unit of work",- "Find one in the list",- "How the pieces fit",- "Related"- ]- },- {- "slug": "docs/reference/change-orders/lifecycle",- "title": "Lifecycle & release",- "description": "The five change-notice stages, the Implementation lock and Reopen, the impact panel, the diff review, and what release does at Done.",- "keywords": [- "lifecycle",- "release",- "docs",- "reference",- "change",- "orders"- ],- "headings": [- "The stages",- "Implementation freezes the engineering content",- "Reopen",- "The impact panel",- "Review the changes, then release",- "What release does",- "Parallel change notices on the same part",- "Related",- "Troubleshooting",- "\"This change notice is being implemented, so its changes are locked. Reopen it to make changes.\"",- "\"This change notice is closed, so its changes are read-only.\"",- "Release button not available",- "Can't find Reopen"- ]- },- {- "slug": "docs/reference/change-orders/setup",- "title": "Categories & actions",- "description": "The company-scoped lookups beside change notices: the category list and reusable action-task templates, plus linking a task to Linear.",- "keywords": [- "categories",- "actions",- "docs",- "reference",- "change",- "orders",- "setup"- ],- "headings": [- "Change notice categories",- "Change notice actions",- "Link a task to Linear",- "Related"- ]- },- {- "slug": "docs/reference/change-orders/supersession",- "title": "Supersession & cutover",- "description": "How a released Revision or Replacement Part phases over, the cutover fields you tune per item, and how MRP and Get Method honor supersession downstream.",- "keywords": [- "supersession",- "cutover",- "docs",- "reference",- "change",- "orders"- ],- "headings": [- "Cutover fields",- "Supersession modes",- "How downstream honors it",- "Related"- ]- },- {- "slug": "docs/reference/company-settings",- "title": "Company settings",- "description": "The company record, its feature toggles, base currency, logos, and tags — the company-wide configuration every module reads from.",- "keywords": ["company", "settings", "docs", "reference"],- "headings": [- "The company record",- "Feature toggles and defaults",- "Base currency",- "Theme and tags",- "Related system configuration",- "Internals and troubleshooting",- "I can't find the Companies or Backups settings page",- "I can't see the Billing settings page",- "Nothing posts to the ledger though jobs and invoices complete",- "My theme changed but a colleague still sees the old one",- "I can't change the base currency",- "A Modules toggle does nothing I expect"- ]- },- {- "slug": "docs/reference/configurator",- "title": "Configurator",- "description": "Turn one part number into a parametric family. Inputs drive rules that resolve the BOM, routing, and price per order.",- "keywords": ["configurator", "docs", "reference"],- "headings": [- "Parameters — the inputs",- "Rules — deriving the method",- "Choosing a configured item at order time",- "Troubleshooting",- "\"Key must be lowercase and underscore separated\"",- "\"List options are required\"",- "\"Cannot override method of configured item\"",- "A rule returns null / falls back to the default",- "\"Save\" stays disabled on a configured line",- "Related"- ]- },- {- "slug": "docs/reference/custom-fields",- "title": "Custom fields",- "description": "Company-defined extra fields that attach to core records like customers, parts, and orders.",- "keywords": ["custom", "fields", "docs", "reference"],- "headings": [- "Defining a field",- "Which entities support custom fields",- "How values save, and where they reach",- "Internals and troubleshooting",- "\"Required\" on a custom field that won't submit",- "List custom field rejected on save",- "The Data Type dropdown is disabled when editing",- "Custom-field values missing from CSV import/export",- "The entity I want has no Custom Fields row"- ]- },- {- "slug": "docs/reference/customer-portal",- "title": "Customer portal",- "description": "A standing, read-only link where a customer watches their open orders and shop-floor progress, no Carbon account needed.",- "keywords": ["customer", "portal", "docs", "reference"],- "headings": [- "Creating a portal",- "Related",- "Troubleshooting",- "Why does the customer portal link show \"Not found\" / a 404?",- "Why did downloads from the portal start failing (HTTP 429)?"- ]- },- {- "slug": "docs/reference/dimensions",- "title": "Dimensions & cost centers",- "description": "Tag axes on journal lines that slice the general ledger without multiplying the chart of accounts.",- "keywords": ["dimensions", "cost", "centers", "docs", "reference"],- "headings": [- "What a dimension is",- "How a value lands on a journal line",- "Cost centers",- "Using dimensions in reports",- "Related",- "Troubleshooting",- "\"Owner is required\"",- "\"Name is required\" / \"Entity type is required\"",- "My journal lines aren't getting tagged with a dimension",- "A cost center isn't showing up in reports",- "A dimension filter doesn't change the balance sheet or trial balance",- "A manual journal's dimension tags disappeared after re-saving"- ]- },- {- "slug": "docs/reference/documents",- "title": "Documents",- "description": "A shared file library with favorites, labels, search, and AI extraction that reads PDFs and fills a form for you.",- "keywords": ["documents", "docs", "reference"],- "headings": [- "The explorer",- "Uploading",- "Who can see a file",- "Pins and labels",- "Search",- "How documents attach to records",- "AI extraction",- "What it does, step by step",- "What it pulls out",- "Troubleshooting",- "A deleted file is still there / a file I deleted came back",- "A file (or a link to it) is invisible to a user",- "Search isn't finding text inside a file",- "Extraction returned nothing for a scanned PDF",- "A field I expected wasn't pre-filled from the PDF",- "The extraction row shows `failed`, or nothing happened"- ]- },- {- "slug": "docs/reference/financial-reports",- "title": "Financial statement reports",- "description": "The Balance Sheet, Income Statement, and Trial Balance built from posted journals by account class.",- "keywords": ["financial", "statement", "reports", "docs", "reference"],- "headings": [- "The three statements",- "How a balance is built",- "Period and date selection",- "What the reports do not slice",- "Related",- "Troubleshooting",- "\"Why are all my numbers zero\"",- "\"Why do my numbers look too low / an entry is missing\"",- "\"Why is my Balance Sheet out of balance / Assets ≠ Liabilities + Equity\"",- "\"Why doesn't my dimension filter change the totals\"",- "\"Balance Sheet has no start date field\"",- "Preconditions to check first"- ]- },- {- "slug": "docs/reference/fixed-assets",- "title": "Fixed assets",- "description": "Capital equipment on the books: acquired, depreciated, and retired.",- "keywords": ["fixed", "assets", "docs", "reference"],- "headings": [- "Lifecycle",- "Acquiring",- "Depreciating",- "Selling vs. disposing",- "Related",- "Troubleshooting",- "\"Fixed Asset invoice line … has no asset selected\"",- "\"Asset is no longer in Draft status\"",- "Depreciation or receipt posting fails with a period error"- ]- },- {- "slug": "docs/reference/forecast",- "title": "Demand projections",- "description": "Enter expected future demand for a make part, week by week, so planning orders ahead of the sales orders that haven't landed yet.",- "keywords": ["demand", "projections", "docs", "reference", "forecast"],- "headings": [- "What a projection is",- "How you enter one",- "How planning consumes it",- "Fields",- "Troubleshooting",- "The item I want to project isn't in the picker",- "I can't create, edit, or delete a projection",- "I edited `demandForecast` but my change was overwritten",- "Deleting a part's projection removed more than I expected",- "My projected quantity didn't turn into a full job/PO",- "A zero cell isn't saved"- ]- },- {- "slug": "docs/reference/import-export",- "title": "Import and export",- "description": "Bring records into Carbon from a CSV, and download any table's current view as a CSV.",- "keywords": ["import", "and", "export", "docs", "reference"],- "headings": [- "Exporting a table to CSV",- "What you can import",- "The import flow",- "Insert, update, or skip",- "Opening stock",- "Errors and partial failures",- "Related",- "Troubleshooting",- "\"Table not found in the list of supported tables\"",- "The import is refused before any row is written",- "A fixed-asset CSV is rejected",- "An enum column imported as the wrong value",- "Re-importing created duplicates — or didn't update what I expected",- "Opening stock doubled after a second import",- "An opening-stock row says the item is tracked differently",- "My custom fields are blank after import"- ]- },- {- "slug": "docs/reference/inspections",- "title": "Inspections and sampling",- "description": "How Carbon inspects received goods against AQL sampling plans, and how inspection templates and ballooned FAI drawings define what gets checked.",- "keywords": ["inspections", "and", "sampling", "docs", "reference"],- "headings": [- "The inbound inspection lifecycle",- "What triggers a lot",- "Recording samples",- "Disposition",- "Sampling plans and AQL",- "How an AQL plan resolves",- "Inspection templates and step types",- "FAI, inspection documents, and balloons",- "Related",- "Troubleshooting",- "\"Status is required\" / \"Decision is required\"",- "\"Inspection id mismatch\"",- "\"Inspection not found\"",- "\"Failed to save sample\" / \"Failed to accept lot\" / \"Failed to reject lot\" / \"Failed to mark partial\"",- "A terminal lot won't take more samples",- "The lot passed or failed on its own after one bad sample",- "\"Lot rejected. Configure at least one Issue Type and a default user location to auto-create an NCR.\"",- "\"Lot rejected, but failed to create NCR\" / \"… failed to create NCR tasks\" / \"… failed to load it for NCR\"",- "Permission-gated: recording samples or dispositioning a lot"- ]- },- {- "slug": "docs/reference/intercompany",- "title": "Intercompany accounting",- "description": "Match a sale in one company against the purchase in its sibling, then eliminate the pair for consolidated reporting.",- "keywords": ["intercompany", "accounting", "docs", "reference"],- "headings": [- "What a transaction is",- "Recording one by hand",- "The matching lifecycle",- "How a pair gets matched",- "Elimination",- "The intercompany balance",- "Prerequisite: a multi-company group",- "Related",- "Troubleshooting",- "\"Debit and credit account must be different\"",- "\"Source and target company must be different\"",- "\"No elimination entity found for company group …\"",- "\"Insufficient permissions to match intercompany transactions\" / \"… to generate elimination entries\"",- "A transaction stays \"Unmatched\" after Run Matching"- ]- },- {- "slug": "docs/reference/inventory",- "title": "Inventory & locations",- "description": "Where stock lives, how on-hand is tracked, and how it moves.",- "keywords": ["inventory", "locations", "docs", "reference"],- "headings": [- "Locations and storage units",- "On hand is a ledger",- "Movements",- "Correcting a movement",- "Value",- "Related",- "Troubleshooting",- "\"Insufficient quantity for negative adjustment\"",- "\"Serial number not found\"",- "\"Multiple tracked entities in this storage unit — select a specific row to adjust\"",- "\"Cannot edit expiry of a consumed tracked entity\"",- "\"The original movement's accounting period is closed — its movements can no longer be corrected.\"",- "\"Corrected quantity matches the current effective quantity — nothing to correct\"",- "\"Corrections on serial-tracked items must be whole numbers\"",- "Storage unit hierarchy errors"- ]- },- {- "slug": "docs/reference/inventory-count",- "title": "Inventory counts",- "description": "Count real stock against a frozen snapshot, review the variances, and post the differences as adjustments.",- "keywords": ["inventory", "counts", "docs", "reference", "count"],- "headings": [- "The count lifecycle",- "Creating a count",- "Counting",- "What posting does",- "Count vs. a direct adjustment",- "Related",- "Troubleshooting",- "\"… serial line(s) must be counted as 0 or 1 — a serial number is a single unit.\"",- "\"Counted quantity cannot be negative\"",- "\"Only a confirmed (pending) count can be made effective\"",- "\"Only a draft count can be confirmed\"",- "\"Only a pending count can be reopened\"",- "\"Inventory count is no longer pending\"",- "No journal was written for the post"- ]- },- {- "slug": "docs/reference/invoices",- "title": "Invoices",- "description": "The billing documents — what you charge customers, and what suppliers charge you.",- "keywords": ["invoices", "docs", "reference"],- "headings": [- "Where they come from",- "Status lifecycle",- "Line types",- "Posting",- "Settling an invoice",- "What if a payment overpays?",- "Voiding and dust",- "Related",- "Troubleshooting",- "\"Can only void posted purchase invoices\"",- "\"Purchase invoice is already voided\"",- "\"Cannot void a purchase invoice with payments applied. Reverse the payment first.\"",- "\"Cannot delete purchase invoice with status … Only Draft invoices can be deleted.\"",- "\"Cannot modify a confirmed purchase invoice.\" / \"Cannot modify a locked sales invoice.\"",- "\"Applications can only be edited while the payment is Draft\"",- "\"A receipt can only be applied to sales invoices\" / \"A disbursement can only be applied to purchase invoices\"",- "\"A payment can only be applied to its own customer's invoices\"",- "\"Only posted credits can be applied\"",- "\"Applied amount must be greater than 0\""- ]- },- {- "slug": "docs/reference/issues",- "title": "Issues (non-conformances)",- "description": "How Carbon logs a non-conformance, drives it through a configurable workflow of actions and approvals, and dispositions the affected material before closing.",- "keywords": ["issues", "(non-conformances)", "docs", "reference"],- "headings": [- "The lifecycle",- "Header fields",- "Workflows: the 8D and its cousins",- "Required actions and their system categories",- "Working the tasks",- "Approvals and the Material Review Board",- "Dispositions: deciding the material's fate",- "What an issue can point at",- "Related",- "Troubleshooting",- "\"Name is required\" / \"Location is required\" / \"Type is required\" / \"Open date is required\"",- "\"Cannot modify a closed issue. Reopen it first.\"",- "\"Cannot close: Disposition is still Pending; …\"",- "\"Cannot close: Linked entity quantity (…) does not match row quantity (…); …\"",- "\"Cannot close: Tracked entity … is already Consumed; …\"",- "\"Cannot move entities between different NCRs\" / \"Cannot move entities onto the same row\"",- "\"Split quantity (…) must be less than the current quantity (…)\"",- "\"Disposition changed while closing; please retry.\"",- "MRB review is holding the issue open",- "Permission-gated: you can't create, edit, close, or delete an issue",- "\"Issue has been closed already. Unable to make changes\" (SCAR)"- ]- },- {- "slug": "docs/reference/items",- "title": "Items",- "description": "The master record for everything you make, buy, or stock: parts, materials, tools, and more.",- "keywords": ["items", "docs", "reference"],- "headings": ["Fields", "Tracking", "Revisions", "Related"]- },- {- "slug": "docs/reference/jobs",- "title": "Jobs",- "description": "One run of production, covering a single item, a quantity to make, and its own copy of the method.",- "keywords": ["jobs", "docs", "reference"],- "headings": [- "Fields",- "Status lifecycle",- "Operations",- "Operation type",- "Sequencing",- "Time and output",- "Procedures",- "Make to order vs. make to stock",- "Related",- "Troubleshooting",- "\"Manufacturing is blocked\"",- "\"Cannot modify a locked job. Reopen it first.\"",- "\"No location found\"",- "\"Tracked entity not found\"",- "\"Failed to schedule job\""- ]- },- {- "slug": "docs/reference/kanban",- "title": "Kanban",- "description": "Scan-based pull replenishment. A kanban card ties an item to a bin, and scanning it fires a purchase order or a job.",- "keywords": ["kanban", "docs", "reference"],- "headings": [- "What a kanban holds",- "The scan flow",- "Output format",- "Kanban vs. reordering policy",- "Related",- "Troubleshooting",- "\"… is not supported\"",- "\"Supplier is required\"",- "\"Quantity must be at least 1\"",- "\"There's already a job for this kanban.\"",- "\"No job found for kanban\"",- "\"Kanban is not active\"",- "The list view shows no Start / Complete affordances"- ]- },- {- "slug": "docs/reference/maintenance",- "title": "Maintenance",- "description": "Keeping work centers running: reactive and preventive maintenance dispatches.",- "keywords": ["maintenance", "docs", "reference"],- "headings": [- "Dispatches",- "What it's against",- "Preventive schedules",- "Blocking and OEE impact",- "Material and cost",- "Related"- ]- },- {- "slug": "docs/reference/materials",- "title": "Materials",- "description": "The property tables that give a material its identity — substance, form, dimension, finish, grade, and type.",- "keywords": ["materials", "docs", "reference"],- "headings": [- "The property tables",- "Scope: system-wide or per company",- "How a material references them",- "Naming and uniqueness",- "Related",- "Troubleshooting",- "\"Substance is required\" / \"Shape is required\"",- "\"Material ID is required\"",- "The Material ID field is missing (or is shown) when I didn't expect it",- "Creating a property lookup is rejected for a missing parent",- "\"Failed to insert material\" / \"Failed to update material\""- ]- },- {- "slug": "docs/reference/mes",- "title": "The MES app",- "description": "The shop-floor surface where operators run operations, report quantities, issue material, and log their time.",- "keywords": ["the", "mes", "app", "docs", "reference"],- "headings": [- "Getting onto the floor",- "Console (shared-station) mode",- "The operations board",- "Focused lists",- "Open Jobs",- "Running an operation",- "The guided assembly view",- "Reporting quantities",- "Issuing material",- "Clocking in and out",- "Picking, quality, inspections, and maintenance",- "On-floor picking",- "Quality issues and inspections",- "Maintenance dispatch",- "Troubleshooting",- "\"Incorrect PIN\"",- "\"Too many incorrect PINs. Please wait a few minutes and try again.\"",- "\"No PIN set. Ask an admin to set a console PIN for you.\"",- "\"This picking list is closed. Reopen it from the ERP to continue.\"",- "Finish is blocked or warns (\"Insufficient quantity\" / \"Steps are missing\")",- "\"Forgot to Clock Out?\"",- "The Console Mode toggle or the time card isn't there",- "I can't drag a card to reschedule on the floor"- ]- },- {- "slug": "docs/reference/methods",- "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.",- "keywords": ["methods", "sourcing", "docs", "reference"],- "headings": [- "Method type",- "Method type vs replenishment system",- "Kit or subassembly",- "Get Method",- "Related",- "Troubleshooting",- "\"An item cannot be added to itself.\"",- "\"Method tree not found\"",- "\"Cannot override method of configured item\"",- "\"Failed to get make methods\""- ]- },- {- "slug": "docs/reference/notifications",- "title": "Notifications",- "description": "Assignments, approvals, expirations, and reminders reach the right people over in-app, email, and Slack, with per-user channel opt-outs by topic.",- "keywords": ["notifications", "docs", "reference"],- "headings": [- "What raises a notification",- "Topics and channels",- "Muting a topic",- "Who receives an expiration or reminder",- "The inbox",- "Related",- "Internals and troubleshooting",- "Why am I not getting email notifications?",- "Why am I not getting Slack DMs?",- "I muted a topic but still get in-app notifications",- "I turned a channel on but it still doesn't deliver",- "I did something myself and got no notification",- "A recurring reminder stopped arriving"- ]- },- {- "slug": "docs/reference/onboarding",- "title": "Getting started",- "description": "The first-run setup wizard that creates your company, seeds its baseline configuration, and hands you a working tenant.",- "keywords": ["getting", "started", "docs", "reference", "onboarding"],- "headings": [- "Where to go next",- "Internals and troubleshooting",- "Stuck in the setup wizard / keeps redirecting to /onboarding",- "\"Restore from a backup\" isn't offered on the Industry step",- "The Plan step isn't showing"- ]- },- {- "slug": "docs/reference/payments",- "title": "Payments",- "description": "Cash receipts, disbursements, and credit or debit memos — the posted transactions that settle AR and AP.",- "keywords": ["payments", "docs", "reference"],- "headings": [- "Payments",- "Credit and debit memos",- "The settlement row",- "Lifecycle",- "What posts to the general ledger",- "On-account credit and overpayment",- "The AR / AP workbench",- "Related",- "Troubleshooting",- "\"Cannot post payment in status … (only Draft)\"",- "\"Cannot void payment in status … (only Posted)\" / \"Cannot void memo in status … (only Posted)\"",- "\"Receipt cannot apply to purchase invoices\" / \"Disbursement cannot apply to sales invoices\"",- "\"Invoice … belongs to a different customer/supplier than the payment\"",- "\"Cannot apply payment to invoice … (must be Submitted/Open)\"",- "\"Application total … exceeds remaining open amount … on invoice …\"",- "\"Applied exceeds payment cash by … but only … of on-account credit is available\"",- "\"Cannot post payment: memo … is … (must be Posted)\" / \"Staged credit … exceeds remaining amount … on memo …\"",- "\"Accounting is enabled but this company has no account defaults configured\""- ]- },- {- "slug": "docs/reference/people",- "title": "People",- "description": "The HR master data a company sets up — employees, departments, shifts, holidays, custom attributes, and time cards.",- "keywords": ["people", "docs", "reference"],- "headings": [- "Employees",- "Departments",- "Shifts",- "Holidays",- "Attributes",- "Time cards",- "Related",- "Troubleshooting",- "\"Location is required\"",- "\"Start time is required\" / \"End time is required\"",- "\"Date is required\"",- "Deleting a department fails or orphans people",- "The Timecards tab / time card list isn't showing",- "Looking for a time card approval / sign-off step"- ]- },- {- "slug": "docs/reference/period-close",- "title": "Period close",- "description": "Locking and closing a fiscal period: the close checklist, what a locked period stops, and how to reopen.",- "keywords": ["period", "close", "docs", "reference"],- "headings": [- "The close lifecycle",- "What a locked or closed period stops",- "The close checklist",- "Severities gate differently",- "Completing and skipping tasks",- "Reopening",- "Fiscal periods and the calendar",- "Related",- "Troubleshooting",- "\"Period must be locked before closing.\"",- "\"Accounting period is closed. Reopen it before posting.\"",- "\"Accounting period is locked. Post as an accounting adjustment or unlock the period first.\"",- "\"Earlier periods must be closed first (sequential close)\"",- "\"Later periods must be reopened first (reopen from the most recent close backwards)\"",- "\"A reason is required to skip a task\"",- "\"Blocker tasks cannot be skipped; resolve the underlying issue first\"",- "The Close button is disabled or the close is refused",- "A period won't delete or its fiscal start month is locked"- ]- },- {- "slug": "docs/reference/permissions",- "title": "Permissions and access",- "description": "How Carbon decides who can see and change what, from the module-action model to employee types, groups, invites, and shop-floor PIN accounts.",- "keywords": ["permissions", "and", "access", "docs", "reference"],- "headings": [- "The module-action model",- "Employee types",- "Per-person overrides and bulk edits",- "Inviting people",- "Shop-floor PIN accounts",- "Where each piece lives",- "Troubleshooting",- "\"Incorrect PIN\"",- "\"Too many incorrect PINs. Please wait a few minutes and try again.\"",- "\"No PIN set. Ask an admin to set a console PIN for you.\"",- "\"Group members are required\"",- "A user can sign in but sees nothing / can't open a module",- "Editing an employee type didn't change existing people's access",- "A permission change doesn't seem to take effect",- "The Operators screen isn't there"- ]- },- {- "slug": "docs/reference/picking",- "title": "Picking lists",- "description": "Staging a job's materials from the warehouse to the point of use, tracked line by line.",- "keywords": ["picking", "lists", "docs", "reference"],- "headings": [- "What a picking list picks against",- "Header and line status",- "Short picks don't silently close the list",- "Where picking happens",- "What posting a pick does to stock",- "Related",- "Troubleshooting",- "\"This picking list is closed. Reopen it to make changes.\"",- "\"Reopen this picking list from the ERP.\"",- "\"Tracked items must be picked via the scan flow\"",- "\"No lineside destination is set for this line\"",- "A short line won't let the list complete",- "The Reopen or Delete action is greyed out"- ]- },- {- "slug": "docs/reference/planning",- "title": "Planning (MRP)",- "description": "How demand turns into suggested jobs and purchase orders — and where that ends and scheduling begins.",- "keywords": ["planning", "(mrp)", "docs", "reference"],- "headings": [- "Two stages",- "What feeds it",- "Reorder policy",- "From suggestion to order",- "Planning vs scheduling",- "Related",- "Troubleshooting",- "\"Manufacturing is blocked for item …\"",- "\"Manufacturing requires configuration for item …\"",- "\"Failed to create job method for item …\"",- "\"Failed to load any locations\""- ]- },- {- "slug": "docs/reference/pricing",- "title": "Pricing rules and overrides",- "description": "How Carbon resolves the price on a line, from base price through overrides and rules.",- "keywords": ["pricing", "rules", "and", "overrides", "docs", "reference"],- "headings": [- "Pricing rules",- "Configuration rules",- "Price overrides",- "How the engine picks a price",- "What wins when rules collide",- "Where it applies",- "Related",- "Troubleshooting",- "\"Percentage must be between 0% and 100%\"",- "\"Duplicate quantity across breaks\"",- "\"Cannot set both Customer and Customer Type\" / \"Cannot set both customerId and customerTypeId\"",- "\"At least one break is required\"",- "\"Valid From must be on or before Valid To\"",- "\"Please select a target scope\"",- "Why did pricing rules not apply to an override price?",- "Why can't I edit a price override's Valid To or Active fields?"- ]- },- {- "slug": "docs/reference/printing",- "title": "Printing & labels",- "description": "Printer routing, ZPL and PDF labels, and the print-job queue that turns a receipt or a finished job into a label on a shelf.",- "keywords": ["printing", "labels", "docs", "reference"],- "headings": [- "Two renderers, one queue",- "Printer routes",- "Assignments: which printer, in which context",- "The print-job queue",- "Auto-print behavior",- "Print vs download",- "Label sizes",- "Troubleshooting",- "My label didn't print (no error shown)",- "Nothing printed after posting, and there's no print job at all",- "\"Print jobs already exist for … …\"",- "\"Document type \"…\" requires a BinderyPress template.\"",- "\"Rendering failed: …\"",- "\"Delivery timed out — content may have been printed. …\"",- "\"Print job not found: …\" / \"Print job has no content\"",- "\"ProxyBox delivery failed: … … — …\"",- "\"Test print is only supported for ZPL label printers with a media size configured.\"",- "\"Cannot reprint a job with no content\" / \"Cannot reprint a job that is still generating\""- ]- },- {- "slug": "docs/reference/purchase-orders",- "title": "Purchase orders",- "description": "A commitment to a supplier: what to receive, and what you'll be billed for.",- "keywords": ["purchase", "orders", "docs", "reference"],- "headings": [- "Line fields",- "Types",- "Status",- "Related",- "Troubleshooting",- "\"Cannot modify a confirmed purchase order.\" / \"Cannot delete lines on a confirmed purchase order.\"",- "\"Cannot finalize: supplier is not approved (Active)\"",- "\"You are not authorized to finalize this purchase order\"",- "\"Receiving can only be closed or reopened on a released purchase order\"",- "\"This line cannot be received\"",- "\"This line has no outstanding quantity to receive\"",- "\"Receiving is already closed for this line\" / \"Receiving is not closed for this line\"",- "\"Failed to finalize purchase order\""- ]- },- {- "slug": "docs/reference/quality",- "title": "Quality",- "description": "Issues and corrective-action workflows, plus incoming inspection that gates received goods.",- "keywords": ["quality", "docs", "reference"],- "headings": [- "Issues",- "Workflows and actions",- "Inbound inspection",- "Executing an inspection",- "Also in quality",- "Related",- "Troubleshooting",- "\"Cannot modify a closed issue. Reopen it first.\"",- "\"Cannot move entities between different NCRs\"",- "\"No linked entities to split\"",- "\"Split quantity exceeds the linked entity quantity\"",- "\"Duplicate entity in split selection\"",- "\"Failed to accept lot\" / \"Failed to reject lot\""- ]- },- {- "slug": "docs/reference/quality-documents",- "title": "Quality documents",- "description": "Controlled SOPs and work instructions, versioned so a new revision supersedes the old one without deleting it.",- "keywords": ["quality", "documents", "docs", "reference"],- "headings": [- "The lifecycle",- "Versioning",- "Approval",- "Steps",- "What a quality document is not",- "Troubleshooting",- "\"Name is required\" / \"Quality document is required\" / \"Type is required\"",- "\"Unit of measure is required\" / \"List options are required\"",- "\"Maximum value must be greater than or equal to minimum value\"",- "\"Invalid quality document content format\" / \"Failed to insert quality document\" / \"Failed to delete quality document\"",- "Activating a document is stuck in Draft",- "\"Approval request not found\"",- "A new version didn't replace the old record",- "Permission-gated: view, create, edit, or delete a document"- ]- },- {- "slug": "docs/reference/quotes",- "title": "Quotes",- "description": "A priced offer to a customer — the front of the sales flow.",- "keywords": ["quotes", "docs", "reference"],- "headings": [- "Fields",- "Status lifecycle",- "Digital quotes",- "Becoming an order",- "Related",- "Troubleshooting",- "\"Cannot modify a locked quote. Reopen it first.\"",- "\"An item cannot be added to itself.\"",- "\"Failed to convert quote to order\"",- "\"This quote is no longer available for a response.\" (digital quote)",- "\"Oops! The link you're trying to access has expired or is no longer valid.\" (digital quote)"- ]- },- {- "slug": "docs/reference/receipts",- "title": "Receipts",- "description": "Goods coming in: receiving against a purchase order and posting to inventory.",- "keywords": ["receipts", "docs", "reference"],- "headings": [- "Fields",- "Status",- "Related",- "Troubleshooting",- "\"Receipt is empty\"",- "\"Batch number is required\"",- "\"Serial numbers are missing\"",- "\"Can only void posted receipts\"",- "\"Cannot void a receipt created by a purchase invoice. Void the invoice instead.\"",- "\"Cannot delete a posted receipt\"",- "\"Failed to post receipt\""- ]- },- {- "slug": "docs/reference/reordering",- "title": "Reordering policy",- "description": "How each part decides when and how much to replenish: the policy and the numbers that drive planning.",- "keywords": ["reordering", "policy", "docs", "reference"],- "headings": ["Policies", "Fields", "Related"]- },- {- "slug": "docs/reference/risks",- "title": "Risk register",- "description": "Track risks and opportunities against any entity, rated by severity and likelihood, and drive each to a resolution.",- "keywords": ["risk", "register", "docs", "reference", "risks"],- "headings": [- "What a risk entry holds",- "Rating severity and likelihood",- "Status lifecycle",- "Attaching risks to entities",- "Who can do what",- "Relation to issues and CAPA",- "Troubleshooting",- "\"Severity is required\" / \"Likelihood is required\" / \"Title is required\"",- "Severity or likelihood is rejected outside 1–5",- "\"Failed to create risk\" / \"Failed to update risk\" / \"Failed to delete risk\"",- "Status won't advance the way you expect",- "Permission-gated: you can create a risk but can't edit or delete it"- ]- },- {- "slug": "docs/reference/rmas",- "title": "RMAs",- "description": "Customer return authorizations: receive shipped goods, disposition them, issue credit, and create replacements.",- "keywords": ["rmas", "docs", "reference"],- "headings": [- "What an RMA controls",- "Header fields",- "Line fields",- "Status",- "Tracked items and disposition",- "Credit and replacement orders",- "Related",- "Troubleshooting",- "\"Cannot confirm a return order with no lines\"",- "\"Line …: cannot authorize … — only … remains returnable for the linked document line\"",- "\"Cannot reopen: quantity has already been received. Void the receipt first.\"",- "\"Cannot cancel: a receipt exists for this return order. Delete or void it first.\"",- "\"Cannot void: a credit memo exists for this return order. Void it first.\"",- "\"Cannot void: stock received on this return was already consumed. Correct the remainder with an inventory adjustment instead.\"",- "\"Configure at least one Issue Type and a location to escalate this line to an Issue\""- ]- },- {- "slug": "docs/reference/routings",- "title": "Routings",- "description": "The ordered operations and work centers a part flows through to get made.",- "keywords": ["routings", "docs", "reference"],- "headings": ["Fields", "Per-revision routings", "Related"]- },- {- "slug": "docs/reference/sales-orders",- "title": "Sales orders",- "description": "A confirmed customer commitment: what to ship and invoice, tracked line by line.",- "keywords": ["sales", "orders", "docs", "reference"],- "headings": [- "Line fields",- "Status",- "Related",- "Troubleshooting",- "\"Cannot modify a confirmed sales order.\" / \"Cannot modify a locked sales order. Reopen it first.\"",- "\"Cannot add lines to a locked sales order. Reopen it first.\" / \"Cannot delete lines on a locked sales order. Reopen it first.\"",- "\"No jobs were created\"",- "\"Failed to insert job\""- ]- },- {- "slug": "docs/reference/sales-rules",- "title": "Sales rules",- "description": "Predicate guards on sales documents: block a restricted item with an error, or warn and let the user acknowledge and continue.",- "keywords": ["sales", "rules", "docs", "reference"],- "headings": [- "What a rule checks",- "Where rules fire",- "Block or warn",- "Scope and assignment",- "Rule fields",- "Where to manage them",- "Related",- "Troubleshooting"- ]- },- {- "slug": "docs/reference/scheduling",- "title": "Scheduling",- "description": "Finite-capacity scheduling — how jobs are placed onto real work-center and operator calendars, and the boards that show and steer the result.",- "keywords": ["scheduling", "docs", "reference"],- "headings": [- "Where scheduling lives",- "Placement against real capacity",- "People are part of capacity",- "Two dates on every operation",- "The Forecast explains the schedule",- "When the schedule recomputes",- "Troubleshooting",- "An operation shows a red conflict flag",- "An operation shows an amber \"Projected\" date",- "The Forecast says \"can't be scheduled\"",- "A batch can't be scheduled and the panel shows \"Estimated time 0h\"",- "New dates didn't appear right after my edit",- "Nothing rescheduled when I reordered cards on the Work Centers view",- "A pinned operation's dates still moved",- "Flipping \"Staffing required\" didn't change the schedule",- "I can't edit the boards",- "Related"- ]- },- {- "slug": "docs/reference/scrap",- "title": "Scrap and unscrap",- "description": "Writing off defective or lost material, and restoring it if the write-off was a mistake.",- "keywords": ["scrap", "and", "unscrap", "docs", "reference"],- "headings": [- "Scrapping a unit on the floor",- "Scrapping a subcomponent",- "Scrapping stock",- "Unscrap",- "Accounting for scrap",- "Related"- ]- },- {- "slug": "docs/reference/sequences",- "title": "Numbering sequences",- "description": "The per-company generator behind every readable document number — jobs, change notices, payments, and more.",- "keywords": ["numbering", "sequences", "docs", "reference"],- "headings": [- "Fields",- "Date tokens",- "Seed defaults",- "Internals and troubleshooting",- "A sequence field won't save (Current, Step, or Size)",- "My `%{hh}` or `%{ss}` token shows up literally in the number",- "Editing a sequence didn't renumber existing documents",- "A prefix on my company doesn't match the seed defaults"- ]- },- {- "slug": "docs/reference/sharing",- "title": "External sharing",- "description": "How Carbon's private, login-free links work — a customer accepts a quote, a supplier prices a request or answers a SCAR, a buyer watches order status.",- "keywords": ["external", "sharing", "docs", "reference"],- "headings": []- },- {- "slug": "docs/reference/shelf-life",- "title": "Shelf life",- "description": "How Carbon stamps expiration dates on tracked stock, and blocks consuming it once expired.",- "keywords": ["shelf", "life", "docs", "reference"],- "headings": [- "How a date gets set: the three modes",- "When the clock starts",- "Policy fields",- "What happens to expired stock",- "Company settings",- "Where you set it",- "Related",- "Troubleshooting",- "\"Cannot consume expired tracked entity\" / \"Cannot consume expired tracked entities\"",- "\"Cannot post shipment with expired batch\"",- "\"Cannot edit expiry of a consumed tracked entity\""- ]- },- {- "slug": "docs/reference/shipments",- "title": "Shipments",- "description": "Goods going out — one posting model serving sales orders, returns, and transfers.",- "keywords": ["shipments", "docs", "reference"],- "headings": [- "Fields",- "Status",- "Related",- "Troubleshooting",- "\"Shipment is empty\"",- "\"Tracked entity is not available\"",- "\"Serial numbers are missing or unavailable\"",- "\"Cannot post shipment with expired batch\"",- "\"Posted shipment with expired batch\"",- "\"Batch has insufficient quantity\"",- "\"Can only void posted shipments\"",- "\"Cannot delete a posted shipment\"",- "\"Failed to post shipment\""- ]- },- {- "slug": "docs/reference/single-sign-on",- "title": "Single sign-on",- "description": "Route sign-in for your company's email domains through your own identity provider with enterprise SAML SSO.",- "keywords": ["single", "sign-on", "docs", "reference", "sign"],- "headings": [- "Requirements",- "Connect your identity provider",- "Verifying a domain",- "How sign-in works",- "Requiring SSO",- "Behavior details and exact messages",- "Verification fails",- "\"Verify\" fails on a domain another company verified",- "\"SSO sign-in rejected: this email domain is not registered for your company's SSO connection.\"",- "\"SSO sign-in succeeded but no invite exists for `[email protected]`. Contact your administrator.\"",- "\"Complete your first SSO sign-in in Carbon ERP, then return here.\" (MES)",- "\"Your organization requires single sign-on. Sign in with your work email to continue.\"",- "\"Deactivate Single Sign-On\" confirmation"- ]- },- {- "slug": "docs/reference/storage-rules",- "title": "Storage rules",- "description": "Predicate guards that validate inventory transactions: block with an error, or warn and let the user continue.",- "keywords": ["storage", "rules", "docs", "reference"],- "headings": [- "What a rule checks",- "Operators",- "Where rules fire",- "Block or warn",- "Scope and assignment",- "Rule fields",- "Where to manage them",- "Related",- "Troubleshooting"- ]- },- {- "slug": "docs/reference/supplier-quotes",- "title": "Supplier quotes",- "description": "A supplier's priced response to your RFQ, one per supplier, ready to convert into a purchase order.",- "keywords": ["supplier", "quotes", "docs", "reference"],- "headings": [- "Where a quote comes from",- "Lines and pricing",- "Lifecycle",- "The supplier's link",- "From quote to purchase order",- "Troubleshooting",- "\"Expiration date must be today or after\"",- "\"Supplier contact is required for email\"",- "\"Cannot convert to order: supplier is not approved (Active)\"",- "\"Failed to convert quote to order\"",- "Why is the quote read-only / why can't I edit lines?",- "Why is the Finalize or Send button disabled?",- "Why is the supplier's \"Submit Quote\" button disabled (on the public link)?",- "The supplier's link shows \"expired or is no longer valid\""- ]- },- {- "slug": "docs/reference/supplier-returns",- "title": "Supplier returns",- "description": "Return received goods to a supplier, preserve serial or batch identity, claim credit, and create a replacement PO.",- "keywords": ["supplier", "returns", "docs", "reference"],- "headings": [- "What a Supplier Return controls",- "Header fields",- "Line fields",- "Status",- "Tracked items",- "Supplier credit and replacements",- "Related",- "Troubleshooting",- "\"Cannot confirm a return order with no lines\"",- "\"Line …: cannot authorize … — only … remains returnable for the linked document line\"",- "\"Cannot reopen: quantity has already shipped. Void the shipment first.\"",- "\"Cannot cancel: a shipment exists for this return order. Delete or void it first.\"",- "\"Cannot void: a debit memo exists for this return order. Void it first.\"",- "\"Shipping can only be closed or reopened on a confirmed return order\"",- "\"Could not resolve a single supplier — select one explicitly\"",- "\"Return order confirmed, but the PDF could not be generated\""- ]- },- {- "slug": "docs/reference/suppliers-and-customers",- "title": "Suppliers & customers",- "description": "The parties you buy from and sell to, and the ways their records differ.",- "keywords": ["suppliers", "customers", "docs", "reference", "and"],- "headings": [- "Suppliers",- "Customers",- "What they share",- "Bank accounts",- "Documents",- "Related",- "Troubleshooting",- "\"Cannot edit a protected customer type\" / \"Cannot edit a protected supplier type\"",- "The purchase order's Finalize button is greyed out"- ]- },- {- "slug": "docs/reference/traceability",- "title": "Traceability",- "description": "Serial and batch tracking, and the genealogy that links what went into what.",- "keywords": ["traceability", "docs", "reference"],- "headings": [- "Tracked entities",- "Where entities come from",- "Genealogy",- "Shelf life",- "Related"- ]- },- {- "slug": "docs/reference/training",- "title": "Training",- "description": "Training programs, quiz questions, group assignments, per-period completion tracking, and the weekly reminder digest.",- "keywords": ["training", "docs", "reference"],- "headings": [- "The training catalog",- "Quiz questions",- "Assigning training to groups",- "Completion and status",- "The weekly reminder",- "Abilities are a separate system",- "Troubleshooting",- "\"Training is required\"",- "\"At least one group is required\"",- "\"Training assignment is required\" / \"Employee is required\"",- "\"Why didn't a reminder send?\"",- "\"Why can't I mark someone complete / assign a training?\"",- "\"A completed training re-appeared as Pending\""- ]- },- {- "slug": "docs/reference/two-factor",- "title": "Two-factor authentication",- "description": "Add authenticator-app codes to sign-in, require them company-wide, and reset a lost device.",- "keywords": [- "two-factor",- "authentication",- "docs",- "reference",- "two",- "factor"- ],- "headings": [- "Turn it on for yourself",- "Require it for everyone",- "When someone loses their phone",- "What it doesn't cover",- "Troubleshooting",- "\"That code isn't right\" on a code the user just read",- "Someone is stuck on the setup screen and can't get in",- "The Two-Factor column isn't in the employee list",- "Turning enforcement on didn't prompt anyone",- "Nobody got the announcement email",- "An admin can't turn enforcement off",- "Passkey users are asked for a code — is that a bug?"- ]- },- {- "slug": "docs/reference/work-centers",- "title": "Work centers",- "description": "Where operations run — the stations and machines, their rates, and the processes they perform.",- "keywords": ["work", "centers", "docs", "reference"],- "headings": [- "Fields",- "Processes",- "Rates: estimate vs actual",- "Capacity and operating hours",- "Related"- ]- },- {- "slug": "docs/reference/workflows",- "title": "Workflows",- "description": "Build an automation on a canvas: one trigger, conditions, and steps that act, with every firing recorded step by step in run history.",- "keywords": ["workflows", "docs", "reference"],- "headings": [- "What starts a workflow",- "The steps you can add",- "Filling in a step",- "Calling an outside URL",- "Saving, publishing, and versions",- "Who can do what",- "Runs and history",- "Related",- "Internals, exact messages, and troubleshooting",- "A run is missing from the Runs page",- "Why did my workflow fire twice / react to itself?",- "The run shows Succeeded but nothing happened",- "Steps are gone from an old run"- ]- },- {- "slug": "guides/build",- "title": "Inside the build",- "description": "How each satellite part is made or bought.",- "keywords": ["inside", "the", "build", "guides"],- "headings": [- "The bill of materials",- "Method types",- "Kits & subassemblies",- "Methods on the job"- ]- },- {- "slug": "guides/change-order",- "title": "Revise a part",- "description": "An engineering change, drafted against the real method, reviewed as a diff, and released so planning phases over on its own.",- "keywords": ["revise", "part", "guides", "change", "order"],- "headings": [- "Start with the parts, not the change",- "Draft the change in place",- "Review the diff",- "Release, and let supersession carry it"- ]- },- {- "slug": "guides/fixed-assets-acquire",- "title": "Acquire and depreciate",- "description": "Put a machine on the books and write its value down over time.",- "keywords": ["acquire", "and", "depreciate", "guides", "fixed", "assets"],- "headings": ["Onto the books", "Depreciate it", "Two books at once"]- },- {- "slug": "guides/fixed-assets-sell",- "title": "Sell or dispose",- "description": "Two ways an asset leaves the books: sold to a buyer, or scrapped.",- "keywords": ["sell", "dispose", "guides", "fixed", "assets"],- "headings": ["Sell it", "Dispose it"]- },- {- "slug": "guides/floor",- "title": "Run the floor",- "description": "Work hits the floor; the floor reports back.",- "keywords": ["run", "the", "floor", "guides"],- "headings": [- "The schedule",- "Operations & work centers",- "Work instructions",- "At the station",- "Backflush & issue",- "Scan & trace"- ]- },- {- "slug": "guides/job-costing",- "title": "How a job costs out",- "description": "Where a job's cost comes from, and how it piles up in work-in-process.",- "keywords": ["how", "job", "costs", "out", "guides", "costing"],- "headings": [- "Accounting is a switch",- "Cost lands in WIP",- "Issued or backflushed",- "WIP isn't a table"- ]- },- {- "slug": "guides/job-finish-close",- "title": "Finish, sell, close",- "description": "WIP becomes finished goods, finished goods become COGS, and the job settles.",- "keywords": ["finish,", "sell,", "close", "guides", "job", "finish"],- "headings": [- "Finish into inventory",- "Make-to-order still goes through stock",- "Sell it",- "Close the job"- ]- },- {- "slug": "guides/order",- "title": "Start with the order",- "description": "A 90-unit solar array wing order becomes real work.",- "keywords": ["start", "with", "the", "order", "guides"],- "headings": [- "The sales order",- "Batch it into jobs",- "Create the job",- "Get the method",- "Release or plan"- ]- },- {- "slug": "guides/order-to-cash",- "title": "Ship, invoice, get paid",- "description": "Fulfill the order, post the shipment and invoice, then record payment.",- "keywords": [- "ship,",- "invoice,",- "get",- "paid",- "guides",- "order",- "cash"- ],- "headings": [- "The line stays open",- "Three ways to fulfill a line",- "Post the shipment",- "Raise the invoice",- "Post and get paid"- ]- },- {- "slug": "guides/plan",- "title": "Plan ahead",- "description": "Orders and forecast become jobs and POs.",- "keywords": ["plan", "ahead", "guides"],- "headings": [- "Demand forecasting",- "Reordering policy",- "Into jobs & POs",- "Receiving"- ]- },- {- "slug": "guides/quote-to-cash",- "title": "From quote to order",- "description": "An RFQ becomes a quote; an accepted quote becomes a sales order.",- "keywords": ["from", "quote", "order", "guides", "cash"],- "headings": [- "One opportunity, many documents",- "Build the quote",- "Send it to the customer",- "When a quote doesn't land",- "Into a sales order"- ]- },- {- "slug": "guides/receive-and-bill",- "title": "Receive, match, bill",- "description": "Goods come in, the supplier bill arrives, and Carbon reconciles the two.",- "keywords": ["receive,", "match,", "bill", "guides", "receive", "and"],- "headings": [- "The line keeps score",- "Receive the goods",- "Buy by the box, stock by the each",- "The supplier bill",- "Match and post"- ]- },- {- "slug": "guides/rfq-to-po",- "title": "From RFQ to PO",- "description": "Shop one item to many suppliers, then turn the winning quote into an order.",- "keywords": ["from", "rfq", "guides"],- "headings": [- "One RFQ, many suppliers",- "Suppliers quote back",- "Into a purchase order",- "Send work out, too"- ]- },- {- "slug": "guides/ship",- "title": "Quality, trace & ship",- "description": "Prove it's right, ship it, close the books.",- "keywords": ["quality,", "trace", "ship", "guides"],- "headings": [- "Raise an issue",- "Workflows & actions",- "Versioned procedures",- "Traceability",- "Ship & invoice"- ]- }- ]-}diff --git a/apps/erp/app/modules/inventory/ui/StorageUnits/StorageUnitParentSelect.tsx b/apps/erp/app/modules/inventory/ui/StorageUnits/StorageUnitParentSelect.tsxindex 7085295513..d63cd4530b 100644--- a/apps/erp/app/modules/inventory/ui/StorageUnits/StorageUnitParentSelect.tsx+++ b/apps/erp/app/modules/inventory/ui/StorageUnits/StorageUnitParentSelect.tsx@@ -5,8 +5,8 @@//// Backed by the same `useStorageUnitsTree` data hook as `<StorageUnit>`.+import type { TermId } from "@carbon/content/glossary";import { useControlField, useField } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import {cn,FormControl,diff --git a/apps/erp/app/modules/invoicing/invoicing.application-history.test.ts b/apps/erp/app/modules/invoicing/invoicing.application-history.test.tsindex b59aa9581e..a6f906ae82 100644--- a/apps/erp/app/modules/invoicing/invoicing.application-history.test.ts+++ b/apps/erp/app/modules/invoicing/invoicing.application-history.test.ts@@ -2,7 +2,7 @@ import type { Database } from "@carbon/database";import { createClient } from "@supabase/supabase-js";import { describe, expect, it, vi } from "vitest";-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: () => null,lookupEntry: () => null,diff --git a/apps/erp/app/modules/invoicing/invoicing.service.charge.test.ts b/apps/erp/app/modules/invoicing/invoicing.service.charge.test.tsindex 20be3414d8..ac9adb718a 100644--- a/apps/erp/app/modules/invoicing/invoicing.service.charge.test.ts+++ b/apps/erp/app/modules/invoicing/invoicing.service.charge.test.ts@@ -2,7 +2,7 @@ import type { Database } from "@carbon/database";import { createClient } from "@supabase/supabase-js";import { describe, expect, it, vi } from "vitest";-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: () => null,lookupEntry: () => null,diff --git a/apps/erp/app/modules/invoicing/invoicing.settlements.test.ts b/apps/erp/app/modules/invoicing/invoicing.settlements.test.tsindex 336e019122..7bb3c2b6b0 100644--- a/apps/erp/app/modules/invoicing/invoicing.settlements.test.ts+++ b/apps/erp/app/modules/invoicing/invoicing.settlements.test.ts@@ -2,7 +2,7 @@ import type { Database } from "@carbon/database";import type { SupabaseClient } from "@supabase/supabase-js";import { describe, expect, it, vi } from "vitest";-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: () => null,lookupEntry: () => null,diff --git a/apps/erp/app/modules/invoicing/stripe-customer.mapper.ts b/apps/erp/app/modules/invoicing/stripe-customer.mapper.tsindex 66ba1b1c40..947e4a8a5e 100644--- a/apps/erp/app/modules/invoicing/stripe-customer.mapper.ts+++ b/apps/erp/app/modules/invoicing/stripe-customer.mapper.ts@@ -1,7 +1,7 @@import type { ConnectCustomerInput } from "@carbon/stripe/connect.server";// Type-only imports on purpose: they are erased at build, so this module stays// free of the `~/modules/sales` barrel. Importing it for real would transitively-// pull `@carbon/glossary`'s Lingui macros, which throw outside a configured i18n+// pull `@carbon/content/glossary`'s Lingui macros, which throw outside a configured i18n// runtime and take plain unit tests of this mapper down with them.import type {getCustomer,diff --git a/apps/erp/app/modules/invoicing/stripe-customer.test.ts b/apps/erp/app/modules/invoicing/stripe-customer.test.tsindex bbdd6c8f9a..92f9c70c9b 100644--- a/apps/erp/app/modules/invoicing/stripe-customer.test.ts+++ b/apps/erp/app/modules/invoicing/stripe-customer.test.ts@@ -1,6 +1,6 @@import { describe, expect, it } from "vitest";// Import the mapper directly, never `./stripe-customer.server` — that module-// pulls the `~/modules/sales` barrel and, through it, `@carbon/glossary`'s+// pulls the `~/modules/sales` barrel and, through it, `@carbon/content/glossary`'s// Lingui macros, which throw outside a configured i18n runtime.import type { StripeCustomerSources } from "./stripe-customer.mapper";import {diff --git a/apps/erp/app/modules/items/items.server.test.ts b/apps/erp/app/modules/items/items.server.test.tsindex 754c9915ab..216543c2d3 100644--- a/apps/erp/app/modules/items/items.server.test.ts+++ b/apps/erp/app/modules/items/items.server.test.ts@@ -5,10 +5,10 @@ import { describe, expect, it, vi } from "vitest";vi.mock("~/modules/settings", () => ({ getCompanySettings: vi.fn() }));// items.server pulls the items module graph (via ~/modules/items), which-// transitively loads @carbon/glossary — whose module-load-time Lingui `msg`+// transitively loads @carbon/content/glossary — whose module-load-time Lingui `msg`// macro isn't transformed under plain vitest and throws. Stub it; the verdict// logic under test needs none of it.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/modules/items/items.service.test.ts b/apps/erp/app/modules/items/items.service.test.tsindex 4b0a522fbb..d32de17551 100644--- a/apps/erp/app/modules/items/items.service.test.ts+++ b/apps/erp/app/modules/items/items.service.test.ts@@ -1,11 +1,11 @@import { describe, expect, it, vi } from "vitest";// diffMethod now lives in items.service. Importing the real module drags in the-// items.service graph, which transitively loads @carbon/glossary — whose+// items.service graph, which transitively loads @carbon/content/glossary — whose// module-load-time Lingui `msg` macro isn't transformed under plain vitest and// throws. The pure diffMethod under test needs none of it, so stub glossary; the// diffMethod under test stays the genuine implementation.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/modules/items/method-material-storage-units.test.ts b/apps/erp/app/modules/items/method-material-storage-units.test.tsindex e628be1808..cbd98c537b 100644--- a/apps/erp/app/modules/items/method-material-storage-units.test.ts+++ b/apps/erp/app/modules/items/method-material-storage-units.test.ts@@ -1,10 +1,10 @@import { describe, expect, it, vi } from "vitest";-// Importing the real items.service graph transitively loads @carbon/glossary,+// Importing the real items.service graph transitively loads @carbon/content/glossary,// whose module-load-time Lingui `msg` macro isn't transformed under plain vitest// and throws. The code under test needs none of it, so stub glossary; the service// under test stays the genuine implementation. (Mirrors items.service.test.ts.)-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticeDiffViewer.tsx b/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticeDiffViewer.tsxindex 3391b7657b..e4e86f99a9 100644--- a/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticeDiffViewer.tsx+++ b/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticeDiffViewer.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import {Collapsible,CollapsibleContent,diff --git a/apps/erp/app/modules/production/production.service.test.ts b/apps/erp/app/modules/production/production.service.test.tsindex fd33624b91..f17e2c18a7 100644--- a/apps/erp/app/modules/production/production.service.test.ts+++ b/apps/erp/app/modules/production/production.service.test.ts@@ -1,10 +1,10 @@import { describe, expect, it, vi } from "vitest";-// production.service's module graph transitively loads @carbon/glossary, whose+// production.service's module graph transitively loads @carbon/content/glossary, whose// module-load-time Lingui `msg` macros aren't transformed under plain vitest and// throw. The functions under test need none of it, so stub glossary; the real// implementations stay under test.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/date-utils.test.ts b/apps/erp/app/modules/production/ui/Schedule/Kanban/date-utils.test.tsindex b9d933cc4c..1bee190f66 100644--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/date-utils.test.ts+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/date-utils.test.ts@@ -1,6 +1,6 @@import { describe, expect, it, vi } from "vitest";-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/drag-lifecycle.test.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/drag-lifecycle.test.tsxindex 83ab9c698f..615b5fc316 100644--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/drag-lifecycle.test.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/drag-lifecycle.test.tsx@@ -51,7 +51,7 @@ type TestFetcher = {const fetchers = vi.hoisted(() => ({ current: [] as TestFetcher[] }));-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/modules/purchasing/purchasing.models.test.ts b/apps/erp/app/modules/purchasing/purchasing.models.test.tsindex 1826130cd3..2e75e23569 100644--- a/apps/erp/app/modules/purchasing/purchasing.models.test.ts+++ b/apps/erp/app/modules/purchasing/purchasing.models.test.ts@@ -1,9 +1,9 @@import { describe, expect, it, vi } from "vitest";-// @carbon/glossary's terms.ts evaluates Lingui `msg` macros at module load,+// @carbon/content/glossary's terms.ts evaluates Lingui `msg` macros at module load,// which vitest doesn't transform. Nothing under test touches the glossary// (it's pulled in via the ../shared barrel), so stub the whole package.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({getDefinitionText: () => "",getEntry: () => undefined,getTermText: () => "",diff --git a/apps/erp/app/modules/quality/quality-disposition.server.test.ts b/apps/erp/app/modules/quality/quality-disposition.server.test.tsindex 10c49f8a54..b5ec9218d5 100644--- a/apps/erp/app/modules/quality/quality-disposition.server.test.ts+++ b/apps/erp/app/modules/quality/quality-disposition.server.test.ts@@ -1,8 +1,8 @@import { beforeEach, describe, expect, it, vi } from "vitest";-// @carbon/glossary's terms.ts evaluates Lingui `msg` macros at module load,+// @carbon/content/glossary's terms.ts evaluates Lingui `msg` macros at module load,// which vitest doesn't transform; the module graph pulls it in transitively.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/modules/sales/sales.models.test.ts b/apps/erp/app/modules/sales/sales.models.test.tsindex 0d94a93b6f..6078315380 100644--- a/apps/erp/app/modules/sales/sales.models.test.ts+++ b/apps/erp/app/modules/sales/sales.models.test.ts@@ -1,6 +1,6 @@import { describe, expect, it, vi } from "vitest";-// sales.models' module graph transitively loads @carbon/glossary and+// sales.models' module graph transitively loads @carbon/content/glossary and// @carbon/onboarding, both of which build Lingui `msg` descriptors at module// load. The macro isn't transformed under plain vitest, so raw `msg` throws.// Stub it to a plain string builder; the validator under test is untouched.diff --git a/apps/erp/app/modules/settings/settings.models.sso.test.ts b/apps/erp/app/modules/settings/settings.models.sso.test.tsindex daa84420af..8bd7dafa48 100644--- a/apps/erp/app/modules/settings/settings.models.sso.test.ts+++ b/apps/erp/app/modules/settings/settings.models.sso.test.ts@@ -1,9 +1,9 @@import { describe, expect, it, vi } from "vitest";-// Isolation mock — settings.models transitively imports @carbon/glossary,+// Isolation mock — settings.models transitively imports @carbon/content/glossary,// whose Lingui `msg` macro calls only work under the app's vite macro// transform. The validator under test never touches glossary content.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({getDefinitionText: vi.fn(),getEntry: vi.fn(),getTermText: vi.fn(),diff --git a/apps/erp/app/modules/settings/ui/Integrations/InstallModeDialog.test.tsx b/apps/erp/app/modules/settings/ui/Integrations/InstallModeDialog.test.tsxindex b4e0556487..0f8f56fbd3 100644--- a/apps/erp/app/modules/settings/ui/Integrations/InstallModeDialog.test.tsx+++ b/apps/erp/app/modules/settings/ui/Integrations/InstallModeDialog.test.tsx@@ -3,9 +3,9 @@ import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";import { describe, expect, it, vi } from "vitest";-// `@carbon/glossary`'s terms.ts evaluates Lingui `msg` macros at module load,+// `@carbon/content/glossary`'s terms.ts evaluates Lingui `msg` macros at module load,// which vitest does not transform, and the `@carbon/react` barrel pulls it in.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({getDefinitionText: () => "",getEntry: () => undefined,getTermText: () => "",diff --git a/apps/erp/app/modules/workflows/ui/Builder/catalog.ts b/apps/erp/app/modules/workflows/ui/Builder/catalog.tsindex ac02994f85..ff524ca17f 100644--- a/apps/erp/app/modules/workflows/ui/Builder/catalog.ts+++ b/apps/erp/app/modules/workflows/ui/Builder/catalog.ts@@ -1,3 +1,4 @@+import type { TermId } from "@carbon/content/glossary";import type { WorkflowCatalog } from "@carbon/ee/workflows";import {buildCatalogOverlay,@@ -7,7 +8,6 @@ import {} from "@carbon/ee/workflows";import { WORKFLOW_FIELD_HELP } from "@carbon/ee/workflows/help";import { WORKFLOW_LABELS } from "@carbon/ee/workflows/labels";-import type { TermId } from "@carbon/glossary";import { useLingui } from "@lingui/react";import { useLingui as useLinguiMacro } from "@lingui/react/macro";import { useMemo } from "react";diff --git a/apps/erp/app/modules/workflows/ui/Builder/fields/Field.tsx b/apps/erp/app/modules/workflows/ui/Builder/fields/Field.tsxindex 2554d5f5e0..f23c099fb7 100644--- a/apps/erp/app/modules/workflows/ui/Builder/fields/Field.tsx+++ b/apps/erp/app/modules/workflows/ui/Builder/fields/Field.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import { cn, LabelWithHelp } from "@carbon/react";import type { ReactNode } from "react";diff --git a/apps/erp/app/modules/workflows/ui/Builder/fields/MultiChoiceField.tsx b/apps/erp/app/modules/workflows/ui/Builder/fields/MultiChoiceField.tsxindex 9b5ebd894b..f45b579c14 100644--- a/apps/erp/app/modules/workflows/ui/Builder/fields/MultiChoiceField.tsx+++ b/apps/erp/app/modules/workflows/ui/Builder/fields/MultiChoiceField.tsx@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import type { ValueOrRef, ValueType } from "@carbon/ee/workflows";-import type { TermId } from "@carbon/glossary";import { ChoiceSelect, type ChoiceSelectOption } from "@carbon/react";import { useLingui } from "@lingui/react/macro";import { Field } from "./Field";diff --git a/apps/erp/app/modules/workflows/ui/Builder/fields/types.ts b/apps/erp/app/modules/workflows/ui/Builder/fields/types.tsindex 298d10edd3..8fe3152dfa 100644--- a/apps/erp/app/modules/workflows/ui/Builder/fields/types.ts+++ b/apps/erp/app/modules/workflows/ui/Builder/fields/types.ts@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import type { ValueOrRef, ValueType } from "@carbon/ee/workflows";-import type { TermId } from "@carbon/glossary";export type FieldContext = {nodeId: string;diff --git a/apps/erp/app/routes/api+/mcp+/lib/manifest.ts b/apps/erp/app/routes/api+/mcp+/lib/manifest.tsindex 8dc9aedf05..2791d5024b 100644--- a/apps/erp/app/routes/api+/mcp+/lib/manifest.ts+++ b/apps/erp/app/routes/api+/mcp+/lib/manifest.ts@@ -13,6 +13,7 @@* up promising a module that was removed two releases ago.*/+import { DOCS_URL } from "@carbon/content/links";import toolMetadataJson from "./tool-metadata.json";type ToolSummary = {@@ -46,7 +47,6 @@ export const MCP_META_KEY = "ms.carbon/v1";export const MARKETING_URL = "https://carbon.ms";export const REPOSITORY_URL = "https://github.com/crbnos/carbon";-export const DOCS_URL = "https://docs.carbon.ms";/*** The three tools the server registers. Carbon publishes meta-tools rather thandiff --git a/apps/erp/app/routes/x+/inspection+/$id.reject.test.ts b/apps/erp/app/routes/x+/inspection+/$id.reject.test.tsindex 3b46ac1829..59553c052d 100644--- a/apps/erp/app/routes/x+/inspection+/$id.reject.test.ts+++ b/apps/erp/app/routes/x+/inspection+/$id.reject.test.ts@@ -10,9 +10,9 @@ import { action } from "./$id.reject";// handling (a failed write-off must NOT silently proceed to NCR creation, whose// Use-As-Is restore assumes the reject already wrote the value off).-// @carbon/glossary's terms.ts evaluates Lingui `msg` macros at module load,+// @carbon/content/glossary's terms.ts evaluates Lingui `msg` macros at module load,// which vitest doesn't transform; the route graph pulls it in transitively.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/routes/x+/issue+/item+/update.test.ts b/apps/erp/app/routes/x+/issue+/item+/update.test.tsindex 5c2bfc3636..c7ad3fc8f1 100644--- a/apps/erp/app/routes/x+/issue+/item+/update.test.ts+++ b/apps/erp/app/routes/x+/issue+/item+/update.test.ts@@ -1,9 +1,9 @@import { requirePermissions } from "@carbon/auth/auth.server";import { beforeEach, describe, expect, it, vi } from "vitest";-// @carbon/glossary's terms.ts evaluates Lingui `msg` macros at module load,+// @carbon/content/glossary's terms.ts evaluates Lingui `msg` macros at module load,// which vitest doesn't transform; the route graph pulls it in transitively.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/routes/x+/priority+/dates.update.test.ts b/apps/erp/app/routes/x+/priority+/dates.update.test.tsindex 812a3b94de..d2b633fa16 100644--- a/apps/erp/app/routes/x+/priority+/dates.update.test.ts+++ b/apps/erp/app/routes/x+/priority+/dates.update.test.ts@@ -1,7 +1,7 @@import { requirePermissions } from "@carbon/auth/auth.server";import { beforeEach, describe, expect, it, vi } from "vitest";-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/routes/x+/priority+/operations.update.test.ts b/apps/erp/app/routes/x+/priority+/operations.update.test.tsindex 8add50bf41..56ad2f5580 100644--- a/apps/erp/app/routes/x+/priority+/operations.update.test.ts+++ b/apps/erp/app/routes/x+/priority+/operations.update.test.ts@@ -1,7 +1,7 @@import { requirePermissions } from "@carbon/auth/auth.server";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/app/routes/x+/reports+/balance-sheet.test.ts b/apps/erp/app/routes/x+/reports+/balance-sheet.test.tsindex 8530081ff1..0a73127348 100644--- a/apps/erp/app/routes/x+/reports+/balance-sheet.test.ts+++ b/apps/erp/app/routes/x+/reports+/balance-sheet.test.ts@@ -37,7 +37,7 @@ vi.mock("@lingui/core/macro", () => ({msg: (strings: TemplateStringsArray) => ({ id: strings.join("") })}));vi.mock("~/modules/settings", () => ({ getNextSequence: vi.fn() }));-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({getDefinitionText: () => "",getEntry: () => undefined,getTermText: () => "",diff --git a/apps/erp/app/utils/query.test.ts b/apps/erp/app/utils/query.test.tsindex b6f3f6245e..ed310a73f6 100644--- a/apps/erp/app/utils/query.test.ts+++ b/apps/erp/app/utils/query.test.ts@@ -1,6 +1,6 @@import { describe, expect, it, vi } from "vitest";-// @carbon/auth's barrel export pulls in @carbon/glossary, whose Lingui `msg`+// @carbon/auth's barrel export pulls in @carbon/content/glossary, whose Lingui `msg`// macro isn't transformed under plain vitest (no lingui plugin configured for// apps/erp tests). Mock it the same way traceability.search.test.ts does -// getSearchTokens/setSearchFilter don't call badRequest ordiff --git a/apps/erp/package.json b/apps/erp/package.jsonindex c4136d8e66..6e43032635 100644--- a/apps/erp/package.json+++ b/apps/erp/package.json@@ -20,7 +20,7 @@"@carbon/env": "workspace:*","@carbon/files": "workspace:*","@carbon/form": "workspace:*",- "@carbon/glossary": "workspace:*",+ "@carbon/content": "workspace:*","@carbon/jobs": "workspace:*","@carbon/kv": "workspace:*","@carbon/lib": "workspace:*",diff --git a/apps/erp/packages/locale/locales/de/account.po b/apps/erp/packages/locale/locales/de/account.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/account.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/accounting.po b/apps/erp/packages/locale/locales/de/accounting.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/accounting.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/documents.po b/apps/erp/packages/locale/locales/de/documents.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/documents.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/erp.js b/apps/erp/packages/locale/locales/de/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/de/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/de/inventory.po b/apps/erp/packages/locale/locales/de/inventory.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/inventory.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/invoicing.po b/apps/erp/packages/locale/locales/de/invoicing.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/invoicing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/items.po b/apps/erp/packages/locale/locales/de/items.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/items.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/mes.js b/apps/erp/packages/locale/locales/de/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/de/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/de/people.po b/apps/erp/packages/locale/locales/de/people.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/people.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/production.po b/apps/erp/packages/locale/locales/de/production.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/production.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/purchasing.po b/apps/erp/packages/locale/locales/de/purchasing.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/purchasing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/quality.po b/apps/erp/packages/locale/locales/de/quality.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/quality.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/resources.po b/apps/erp/packages/locale/locales/de/resources.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/resources.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/sales.po b/apps/erp/packages/locale/locales/de/sales.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/sales.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/settings.po b/apps/erp/packages/locale/locales/de/settings.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/settings.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/shared.po b/apps/erp/packages/locale/locales/de/shared.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/shared.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/de/users.po b/apps/erp/packages/locale/locales/de/users.podeleted file mode 100644index ac79a2d27d..0000000000--- a/apps/erp/packages/locale/locales/de/users.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: de\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/account.po b/apps/erp/packages/locale/locales/en/account.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/account.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/accounting.po b/apps/erp/packages/locale/locales/en/accounting.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/accounting.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/documents.po b/apps/erp/packages/locale/locales/en/documents.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/documents.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/erp.js b/apps/erp/packages/locale/locales/en/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/en/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/en/inventory.po b/apps/erp/packages/locale/locales/en/inventory.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/inventory.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/invoicing.po b/apps/erp/packages/locale/locales/en/invoicing.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/invoicing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/items.po b/apps/erp/packages/locale/locales/en/items.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/items.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/mes.js b/apps/erp/packages/locale/locales/en/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/en/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/en/people.po b/apps/erp/packages/locale/locales/en/people.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/people.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/production.po b/apps/erp/packages/locale/locales/en/production.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/production.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/purchasing.po b/apps/erp/packages/locale/locales/en/purchasing.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/purchasing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/quality.po b/apps/erp/packages/locale/locales/en/quality.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/quality.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/resources.po b/apps/erp/packages/locale/locales/en/resources.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/resources.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/sales.po b/apps/erp/packages/locale/locales/en/sales.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/sales.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/settings.po b/apps/erp/packages/locale/locales/en/settings.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/settings.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/shared.po b/apps/erp/packages/locale/locales/en/shared.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/shared.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/en/users.po b/apps/erp/packages/locale/locales/en/users.podeleted file mode 100644index 908e7bd1c7..0000000000--- a/apps/erp/packages/locale/locales/en/users.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: en\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/account.po b/apps/erp/packages/locale/locales/es/account.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/account.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/accounting.po b/apps/erp/packages/locale/locales/es/accounting.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/accounting.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/documents.po b/apps/erp/packages/locale/locales/es/documents.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/documents.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/erp.js b/apps/erp/packages/locale/locales/es/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/es/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/es/inventory.po b/apps/erp/packages/locale/locales/es/inventory.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/inventory.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/invoicing.po b/apps/erp/packages/locale/locales/es/invoicing.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/invoicing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/items.po b/apps/erp/packages/locale/locales/es/items.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/items.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/mes.js b/apps/erp/packages/locale/locales/es/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/es/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/es/people.po b/apps/erp/packages/locale/locales/es/people.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/people.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/production.po b/apps/erp/packages/locale/locales/es/production.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/production.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/purchasing.po b/apps/erp/packages/locale/locales/es/purchasing.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/purchasing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/quality.po b/apps/erp/packages/locale/locales/es/quality.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/quality.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/resources.po b/apps/erp/packages/locale/locales/es/resources.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/resources.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/sales.po b/apps/erp/packages/locale/locales/es/sales.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/sales.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/settings.po b/apps/erp/packages/locale/locales/es/settings.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/settings.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/shared.po b/apps/erp/packages/locale/locales/es/shared.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/shared.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/es/users.po b/apps/erp/packages/locale/locales/es/users.podeleted file mode 100644index 82c7e72b43..0000000000--- a/apps/erp/packages/locale/locales/es/users.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: es\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/account.po b/apps/erp/packages/locale/locales/fr/account.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/account.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/accounting.po b/apps/erp/packages/locale/locales/fr/accounting.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/accounting.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/documents.po b/apps/erp/packages/locale/locales/fr/documents.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/documents.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/erp.js b/apps/erp/packages/locale/locales/fr/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/fr/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/fr/inventory.po b/apps/erp/packages/locale/locales/fr/inventory.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/inventory.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/invoicing.po b/apps/erp/packages/locale/locales/fr/invoicing.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/invoicing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/items.po b/apps/erp/packages/locale/locales/fr/items.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/items.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/mes.js b/apps/erp/packages/locale/locales/fr/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/fr/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/fr/people.po b/apps/erp/packages/locale/locales/fr/people.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/people.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/production.po b/apps/erp/packages/locale/locales/fr/production.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/production.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/purchasing.po b/apps/erp/packages/locale/locales/fr/purchasing.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/purchasing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/quality.po b/apps/erp/packages/locale/locales/fr/quality.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/quality.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/resources.po b/apps/erp/packages/locale/locales/fr/resources.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/resources.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/sales.po b/apps/erp/packages/locale/locales/fr/sales.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/sales.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/settings.po b/apps/erp/packages/locale/locales/fr/settings.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/settings.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/shared.po b/apps/erp/packages/locale/locales/fr/shared.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/shared.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/fr/users.po b/apps/erp/packages/locale/locales/fr/users.podeleted file mode 100644index 4c582a8228..0000000000--- a/apps/erp/packages/locale/locales/fr/users.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: fr\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/hi/erp.js b/apps/erp/packages/locale/locales/hi/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/hi/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/hi/mes.js b/apps/erp/packages/locale/locales/hi/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/hi/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/it/account.po b/apps/erp/packages/locale/locales/it/account.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/account.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/accounting.po b/apps/erp/packages/locale/locales/it/accounting.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/accounting.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/documents.po b/apps/erp/packages/locale/locales/it/documents.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/documents.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/erp.js b/apps/erp/packages/locale/locales/it/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/it/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/it/inventory.po b/apps/erp/packages/locale/locales/it/inventory.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/inventory.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/invoicing.po b/apps/erp/packages/locale/locales/it/invoicing.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/invoicing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/items.po b/apps/erp/packages/locale/locales/it/items.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/items.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/mes.js b/apps/erp/packages/locale/locales/it/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/it/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/it/people.po b/apps/erp/packages/locale/locales/it/people.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/people.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/production.po b/apps/erp/packages/locale/locales/it/production.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/production.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/purchasing.po b/apps/erp/packages/locale/locales/it/purchasing.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/purchasing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/quality.po b/apps/erp/packages/locale/locales/it/quality.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/quality.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/resources.po b/apps/erp/packages/locale/locales/it/resources.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/resources.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/sales.po b/apps/erp/packages/locale/locales/it/sales.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/sales.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/settings.po b/apps/erp/packages/locale/locales/it/settings.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/settings.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/shared.po b/apps/erp/packages/locale/locales/it/shared.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/shared.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/it/users.po b/apps/erp/packages/locale/locales/it/users.podeleted file mode 100644index f1ea0ddd71..0000000000--- a/apps/erp/packages/locale/locales/it/users.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: it\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/account.po b/apps/erp/packages/locale/locales/ja/account.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/account.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/accounting.po b/apps/erp/packages/locale/locales/ja/accounting.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/accounting.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/documents.po b/apps/erp/packages/locale/locales/ja/documents.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/documents.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/erp.js b/apps/erp/packages/locale/locales/ja/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/ja/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/ja/inventory.po b/apps/erp/packages/locale/locales/ja/inventory.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/inventory.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/invoicing.po b/apps/erp/packages/locale/locales/ja/invoicing.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/invoicing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/items.po b/apps/erp/packages/locale/locales/ja/items.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/items.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/mes.js b/apps/erp/packages/locale/locales/ja/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/ja/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/ja/people.po b/apps/erp/packages/locale/locales/ja/people.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/people.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/production.po b/apps/erp/packages/locale/locales/ja/production.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/production.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/purchasing.po b/apps/erp/packages/locale/locales/ja/purchasing.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/purchasing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/quality.po b/apps/erp/packages/locale/locales/ja/quality.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/quality.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/resources.po b/apps/erp/packages/locale/locales/ja/resources.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/resources.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/sales.po b/apps/erp/packages/locale/locales/ja/sales.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/sales.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/settings.po b/apps/erp/packages/locale/locales/ja/settings.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/settings.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/shared.po b/apps/erp/packages/locale/locales/ja/shared.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/shared.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ja/users.po b/apps/erp/packages/locale/locales/ja/users.podeleted file mode 100644index 937bdc1e3b..0000000000--- a/apps/erp/packages/locale/locales/ja/users.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ja\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/account.po b/apps/erp/packages/locale/locales/pl/account.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/account.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/accounting.po b/apps/erp/packages/locale/locales/pl/accounting.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/accounting.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/documents.po b/apps/erp/packages/locale/locales/pl/documents.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/documents.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/erp.js b/apps/erp/packages/locale/locales/pl/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/pl/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/pl/inventory.po b/apps/erp/packages/locale/locales/pl/inventory.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/inventory.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/invoicing.po b/apps/erp/packages/locale/locales/pl/invoicing.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/invoicing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/items.po b/apps/erp/packages/locale/locales/pl/items.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/items.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/mes.js b/apps/erp/packages/locale/locales/pl/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/pl/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/pl/people.po b/apps/erp/packages/locale/locales/pl/people.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/people.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/production.po b/apps/erp/packages/locale/locales/pl/production.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/production.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/purchasing.po b/apps/erp/packages/locale/locales/pl/purchasing.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/purchasing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/quality.po b/apps/erp/packages/locale/locales/pl/quality.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/quality.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/resources.po b/apps/erp/packages/locale/locales/pl/resources.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/resources.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/sales.po b/apps/erp/packages/locale/locales/pl/sales.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/sales.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/settings.po b/apps/erp/packages/locale/locales/pl/settings.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/settings.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/shared.po b/apps/erp/packages/locale/locales/pl/shared.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/shared.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pl/users.po b/apps/erp/packages/locale/locales/pl/users.podeleted file mode 100644index 043a2ca778..0000000000--- a/apps/erp/packages/locale/locales/pl/users.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pl\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/account.po b/apps/erp/packages/locale/locales/pt/account.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/account.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/accounting.po b/apps/erp/packages/locale/locales/pt/accounting.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/accounting.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/documents.po b/apps/erp/packages/locale/locales/pt/documents.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/documents.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/erp.js b/apps/erp/packages/locale/locales/pt/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/pt/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/pt/inventory.po b/apps/erp/packages/locale/locales/pt/inventory.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/inventory.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/invoicing.po b/apps/erp/packages/locale/locales/pt/invoicing.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/invoicing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/items.po b/apps/erp/packages/locale/locales/pt/items.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/items.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/mes.js b/apps/erp/packages/locale/locales/pt/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/pt/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/pt/people.po b/apps/erp/packages/locale/locales/pt/people.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/people.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/production.po b/apps/erp/packages/locale/locales/pt/production.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/production.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/purchasing.po b/apps/erp/packages/locale/locales/pt/purchasing.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/purchasing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/quality.po b/apps/erp/packages/locale/locales/pt/quality.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/quality.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/resources.po b/apps/erp/packages/locale/locales/pt/resources.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/resources.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/sales.po b/apps/erp/packages/locale/locales/pt/sales.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/sales.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/settings.po b/apps/erp/packages/locale/locales/pt/settings.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/settings.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/shared.po b/apps/erp/packages/locale/locales/pt/shared.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/shared.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/pt/users.po b/apps/erp/packages/locale/locales/pt/users.podeleted file mode 100644index 1465c5a2f7..0000000000--- a/apps/erp/packages/locale/locales/pt/users.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: pt\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/account.po b/apps/erp/packages/locale/locales/ru/account.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/account.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/accounting.po b/apps/erp/packages/locale/locales/ru/accounting.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/accounting.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/documents.po b/apps/erp/packages/locale/locales/ru/documents.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/documents.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/erp.js b/apps/erp/packages/locale/locales/ru/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/ru/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/ru/inventory.po b/apps/erp/packages/locale/locales/ru/inventory.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/inventory.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/invoicing.po b/apps/erp/packages/locale/locales/ru/invoicing.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/invoicing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/items.po b/apps/erp/packages/locale/locales/ru/items.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/items.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/mes.js b/apps/erp/packages/locale/locales/ru/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/ru/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/ru/people.po b/apps/erp/packages/locale/locales/ru/people.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/people.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/production.po b/apps/erp/packages/locale/locales/ru/production.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/production.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/purchasing.po b/apps/erp/packages/locale/locales/ru/purchasing.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/purchasing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/quality.po b/apps/erp/packages/locale/locales/ru/quality.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/quality.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/resources.po b/apps/erp/packages/locale/locales/ru/resources.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/resources.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/sales.po b/apps/erp/packages/locale/locales/ru/sales.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/sales.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/settings.po b/apps/erp/packages/locale/locales/ru/settings.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/settings.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/shared.po b/apps/erp/packages/locale/locales/ru/shared.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/shared.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/ru/users.po b/apps/erp/packages/locale/locales/ru/users.podeleted file mode 100644index 0c4c7922a7..0000000000--- a/apps/erp/packages/locale/locales/ru/users.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: ru\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/account.po b/apps/erp/packages/locale/locales/zh/account.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/account.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/accounting.po b/apps/erp/packages/locale/locales/zh/accounting.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/accounting.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/documents.po b/apps/erp/packages/locale/locales/zh/documents.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/documents.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/erp.js b/apps/erp/packages/locale/locales/zh/erp.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/zh/erp.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/zh/inventory.po b/apps/erp/packages/locale/locales/zh/inventory.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/inventory.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/invoicing.po b/apps/erp/packages/locale/locales/zh/invoicing.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/invoicing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/items.po b/apps/erp/packages/locale/locales/zh/items.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/items.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/mes.js b/apps/erp/packages/locale/locales/zh/mes.jsdeleted file mode 100644index 3975ff70fd..0000000000--- a/apps/erp/packages/locale/locales/zh/mes.js+++ /dev/null@@ -1 +0,0 @@-/*eslint-disable*/module.exports={messages:JSON.parse("{}")};\ No newline at end of filediff --git a/apps/erp/packages/locale/locales/zh/people.po b/apps/erp/packages/locale/locales/zh/people.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/people.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/production.po b/apps/erp/packages/locale/locales/zh/production.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/production.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/purchasing.po b/apps/erp/packages/locale/locales/zh/purchasing.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/purchasing.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/quality.po b/apps/erp/packages/locale/locales/zh/quality.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/quality.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/resources.po b/apps/erp/packages/locale/locales/zh/resources.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/resources.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/sales.po b/apps/erp/packages/locale/locales/zh/sales.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/sales.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/settings.po b/apps/erp/packages/locale/locales/zh/settings.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/settings.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/shared.po b/apps/erp/packages/locale/locales/zh/shared.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/shared.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/packages/locale/locales/zh/users.po b/apps/erp/packages/locale/locales/zh/users.podeleted file mode 100644index 98901f3fd6..0000000000--- a/apps/erp/packages/locale/locales/zh/users.po+++ /dev/null@@ -1,14 +0,0 @@-msgid ""-msgstr ""-"POT-Creation-Date: 2026-04-09 16:29-0400\n"-"MIME-Version: 1.0\n"-"Content-Type: text/plain; charset=utf-8\n"-"Content-Transfer-Encoding: 8bit\n"-"X-Generator: @lingui/cli\n"-"Language: zh\n"-"Project-Id-Version: \n"-"Report-Msgid-Bugs-To: \n"-"PO-Revision-Date: \n"-"Last-Translator: \n"-"Language-Team: \n"-"Plural-Forms: \n"diff --git a/apps/erp/test/method-row-reparenting.test.ts b/apps/erp/test/method-row-reparenting.test.tsindex 74cd48e518..a92cab123d 100644--- a/apps/erp/test/method-row-reparenting.test.ts+++ b/apps/erp/test/method-row-reparenting.test.ts@@ -8,7 +8,7 @@ import { describe, expect, it, vi } from "vitest";// Same module-graph stubs as production.service.test.ts: glossary and the// onboarding content build Lingui `msg` descriptors at module load.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({terms: {},getEntry: vi.fn(),lookupEntry: vi.fn(),diff --git a/apps/erp/test/resolve-location-id.test.ts b/apps/erp/test/resolve-location-id.test.tsindex 9c9d88ead5..36403b5c22 100644--- a/apps/erp/test/resolve-location-id.test.ts+++ b/apps/erp/test/resolve-location-id.test.ts@@ -69,9 +69,9 @@ function args(searchParams: string) {}// `~/modules/resources` is a barrel that reaches UI components and so pulls in-// `@carbon/glossary`, whose `msg` macro is untransformed under vitest (no+// `@carbon/content/glossary`, whose `msg` macro is untransformed under vitest (no// lingui plugin here). Stub it so this test exercises the server helper only.-vi.mock("@carbon/glossary", () => ({+vi.mock("@carbon/content/glossary", () => ({getDefinitionText: () => "",getEntry: () => undefined,getTermText: () => "",diff --git a/docs/app/api/search/route.ts b/docs/app/api/search/route.tsindex 3ffdd80d1e..62a08f9cdf 100644--- a/docs/app/api/search/route.ts+++ b/docs/app/api/search/route.ts@@ -1,3 +1,4 @@+import { stemInflection } from "@carbon/content/search";import { createSearchAPI } from "fumadocs-core/search/server";import { buildSearchIndexes } from "@/lib/search-index";@@ -6,8 +7,20 @@ import { buildSearchIndexes } from "@/lib/search-index";* entry `tag`ged (docs | guide | resources | tools) so the header's surface pills can* filter via `?tag=`. */+// zbsearch ignores term frequency, so a one-word fragment ("Shipment" in the audit+// log's entity table) scores the same as a page titled "Shipments", and the tie falls+// to insertion order. Weighting each page's own title row puts the page about the+// term ahead of pages that only mention it; groups follow this order.+const TITLE_WEIGHT = 2;+const weighted = ([, score, doc]: [unknown, number, unknown]) =>+ (doc as { type?: string }).type === "page" ? score * TITLE_WEIGHT : score;+const { GET: search } = createSearchAPI("advanced", {language: "english",+ // Inflection-only stemming ("purchase order" matches "Purchase orders"), the same+ // stemInflection MCP search_tools and the agent's search_docs add to their queries.+ tokenizer: { language: "english", stemming: true, stemmer: stemInflection },+ search: { sortBy: (a, b) => weighted(b) - weighted(a) },indexes: buildSearchIndexes()});diff --git a/docs/app/llms-full.txt/route.ts b/docs/app/llms-full.txt/route.tsindex 6a88168496..a28bd4a385 100644--- a/docs/app/llms-full.txt/route.ts+++ b/docs/app/llms-full.txt/route.ts@@ -1,16 +1,15 @@-import path from "node:path";-import { readCorpus } from "@/lib/markdown-corpus";+import { getCorpus } from "@/lib/corpus";import { SITE } from "@/lib/seo";/* /llms-full.txt — every docs page as component-stripped markdown in one file, for* AI assistants that want the whole corpus rather than the /llms.txt index. Shares- * its stripper with the in-app agent's KB (docs/lib/markdown-corpus.ts), so the two+ * its stripper with the in-app agent's KB (@carbon/content/corpus), so the two* corpora can never disagree. Built once at build time. */export const dynamic = "force-static";-export function GET() {- const pages = readCorpus(path.join(process.cwd(), "content"));+export async function GET() {+ const pages = await getCorpus();const body = pages.map(diff --git a/docs/app/llms.txt/route.ts b/docs/app/llms.txt/route.tsindex 23bff46f67..8901beb57e 100644--- a/docs/app/llms.txt/route.ts+++ b/docs/app/llms.txt/route.ts@@ -1,5 +1,4 @@-import path from "node:path";-import { readCorpus } from "@/lib/markdown-corpus";+import { getCorpus } from "@/lib/corpus";import { SITE } from "@/lib/seo";/* /llms.txt — the llmstxt.org index for AI crawlers and assistants: every page as@@ -17,8 +16,8 @@ const SECTIONS: { label: string; prefix: string }[] = [{ label: "Overview", prefix: "docs/" },];-export function GET() {- const pages = readCorpus(path.join(process.cwd(), "content"));+export async function GET() {+ const pages = await getCorpus();const line = (p: (typeof pages)[number]) =>`- [${p.title}](${SITE.url}/${p.slug.replace(/\/index$/, "")})${diff --git a/docs/components/editorial/glossary.tsx b/docs/components/editorial/glossary.tsxindex 7348b08815..ab00b54154 100644--- a/docs/components/editorial/glossary.tsx+++ b/docs/components/editorial/glossary.tsx@@ -4,7 +4,7 @@ import {getTermText,glossaryEntries,termSlug-} from "@carbon/glossary";+} from "@carbon/content/glossary";/*** Glossary — the whole `lib/glossary.ts` rendered as one reference page, in thediff --git a/docs/components/editorial/mdx.tsx b/docs/components/editorial/mdx.tsxindex c9a835b4d3..5ba6fbeb01 100644--- a/docs/components/editorial/mdx.tsx+++ b/docs/components/editorial/mdx.tsx@@ -156,8 +156,8 @@ export function Divider() {}/** Agent-only context. Renders nothing on the site — the wrapped MDX is invisible to- * human readers — but `scripts/generate-agent-kb.ts` unwraps it into the in-app agent's- * knowledge base (`apps/erp/app/modules/agent/kb/<slug>.md`). Use it to give the agent+ * human readers — but `@carbon/content/agent-kb` unwraps it into the in-app agent's+ * knowledge base (via the shared `@carbon/content/corpus` stripper). Use it to give the agent* extra detail about the underlying code/behavior that shouldn't ship to readers. */export function AgentContext(_props: { children?: ReactNode }) {return null;diff --git a/docs/components/editorial/term.tsx b/docs/components/editorial/term.tsxindex e7f059c6ea..161cf8498b 100644--- a/docs/components/editorial/term.tsx+++ b/docs/components/editorial/term.tsx@@ -15,7 +15,7 @@import * as Popover from "@radix-ui/react-popover";import Link from "next/link";import type { ReactNode } from "react";-import { getDefinitionText, getTermText, lookupEntry } from "@carbon/glossary";+import { getDefinitionText, getTermText, lookupEntry } from "@carbon/content/glossary";function slugify(text: string) {return textdiff --git a/docs/content/AGENTS.md b/docs/content/AGENTS.mdnew file mode 100644index 0000000000..9f88ed1fdf--- /dev/null+++ b/docs/content/AGENTS.md@@ -0,0 +1,56 @@+# @carbon/content++Carbon's written content: the docs site's MDX, the manufacturing glossary, and the helpers+that turn both into something apps and agents can read. Nested in the docs app so the MDX stays+colocated with the site; the `docs/` Next app renders it, ERP/MES/packages import it.++## Layout++- `docs/**`, `guides/**` — the docs pages (Fumadocs reads them via `docs/source.config.ts`).+- `src/glossary/` — term definitions for ERP/MES field help and docs `<Term>` popovers.+- `src/corpus.ts` — MDX → plain markdown (pure; callers bring the raw text).+- `src/agent-kb.ts` — every page, stripped, for the in-app agent (Vite `import.meta.glob`).+- `src/links.ts` — `DOCS_URL` and `docUrl()`.+- `src/search.ts` — `stemInflection()`, the one stemmer for docs site search, MCP `search_tools`+ and the agent's `search_docs` (zbsearch's Porter, limited to plural/-ed/-ing/-e).++## Exports++```typescript+import { terms, getEntry, lookupEntry, type TermId } from "@carbon/content/glossary";+import { docUrl, DOCS_URL } from "@carbon/content/links";+import { stemInflection } from "@carbon/content/search";+import { parsePage, stripComponents } from "@carbon/content/corpus"; // pure, any bundle+import { agentDocs } from "@carbon/content/agent-kb"; // Vite builds only (ERP)+```++## Always++- **Glossary terms are Lingui `msg` descriptors** (`@lingui/core/macro`) for both `term` and+ `definition`, so extraction picks them up. One crisp sentence per definition; the full story+ lives behind `href`.+- **Use `TermId` for compile-time safety** — aliases resolve at runtime via `lookupEntry`, never+ in the `TermId` union.+- **Stay isomorphic** — no fs/Node imports outside tests; `agent-kb` is reachable from ERP client bundles.+- **Keep `links.test.ts` green** — it checks every glossary `href`, every hardcoded+ `docs.carbon.ms/docs|guides` URL under `apps/*/app` and `packages/*/src`, and every internal+ MDX link against real pages and heading anchors (github-slugger rules: "A — B" → `a--b`).++## Ask First++- Adding a glossary term (it must map to a real ERP concept) or changing a term's `href`.++## Never++- Use `getTermText()`/`getDefinitionText()` in ERP/MES UI — use `i18n._(entry.term)`.+- Import `./agent-kb` from a non-Vite runtime (the docs app, Node scripts) — feed raw MDX into `./corpus` instead.+- Add `fs` or any Node-only import to runtime code — the package is isomorphic.+- Import `./agent-kb` from `@carbon/react` or other shared UI — it bundles every page.++## Validation Commands++```bash+pnpm --filter @carbon/content typecheck+pnpm --filter @carbon/content test+pnpm --filter @carbon/content lint+```diff --git a/packages/glossary/CLAUDE.md b/docs/content/CLAUDE.mdsimilarity index 100%rename from packages/glossary/CLAUDE.mdrename to docs/content/CLAUDE.mddiff --git a/docs/content/docs/platform/self-hosting/aws-sst.mdx b/docs/content/docs/platform/self-hosting/aws-sst.mdxindex 20e04dfbf8..b13b3b2619 100644--- a/docs/content/docs/platform/self-hosting/aws-sst.mdx+++ b/docs/content/docs/platform/self-hosting/aws-sst.mdx@@ -35,13 +35,13 @@ The WAF web ACL must be **manually associated** with the application load balanc## Deploy-SST drives the deploy from `sst.config.ts`. Run it from the repo root with the [infrastructure variables](/docs/platform/self-hosting/environment-variables#infrastructure-sst) exported.+SST drives the deploy from `sst.config.ts`. Run it from the repo root with the [infrastructure variables](/docs/platform/self-hosting/environment-variables#infrastructure--sst) exported.<Steps><Step>### Set the environment- Export the SST variables (`AWS_REGION`, `AWS_ACCOUNT_ID`, `IMAGE_TAG`, the `CERT_ARN_*`, and any `URL_*`) plus the app config the services read at runtime. The [Supabase instance](/docs/platform/self-hosting/environment-variables#database-supabase) is provisioned out of band.+ Export the SST variables (`AWS_REGION`, `AWS_ACCOUNT_ID`, `IMAGE_TAG`, the `CERT_ARN_*`, and any `URL_*`) plus the app config the services read at runtime. The [Supabase instance](/docs/platform/self-hosting/environment-variables#database--supabase) is provisioned out of band.</Step><Step>### Deploy the stackdiff --git a/packages/glossary/package.json b/docs/content/package.jsonsimilarity index 56%rename from packages/glossary/package.jsonrename to docs/content/package.jsonindex 3c6420542f..ea6fc02ca0 100644--- a/packages/glossary/package.json+++ b/docs/content/package.json@@ -1,28 +1,33 @@{- "name": "@carbon/glossary",+ "name": "@carbon/content","private": true,"version": "0.0.0","sideEffects": false,"exports": {- ".": "./src/index.ts"+ "./agent-kb": "./src/agent-kb.ts",+ "./corpus": "./src/corpus.ts",+ "./glossary": "./src/glossary/index.ts",+ "./links": "./src/links.ts",+ "./search": "./src/search.ts"},"scripts": {- "clean": "rimraf .turbo node_modules dist",- "dev": "tsup src/index.ts --format esm,cjs --watch --dts",+ "clean": "rimraf .turbo node_modules","lint": "biome lint --write ","test": "vitest run","test:watch": "vitest","typecheck": "tsgo --noEmit"},"dependencies": {- "@lingui/core": "catalog:"+ "@lingui/core": "catalog:",+ "zbsearch": "catalog:"},"devDependencies": {"@carbon/config": "workspace:*","@lingui/vite-plugin": "catalog:",+ "@types/node": "catalog:","rimraf": "catalog:",- "tsup": "catalog:","typescript": "catalog:",+ "vite": "catalog:","vite-plugin-babel-macros": "catalog:","vitest": "catalog:"}diff --git a/docs/content/src/agent-kb.ts b/docs/content/src/agent-kb.tsnew file mode 100644index 0000000000..130ed2ed51--- /dev/null+++ b/docs/content/src/agent-kb.ts@@ -0,0 +1,23 @@+/// <reference types="vite/client" />+import { type CorpusPage, keywords, parsePage } from "./corpus";++// Vite-only: bundles every page's raw MDX into the importing build (the ERP server),+// so the agent needs no fs or docs app at runtime.+const sources = import.meta.glob(["../docs/**/*.mdx", "../guides/**/*.mdx"], {+ query: "?raw",+ import: "default",+ eager: true+}) as Record<string, string>;++export type AgentDoc = CorpusPage & { keywords: string[] };++/** Every docs page as stripped markdown, sorted by slug (`docs/reference/jobs`). */+export const agentDocs: AgentDoc[] = Object.entries(sources)+ .map(([file, raw]) => {+ const page = parsePage(+ file.replace(/^\.\.\//, "").replace(/\.mdx$/, ""),+ raw+ );+ return { ...page, keywords: keywords(page.title, page.slug) };+ })+ .sort((a, b) => a.slug.localeCompare(b.slug));diff --git a/docs/lib/markdown-corpus.ts b/docs/content/src/corpus.tssimilarity index 76%rename from docs/lib/markdown-corpus.tsrename to docs/content/src/corpus.tsindex 6427610452..7361478b24 100644--- a/docs/lib/markdown-corpus.ts+++ b/docs/content/src/corpus.ts@@ -3,32 +3,18 @@* MDX page becomes component-free markdown a machine can read.** Two consumers, one stripper (keep it that way):- * - `docs/scripts/generate-agent-kb.ts` — the in-app agent's committed KB corpus.- * - `docs/app/llms.txt` + `docs/app/llms-full.txt` — the public index/corpus for- * AI crawlers and assistants (llmstxt.org convention).+ * - `./agent-kb` — the in-app agent's corpus.+ * - `docs/app/llms.txt` + `docs/app/llms-full.txt` (raw text read by `docs/lib/corpus.ts`) — the public+ * index/corpus for AI crawlers and assistants (llmstxt.org convention).*- * Everything here is pure (fs helpers take explicit paths); no app imports, so the- * repo-root tsx script can import it directly.+ * Pure — no fs — so it is safe in any bundle.*/-import fs from "node:fs";-import path from "node:path";--/** Recursively collect every .mdx file under a directory. */-export function walkMdx(dir: string): string[] {- const out: string[] = [];- for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {- const p = path.join(dir, entry.name);- if (entry.isDirectory()) out.push(...walkMdx(p));- else if (entry.name.endsWith(".mdx")) out.push(p);- }- return out;-}/** Split `---\n...\n---\n body` into raw frontmatter block + body. */export function splitFrontmatter(raw: string): { fm: string; body: string } {const m = raw.match(/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/);if (!m) return { fm: "", body: raw };- return { fm: m[1], body: m[2] };+ return { fm: m[1] ?? "", body: m[2] ?? "" };}/** Read a single-line `key: value` (value may be quoted) from a frontmatter block. */@@ -52,7 +38,9 @@ export function fmValue(fm: string, key: string): string {* has a single definition — code samples containing `<Generic>` or `## comment` lines* are never mangled or mistaken for headings.*/-export function splitByCodeFence(md: string): { code: boolean; text: string }[] {+export function splitByCodeFence(+ md: string+): { code: boolean; text: string }[] {const segments: { code: boolean; text: string }[] = [];let buf: string[] = [];let inCode = false;@@ -62,13 +50,18 @@ export function splitByCodeFence(md: string): { code: boolean; text: string }[]buf = [];};for (const line of md.split("\n")) {- const m = line.match(/^\s*(`{3,}|~{3,})/);- if (!inCode && m) {+ const marker = line.match(/^\s*(`{3,}|~{3,})/)?.[1];+ if (!inCode && marker) {flush(false);inCode = true;- fence = m[1];+ fence = marker;buf.push(line);- } else if (inCode && m && m[1][0] === fence[0] && m[1].length >= fence.length) {+ } else if (+ inCode &&+ marker &&+ marker.charAt(0) === fence.charAt(0) &&+ marker.length >= fence.length+ ) {buf.push(line);flush(true);inCode = false;@@ -178,24 +171,14 @@ export type CorpusPage = {headings: string[];};-/** Read every page under a content dir as stripped markdown, sorted by slug. */-export function readCorpus(contentDir: string): CorpusPage[] {- return walkMdx(contentDir)- .sort()- .map((file) => {- const raw = fs.readFileSync(file, "utf8");- const slug = path- .relative(contentDir, file)- .replace(/\.mdx$/, "")- .split(path.sep)- .join("/");- const { fm, body } = splitFrontmatter(raw);- return {- slug,- title: fmValue(fm, "title") || slug,- description: fmValue(fm, "description"),- markdown: stripComponents(body),- headings: headings(body),- };- });+/** Parse one page from its content-relative slug and raw MDX source. */+export function parsePage(slug: string, raw: string): CorpusPage {+ const { fm, body } = splitFrontmatter(raw);+ return {+ slug,+ title: fmValue(fm, "title") || slug,+ description: fmValue(fm, "description"),+ markdown: stripComponents(body),+ headings: headings(body)+ };}diff --git a/packages/glossary/src/helpers.ts b/docs/content/src/glossary/helpers.tssimilarity index 100%rename from packages/glossary/src/helpers.tsrename to docs/content/src/glossary/helpers.tsdiff --git a/packages/glossary/src/index.ts b/docs/content/src/glossary/index.tssimilarity index 100%rename from packages/glossary/src/index.tsrename to docs/content/src/glossary/index.tsdiff --git a/packages/glossary/src/terms.test.ts b/docs/content/src/glossary/terms.test.tssimilarity index 100%rename from packages/glossary/src/terms.test.tsrename to docs/content/src/glossary/terms.test.tsdiff --git a/packages/glossary/src/terms.ts b/docs/content/src/glossary/terms.tssimilarity index 99%rename from packages/glossary/src/terms.tsrename to docs/content/src/glossary/terms.tsindex 48eb5347c2..b6dd823d48 100644--- a/packages/glossary/src/terms.ts+++ b/docs/content/src/glossary/terms.ts@@ -2031,7 +2031,7 @@ export const terms = {"workflow-run": {term: msg`Workflow run`,definition: msg`One firing of a workflow, recorded step by step with the values each step used and produced, acting throughout with the permissions of the workflow's owner.`,- href: "/docs/reference/workflow-runs"+ href: "/docs/reference/workflows#runs-and-history"},webhook: {term: msg`Webhook`,@@ -2069,12 +2069,12 @@ export const terms = {"single-sign-on": {term: msg`Single sign-on (SSO)`,definition: msg`An Enterprise sign-in method where everyone on a company's registered email domains authenticates through the company's own SAML identity provider instead of a magic link, so IT grants and revokes access centrally.`,- href: "/docs/platform/single-sign-on"+ href: "/docs/reference/single-sign-on"},"identity-provider": {term: msg`Identity provider (IdP)`,definition: msg`The system a company uses to manage its people's logins — Okta, Entra ID, or Google Workspace — which vouches for who someone is when they sign in to Carbon via SSO.`,- href: "/docs/platform/single-sign-on"+ href: "/docs/reference/single-sign-on"},"magic-link": {term: msg`Magic link`,diff --git a/packages/glossary/src/types.ts b/docs/content/src/glossary/types.tssimilarity index 100%rename from packages/glossary/src/types.tsrename to docs/content/src/glossary/types.tsdiff --git a/docs/content/src/links.test.ts b/docs/content/src/links.test.tsnew file mode 100644index 0000000000..4adf7a1033--- /dev/null+++ b/docs/content/src/links.test.ts@@ -0,0 +1,122 @@+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";+import { describe, expect, it } from "vitest";+import { splitByCodeFence, splitFrontmatter } from "./corpus";+import { terms } from "./glossary";+import { DOCS_URL } from "./links";++const sources = import.meta.glob(["../docs/**/*.mdx", "../guides/**/*.mdx"], {+ query: "?raw",+ import: "default",+ eager: true+}) as Record<string, string>;+const mdxFiles = Object.entries(sources).map(([file, raw]) => ({+ file: file.replace(/^\.\.\//, ""),+ raw+}));+const REPO_ROOT = fileURLToPath(new URL("../../..", import.meta.url));++// Mirrors github-slugger, which fumadocs uses for heading ids.+const slugify = (heading: string) =>+ heading+ .replace(/\[([^\]]*)\]\([^)]*\)/g, "$1")+ .replace(/<[^>]+>/g, "")+ .trim()+ .toLowerCase()+ .replace(/[^\p{L}\p{N}\p{M} _-]/gu, "")+ .replace(/ /g, "-");++/** Route (`/docs/reference/jobs`) → heading anchors on that page. */+const pages = new Map<string, Set<string>>();+for (const { file, raw } of mdxFiles) {+ const route = `/${file}`.replace(/\.mdx$/, "").replace(/\/index$/, "");+ const { body } = splitFrontmatter(raw);+ const anchors = new Set(+ splitByCodeFence(body)+ .filter((seg) => !seg.code)+ .flatMap((seg) => seg.text.split("\n"))+ .filter((l) => /^#{1,6}\s/.test(l))+ .map((l) => slugify(l.replace(/^#{1,6}\s+/, "")))+ );+ pages.set(route, anchors);+}+// App routes the docs site renders without an MDX page of their own.+pages.set("/guides", new Set());++function brokenReason(link: string): string | null {+ const [route = "", anchor] = link.split("#");+ const anchors = pages.get(route.replace(/\/$/, ""));+ if (!anchors) return "no such page";+ if (anchor && !anchors.has(anchor)) return `no heading #${anchor}`;+ return null;+}++function walkSource(dir: string, out: string[] = []): string[] {+ if (!fs.existsSync(dir)) return out;+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {+ if (entry.name === "node_modules") continue;+ const p = path.join(dir, entry.name);+ if (entry.isDirectory()) walkSource(p, out);+ // Test files may hold deliberately stale URLs; only shipped links count.+ else if (/\.tsx?$/.test(entry.name) && !/\.test\.tsx?$/.test(entry.name))+ out.push(p);+ }+ return out;+}++describe("doc links resolve to a real page and heading", () => {+ it("found the docs content", () => {+ expect(pages.size).toBeGreaterThan(50);+ });++ it("glossary hrefs", () => {+ const broken = Object.entries(terms).flatMap(([id, entry]) => {+ const href = (entry as { href?: string }).href;+ const reason = href && brokenReason(href);+ return reason ? [`${id}: ${href} (${reason})`] : [];+ });+ expect(broken).toEqual([]);+ });++ it(`hardcoded ${DOCS_URL} links in apps/ and packages/`, () => {+ const roots = ["apps", "packages"].flatMap((top) =>+ fs+ .readdirSync(path.join(REPO_ROOT, top))+ .flatMap((name) => [+ path.join(REPO_ROOT, top, name, "app"),+ path.join(REPO_ROOT, top, name, "src")+ ])+ );+ const pattern =+ /https:\/\/docs\.carbon\.ms(\/(?:docs|guides)[^\s"'`)\]]*)/g;+ const links = roots+ .flatMap((dir) => walkSource(dir))+ .flatMap((file) =>+ [...fs.readFileSync(file, "utf8").matchAll(pattern)].map((m) => ({+ file: path.relative(REPO_ROOT, file),+ link: m[1]!+ }))+ );+ expect(links.length).toBeGreaterThan(10);+ const broken = links.flatMap(({ file, link }) => {+ const reason = brokenReason(link);+ return reason ? [`${file}: ${link} (${reason})`] : [];+ });+ expect(broken).toEqual([]);+ });++ it("internal links inside the MDX", () => {+ const pattern = /\]\((\/(?:docs|guides)[^)\s]*)\)/g;+ const broken = mdxFiles.flatMap(({ file, raw }) =>+ splitByCodeFence(raw)+ .filter((seg) => !seg.code)+ .flatMap((seg) => [...seg.text.matchAll(pattern)])+ .flatMap((m) => {+ const reason = brokenReason(m[1]!);+ return reason ? [`${file}: ${m[1]} (${reason})`] : [];+ })+ );+ expect(broken).toEqual([]);+ });+});diff --git a/docs/content/src/links.ts b/docs/content/src/links.tsnew file mode 100644index 0000000000..123fcadbf8--- /dev/null+++ b/docs/content/src/links.ts@@ -0,0 +1,6 @@+export const DOCS_URL = "https://docs.carbon.ms";++/** Public URL for a docs path, e.g. `docs/reference/jobs` or `/docs/reference/jobs#fields`. */+export function docUrl(path: string): string {+ return `${DOCS_URL}/${path.replace(/^\/+/, "")}`;+}diff --git a/docs/content/src/search.test.ts b/docs/content/src/search.test.tsnew file mode 100644index 0000000000..5461d6bd65--- /dev/null+++ b/docs/content/src/search.test.ts@@ -0,0 +1,22 @@+import { describe, expect, it } from "vitest";+import { stemInflection } from "./search";++describe("stemInflection", () => {+ it("strips inflections", () => {+ expect(stemInflection("orders")).toBe("order");+ expect(stemInflection("ordered")).toBe("order");+ expect(stemInflection("scrapping")).toBe("scrap");+ expect(stemInflection("shipped")).toBe("ship");+ });++ it("gives singular, plural and past forms one stem", () => {+ const stems = ["invoice", "invoices", "invoiced"].map(stemInflection);+ expect(new Set(stems).size).toBe(1);+ });++ it("leaves words Porter would over-stem alone", () => {+ expect(stemInflection("customer")).toBe("customer");+ expect(stemInflection("shipment")).toBe("shipment");+ expect(stemInflection("operations")).toBe("operations");+ });+});diff --git a/docs/content/src/search.ts b/docs/content/src/search.tsnew file mode 100644index 0000000000..02f8e5280c--- /dev/null+++ b/docs/content/src/search.ts@@ -0,0 +1,18 @@+import { components } from "zbsearch";++// zbsearch's English (Porter) stemmer, limited to inflections: plural, -ed, -ing+// (with a doubled consonant, "scrapping" -> "scrap") and a trailing -e. Porter's+// derivational steps over-stem for us: "customer" -> "custom" met custom fields,+// "shipment" -> "ship" and "operations" -> "oper" pulled in unrelated pages.+const porter = components.tokenizer.createTokenizer({+ language: "english",+ stemming: true+});+const INFLECTION = /^(?:e|e?s|[a-z]?(?:ed|ing))$/;++/** "orders" -> "order", "scrapping" -> "scrap"; any other word comes back unchanged. */+export function stemInflection(word: string): string {+ const [stem] = porter.tokenize(word, "english");+ if (!stem || !word.startsWith(stem)) return word;+ return INFLECTION.test(word.slice(stem.length)) ? stem : word;+}diff --git a/packages/glossary/tsconfig.json b/docs/content/tsconfig.jsonsimilarity index 67%rename from packages/glossary/tsconfig.jsonrename to docs/content/tsconfig.jsonindex 2abfcdfcc8..701f2447c7 100644--- a/packages/glossary/tsconfig.json+++ b/docs/content/tsconfig.json@@ -1,5 +1,8 @@{"$schema": "https://json.schemastore.org/tsconfig","extends": "@carbon/config/tsconfig/base.json",+ "compilerOptions": {+ "types": ["node", "vite/client"]+ },"include": ["src/**/*.ts"]}diff --git a/packages/glossary/vitest.config.ts b/docs/content/vitest.config.tssimilarity index 100%rename from packages/glossary/vitest.config.tsrename to docs/content/vitest.config.tsdiff --git a/docs/lib/corpus.ts b/docs/lib/corpus.tsnew file mode 100644index 0000000000..2855c99250--- /dev/null+++ b/docs/lib/corpus.ts@@ -0,0 +1,17 @@+import { type CorpusPage, parsePage } from "@carbon/content/corpus";+import { guideSource, source } from "@/lib/source";++/** Every docs + guide page as stripped markdown, in file-path order. */+export async function getCorpus(): Promise<CorpusPage[]> {+ const pages = [+ ...source.getPages().map((page) => ({ file: `docs/${page.path}`, page })),+ ...guideSource+ .getPages()+ .map((page) => ({ file: `guides/${page.path}`, page })),+ ].sort((a, b) => (a.file < b.file ? -1 : a.file > b.file ? 1 : 0));+ return Promise.all(+ pages.map(async ({ file, page }) =>+ parsePage(file.replace(/\.mdx$/, ""), await page.data.getText("raw"))+ )+ );+}diff --git a/docs/lib/search-index.ts b/docs/lib/search-index.tsindex 17878d4c9f..85e31ff595 100644--- a/docs/lib/search-index.ts+++ b/docs/lib/search-index.ts@@ -6,7 +6,7 @@ import {getTermText,glossaryEntries,termSlug,-} from "@carbon/glossary";+} from "@carbon/content/glossary";import { guideSource, source } from "@/lib/source";import { operationLabel, toolModules } from "@/lib/tools-data";diff --git a/docs/next.config.mjs b/docs/next.config.mjsindex 2bb8ba7cc0..a8105755b1 100644--- a/docs/next.config.mjs+++ b/docs/next.config.mjs@@ -8,7 +8,7 @@ const config = {// Consume the shared status→color constants (@carbon/utils/status-colors) — a pure-TS// workspace module, so Next must transpile it.transpilePackages: ["@carbon/utils"],- // `@carbon/glossary` uses Lingui `msg` macros so ERP/MES can translate entries+ // `@carbon/content/glossary` uses Lingui `msg` macros so ERP/MES can translate entries// at render. Without an SWC transform, Turbopack bundles `@lingui/core/macro`// → `@lingui/conf` → Node `fs`, which breaks the build. The SWC plugin// compiles the macro down to plain `{ id, message }` literals so docs readsdiff --git a/docs/package.json b/docs/package.jsonindex d32e913457..b10160f582 100644--- a/docs/package.json+++ b/docs/package.json@@ -15,13 +15,13 @@"typecheck": "node scripts/generate-api-docs.mjs && fumadocs-mdx && tsc --noEmit"},"dependencies": {- "@carbon/glossary": "workspace:*",+ "@carbon/content": "workspace:*","@carbon/utils": "workspace:*","@radix-ui/react-dialog": "1.1.15","@radix-ui/react-popover": "1.1.15",- "fumadocs-core": "^16",- "fumadocs-mdx": "^15",- "fumadocs-ui": "^16",+ "fumadocs-core": "^16.14.0",+ "fumadocs-mdx": "^15.4.0",+ "fumadocs-ui": "^16.14.0","motion": "^12","next": "^16","non.geist": "catalog:",diff --git a/docs/scripts/generate-agent-kb.ts b/docs/scripts/generate-agent-kb.tsdeleted file mode 100644index 81bc4f972f..0000000000--- a/docs/scripts/generate-agent-kb.ts+++ /dev/null@@ -1,133 +0,0 @@-/**- * generate-agent-kb (docs/scripts) — build the in-app agent's read-only knowledge base from the docs site.- *- * The Fumadocs MDX under `docs/content/**` is the source of truth. The in-app agent- * (apps/erp `modules/agent`) reads a flattened, component-stripped copy of every page from- * `apps/erp/app/modules/agent/kb/<slug>.md`, plus a `manifest.json` keyword index that- * `search_docs` scans. This script regenerates both and prunes stale files.- *- * The MDX→markdown stripping lives in `docs/lib/markdown-corpus.ts`, shared with the- * public `/llms.txt` + `/llms-full.txt` routes so the agent corpus and the AI-crawler- * corpus can never disagree about what a page says.- *- * Committed output ships inside the erp Docker image, so the agent reads it with a bundled- * import / fs read at runtime (no docs-app dependency). Mirrors the `generate-mcp.ts` pattern.- *- * Run it manually after editing docs/content, and commit the regenerated kb/ alongside- * the docs change — same model as filling .po files before a commit. The check-and-commit- * skill runs it automatically when docs/content or this script is in the change set.- * See .ai/rules/agent-knowledge-base.md.- *- * Run: pnpm run generate:agent-kb- */-import fs from "node:fs";-import path from "node:path";-import { fileURLToPath } from "node:url";-import { keywords, readCorpus } from "../lib/markdown-corpus";--// Paths resolve from this file's location, so the script works from any cwd-// (run via `pnpm run generate:agent-kb` at the repo root).-const DOCS_ROOT = path.join(path.dirname(fileURLToPath(import.meta.url)), "..");-const ROOT = path.join(DOCS_ROOT, "..");-const CONTENT_DIR = path.join(DOCS_ROOT, "content");-const KB_DIR = path.join(ROOT, "apps/erp/app/modules/agent/kb");-const MANIFEST_PATH = path.join(KB_DIR, "manifest.json");--type ManifestEntry = {- slug: string;- title: string;- description: string;- keywords: string[];- headings: string[];-};--function main() {- const pages = readCorpus(CONTENT_DIR);- const written = new Set<string>();- const manifest: ManifestEntry[] = [];-- for (const page of pages) {- const md = `# ${page.title}\n\n${- page.description ? `> ${page.description}\n\n` : ""- }${page.markdown}\n`;- const outPath = path.join(KB_DIR, `${page.slug}.md`);- fs.mkdirSync(path.dirname(outPath), { recursive: true });- fs.writeFileSync(outPath, md, "utf8");- written.add(path.resolve(outPath));-- manifest.push({- slug: page.slug,- title: page.title,- description: page.description,- keywords: keywords(page.title, page.slug),- headings: page.headings,- });- }-- manifest.sort((a, b) => a.slug.localeCompare(b.slug));- fs.mkdirSync(KB_DIR, { recursive: true });- fs.writeFileSync(- MANIFEST_PATH,- `${JSON.stringify(- {- _comment:- "GENERATED by docs/scripts/generate-agent-kb.ts from docs/content. Do not hand-edit — run `pnpm run generate:agent-kb`.",- docs: manifest,- },- null,- 2- )}\n`,- "utf8"- );-- // Drop a README so nobody hand-edits this folder. Added to `written` so the- // prune step below doesn't delete it.- const readmePath = path.join(KB_DIR, "README.md");- fs.writeFileSync(- readmePath,- `# Agent knowledge base (auto-generated — do not edit)--Every file in this folder is generated from the docs site (\`docs/content/**\`) by-\`docs/scripts/generate-agent-kb.ts\`. It is the read-only corpus the in-app agent searches-(\`search_docs\`) and reads (\`read_doc\`), bundled into the erp image so it ships with the app.--**Do not edit these files by hand — your changes will be overwritten.**--To update the content, edit the source docs under \`docs/content/\` and regenerate, then-commit the result **in the same commit** as the docs change (same model as filling \`.po\`-translations before committing):--\`\`\`bash-pnpm run generate:agent-kb-\`\`\`--The check-and-commit skill runs this automatically when \`docs/content/**\` or the generator-is in the change set. See \`.ai/rules/agent-knowledge-base.md\`.-`,- "utf8"- );- written.add(path.resolve(readmePath));-- // Prune stale generated .md (source docs removed).- const pruned: string[] = [];- const walkKb = (dir: string) => {- if (!fs.existsSync(dir)) return;- for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {- const p = path.join(dir, entry.name);- if (entry.isDirectory()) {- walkKb(p);- if (fs.readdirSync(p).length === 0) fs.rmdirSync(p);- } else if (entry.name.endsWith(".md") && !written.has(path.resolve(p))) {- fs.rmSync(p);- pruned.push(path.relative(KB_DIR, p));- }- }- };- walkKb(KB_DIR);-- console.log(`Wrote ${manifest.length} docs -> ${path.relative(ROOT, KB_DIR)}`);- console.log(`Manifest: ${path.relative(ROOT, MANIFEST_PATH)}`);- if (pruned.length) console.log(`Pruned ${pruned.length} stale: ${pruned.join(", ")}`);-}--main();diff --git a/docs/source.config.ts b/docs/source.config.tsindex f95eab9e8d..f8631849e7 100644--- a/docs/source.config.ts+++ b/docs/source.config.ts@@ -34,7 +34,7 @@ export const guide = defineDocs({// Remove <AgentContext> blocks from the MDX AST before fumadocs' remark-structure// runs. AgentContext is agent-only: this keeps its content out of the rendered page// AND out of the site search index (structuredData). The in-app agent still receives-// it — scripts/generate-agent-kb.ts reads the raw MDX source, not the compiled tree.+// it — @carbon/content/agent-kb reads the raw MDX source, not the compiled tree.// fumadocs splices user remarkPlugins before remarkStructure, so this runs first.function remarkStripAgentContext() {// eslint-disable-next-line @typescript-eslint/no-explicit-anydiff --git a/docs/tsconfig.json b/docs/tsconfig.jsonindex 5619a52fc7..618162ffa9 100644--- a/docs/tsconfig.json+++ b/docs/tsconfig.json@@ -14,5 +14,5 @@".next/types/**/*.ts",".source/**/*"],- "exclude": ["node_modules"]+ "exclude": ["node_modules", "content"]}diff --git a/lingui.config.js b/lingui.config.jsindex fe9858b85f..4e3851a928 100644--- a/lingui.config.js+++ b/lingui.config.js@@ -19,7 +19,7 @@ export default defineConfig({"packages/react/src","packages/form/src","packages/printing/src/ui",- "packages/glossary/src",+ "docs/content/src/glossary","packages/onboarding/src","packages/ee/src/workflows"],diff --git a/package.json b/package.jsonindex 44bd055dd2..5032ee4eb0 100755--- a/package.json+++ b/package.json@@ -57,7 +57,6 @@"dev:packages": "turbo run dev --filter=./packages/*","dev:starter": "turbo run dev --filter=./apps/starter --filter=./packages/","format": "biome format --write",- "generate:agent-kb": "tsx docs/scripts/generate-agent-kb.ts","generate:mcp": "tsx scripts/generate-mcp.ts","generate:swagger": "tsx scripts/generate-swagger-docs.ts && pnpm exec biome format ./packages/database/src/swagger-docs-schema.ts --write --files-max-size=20000000","generate:types": "tsx scripts/generate-db-types.ts",diff --git a/packages/ee/AGENTS.md b/packages/ee/AGENTS.mdindex 4cf7b597ac..d826f1e420 100644--- a/packages/ee/AGENTS.md+++ b/packages/ee/AGENTS.md@@ -45,7 +45,7 @@ pnpm --filter @carbon/ee typecheck| `./sso.server` | SAML connection, domain verification, session, and provisioning helpers || `./storage-rules`, `./storage-rules.server` | Storage-rule schemas and server operations || `./workflows`, `./workflows/help`, `./workflows/labels` | The workflows engine — definition schema, normaliser, validator, generated catalog, pure runtime, and the `sync.ts` trigger/subscription reconciler (moved from `@carbon/workflows`). `./workflows/labels` (`WORKFLOW_LABELS`) is Vite-only — the `msg` macro throws in plain Node |-| `./mcp`, `./mcp.server` | The MCP protocol engine (moved from `apps/erp/.../api+/mcp+/lib`). `./mcp` = pure logic (catalog search, formatters, instructions, types) with no auth/entitlement chain — safe for tests; `./mcp.server` = `server.ts` (`createMcpServer`, embeds `requireEntitlement("MCP")`). The dispatch + generated tool metadata stay in the app and are injected as `deps`. `server.ts` is `@ts-nocheck` |+| `./mcp`, `./mcp.server` | The MCP protocol engine (moved from `apps/erp/.../api+/mcp+/lib`). `./mcp` = pure logic (catalog search, the agent's doc search `createDocSearch`, formatters, instructions, types) with no auth/entitlement chain — safe for tests; `./mcp.server` = `server.ts` (`createMcpServer`, embeds `requireEntitlement("MCP")`). The dispatch + generated tool metadata stay in the app and are injected as `deps`. `server.ts` is `@ts-nocheck` || `./workflows.server` | Workflows runtime lock: `workflowsEnabledForCompany(companyId)` (runtime DEGRADE — a non-entitled run settles Skipped, embedded in `@carbon/jobs` `engine/execute.ts`) and `requireWorkflowsEntitlement(client, companyId)` (authoring throw, embedded in the ERP's `publishWorkflowVersion`) || `./jira`, `./jira.server`, `./linear`, `./linear.server`, `./onshape`, `./paperless-parts` | Integration client/server seams || `./onshape`, `./onshape.server` | Onshape runtime shared by BOTH Onshape integrations — `onshape` (the public App Store app, client from `ONSHAPE_CLIENT_*`) and `onshape-government` (a customer-owned private OAuth app on their own tenant URL; tenant URL and client id/secret entered in settings; the tenant URL also serves OAuth, secret vaulted; always offered). Runtime code resolves the company's connection with `getOnshapeIntegration` rather than naming an id; `getOnshapeOAuthConfig` picks the client per variant; `./onshape.server` has `beginOnshapeAuthorization` / `loadOnshapeOAuthConfig`. `externalIntegrationMapping` rows stay under `"onshape"` for both. A company holds one active Onshape connection at a time (`getConflictingOnshapeIntegration`, app-level) |diff --git a/packages/ee/package.json b/packages/ee/package.jsonindex cc9f97727c..5296234296 100644--- a/packages/ee/package.json+++ b/packages/ee/package.json@@ -105,7 +105,7 @@"devDependencies": {"@carbon/api": "workspace:*","@carbon/config": "workspace:*",- "@carbon/glossary": "workspace:*",+ "@carbon/content": "workspace:*","@logtape/logtape": "catalog:","@logtape/testing": "catalog:","@types/nodemailer": "6.4.21",diff --git a/packages/ee/src/mcp/catalog-search.ts b/packages/ee/src/mcp/catalog-search.tsindex 65a2772883..a5d1cdbe81 100644--- a/packages/ee/src/mcp/catalog-search.ts+++ b/packages/ee/src/mcp/catalog-search.ts@@ -3,6 +3,7 @@// a curated alias layer in front — the engine knows nothing about ERP domain// vocabulary, so "RMA" reaching the returns tools is our job, not its.import type { Classification, ManifestEntry } from "@carbon/api";+import { stemInflection } from "@carbon/content/search";import { create, insertMultiple, search } from "zbsearch";/**@@ -90,8 +91,8 @@ export function collectFieldNames(/*** Build the search term: the query's words (camelCase split AND raw, so* "getCustomers" matches both the tokenized and the literal name) plus alias- * expansions. BM25 scores documents matching more of the terms higher, so the- * expansions never need to all hit.+ * expansions and word stems ("scrapping" adds "scrap"). BM25 scores documents+ * matching more of the terms higher, so the expansions never need to all hit.*/export function expandQueryTerm(query: string): string {const words = new Set<string>();@@ -107,6 +108,12 @@ export function expandQueryTerm(query: string): string {words.add(alias);}}+ // Stems join the QUERY only, like aliases. Stemming the index collapsed "orders"+ // into "order", so list tools (getSalesOrders) lost their edge to single-record+ // ones (deleteSalesOrder).+ for (const word of [...words]) {+ words.add(stemInflection(word));+ }return [...words].join(" ");}diff --git a/packages/ee/src/mcp/doc-search.ts b/packages/ee/src/mcp/doc-search.tsnew file mode 100644index 0000000000..36f2b14a44--- /dev/null+++ b/packages/ee/src/mcp/doc-search.ts@@ -0,0 +1,78 @@+// Ranked search over the docs corpus for the in-app agent's `search_docs`. Same+// engine as the tool catalog (catalog-search.ts): zbsearch BM25 with prefix+// expansion, SEARCH_ALIASES and word stems via expandQueryTerm, and a+// typo-tolerant second pass — indexed over doc fields instead of tool fields.+import { create, insertMultiple, search } from "zbsearch";+import { expandQueryTerm } from "./catalog-search";++export type SearchableDoc = {+ slug: string;+ title: string;+ description: string;+ keywords: string[];+ headings: string[];+ markdown: string;+};++const DOC_SCHEMA = {+ slug: "string",+ title: "string",+ keywords: "string",+ headings: "string",+ description: "string",+ body: "string"+} as const;++const DOC_BOOSTS = {+ title: 4,+ keywords: 3,+ headings: 2,+ description: 1.5,+ body: 1+};++async function buildDocIndex(docs: SearchableDoc[]) {+ const db = create({ schema: DOC_SCHEMA });+ await insertMultiple(+ db,+ docs.map((doc) => ({+ slug: doc.slug,+ title: doc.title,+ keywords: doc.keywords.join(" "),+ headings: doc.headings.join(" "),+ description: doc.description,+ body: doc.markdown+ }))+ );+ return db;+}++/** Returns a `(query, limit)` search over `docs`, best match first. */+export function createDocSearch<T extends SearchableDoc>(docs: T[]) {+ const bySlug = new Map(docs.map((doc) => [doc.slug, doc]));++ // Built lazily on the first query so importing this module stays free.+ let indexPromise: ReturnType<typeof buildDocIndex> | null = null;+ const getIndex = () => (indexPromise ??= buildDocIndex(docs));++ return async function searchDocs(query: string, limit: number): Promise<T[]> {+ const term = expandQueryTerm(query);+ if (!term) return [];++ const params = {+ term,+ properties: Object.keys(DOC_BOOSTS) as (keyof typeof DOC_BOOSTS)[],+ boost: DOC_BOOSTS,+ limit+ };+ const db = await getIndex();+ let results = await search(db, params);+ if (results.count === 0) {+ results = await search(db, { ...params, tolerance: 1 });+ }++ return results.hits+ .map((hit) => bySlug.get((hit.document as { slug: string }).slug))+ .filter((doc): doc is T => doc !== undefined);+ };+}diff --git a/packages/ee/src/mcp/index.ts b/packages/ee/src/mcp/index.tsindex 8490087778..2488f1ae15 100644--- a/packages/ee/src/mcp/index.ts+++ b/packages/ee/src/mcp/index.ts@@ -1,10 +1,11 @@-// The PURE MCP logic (`@carbon/ee/mcp`): catalog search, result/description+// The PURE MCP logic (`@carbon/ee/mcp`): catalog + doc search, result/description// formatting, connect-time instructions, and the shared types. It pulls in NO// auth/entitlement chain, so tests and the app route can import these helpers// without loading the server (`@carbon/ee/mcp.server` → `server.ts`, which embeds// the `requireEntitlement` lock and its heavier dependency graph).export * from "./catalog-search";export * from "./describe-format";+export * from "./doc-search";export * from "./format-result";export * from "./instructions";export * from "./types";diff --git a/packages/ee/src/workflows/catalog/actions.ts b/packages/ee/src/workflows/catalog/actions.tsindex 1cbbdd92d6..1f2c341989 100644--- a/packages/ee/src/workflows/catalog/actions.ts+++ b/packages/ee/src/workflows/catalog/actions.ts@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { RequiredPermission } from "../definition/catalog";import { t, type ValueType } from "../definition/types";diff --git a/packages/ee/src/workflows/catalog/build.ts b/packages/ee/src/workflows/catalog/build.tsindex 1a36884785..56c0549e77 100644--- a/packages/ee/src/workflows/catalog/build.ts+++ b/packages/ee/src/workflows/catalog/build.ts@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import {type EventMatch,isMultiSelect,diff --git a/packages/ee/src/workflows/catalog/help.generated.ts b/packages/ee/src/workflows/catalog/help.generated.tsindex 9dd345ff3e..2c05b0c2bb 100644--- a/packages/ee/src/workflows/catalog/help.generated.ts+++ b/packages/ee/src/workflows/catalog/help.generated.ts@@ -1,6 +1,6 @@// GENERATED FILE — do not edit. Run `pnpm run generate:workflow-catalog`.-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";export const WORKFLOW_FIELD_HELP: Record<string, TermId> = {"action.customer.update.input.accountManagerId": "customer-account-manager",diff --git a/packages/form/package.json b/packages/form/package.jsonindex ab44e03aa8..5d73e6a1df 100644--- a/packages/form/package.json+++ b/packages/form/package.json@@ -26,7 +26,7 @@"zod-form-data": "catalog:"},"dependencies": {- "@carbon/glossary": "workspace:*",+ "@carbon/content": "workspace:*","@carbon/logger": "workspace:*","@internationalized/date": "catalog:","@react-aria/i18n": "catalog:",diff --git a/packages/form/src/components/Array.tsx b/packages/form/src/components/Array.tsxindex 3d1640936e..0c655b7124 100644--- a/packages/form/src/components/Array.tsx+++ b/packages/form/src/components/Array.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { InputProps } from "@carbon/react";import {Button,diff --git a/packages/form/src/components/ArrayNumeric.tsx b/packages/form/src/components/ArrayNumeric.tsxindex c545819076..191f178e6b 100644--- a/packages/form/src/components/ArrayNumeric.tsx+++ b/packages/form/src/components/ArrayNumeric.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { InputProps } from "@carbon/react";import {Button,diff --git a/packages/form/src/components/Boolean.tsx b/packages/form/src/components/Boolean.tsxindex 0a9b3d6f3d..66c072f7e0 100644--- a/packages/form/src/components/Boolean.tsx+++ b/packages/form/src/components/Boolean.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import {cn,FormControl,diff --git a/packages/form/src/components/Choice.tsx b/packages/form/src/components/Choice.tsxindex 408d2459db..12b005a8d0 100644--- a/packages/form/src/components/Choice.tsx+++ b/packages/form/src/components/Choice.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import { cn, LabelWithHelp, RadioGroup, RadioGroupItem } from "@carbon/react";import type { ReactNode } from "react";diff --git a/packages/form/src/components/Combobox.tsx b/packages/form/src/components/Combobox.tsxindex 24ec27011a..2740cec99b 100644--- a/packages/form/src/components/Combobox.tsx+++ b/packages/form/src/components/Combobox.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { ComboboxProps as ComboboxBaseProps } from "@carbon/react";import {Combobox as ComboboxBase,diff --git a/packages/form/src/components/CreatableCombobox.tsx b/packages/form/src/components/CreatableCombobox.tsxindex 75b23cb7c0..167a5f444a 100644--- a/packages/form/src/components/CreatableCombobox.tsx+++ b/packages/form/src/components/CreatableCombobox.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { CreatableComboboxProps as CreatableComboboxBaseProps } from "@carbon/react";import {CreatableCombobox as CreatableComboboxBase,diff --git a/packages/form/src/components/CreatableMultiSelect.tsx b/packages/form/src/components/CreatableMultiSelect.tsxindex 8478b827dc..bb6bf4b472 100644--- a/packages/form/src/components/CreatableMultiSelect.tsx+++ b/packages/form/src/components/CreatableMultiSelect.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { CreatableMultiSelectProps as CreatableMultiSelectBaseProps } from "@carbon/react";import {CreatableMultiSelect as CreatableMultiSelectBase,diff --git a/packages/form/src/components/DatePicker.tsx b/packages/form/src/components/DatePicker.tsxindex ba4f354bff..3a4e282956 100644--- a/packages/form/src/components/DatePicker.tsx+++ b/packages/form/src/components/DatePicker.tsx@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import { useFormContext } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import { getLogger } from "@carbon/logger";import {DatePicker as DatePickerBase,diff --git a/packages/form/src/components/DateTimePicker.tsx b/packages/form/src/components/DateTimePicker.tsxindex 9ded276a31..1a11d33369 100644--- a/packages/form/src/components/DateTimePicker.tsx+++ b/packages/form/src/components/DateTimePicker.tsx@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import { useFormContext } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import {DateTimePicker as DateTimePickerBase,FormControl,diff --git a/packages/form/src/components/Input.tsx b/packages/form/src/components/Input.tsxindex 05a34ec3e8..e3c2696930 100644--- a/packages/form/src/components/Input.tsx+++ b/packages/form/src/components/Input.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { InputProps } from "@carbon/react";import {FormControl,diff --git a/packages/form/src/components/InputControlled.tsx b/packages/form/src/components/InputControlled.tsxindex 685a8c87cc..8c3903c610 100644--- a/packages/form/src/components/InputControlled.tsx+++ b/packages/form/src/components/InputControlled.tsx@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import { useFormContext } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import type { InputProps } from "@carbon/react";import {FormControl,diff --git a/packages/form/src/components/MultiSelect.tsx b/packages/form/src/components/MultiSelect.tsxindex 8c752d55da..e7faee1ddd 100644--- a/packages/form/src/components/MultiSelect.tsx+++ b/packages/form/src/components/MultiSelect.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { MultiSelectProps as MultiSelectBaseProps } from "@carbon/react";import {Badge,diff --git a/packages/form/src/components/Number.tsx b/packages/form/src/components/Number.tsxindex 845126f01e..05b22bc464 100644--- a/packages/form/src/components/Number.tsx+++ b/packages/form/src/components/Number.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { NumberFieldProps } from "@carbon/react";import {FormControl,diff --git a/packages/form/src/components/NumberControlled.tsx b/packages/form/src/components/NumberControlled.tsxindex 3f807e427e..bfb4034beb 100644--- a/packages/form/src/components/NumberControlled.tsx+++ b/packages/form/src/components/NumberControlled.tsx@@ -1,5 +1,5 @@+import type { TermId } from "@carbon/content/glossary";import { useFormContext } from "@carbon/form";-import type { TermId } from "@carbon/glossary";import type { NumberFieldProps } from "@carbon/react";import {FormControl,diff --git a/packages/form/src/components/Password.tsx b/packages/form/src/components/Password.tsxindex c05d96b2b0..c5a1939dac 100644--- a/packages/form/src/components/Password.tsx+++ b/packages/form/src/components/Password.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { InputProps } from "@carbon/react";import {FormControl,diff --git a/packages/form/src/components/PhoneInput.tsx b/packages/form/src/components/PhoneInput.tsxindex 5238c41fc9..2c16a377bc 100644--- a/packages/form/src/components/PhoneInput.tsx+++ b/packages/form/src/components/PhoneInput.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { InputProps } from "@carbon/react";import {Button,diff --git a/packages/form/src/components/Radios.tsx b/packages/form/src/components/Radios.tsxindex 646dcd09cd..51c544c4af 100644--- a/packages/form/src/components/Radios.tsx+++ b/packages/form/src/components/Radios.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import {FormControl,FormErrorMessage,diff --git a/packages/form/src/components/Select.tsx b/packages/form/src/components/Select.tsxindex 6fe125dd8e..4ed2ea7df3 100644--- a/packages/form/src/components/Select.tsx+++ b/packages/form/src/components/Select.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import {buttonVariants,Select as CarbonSelect,diff --git a/packages/form/src/components/SelectControlled.tsx b/packages/form/src/components/SelectControlled.tsxindex f3a304a0cf..1fc03bbab5 100644--- a/packages/form/src/components/SelectControlled.tsx+++ b/packages/form/src/components/SelectControlled.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import {FormControl,FormErrorMessage,diff --git a/packages/form/src/components/Textarea.tsx b/packages/form/src/components/Textarea.tsxindex 9caebd90fe..de8bc9ba9b 100644--- a/packages/form/src/components/Textarea.tsx+++ b/packages/form/src/components/Textarea.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { TextareaProps } from "@carbon/react";import {FormControl,diff --git a/packages/form/src/components/TextareaControlled.tsx b/packages/form/src/components/TextareaControlled.tsxindex 759207d7de..88ba91e656 100644--- a/packages/form/src/components/TextareaControlled.tsx+++ b/packages/form/src/components/TextareaControlled.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import type { TextareaProps } from "@carbon/react";import {FormControl,diff --git a/packages/form/src/components/TimePicker.tsx b/packages/form/src/components/TimePicker.tsxindex e3a6b4d90a..a644f93a25 100644--- a/packages/form/src/components/TimePicker.tsx+++ b/packages/form/src/components/TimePicker.tsx@@ -1,4 +1,4 @@-import type { TermId } from "@carbon/glossary";+import type { TermId } from "@carbon/content/glossary";import {FormControl,FormErrorMessage,diff --git a/packages/glossary/AGENTS.md b/packages/glossary/AGENTS.mddeleted file mode 100644index d883076cce..0000000000--- a/packages/glossary/AGENTS.md+++ /dev/null@@ -1,48 +0,0 @@-# @carbon/glossary--Manufacturing glossary — canonical term definitions for ERP/MES field help and docs site popovers.--## Always--- **Terms are Lingui `msg` descriptors** — use `msg` from `@lingui/core/macro` for both `term` and `definition` fields so extraction picks them up for translation.-- **Definitions are one crisp sentence** — the full explanation lives behind the `href` link. Keep entries concise and grounded.-- **Use `TermId` type for compile-time safety** — `TermId = keyof typeof terms` catches typos at the call site (e.g. `useFieldHelp("typo")` is a type error).-- **Slugs are lowercase, hyphenated** — `termSlug()` normalizes text. Aliases resolve at runtime via `lookupEntry`; canonical IDs go in `terms` object keys.--## Ask First--- Adding a new glossary term (ensure it maps to a real concept in the ERP domain)-- Changing an existing term's `href` (anchors are grounded against real docs headings)--## Never--- Add aliases to the `TermId` type union — aliases resolve at runtime, not compile time-- Write multi-sentence definitions — link to docs for the full story-- Use `getTermText()`/`getDefinitionText()` in ERP/MES UI — use `i18n._(entry.term)` for locale-aware rendering--## Validation Commands--```bash-pnpm --filter @carbon/glossary typecheck-pnpm --filter @carbon/glossary test-pnpm --filter @carbon/glossary lint-```--## Key Exports--```typescript-import { terms, getEntry, lookupEntry, hasEntry, listEntries,- glossaryEntries, getTermText, getDefinitionText, termSlug } from "@carbon/glossary";-import type { TermId, GlossaryEntry } from "@carbon/glossary";-```--- `terms` — the glossary object (`{ [slug]: { term, definition, href?, aliases? } }`)-- `getEntry(id: TermId)` — total lookup (compile-time safe)-- `lookupEntry(slug)` — partial lookup including aliases (returns `undefined` if not found)-- `getTermText` / `getDefinitionText` — source English extraction (for non-Lingui contexts like docs)--## Cross-References--- `@carbon/react` — `LabelWithHelp` component consumes glossary entries-- `@carbon/locale` — terms use `msg` descriptors; rendered via Lingui `i18n._()` in apps-- Docs site `<Term>` component — slugifies display text to find entriesdiff --git a/packages/glossary/tsup.config.ts b/packages/glossary/tsup.config.tsdeleted file mode 100644index 2d970f62ea..0000000000--- a/packages/glossary/tsup.config.ts+++ /dev/null@@ -1,12 +0,0 @@-import { defineConfig } from "tsup";--const isProduction = process.env.VERCEL_ENV === "production";--export default defineConfig({- clean: true,- dts: true,- entry: ["src/index.ts"],- format: ["cjs", "esm"],- minify: isProduction,- sourcemap: !isProduction,-});diff --git a/packages/locale/AGENTS.md b/packages/locale/AGENTS.mdindex e7d10a19e3..fcdc30e691 100644--- a/packages/locale/AGENTS.md+++ b/packages/locale/AGENTS.md@@ -51,5 +51,5 @@ Supported runtime locales are `en`, `fr`, `de`, `es`, `it`, `ja`, `pl`, `pt`, `r- `.claude/rules/i18n-lingui-system.md` — full i18n system docs, marking patterns, gotchas- `lingui.config.js` (root) — catalog config, source paths, locale list-- `packages/locale/locales/glossary.json` and `@carbon/glossary` — approved manufacturing terminology (terms use `msg` descriptors for i18n)+- `packages/locale/locales/glossary.json` and `@carbon/content/glossary` — approved manufacturing terminology (terms use `msg` descriptors for i18n)- `apps/{erp,mes}/app/services/lingui.ts` — isomorphic catalog loading (`preloadCatalog` / `getCatalog` / `useCatalog`)diff --git a/packages/react/AGENTS.md b/packages/react/AGENTS.mdindex 763e8ec7cf..a6c802e2bd 100644--- a/packages/react/AGENTS.md+++ b/packages/react/AGENTS.md@@ -50,5 +50,5 @@ import { Button, Card, HStack, VStack, IconButton, cn } from "@carbon/react";- `.claude/rules/conventions-ui.md` — full UI conventions, polish principles, review checklist- `@carbon/tiptap` — editor extensions used by `Editor/` and `RichText/`-- `@carbon/glossary` — term definitions used by `LabelWithHelp`+- `@carbon/content/glossary` — term definitions used by `LabelWithHelp`- `@carbon/form` — form field components (import from `~/components/Form` in apps, not directly)diff --git a/packages/react/package.json b/packages/react/package.jsonindex a635d4d695..745b51c02e 100644--- a/packages/react/package.json+++ b/packages/react/package.json@@ -3,7 +3,7 @@"dependencies": {"@carbon/database": "workspace:*","@carbon/env": "workspace:*",- "@carbon/glossary": "workspace:*",+ "@carbon/content": "workspace:*","@carbon/logger": "workspace:*","@carbon/tiptap": "workspace:*","@nanostores/react": "catalog:",diff --git a/packages/react/src/LabelWithHelp.tsx b/packages/react/src/LabelWithHelp.tsxindex e688235355..3e4dd8b2b9 100644--- a/packages/react/src/LabelWithHelp.tsx+++ b/packages/react/src/LabelWithHelp.tsx@@ -1,4 +1,5 @@-import { getEntry, type TermId } from "@carbon/glossary";+import { getEntry, type TermId } from "@carbon/content/glossary";+import { docUrl } from "@carbon/content/links";import { Trans, useLingui } from "@lingui/react/macro";import type { ReactNode } from "react";import { LuInfo } from "react-icons/lu";@@ -6,8 +7,6 @@ import { HoverCard, HoverCardContent, HoverCardTrigger } from "./HoverCard";import { HStack } from "./HStack";import { cn } from "./utils/cn";-const DOCS_BASE_URL = "https://docs.carbon.ms";-type LabelWithHelpProps = {termId: TermId | undefined;children: ReactNode;@@ -37,7 +36,8 @@ export function LabelWithHelp({const translatedTerm = i18n._(entry.term);const translatedDefinition = i18n._(entry.definition);- const showLearnMore = entry.href !== undefined;+ const learnMoreUrl =+ entry.href === undefined ? undefined : docUrl(entry.href);const isInline = variant === "inline";// HoverCard (not Tooltip): the popup contains an interactive "Learn more"@@ -74,11 +74,11 @@ export function LabelWithHelp({className="w-auto max-w-xs p-3 text-xs text-pretty leading-relaxed text-muted-foreground">{translatedDefinition}- {showLearnMore && (+ {learnMoreUrl && (<>{" "}<a- href={`${DOCS_BASE_URL}${entry.href}`}+ href={learnMoreUrl}target="_blank"rel="noreferrer"className="text-primary font-medium underline decoration-dashed underline-offset-4 hover:decoration-solid"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 2945249ce3..45a4597d74 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -94,14 +94,14 @@ catalogs:specifier: 7.18.0version: 7.18.0'@shikijs/langs':- specifier: 4.0.2- version: 4.0.2+ specifier: 4.2.0+ version: 4.2.0'@shikijs/themes':- specifier: 4.0.2- version: 4.0.2+ specifier: 4.2.0+ version: 4.2.0'@shikijs/types':- specifier: 4.0.2- version: 4.0.2+ specifier: 4.2.0+ version: 4.2.0'@slack/web-api':specifier: 7.10.0version: 7.10.0@@ -371,7 +371,7 @@ importers:version: 1.40.0'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.18.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.18.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])cookie:specifier: 'catalog:'version: 1.1.1@@ -383,7 +383,7 @@ importers:version: 3.1.5fdir:specifier: 6.5.0- version: 6.5.0([email protected])+ version: 6.5.0([email protected])nanoid:specifier: 'catalog:'version: 5.1.16@@ -398,7 +398,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@@ -408,7 +408,7 @@ importers:version: 5.9.4([email protected])([email protected])'@react-router/dev':specifier: 'catalog:'- version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@types/aws-lambda':specifier: 8.10.152version: 8.10.152@@ -459,10 +459,10 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.16(@types/[email protected])([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])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))zod:specifier: 'catalog:'version: 4.5.4@@ -476,6 +476,9 @@ importers:'@carbon/auth':specifier: workspace:*version: link:../../packages/auth+ '@carbon/content':+ specifier: workspace:*+ version: link:../../docs/content'@carbon/database':specifier: workspace:*version: link:../../packages/database@@ -485,9 +488,6 @@ importers:'@carbon/form':specifier: workspace:*version: link:../../packages/form- '@carbon/glossary':- specifier: workspace:*- version: link:../../packages/glossary'@carbon/kv':specifier: workspace:*version: link:../../packages/kv@@ -505,10 +505,10 @@ importers:'@react-router/dev':specifier: 'catalog:'- version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.18.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.18.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@supabase/functions-js':specifier: 'catalog:'version: 2.1.5@@ -520,13 +520,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])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([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(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])+ version: 1.2.6(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])cookie:specifier: 'catalog:'version: 1.1.1@@ -578,7 +578,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])([email protected]))+ version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@types/react':specifier: 18.3.28version: 18.3.28@@ -608,10 +608,10 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.16(@types/[email protected])([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])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))wait-on:specifier: 'catalog:'version: 7.2.0@@ -660,6 +660,9 @@ importers:'@carbon/auth':specifier: workspace:*version: link:../../packages/auth+ '@carbon/content':+ specifier: workspace:*+ version: link:../../docs/content'@carbon/database':specifier: workspace:*version: link:../../packages/database@@ -678,9 +681,6 @@ importers:'@carbon/form':specifier: workspace:*version: link:../../packages/form- '@carbon/glossary':- specifier: workspace:*- version: link:../../packages/glossary'@carbon/jobs':specifier: workspace:*version: link:../../packages/jobs@@ -779,7 +779,7 @@ importers:version: 3.4.5([email protected])([email protected])'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.18.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.18.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@react-router/serve':specifier: 'catalog:'version: 7.18.0([email protected]([email protected]([email protected]))([email protected]))([email protected])@@ -824,7 +824,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(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])+ version: 1.2.6(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])'@visx/responsive':specifier: 2.17.0version: 2.17.0([email protected])@@ -1016,7 +1016,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])tus-js-client:specifier: 4.3.1version: 4.3.1@@ -1056,16 +1056,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])([email protected]))+ version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@react-router/dev':specifier: 'catalog:'- version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([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])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@types/d3':specifier: 7.4.3version: 7.4.3@@ -1125,13 +1125,13 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.16(@types/[email protected])([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])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([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])([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])([email protected]))apps/mes:dependencies:@@ -1218,7 +1218,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])([email protected]))+ version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@nanostores/react':specifier: 'catalog:'version: 0.7.3([email protected])([email protected])@@ -1230,10 +1230,10 @@ importers:version: 3.4.5([email protected])([email protected])'@react-router/dev':specifier: 'catalog:'- version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.18.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.18.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@react-router/serve':specifier: 'catalog:'version: 7.18.0([email protected]([email protected]([email protected]))([email protected]))([email protected])@@ -1254,7 +1254,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])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@tanstack/react-query':specifier: 5.97.0version: 5.97.0([email protected])@@ -1299,7 +1299,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(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])+ version: 1.2.6(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([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])@@ -1389,7 +1389,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: 4.5.4@@ -1432,13 +1432,13 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.16(@types/[email protected])([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])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([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])([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])([email protected]))wait-on:specifier: 'catalog:'version: 7.2.0@@ -1477,10 +1477,10 @@ importers:'@react-router/dev':specifier: 'catalog:'- version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.18.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.18.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@supabase/functions-js':specifier: 'catalog:'version: 2.1.5@@ -1492,13 +1492,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])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([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(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])+ version: 1.2.6(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])cookie:specifier: 'catalog:'version: 1.1.1@@ -1556,7 +1556,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])([email protected]))+ version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@types/react':specifier: 18.3.28version: 18.3.28@@ -1586,10 +1586,10 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.16(@types/[email protected])([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])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))wait-on:specifier: 'catalog:'version: 7.2.0@@ -1629,10 +1629,10 @@ importers:version: link:../../../../packages/utils'@react-router/dev':specifier: 'catalog:'- version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([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=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.14.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@supabase/functions-js':specifier: 'catalog:'version: 2.1.5@@ -1641,7 +1641,7 @@ importers:version: 2.80.0'@vercel/react-router':specifier: 'catalog:'- version: 1.2.6(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])+ version: 1.2.6(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])non.geist:specifier: 'catalog:'version: 1.0.4@@ -1672,7 +1672,7 @@ importers:devDependencies:'@tailwindcss/vite':specifier: 'catalog:'- version: 4.3.0([email protected](@types/[email protected])([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])([email protected]))'@types/react':specifier: 18.3.28version: 18.3.28@@ -1693,7 +1693,7 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])contrib/building/examples/upload-3d-model:dependencies:@@ -1708,10 +1708,10 @@ importers:version: link:../../../../packages/utils'@react-router/dev':specifier: 'catalog:'- version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([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=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.14.0(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@supabase/functions-js':specifier: 'catalog:'version: 2.1.5@@ -1720,7 +1720,7 @@ importers:version: 2.80.0'@vercel/react-router':specifier: 'catalog:'- version: 1.2.6(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])+ version: 1.2.6(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])nanoid:specifier: 'catalog:'version: 5.1.16@@ -1748,7 +1748,7 @@ importers:devDependencies:'@tailwindcss/vite':specifier: 'catalog:'- version: 4.3.0([email protected](@types/[email protected])([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])([email protected]))'@types/react':specifier: 18.3.28version: 18.3.28@@ -1769,13 +1769,13 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])docs:dependencies:- '@carbon/glossary':+ '@carbon/content':specifier: workspace:*- version: link:../packages/glossary+ version: link:content'@carbon/utils':specifier: workspace:*version: link:../packages/utils@@ -1786,14 +1786,14 @@ importers:specifier: 1.1.15version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[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])+ specifier: ^16.14.0+ version: 16.15.14(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ specifier: ^15.4.0+ version: 15.4.5(@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](@types/[email protected])([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])+ specifier: ^16.14.0+ version: 16.15.14(@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])motion:specifier: ^12version: 12.38.0(@emotion/[email protected])([email protected]([email protected]))([email protected])@@ -1865,6 +1865,40 @@ importers:specifier: 'catalog:'version: 5.8.3+ docs/content:+ dependencies:+ '@lingui/core':+ specifier: 'catalog:'+ version: 5.9.4(@lingui/[email protected]([email protected])([email protected]))([email protected])+ zbsearch:+ specifier: 'catalog:'+ version: 4.0.0+ devDependencies:+ '@carbon/config':+ specifier: workspace:*+ 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])([email protected]))+ '@types/node':+ specifier: 'catalog:'+ version: 24.12.2+ rimraf:+ specifier: 'catalog:'+ version: 5.0.10+ typescript:+ specifier: 'catalog:'+ version: 5.8.3+ vite:+ specifier: 'catalog:'+ version: 8.0.16(@types/[email protected])([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])([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])([email protected]))+packages/api:dependencies:'@orpc/client':@@ -1894,7 +1928,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])([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])([email protected]))packages/auth:dependencies:@@ -1924,7 +1958,7 @@ importers:'@react-router/dev':specifier: 'catalog:'- version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@simplewebauthn/server':specifier: ^13.1.0version: 13.3.0@@ -1939,7 +1973,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(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])+ version: 1.2.6(patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])botid:specifier: 'catalog:'version: 1.5.11([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])@@ -1988,13 +2022,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])([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])([email protected]))packages/checks:devDependencies:@@ -2024,7 +2058,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])([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])([email protected]))packages/config:dependencies:@@ -2057,11 +2091,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])([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])([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:@@ -2158,7 +2192,7 @@ importers:version: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)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])tsx:specifier: 'catalog:'version: 4.21.0@@ -2170,7 +2204,7 @@ importers:version: 9.0.0vitest: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])([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])([email protected]))packages/dev:dependencies:@@ -2203,7 +2237,7 @@ importers:version: 1.1.1vite:specifier: 7.3.5- version: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])devDependencies:'@carbon/config':specifier: '*'@@ -2225,7 +2259,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])([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])([email protected]))packages/documents:dependencies:@@ -2267,7 +2301,7 @@ importers:version: 5.6.0([email protected])react-pdf-tailwind:specifier: 2.3.0sst:specifier: 'catalog:'version: 4.6.9@@ -2331,13 +2365,13 @@ importers:version: 4.2.8tsup: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])([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])([email protected]))packages/ee:dependencies:@@ -2445,7 +2479,7 @@ importers:version: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)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])zbsearch:specifier: 'catalog:'version: 4.0.0@@ -2462,9 +2496,9 @@ importers:'@carbon/config':specifier: workspace:*version: link:../config- '@carbon/glossary':+ '@carbon/content':specifier: workspace:*- version: link:../glossary+ version: link:../../docs/content'@logtape/logtape':specifier: 'catalog:'version: 2.2.3@@ -2482,7 +2516,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])([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])([email protected]))packages/env:dependencies:@@ -2550,13 +2584,13 @@ 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])([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])([email protected]))packages/form:dependencies:- '@carbon/glossary':+ '@carbon/content':specifier: workspace:*- version: link:../glossary+ version: link:../../docs/content'@carbon/logger':specifier: workspace:*version: link:../logger@@ -2647,39 +2681,11 @@ 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])([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])([email protected]))zod-form-data:specifier: 'catalog:'version: 3.0.3([email protected])- packages/glossary:- dependencies:- '@lingui/core':- specifier: 'catalog:'- version: 5.9.4(@lingui/[email protected]([email protected])([email protected]))([email protected])- devDependencies:- '@carbon/config':- specifier: workspace:*- version: link:../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])([email protected]))- rimraf:- specifier: 'catalog:'- version: 5.0.10- tsup:- specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])- typescript:- specifier: 'catalog:'- version: 5.8.3- vite-plugin-babel-macros:- specifier: 'catalog:'- version: 1.0.6([email protected](@types/[email protected])([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])([email protected]))-packages/harness:devDependencies:'@carbon/config':@@ -2699,7 +2705,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])([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])([email protected]))packages/jobs:dependencies:@@ -2801,7 +2807,7 @@ importers:version: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)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])undici:specifier: ^8.10.0version: 8.10.0@@ -2829,7 +2835,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])([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])([email protected]))packages/kv:dependencies:@@ -2875,7 +2881,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@@ -2884,7 +2890,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])([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])([email protected]))packages/lib:dependencies:@@ -2957,7 +2963,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@@ -2966,7 +2972,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])([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])([email protected]))packages/locale:dependencies:@@ -2991,13 +2997,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])([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])([email protected]))packages/logger:dependencies:@@ -3031,7 +3037,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])([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])([email protected]))packages/notifications:devDependencies:@@ -3049,7 +3055,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])([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])([email protected]))packages/onboarding:dependencies:@@ -3104,13 +3110,13 @@ 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])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])([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])([email protected]))packages/planning:dependencies:@@ -3141,7 +3147,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])([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])([email protected]))packages/printing:dependencies:@@ -3197,15 +3203,15 @@ importers:'@base-ui/react':specifier: 1.6.0+ '@carbon/content':+ specifier: workspace:*+ version: link:../../docs/content'@carbon/database':specifier: workspace:*version: link:../database'@carbon/env':specifier: workspace:*version: link:../env- '@carbon/glossary':- specifier: workspace:*- version: link:../glossary'@carbon/logger':specifier: workspace:*version: link:../logger@@ -3325,13 +3331,13 @@ importers:version: 3.13.5([email protected])'@shikijs/langs':specifier: 'catalog:'- version: 4.0.2+ version: 4.2.0'@shikijs/themes':specifier: 'catalog:'- version: 4.0.2+ version: 4.2.0'@shikijs/types':specifier: 'catalog:'- version: 4.0.2+ version: 4.2.0'@supabase/supabase-js':specifier: 'catalog:'version: 2.80.0@@ -3518,13 +3524,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])([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])([email protected]))packages/stripe:dependencies:@@ -3573,7 +3579,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@@ -3730,13 +3736,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])([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])([email protected]))packages/utils:dependencies:@@ -3794,13 +3800,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])([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])([email protected]))packages/viewer:dependencies:@@ -3864,7 +3870,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])([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])([email protected]))packages/workflows-core:dependencies:@@ -3880,7 +3886,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])([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])([email protected]))packages:@@ -4598,8 +4604,8 @@ packages:cpu: [ppc64]os: [aix]- '@esbuild/[email protected]':- resolution: {integrity: sha512-lhRUCeuOyJQURhTxl4WkpFTjIsbDayJHih5kZC1giwE+MhIzAb7mEsQMqMf18rHLsrb5qI1tafG20mLxEWcWlA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==}engines: {node: '>=18'}cpu: [ppc64]os: [aix]@@ -4622,8 +4628,8 @@ packages:cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-+WzIXQOSaGs33tLEgYPYe/yQHf0WTU0X42Jca3y8NWMbUVhp7rUnw+vAsRC/QiDrdD31IszMrZy+qwPOPjd+rw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==}engines: {node: '>=18'}cpu: [arm64]os: [android]@@ -4646,8 +4652,8 @@ packages:cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-wqh0ByljabXLKHeWXYLqoJ5jKC4XBaw6Hk08OfMrCRd2nP2ZQ5eleDZC41XHyCNgktBGYMbqnrJKq/K/lzPMSQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==}engines: {node: '>=18'}cpu: [arm]os: [android]@@ -4670,8 +4676,8 @@ packages:cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-+VJggoaKhk2VNNqVL7f6S189UzShHC/mR9EE8rDdSkdpN0KflSwWY/gWjDrNxxisg8Fp1ZCD9jLMo4m0OUfeUA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==}engines: {node: '>=18'}cpu: [x64]os: [android]@@ -4694,8 +4700,8 @@ packages:cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-0T+A9WZm+bZ84nZBtk1ckYsOvyA3x7e2Acj1KdVfV4/2tdG4fzUp91YHx+GArWLtwqp77pBXVCPn2We7Letr0Q==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==}engines: {node: '>=18'}cpu: [arm64]os: [darwin]@@ -4718,8 +4724,8 @@ packages:cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-fyzLm/DLDl/84OCfp2f/XQ4flmORsjU7VKt8HLjvIXChJoFFOIL6pLJPH4Yhd1n1gGFF9mPwtlN5Wf82DZs+LQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==}engines: {node: '>=18'}cpu: [x64]os: [darwin]@@ -4742,8 +4748,8 @@ packages:cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-l9GeW5UZBT9k9brBYI+0WDffcRxgHQD8ShN2Ur4xWq/NFzUKm3k5lsH4PdaRgb2w7mI9u61nr2gI2mLI27Nh3Q==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==}engines: {node: '>=18'}cpu: [arm64]os: [freebsd]@@ -4766,8 +4772,8 @@ packages:cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-BXoQai/A0wPO6Es3yFJ7APCiKGc1tdAEOgeTNy3SsB491S3aHn4S4r3e976eUnPdU+NbdtmBuLncYir2tMU9Nw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==}engines: {node: '>=18'}cpu: [x64]os: [freebsd]@@ -4790,8 +4796,8 @@ packages:cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-RVyzfb3FWsGA55n6WY0MEIEPURL1FcbhFE6BffZEMEekfCzCIMtB5yyDcFnVbTnwk+CLAgTujmV/Lgvih56W+A==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==}engines: {node: '>=18'}cpu: [arm64]os: [linux]@@ -4814,8 +4820,8 @@ packages:cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-CjaaREJagqJp7iTaNQjjidaNbCKYcd4IDkzbwwxtSvjI7NZm79qiHc8HqciMddQ6CKvJT6aBd8lO9kN/ZudLlw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==}engines: {node: '>=18'}cpu: [arm]os: [linux]@@ -4838,8 +4844,8 @@ packages:cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-KBnSTt1kxl9x70q+ydterVdl+Cn0H18ngRMRCEQfrbqdUuntQQ0LoMZv47uB97NljZFzY6HcfqEZ2SAyIUTQBQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==}engines: {node: '>=18'}cpu: [ia32]os: [linux]@@ -4862,8 +4868,8 @@ packages:cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-zpSlUce1mnxzgBADvxKXX5sl8aYQHo2ezvMNI8I0lbblJtp8V4odlm3Yzlj7gPyt3T8ReksE6bK+pT3WD+aJRg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==}engines: {node: '>=18'}cpu: [loong64]os: [linux]@@ -4886,8 +4892,8 @@ packages:cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-2jIfP6mmjkdmeTlsX/9vmdmhBmKADrWqN7zcdtHIeNSCH1SqIoNI63cYsjQR8J+wGa4Y5izRcSHSm8K3QWmk3w==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==}engines: {node: '>=18'}cpu: [mips64el]os: [linux]@@ -4910,8 +4916,8 @@ packages:cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-bc0FE9wWeC0WBm49IQMPSPILRocGTQt3j5KPCA8os6VprfuJ7KD+5PzESSrJ6GmPIPJK965ZJHTUlSA6GNYEhg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==}engines: {node: '>=18'}cpu: [ppc64]os: [linux]@@ -4934,8 +4940,8 @@ packages:cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-SQPZOwoTTT/HXFXQJG/vBX8sOFagGqvZyXcgLA3NhIqcBv1BJU1d46c0rGcrij2B56Z2rNiSLaZOYW5cUk7yLQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==}engines: {node: '>=18'}cpu: [riscv64]os: [linux]@@ -4958,8 +4964,8 @@ packages:cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-SCfR0HN8CEEjnYnySJTd2cw0k9OHB/YFzt5zgJEwa+wL/T/raGWYMBqwDNAC6dqFKmJYZoQBRfHjgwLHGSrn3Q==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==}engines: {node: '>=18'}cpu: [s390x]os: [linux]@@ -4982,8 +4988,8 @@ packages:cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-us0dSb9iFxIi8srnpl931Nvs65it/Jd2a2K3qs7fz2WfGPHqzfzZTfec7oxZJRNPXPnNYZtanmRc4AL/JwVzHQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==}engines: {node: '>=18'}cpu: [x64]os: [linux]@@ -5006,8 +5012,8 @@ packages:cpu: [arm64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-CR/RYotgtCKwtftMwJlUU7xCVNg3lMYZ0RzTmAHSfLCXw3NtZtNpswLEj/Kkf6kEL3Gw+BpOekRX0BYCtklhUw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==}engines: {node: '>=18'}cpu: [arm64]os: [netbsd]@@ -5030,8 +5036,8 @@ packages:cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-nU1yhmYutL+fQ71Kxnhg8uEOdC0pwEW9entHykTgEbna2pw2dkbFSMeqjjyHZoCmt8SBkOSvV+yNmm94aUrrqw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==}engines: {node: '>=18'}cpu: [x64]os: [netbsd]@@ -5054,8 +5060,8 @@ packages:cpu: [arm64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-cXb5vApOsRsxsEl4mcZ1XY3D4DzcoMxR/nnc4IyqYs0rTI8ZKmW6kyyg+11Z8yvgMfAEldKzP7AdP64HnSC/6g==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==}engines: {node: '>=18'}cpu: [arm64]os: [openbsd]@@ -5078,8 +5084,8 @@ packages:cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-8wZM2qqtv9UP3mzy7HiGYNH/zjTA355mpeuA+859TyR+e+Tc08IHYpLJuMsfpDJwoLo1ikIJI8jC3GFjnRClzA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==}engines: {node: '>=18'}cpu: [x64]os: [openbsd]@@ -5096,8 +5102,8 @@ packages:cpu: [arm64]os: [openharmony]- '@esbuild/[email protected]':- resolution: {integrity: sha512-FLGfyizszcef5C3YtoyQDACyg95+dndv79i2EekILBofh5wpCa1KuBqOWKrEHZg3zrL3t5ouE5jgr94vA+Wb2w==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==}engines: {node: '>=18'}cpu: [arm64]os: [openharmony]@@ -5120,8 +5126,8 @@ packages:cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-1ZgjUoEdHZZl/YlV76TSCz9Hqj9h9YmMGAgAPYd+q4SicWNX3G5GCyx9uhQWSLcbvPW8Ni7lj4gDa1T40akdlw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==}engines: {node: '>=18'}cpu: [x64]os: [sunos]@@ -5144,8 +5150,8 @@ packages:cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Q9StnDmQ/enxnpxCCLSg0oo4+34B9TdXpuyPeTedN/6+iXBJ4J+zwfQI28u/Jl40nOYAxGoNi7mFP40RUtkmUA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==}engines: {node: '>=18'}cpu: [arm64]os: [win32]@@ -5168,8 +5174,8 @@ packages:cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-zF3ag/gfiCe6U2iczcRzSYJKH1DCI+ByzSENHlM2FcDbEeo5Zd2C86Aq0tKUYAJJ1obRP84ymxIAksZUcdztHA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==}engines: {node: '>=18'}cpu: [ia32]os: [win32]@@ -5192,8 +5198,8 @@ packages:cpu: [x64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-pEl1bO9mfAmIC+tW5btTmrKaujg3zGtUmWNdCw/xs70FBjwAL3o9OEKNHvNmnyylD6ubxUERiEhdsL0xBQ9efw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==}engines: {node: '>=18'}cpu: [x64]os: [win32]@@ -5262,17 +5268,17 @@ packages:'@types/react':optional: true- '@fumadocs/[email protected]':- resolution: {integrity: sha512-ENKPWUDRmriccsrUDE4bDBq3FNr/ms3BP2rWlsAEMV1yP23pcCaan+ceGfeBUsAQjw7sj9Q3R4Kl3g/TCStPzQ==}+ '@fumadocs/[email protected]':+ resolution: {integrity: sha512-VppeXgIRXjZMgpf2qijj1hcfxyeYl1s0ok8k6N3jyjiX64M7sDwnt2zGPd6dbfDybgbBvDw6C6J1e42gB5NzsA==}peerDependencies:- '@tailwindcss/oxide': ^4.0.0tailwindcss: ^4.0.0peerDependenciesMeta:- '@tailwindcss/oxide':- optional: truetailwindcss:optional: true+ '@fumari/[email protected]':+ resolution: {integrity: sha512-iaiV2wyzJ4mW358NX4CX3yGit+WjKYzpaQ+rldK9BjL/5jFpeV6ruWnZVq7MEyMn3Gd0DLi8g/79NZAAQaGscw==}+'@grpc/[email protected]':resolution: {integrity: sha512-k9Dj3DV/itK9D06Y8f190Qgop7/Ui+D0njFV3LHMPwPT75DpXLQohE9Wmz0QElrJnzsjB7KPWiKJbOl7IPDArQ==}engines: {node: '>=12.10.0'}@@ -5538,8 +5544,8 @@ packages:'@jridgewell/[email protected]':resolution: {integrity: sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==}- '@jridgewell/[email protected]':- resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==}'@jridgewell/[email protected]':resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}@@ -6634,10 +6640,6 @@ packages:peerDependencies:'@opentelemetry/api': ^1.1.0- '@orama/[email protected]':- resolution: {integrity: sha512-a61ljmRVVyG5MC/698C8/FfFDw5a8LOIvyOLW5fztgUXqUpc1jOfQzOitSCbge657OgXXThmY3Tk8fpiDb4UcA==}- engines: {node: '>= 20.0.0'}-'@orpc/[email protected]':resolution: {integrity: sha512-Qt0FdPSGySdQwy83iUWOq+Iqhw2gM9qHtyxfBbcw1mwOz1s4O2BwUFA3ymVTLIRRNYRgPrQLaBZhp8CacqeePg==}@@ -6811,8 +6813,8 @@ 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-Road2bidD0uu/1BGDOWNdPI06g0lIRy6IF9GZcIrDK2KGItfor8IQwQa+yM2ERgHM1MmHxaxpTzk0/Jp42lNfA==}'@radix-ui/[email protected]':resolution: {integrity: sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==}@@ -6826,8 +6828,8 @@ 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-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==}'@radix-ui/[email protected]':resolution: {integrity: sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==}@@ -6842,8 +6844,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-iE8YB9nmTBH8zd73ofBISZ8JCzgMoMkATJr7qDwa6u5F1+7mTM81V6fa71jgZ65rpjVpecDf1vSnwIFP9Ly1zw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-jDhG9FvAEnlhnjrsINbNXcUa4G+L1KqSkJSunkbKEzFRcAb52jvM0PjPxPRvhe1HNc5F5yc0yzzWeeqlH4yBIg==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -6855,8 +6857,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-j2VTDz1vgCsmuG0k5lBfOcM8n5JPFqZBcMryasFjHYMhwxYL5SRUV5lMSUpRdNtw3D/Sv8pzJtrlAgkssYSsQQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-v4zggRcjadnI+ClKDuijlQEW4tw3NoaeHc/PwpKnLoLLKNUG4InLegkstooLcRIUWCs+8L22dGURCVuFfOKfnA==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -6946,8 +6948,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-9bT+FvifX1FK2Mj6UEsTdyu0cN3JaA3KdfhaBao+ONrYFy/pyOy3TU1TNw7iOk1o+0hOEq67RojlUUmoFGwxyA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-mcGesGplBnzN2sbvJETzpCNfSMyPnb29q1GRLU+Ib7bJrpIG2ywmRoh2V5VbA2uNvKikKUlVbAPks7JDjz4A8Q==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -6972,8 +6974,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-IVVz4EvBcKjrzKgof714qDnz/SzQAkLA2Emh5edlHbgcE6fNd3Un6CJLlaYcnm8N4JmAtzQgse4dOKxcD2yc9g==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-9W+B9NPF0NaaPh/1NJd3+KqsnlLqU9H7T2rvww+fp+T/evVXdNAyYcnfRQZFOjkR1ajQp3yORlqnI8soawLvNA==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7034,8 +7036,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -7088,8 +7090,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-QwH4PO5urrbO+FaGd5Aglg+YJgWTyyuZ3g/6mKvsqraLkglDdckw9JafgL5McL5VEJ6EPNduPaT3ZE9BttDAqg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -7116,8 +7118,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-TDTYmpdq8dI2+Xgvgj9AJ8Ghqq+Eph/TRVEdaFQPDItIY+6QSkU7MJMeevw1568Yw/2Ijz8BTphPSP2XejKphw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7138,8 +7140,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-C3vFhbyi4SW3PmbAi6Awpu4OzJtd0MxGurvSsYtr7p7nM8RNB3VAF3CUmnp2j50knpkrRcB7+ycVXzgLgF6yNA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-5pzg4FGQNpExhnhT2zlrP1wZFaYCd1K0nYWoFAdcYoYK868IEigqMX3B3f8yIoRlAhAeDWciLI6ZdCKHF9P4Vg==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -7166,8 +7168,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-2v+zNAWWe0ySxgC0D0yeXMPQ23xZVgXZTerTz+JKlmdRj6gfTqmCcR29jb6d290DezXPGgruHWDX/vYUebtErg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7241,8 +7243,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-cot/aB/mOm0IYVYTTmQcEEK1M48lZWi8FlYe5nDPQQ8NYZUlXEFgncJ9p2Kzer3RKSrY7cTTpEMLZKNo9QoP5Q==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -7256,8 +7258,8 @@ packages:react: 18.3.1react-dom: 18.3.1- '@radix-ui/[email protected]':- resolution: {integrity: sha512-Fas/lXQqhVvqwAb64s5RFeHiHYElZ6SUQbZaNd6EkfhP/Al7wTIQ9WIR4QVX475tlu5yFCEdDcJH6/UwsZjMWw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7331,8 +7333,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-orBC88futVpqCmhX1p4cvquNHsELQ+w+vBJnuj3ftETI5bJb0bZn3Tqu3SWN2IOcPycTnMGnhwoermvISt72sA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -7379,8 +7381,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-nJ0SkrSQgudyYhMiYeHA1ayLVuduEJCFLan1RZZN7c9kqzzCFLaU9kuy81uNtqzweM9YaQPgWzxi9MwQ9jZ04g==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ou7iLEJ+yrhQndkkA4U21XIdS/CS45F4iXIkTZcb6/Ne9EMsOuDudVmCwmDnfFZZ+y1FZqXRNSIgBy+YMvZVZg==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7418,8 +7420,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-/YSAOdJ7YJvdn7bn5sdSx2egW+SKY+u7O5RyAVs94Ymrg2fg5QTSFPMRkzvhGyFuE4/qsmPBdrwYoZMZh/4f+g==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-mw58MrBlyHWFisTOYignD0vf/3gdcgAR+9of1s9G/38CbFiUwH1nCDkc0AUM9IrXFgN5Ue8n45j9WCgyM1sbiQ==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7457,8 +7459,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-bhnq/0DEPTi2lsOD3J5rTL65qUKHbKbhqHsmN9TMiclSXpipi651ooUKPPp6G5lF/WiHBdn1s0Wuqsn+myVAvw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-UsJrrd7w4wuKKTdvd/DNERVlwSlUcyXzjhyDwBk+3aPOsCjOY6ZSbxuw8E6lZTjjfP8Cpd0J8VVkrYUWyGYXyg==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7476,8 +7478,8 @@ packages:react: 18.3.1react-dom: 18.3.1- '@radix-ui/[email protected]':- resolution: {integrity: sha512-m309havGzsjLHHaIX50G5PlvRs3xkgPCsGk/5PTvYm8D5q33yG0J7w/712PTOhid7NTaFETtnSXjngHQavvhVw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7534,8 +7536,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-IrVLIhskYhH3nLvtcBLQFZr61tBG7wx7O3kEmdzcYwRGAEBmBicGGL7ATzNgruYJ3xBTbuzEEq9OXJM3PAX3tA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7547,8 +7549,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-IrVLIhskYhH3nLvtcBLQFZr61tBG7wx7O3kEmdzcYwRGAEBmBicGGL7ATzNgruYJ3xBTbuzEEq9OXJM3PAX3tA==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7560,8 +7562,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-zdTk4PlUO0E18HnZ3wYbW0KkJJxWCdiNYp6g6X1PtONFhxVkg01vliTJAmwIszU6mHiyBOoW9P0rAugl5/hULQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7605,8 +7607,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7618,8 +7620,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7631,8 +7633,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-wetd0QI77DbvrPpTAvH1SqOxsYF2wZe5TNxqwOd5Ty4XDpV3dpV0s8K/1MGMJBeY5o7lg8ub5VIt1Ub+yVen6g==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7683,8 +7685,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-9gkwneI0guf8JDmrFxPjJF6Ozzgioyw+/lonYNCwefS9ZHA05er0BVHiXr+LbWGHxUfczvMY6G1oiZZi1VzjRw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-V9jI6hDjT7l3jsCQD9bLNvDLM3tH/gdbOTp7Tefp3hbbgCGQoK7tUvrWiRlcoBHIZ809ElXwNQwVo0B98LuTXQ==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7722,8 +7724,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-xuafVzQiTCLsyEjakowTdG3OgTXsmO7IdCiO77otIa+z44xoLNs9Do5eg7POFumIOCjtG6djfm6RKUKpUa/csA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Zn5Cd171wxsO3Dfg8HaW6RifTb9CYTKQJHs/G4+LN1GfmJpaQMZQyQxMprVPHpaz7QY4l9BxK2JwQuzHsXC8nA==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7815,8 +7817,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -7850,8 +7852,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-kxc9gI6/HfcU4nfMMVS3AmQK414kbU1IE6UCJmMmxjhO3cRPXOyYnmvyKD+ODt7q56nRq9l7Wovi6uaGwKgMlg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-UKxJlZid7FVtsk/WTxj4i4uSEgj2Au+KBbS7SQyTlzMhhn+86Cz3tISZdTa87bfEfcuvZezf2ZsxD4xuEKtkog==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -7990,8 +7992,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-xCso9j1/u8sEgP1RNHjFrXJLApL8LiqOkI1R4ywuN00rxWdYg4oQXuwKLS3i0j5NWLromUD27/4nlxj2UFVvIw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -8022,8 +8024,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-PLzC90MS+ReootmjC597dvopoelpZ8Q61HJkDXZSExitIq7PL55vHNnesAHwguHK0aPfBnpdNzQtv1uliaqQrA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -8040,8 +8042,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-6c8ZqvPTWILEKnyVkP53EGRCcpnJiKTC21sS/6R1GF5xKyHJJWQEPfkqlcgUkdRQivd6tb23abUwe4ngWmY0JA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -8063,8 +8065,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-2uVLvLjgO7NZCWw01/FdqRwmA42J0BcjPMUCA+koFEOAb+zjqIP7SiFz/7zWPrKnVmSqr76Omq2ALyCuX4dhLw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -8072,8 +8074,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-umO/aJ+82CpOnhDZUTbILCQf7kU/g0iv+oGs/Q8jw7IkhWBzaEP4sA268PhFAJTFetbwp3ICc6ktpI4TqtxcIw==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -8104,8 +8106,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -8122,8 +8124,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-IGBQPtRFdhN6MQ8dbegVmBq1LVZluya3F1jWY+puIcQC3MHctRwTDSBWCkL/3ZcnMJLTMJ++Z+ktmvg0F89iCw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-XoSLhbRbqxFtgJoi2fNHA3C6pDlY34x508vUpUGoFZfvePfHXHbE1lC4FYFMnJWgiCRroSTw6fOsXQoVS9RwZg==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -8140,8 +8142,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-d8a+bBY/FxikNPlgJJoaBHZX+zKVbWHYJGTLnLvveQgFSTntkGdEKv3JDtHrMS0DNYpllz2nRsTLGLKYttbpmw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-cSOCh6JlkmfjLyNcLiu2nB4v+nm+dkZ+Q5KHWk/soo4U7ZLiEQFKHK9/YmtBHjfCEaU43IBKQOc4/uJmCaiCTQ==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -8158,8 +8160,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-giWQp+4mxjBPt4KZ0MmyuykFNWfbDxKt4x+fPkRYmgRFJSbCZFzUglvMb/Kjn38tm10YP4ufiQZDx3zna4LU6w==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-D3anSY15EJoxrihpsXI6SMrmmonnQtR2ni7arO+Lfdg3O95b9hNXxONk8jA5C8ANdF/h5HMAxejgs8PWJ6rlhw==}peerDependencies:'@types/react': 18.3.28react: 18.3.1@@ -8180,8 +8182,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-NFS86RYYZb4/exihaESBGOpMJFz8MGLAfu3mOBSGByVnVPC9JPASfYubxd/8KbkQK0sYAv8lVQDEQukDX/qXvQ==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -8193,8 +8195,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-jCE0WljWifTI4niIMCll06kGpsJTAPiZVU9H4WR1N6qW7At9ystHbN7dDB+we2xH535roFHj7qKS+RGj0FMDWQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==}peerDependencies:'@types/react': 18.3.28'@types/react-dom': 18.3.7@@ -8209,8 +8211,8 @@ packages:'@radix-ui/[email protected]':resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==}- '@radix-ui/[email protected]':- resolution: {integrity: sha512-xnXE7wG13PI+cxieVssYXlQJuYVRhH9NBoxt3KNwzghDIA69GMm7d4wXRouHIYjE+KvS6U/MsMO73NdS2MH9ZA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw==}'@react-aria/[email protected]':resolution: {integrity: sha512-S61vh5DJ2PXiXUwD7gk+pvS/b4VPrc3ZJOUZ0yVRLHkVESr5LhIZH+SAVgZkm1lzKyMRG+BH+fiRH/DZRSs7SA==}@@ -9391,42 +9393,58 @@ packages:resolution: {integrity: sha512-Hc87Ab1Ld/vEbZRCbwx344I5v+4RU8CVToUTRkqXL1+TjbuOp9U5Xa0M23V4GEWHxVn+yO5otb+HkQVm3ptWQQ==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-QCR4q2ZO/ILJEuwiBMel4wdcTDb1JGwfjKTxPDF6x8ixOaluPrVqIn06C99AcRPhmYlBR56d/Fb+GN58GzExpg==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-fjETeq1k5ffyXqRgS6+3hpvqseLalp1kjNfRbXpUgWR8FpZ1CmQfiNHovc5lncYjt/Vg5JK/WJEmLahjwMa0og==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-FbOjFJp9VLdo1Wevs10BBtVxiTWwNLqZh5Gkhjgda/ioL15YOgeSl9n+6XMa3qRlPQzfhFNe641SrynFHYG0nQ==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-hTorK1dffPkpbMUk6Z+828PgRo7d07HbnizoP0hNPFjhxMHctj0Px/qoHeGMYafc6ju+u9iMldN4JbVzNQM++g==}engines: {node: '>=20'}- '@shikijs/[email protected]':- resolution: {integrity: sha512-KaXby5dvoeuZzN0rYQiPMjFoUrz4hgwIE+D6Du9owcHcl6/g16/yT5BQxSW5cGt2MZBz6Hl0YuRqf12omRfUUg==}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-EcOQkxdxGQrc1Row/cC2c96/v1dbZqGnEVu1qTuT/MJmp6+cXCvQussowVmCv5Tqr3KuY3c7IbM6HTW3LJ1k9w==}engines: {node: '>=20'}'@shikijs/[email protected]':resolution: {integrity: sha512-bwrVRlJ0wUhZxAbVdvBbv2TTC9yLsh4C/IO5Ofz0T8MQntgDvyVnkbjw9vi50r1kx7RCIJdnJnjZAwmAsXFLZQ==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-ePic0yfAJGOF83D5wBHK/00EjK65oahBYxFk5epgq33WRv7X9UuxLEV8PtR0szC0z8dl7INIpIodB99JRFlR+A==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-NOq+DtUkVBJtZMVXL5A0vI0Xk8nvDYaXetFHSJFlOqjDZIVhIPRYFdGkSoElDqNuegikcc3A76SNUa8dTqtAYA==}engines: {node: '>=20'}- '@shikijs/[email protected]':- resolution: {integrity: sha512-mjCafwt8lJJaVSsQvNVrJumbnnj1RI8jbUKrPKgE6E3OvQKxnuRoBaYC51H4IGHePsGN/QtALglWBU7DoKDFnA==}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-m0wBeLDQDeIxRdUmrCPdQqfuUamDwRL5isCfYbguKD6NiaKpVbsv+3J81DyIKgNW5h4WAIIr8T4EkgQrBBxvaQ==}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==}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-w8UHjeUnIR965KMWJHUPXOc2mNJUnK3vpVLYLvw5IYU2mnTTJ89E24OrJDBNiJDQ0qzb0tc4l7mrIXx5cFeIyw==}engines: {node: '>=20'}'@shikijs/[email protected]':resolution: {integrity: sha512-VT/MKtlpOhEPZloSH3Pb9WCZEBDoQVMa9jedp5UAwmJOar1DVc9DRODAxmYPW9M93IK4ryuqRejFfmlvlVDemw==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-UEJxmRR++MAGR6hugn0vgVS2W/6lWAts84FFSrnlH9sP0LNol7E5+NQ792pH8liWUhyMyjhTgSUH3k7iD7tc5g==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}@@ -10404,6 +10422,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==}+'@types/[email protected]':resolution: {integrity: sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==}@@ -10852,6 +10873,75 @@ packages:'@xyflow/[email protected]':resolution: {integrity: sha512-hvwvnRS1B3REwVDlWexsq7YQaPZeG3/mKo1jv38UmnpWmxihp14bW6VtEOuHEwJX2FvzFw8k77LyKSk/wiZVNA==}+ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-xt4Vy3RTBw1NfszBlf4A0Rr6ZjA/th2Pj9XlWFLQHW9A1qOCtxNCoIWSzn/INtnZLMB4jO2gWdEtSaHUtK73wA==}+ cpu: [arm64]+ os: [android]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-ftokSqvYXZxfmA/bfIbp8c1BJ8QxNax371kUOQNFyvR5hmtKqQyTqSKtMk+WaixHM3w4tKj/JdyY+ud1bGamXA==}+ cpu: [arm64]+ os: [darwin]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-yUrmmhmF5R4Xmbfo8gUxJKr3YbvbLcE2JvLhDLzFJkMN29/fGm6K3dZX6YpNecfgBDnQ+VywGp8K9xjRaBFZ3Q==}+ cpu: [x64]+ os: [darwin]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-cy9+KvVoK5Xad3Vs5pLwAeZf3JC/1y0XJElgv1q6g7W7g/n52FRjedpYmQiJeMZdnhJiAshq7Vz/Xj3jC5Ns2Q==}+ cpu: [x64]+ os: [freebsd]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-AgVZ6VCV2XP4yHCwyv78KLV76gcu2neiEF2+RBTPQN7sqYY+bLvMxphGPmfG+9qk5Uf1PJAhZYIUnMGVbbRCZw==}+ cpu: [arm]+ os: [linux]+ libc: [glibc]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-5qAj2GjoSN6+HuH75+g5r40CFhWmMvH0K8VKWmPfQyOgA/LonoDMr5H5O5feJwzdnfdCytPDAh1RAf7/SSg7dg==}+ cpu: [arm]+ os: [linux]+ libc: [musl]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-eJvQ4Ja5oPf/HOjmBkCLYyhOHUkL7U+iMAN8sX44x8exBBpPRyqnhEgTsuU73HzxPLrGPdRhybFnAE63Omib/Q==}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-TppF2j194mOQ/kBXvNr9u5TYO+eR9r8ieg4lTIEyJIVYHAR9GWeB0oFHLcJiLXVa3qUJGzE4bmzSntCW5ylA7A==}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-03xu6ocJuwhm1a/JKmrHiaJUO1Oj86rABsm4FAl8AvfewfW/9idIUmPiFxZfb6RfiIONegebsTGJhFx0NbBNpA==}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-f7W2sAWWQN8x8YB0RRxIche7mLImH7lDgzUy9+B69cM2I6VFJ4a5+0pgAuMLROPOqimaxFPdXqLdDE/vpgGltg==}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-f534qNc5YaJI29e1oryxEnxPkp7WCYJ1j7ChSec8pQNlYqTm8Tao7hij7NxRF+9BuxzeZCZ+WsbaAfLlklR0Eg==}+ cpu: [arm64]+ os: [win32]++ '@yuku-analyzer/[email protected]':+ resolution: {integrity: sha512-sKHkmLK8BsindMfyIThoN0bWC5uqSJEVNaLRD/ifA99mtb0UDin1ZCg4WYSVQAmM4k2iOTl4UZx/p3zcBiBgYw==}+ cpu: [x64]+ os: [win32]++ '@yuku-toolchain/[email protected]':+ resolution: {integrity: sha512-sSeo4SSSToiS+sSD+bwn/s94EEcaLJ7tG5LCp8gFYC1G5VzxzX7fqB6m9RU1yMD8KTpu6zdU/I1NlQf8hVBJ9Q==}+resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}@@ -11449,6 +11539,11 @@ packages:react: 18.3.1react-dom: 18.3.1+ resolution: {integrity: sha512-OEiyJkSpYm2kOuNOKQ+c2wmzZRG8orrb9fnObtHTbCGNx/E9KLnGcmcocItOzREKk5KzQN5I2e3BUCj563KEpw==}+ engines: {node: '>=20'}+ hasBin: true+resolution: {integrity: sha512-67ueh2IRGst/51p0n6FvPrnRjAGHY5F8xdjkgrYE7DDzpJe6qA07RYQ9VcoUeo5ATOjSOiWpSL3SWBRRbempMw==}@@ -12142,8 +12237,8 @@ packages:engines: {node: '>=18'}hasBin: true- resolution: {integrity: sha512-sNR9MHpXSUV/XB4zmsFKN+QgVG82Cc7+/aaxJ8Adi8hyOac+EXptIp45QBPaVyX3N70664wRbTcLTOemCAnyqw==}+ resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==}engines: {node: '>=18'}hasBin: true@@ -12463,6 +12558,17 @@ packages:react-dom:optional: true+ resolution: {integrity: sha512-lbsZO95NGbulo6apz70zEt6Vxf/anoRwQI2ECEc/EQYWO5CGbITtl7plDW8P/VXgXw6e8wrbhH4a9i+ygke0Mg==}+ peerDependencies:+ react: 18.3.1+ react-dom: 18.3.1+ peerDependenciesMeta:+ react:+ optional: true+ react-dom:+ optional: true+resolution: {integrity: sha512-KAfqli5PwpFJ8o3psRNs8svpMGyCSAe8nmGcjQ0zZBWN2H6dZDnq+ABp3N3hdUmFeMrLtjOCTXD4yplUJIWceg==}@@ -12493,11 +12599,12 @@ packages:engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}os: [darwin]- resolution: {integrity: sha512-xXhqz/fqbN7pLlshJb/B5L+vzMJOmWxoPj7+KMRTa/4A669hKeeCBPpRAiooMqjblWqIRSxLiO02/ds8ltvUPQ==}+ resolution: {integrity: sha512-2Jov3x/wCkz8C8MWpmWHoWyLn+pBNrER49m35qqAV0OZekVE8mgs71TS6OfgJHzO00jICkIB+NFhv/XQx/yf/Q==}peerDependencies:'@mdx-js/mdx': '*''@mixedbread/sdk': 0.x.x+ '@modelcontextprotocol/server': 2.x.x'@orama/core': 1.x.x'@oramacloud/client': 2.x.x'@tanstack/react-router': 1.x.x@@ -12511,7 +12618,7 @@ packages:next: 16.2.11react: 18.3.1react-dom: 18.3.1- react-router: 7.x.x+ react-router: 7.x.x || 8.x.xwaku: '*'zod: 4.x.xpeerDependenciesMeta:@@ -12519,6 +12626,8 @@ packages:optional: true'@mixedbread/sdk':optional: true+ '@modelcontextprotocol/server':+ optional: true'@orama/core':optional: true'@oramacloud/client':@@ -12552,20 +12661,24 @@ packages:zod:optional: true- resolution: {integrity: sha512-R4WenrNQxSKi+QU46Q1cscVWi+S90dj3As4jdN+vgChO2o0TVOj+FFIe3onWM7mglhPj53NxZp/upP+t/ryekQ==}+ resolution: {integrity: sha512-r8gzaqleN+YXgPIbkYSZ05zr89dsr67/64Ar/00Uu7dRWTIHzbgmN1nC0lB8RFNeWnrL41bOTJilhLM4PAsrbw==}hasBin: truepeerDependencies:+ '@fumadocs/satteri': 0.x.x'@types/mdast': '*''@types/mdx': '*''@types/react': 18.3.28- fumadocs-core: ^16.7.0+ fumadocs-core: ^16.15.3mdast-util-directive: '*'next: 15.5.21react: 18.3.1rolldown: '*'+ satteri: ^0.10.5vite: 7.3.5peerDependenciesMeta:+ '@fumadocs/satteri':+ optional: true'@types/mdast':optional: true'@types/mdx':@@ -12580,28 +12693,30 @@ packages:optional: truerolldown:optional: true+ satteri:+ optional: truevite:optional: true- resolution: {integrity: sha512-0aSLdQ73EWoCmYcQYr2uNHlSB/s2fD+NMugtdZF3vC4lqs0MfyOtwnZPyYAskUnXNs6HECly/Hu6oY5JqmlkHg==}+ resolution: {integrity: sha512-yYnun6im7eBK3gMrErl69QRt+C7/KV5exZFFnoOnRx3HRi9WwAgPtAhwNhFIx1gAYLioSaSjP12+ZrpH9x2b7w==}peerDependencies:- '@takumi-rs/image-response': '*''@types/mdx': '*''@types/react': 18.3.28- fumadocs-core: 16.10.3+ fumadocs-core: 16.15.14next: 16.2.11react: 18.3.1react-dom: 18.3.1+ takumi-js: '*'peerDependenciesMeta:- '@takumi-rs/image-response':- optional: true'@types/mdx':optional: true'@types/react':optional: truenext:optional: true+ takumi-js:+ optional: trueresolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}@@ -13692,8 +13807,8 @@ packages:resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}engines: {node: '>=10'}- resolution: {integrity: sha512-jhXLeC/7m0/tjL1nzMdKk6x256zWA6AtbhTVreHOiKPoeX2d6MK4FbyIQPpVq0E6iPWBisyy1TW+pEge/uMEuQ==}+ resolution: {integrity: sha512-R0CIKY/fXiC6y9xRBADgsK+VW2p/pcTJOMhLZf1T+uG+vJUvyUR02nGOgmIIC7MPkiNK4Ox8QDnbqF8rJYWPZQ==}peerDependencies:react: 18.3.1@@ -13710,6 +13825,9 @@ packages:resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}+ resolution: {integrity: sha512-vG+rjFRj1PqdIBozIxAGMjPlOhaVe+GXpbttY/iSK7rGcJRMlwNJO7dcUwmUqkymsFLJiNGI06t4D7Fr7yRC9g==}+resolution: {integrity: sha512-3SEQqTpV9oqVsIWqAcmDuaNeo7yBO3tqPtqGRcKkEo0lrzD3wqbKG9mkxO65KoOgXqj+zH2phJ2LiAsdzlogSw==}@@ -14106,6 +14224,9 @@ packages:resolution: {integrity: sha512-HxU3ZaBwNPVQUBQf1xxgq+7JrPNZvjLVxgbpEZL7RrWJnsxOf0/OM+yrHG9ogLQ31Do/r57Oz2gQWPK+6q62mg==}+ resolution: {integrity: sha512-z2qN3RUABSci4G7cr5aHTFhqPNCWJsEMMfRlzxqtANQsSCIbVJmHvMV288m5x7doEQBTYbRTWbKdztmquCn4Sw==}+resolution: {integrity: sha512-WOqZSqimX/OTNoFsz6Hk67r1omeUmtC2jH2x6Zy7/gNVnh98AOTrkINygXLR2xoef8k7iVDoKwk4PUcrxI+bog==}peerDependencies:@@ -14119,6 +14240,9 @@ packages:resolution: {integrity: sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==}+ resolution: {integrity: sha512-sgSschQp7EseHInIlR7hBbMuvet3RA0bs28KPZAXJcGKGdxHGvh1ogpYDilY3bOMtl73EqPNmp75sAKHYPU5sg==}+resolution: {integrity: sha512-uYfXzeHlgThchzwz5Te47dlv5JOUC7OB4rjJ/7XTUgtBZD8CchMN8qEJ4ZVsUmTyYA44zjV0fBwsiktRuFnn+w==}peerDependencies:@@ -14133,15 +14257,12 @@ packages:react-dom:optional: true- resolution: {integrity: sha512-yjrHUrBFW6kQvjJwRsoiPSAhC5tRwRqNGJWmiJ4CrGnbKp0V88AdzkhBmDoqIsIPfarOe0Uddd37Xq43/gIocA==}+ resolution: {integrity: sha512-lyX5kpAum2MmigecKWrFdIj3Sjn7pHek2EUrXY0WGZbOjJ1f5NfX0g4KQAb2Bp2EqL0a6dUzse11s1n7OYr5jg==}peerDependencies:- '@emotion/is-prop-valid': '*'react: 18.3.1react-dom: 18.3.1peerDependenciesMeta:- '@emotion/is-prop-valid':- optional: truereact:optional: truereact-dom:@@ -14313,6 +14434,10 @@ packages:resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+ resolution: {integrity: sha512-K1HmQeZT2HrjpsR6KgqbN2FAXL2NrJJmNUSD9ck7HGTVu1JKXox8n9SB+tjbU8m8JGLF4OscrroPepew/L7/Xw==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+resolution: {integrity: sha512-PurxiZexEHDTE4SSaLI3ZrnbAGiZfeyUcQcxcP5D+hfytNAze/D1IzDuInTn9XVLIbAQUnQuSPXJx02LHjLvQw==}engines: {node: ^20.17.0 || >=22.9.0}@@ -14684,6 +14809,10 @@ packages:resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==}engines: {node: '>=12'}+ resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==}engines: {node: '>=0.10'}@@ -15628,6 +15757,10 @@ packages:resolution: {integrity: sha512-hjNax6o/ylDy9lefQEaSDtzaT3iVNtZ3WmpQnbuQNoG4xvnSKf2kSKbihZVO4JRG1TTMejs7CmNRYlWgAL66pQ==}engines: {node: '>=20'}+ resolution: {integrity: sha512-Mb/GvXPHBAXdgGIcnfU5L3ldpn1XcxrGkPHwqgRx17/I2XRfqlFKk2vGkHWINn1kdXvzJZeuO3is6I9KLPFm0g==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==}engines: {node: '>= 0.4'}@@ -16016,9 +16149,6 @@ 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:@@ -16129,8 +16259,8 @@ packages:resolution: {integrity: sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==}engines: {node: '>=18'}- resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==}+ resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==}engines: {node: '>=18'}@@ -16806,6 +16936,11 @@ packages:engines: {node: '>= 14.6'}hasBin: true+ resolution: {integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==}+ engines: {node: '>= 14.6'}+ hasBin: true+resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}engines: {node: '>=12'}@@ -16829,6 +16964,12 @@ packages:resolution: {integrity: sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ==}+ resolution: {integrity: sha512-UBRcDcZtIn14g88loZUZ123d6MOkc2hMTawUle5MkuWboowM90KbWHN3Zz+HfuS06sw935ygecBpcJlXHB/pOA==}++ resolution: {integrity: sha512-UnG9mA6giglCvSErft2/40TVFX750Sj1xgwddPLpG7J7rlr/P1wPADg9G2RK+d/1tNLtRVoLdMMOMVBB9561TQ==}+resolution: {integrity: sha512-gm4zfO31n2ZdruTTRQoWVWO4Q2+zrDt2GlrvIc+5JulRQNAm4IanCxER82vQ7Ug96FYkGqWUJBXFe1kGAcDWaQ==}engines: {node: '>= 20.0.0'}@@ -16855,6 +16996,9 @@ packages:resolution: {integrity: sha512-sC95tT5iHHH9gtpj6A81kh+NEaRAUFN+qlUPDUbRfOMvNf5QCBqsb3WgvnpVtK5Y+4UfA6KqufotuTvMGiTlsA==}+ resolution: {integrity: sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==}+resolution: {integrity: sha512-PIJDIZKtokhof+9+60cpockVOq05sJzHCriyvaLBmEJixseQ1a5Kdov6fWZfWOu5SK9c+FhH1jU0tntLxRJYMA==}engines: {node: '>=12.7.0'}@@ -17931,7 +18075,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -17943,7 +18087,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -17955,7 +18099,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -17967,7 +18111,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -17979,7 +18123,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -17991,7 +18135,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18003,7 +18147,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18015,7 +18159,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18027,7 +18171,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18039,7 +18183,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18051,7 +18195,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18063,7 +18207,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18075,7 +18219,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18087,7 +18231,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18099,7 +18243,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18111,7 +18255,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18123,7 +18267,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18135,7 +18279,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18147,7 +18291,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18159,7 +18303,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18171,7 +18315,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18180,7 +18324,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18192,7 +18336,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18204,7 +18348,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18216,7 +18360,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -18228,7 +18372,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@floating-ui/[email protected]':@@ -18297,11 +18441,12 @@ snapshots:optionalDependencies:'@types/react': 18.3.28+ '@fumadocs/[email protected]([email protected])':optionalDependencies:- '@tailwindcss/oxide': 4.3.1tailwindcss: 4.3.0+ '@fumari/[email protected]': {}+'@grpc/[email protected]':dependencies:'@grpc/proto-loader': 0.8.0@@ -18522,7 +18667,7 @@ snapshots:'@jridgewell/[email protected]':dependencies:- '@jridgewell/sourcemap-codec': 1.5.5+ '@jridgewell/sourcemap-codec': 1.6.0'@jridgewell/trace-mapping': 0.3.31'@jridgewell/[email protected]':@@ -18537,12 +18682,12 @@ snapshots:'@jridgewell/gen-mapping': 0.3.13'@jridgewell/trace-mapping': 0.3.31- '@jridgewell/[email protected]': {}+ '@jridgewell/[email protected]': {}'@jridgewell/[email protected]':dependencies:'@jridgewell/resolve-uri': 3.1.2- '@jridgewell/sourcemap-codec': 1.5.5+ '@jridgewell/sourcemap-codec': 1.6.0'@js-sdsl/[email protected]': {}@@ -18670,31 +18815,31 @@ snapshots:transitivePeerDependencies:- typescript- '@lingui/[email protected]([email protected])([email protected])([email protected](@types/[email protected])([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])([email protected]))':dependencies:'@lingui/cli': 5.9.4([email protected])([email protected])'@lingui/conf': 5.9.4([email protected])- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- babel-plugin-macros- supports-color- typescript- '@lingui/[email protected]([email protected])([email protected])([email protected](@types/[email protected])([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])([email protected]))':dependencies:'@lingui/cli': 5.9.4([email protected])([email protected])'@lingui/conf': 5.9.4([email protected])- vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- babel-plugin-macros- supports-color- typescript- '@lingui/[email protected]([email protected])([email protected])([email protected](@types/[email protected])([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])([email protected]))':dependencies:'@lingui/cli': 5.9.4([email protected])([email protected])'@lingui/conf': 5.9.4([email protected])- vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- babel-plugin-macros- supports-color@@ -18733,7 +18878,7 @@ snapshots:dependencies:'@types/estree': 1.0.8'@types/estree-jsx': 1.0.5- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/mdx': 2.0.14acorn: 8.16.0collapse-white-space: 2.1.0@@ -19142,7 +19287,7 @@ snapshots:dependencies:'@opentelemetry/api': 1.9.0'@opentelemetry/core': 2.7.1(@opentelemetry/[email protected])- yaml: 2.8.3+ yaml: 2.9.1'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:@@ -19894,8 +20039,6 @@ snapshots:'@opentelemetry/api': 1.9.0'@opentelemetry/core': 2.6.1(@opentelemetry/[email protected])- '@orama/[email protected]': {}-'@orpc/[email protected](@opentelemetry/[email protected])':dependencies:'@orpc/shared': 1.15.0(@opentelemetry/[email protected])@@ -20173,7 +20316,7 @@ snapshots:'@radix-ui/[email protected]': {}- '@radix-ui/[email protected]': {}+ '@radix-ui/[email protected]': {}'@radix-ui/[email protected]':dependencies:@@ -20185,7 +20328,7 @@ snapshots:'@radix-ui/[email protected]': {}- '@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:@@ -20204,26 +20347,26 @@ 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])':+ '@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])+ '@radix-ui/primitive': 1.1.7+ '@radix-ui/react-collapsible': 1.1.20(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@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])':+ '@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-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -20309,16 +20452,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])':+ '@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])+ '@radix-ui/primitive': 1.1.7+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -20341,12 +20484,12 @@ 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])':+ '@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])+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -20394,7 +20537,7 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:react: 18.3.1optionalDependencies:@@ -20437,7 +20580,7 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:react: 18.3.1optionalDependencies:@@ -20487,20 +20630,21 @@ 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-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])+ '@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.7+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.6(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.17(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])aria-hidden: 1.2.6react: 18.3.1react-dom: 18.3.1([email protected])@@ -20515,7 +20659,7 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:react: 18.3.1optionalDependencies:@@ -20545,13 +20689,13 @@ 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])':+ '@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])+ '@radix-ui/primitive': 1.1.7+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -20618,7 +20762,7 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:react: 18.3.1optionalDependencies:@@ -20633,11 +20777,11 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([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])+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -20703,9 +20847,9 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])react: 18.3.1optionalDependencies:'@types/react': 18.3.28@@ -20771,22 +20915,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-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])+ '@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.7+ '@radix-ui/react-collection': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -20839,21 +20983,21 @@ 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-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])+ '@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.7+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.6(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.3.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.17(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])aria-hidden: 1.2.6react: 18.3.1react-dom: 18.3.1([email protected])@@ -20898,18 +21042,18 @@ 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])':+ '@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+ '@radix-ui/react-arrow': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.3react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -20923,10 +21067,10 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([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])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -20971,17 +21115,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])':+ '@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])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@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])':+ '@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])@@ -20991,9 +21134,10 @@ 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])':+ '@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])+ '@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: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -21025,27 +21169,27 @@ 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])':+ '@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])+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@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])':+ '@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])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@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])':+ '@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])+ '@radix-ui/react-slot': 1.2.4(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -21097,17 +21241,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])':+ '@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])+ '@radix-ui/primitive': 1.1.7+ '@radix-ui/react-collection': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -21148,17 +21294,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])':+ '@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])+ '@radix-ui/number': 1.1.3+ '@radix-ui/primitive': 1.1.7+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -21256,9 +21402,9 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])react: 18.3.1optionalDependencies:'@types/react': 18.3.28@@ -21294,16 +21440,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])':+ '@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])+ '@radix-ui/primitive': 1.1.7+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -21455,7 +21601,7 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:react: 18.3.1optionalDependencies:@@ -21482,10 +21628,11 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:- '@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])+ '@radix-ui/primitive': 1.1.7+ '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])react: 18.3.1optionalDependencies:'@types/react': 18.3.28@@ -21497,9 +21644,9 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])react: 18.3.1optionalDependencies:'@types/react': 18.3.28@@ -21517,17 +21664,16 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])react: 18.3.1+ use-sync-external-store: 1.6.0([email protected])optionalDependencies:'@types/react': 18.3.28dependencies:react: 18.3.1- use-sync-external-store: 1.6.0([email protected])optionalDependencies:'@types/react': 18.3.28@@ -21548,7 +21694,7 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:react: 18.3.1optionalDependencies:@@ -21560,7 +21706,7 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:react: 18.3.1optionalDependencies:@@ -21573,9 +21719,9 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:- '@radix-ui/rect': 1.1.2+ '@radix-ui/rect': 1.1.3react: 18.3.1optionalDependencies:'@types/react': 18.3.28@@ -21587,9 +21733,9 @@ snapshots:optionalDependencies:'@types/react': 18.3.28dependencies:- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])react: 18.3.1optionalDependencies:'@types/react': 18.3.28@@ -21603,18 +21749,18 @@ 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])':+ '@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-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@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])':+ '@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-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:@@ -21623,7 +21769,7 @@ snapshots:'@radix-ui/[email protected]': {}- '@radix-ui/[email protected]': {}+ '@radix-ui/[email protected]': {}dependencies:@@ -22566,7 +22712,7 @@ snapshots:'@react-pdf/primitives': 4.2.0'@react-pdf/stylesheet': 6.1.4- '@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:'@babel/core': 7.29.0'@babel/generator': 7.29.1@@ -22596,8 +22742,8 @@ snapshots:semver: 7.7.4tinyglobby: 0.2.17valibot: 1.3.1([email protected])- vite: 8.0.16(@types/[email protected])([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])([email protected])+ vite: 8.0.16(@types/[email protected])([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])([email protected])optionalDependencies:'@react-router/serve': 7.18.0([email protected]([email protected]([email protected]))([email protected]))([email protected])typescript: 5.8.3@@ -22616,7 +22762,7 @@ snapshots:- tsx- yaml- '@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:'@babel/core': 7.29.0'@babel/generator': 7.29.1@@ -22646,8 +22792,8 @@ snapshots:semver: 7.7.4tinyglobby: 0.2.17valibot: 1.3.1([email protected])- vite: 7.3.5(@types/[email protected])([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])([email protected])+ vite: 7.3.5(@types/[email protected])([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])([email protected])optionalDependencies:'@react-router/serve': 7.18.0([email protected]([email protected]([email protected]))([email protected]))([email protected])typescript: 5.8.3@@ -22666,7 +22812,7 @@ snapshots:- tsx- yaml- '@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:'@babel/core': 7.29.0'@babel/generator': 7.29.1@@ -22696,8 +22842,8 @@ snapshots:semver: 7.7.4tinyglobby: 0.2.17valibot: 1.3.1([email protected])- vite: 8.0.16(@types/[email protected])([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])([email protected])+ vite: 8.0.16(@types/[email protected])([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])([email protected])optionalDependencies:'@react-router/serve': 7.18.0([email protected]([email protected]([email protected]))([email protected]))([email protected])typescript: 5.8.3@@ -22716,7 +22862,7 @@ snapshots:- tsx- yaml- '@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:'@babel/core': 7.29.0'@babel/generator': 7.29.1@@ -22746,8 +22892,8 @@ snapshots:semver: 7.7.4tinyglobby: 0.2.17valibot: 1.3.1([email protected])- vite: 8.0.16(@types/[email protected])([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])([email protected])+ vite: 8.0.16(@types/[email protected])([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])([email protected])optionalDependencies:'@react-router/serve': 7.18.0([email protected]([email protected]([email protected]))([email protected]))([email protected])typescript: 5.8.3@@ -22774,9 +22920,9 @@ snapshots:optionalDependencies:typescript: 5.8.3- '@react-router/[email protected](@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':+ '@react-router/[email protected](@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])minimatch: 9.0.9optionalDependencies:typescript: 5.8.3@@ -22788,21 +22934,21 @@ snapshots:optionalDependencies:typescript: 5.8.3- '@react-router/[email protected](@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':+ '@react-router/[email protected](@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([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=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':+ '@react-router/[email protected](@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([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=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':+ '@react-router/[email protected](@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])optionalDependencies:typescript: 5.8.3@@ -23459,7 +23605,15 @@ snapshots:'@shikijs/primitive': 4.2.0'@shikijs/types': 4.2.0'@shikijs/vscode-textmate': 10.0.2- '@types/hast': 3.0.4+ '@types/hast': 3.0.5+ hast-util-to-html: 9.0.5++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/primitive': 4.4.3+ '@shikijs/types': 4.4.3+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5hast-util-to-html: 9.0.5'@shikijs/[email protected]':@@ -23468,42 +23622,59 @@ snapshots:'@shikijs/vscode-textmate': 10.0.2oniguruma-to-es: 4.3.6+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.4.3+ '@shikijs/vscode-textmate': 10.0.2+ oniguruma-to-es: 4.3.6+'@shikijs/[email protected]':dependencies:'@shikijs/types': 4.2.0'@shikijs/vscode-textmate': 10.0.2- '@shikijs/[email protected]':+ '@shikijs/[email protected]':dependencies:- '@shikijs/types': 4.0.2+ '@shikijs/types': 4.4.3+ '@shikijs/vscode-textmate': 10.0.2'@shikijs/[email protected]':dependencies:'@shikijs/types': 4.2.0+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.4.3+'@shikijs/[email protected]':dependencies:'@shikijs/types': 4.2.0'@shikijs/vscode-textmate': 10.0.2- '@types/hast': 3.0.4+ '@types/hast': 3.0.5- '@shikijs/[email protected]':+ '@shikijs/[email protected]':dependencies:- '@shikijs/types': 4.0.2+ '@shikijs/types': 4.4.3+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5'@shikijs/[email protected]':dependencies:'@shikijs/types': 4.2.0- '@shikijs/[email protected]':+ '@shikijs/[email protected]':dependencies:- '@shikijs/vscode-textmate': 10.0.2- '@types/hast': 3.0.4+ '@shikijs/types': 4.4.3'@shikijs/[email protected]':dependencies:'@shikijs/vscode-textmate': 10.0.2- '@types/hast': 3.0.4+ '@types/hast': 3.0.5++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5'@shikijs/[email protected]': {}@@ -24085,19 +24256,19 @@ snapshots: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])([email protected]))':+ '@tailwindcss/[email protected]([email protected](@types/[email protected])([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.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([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])([email protected]))':+ '@tailwindcss/[email protected]([email protected](@types/[email protected])([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.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'@tanstack/[email protected]': {}@@ -24660,6 +24831,10 @@ snapshots:dependencies:'@types/unist': 3.0.3+ '@types/[email protected]':+ dependencies:+ '@types/unist': 3.0.3+'@types/[email protected]': {}'@types/[email protected]([email protected])':@@ -24871,7 +25046,7 @@ snapshots:dependencies:'@types/node': 22.19.7tapable: 2.3.3transitivePeerDependencies:- '@minify-html/node'- '@swc/core'@@ -24959,9 +25134,9 @@ snapshots:'@vercel/[email protected]': {}- '@vercel/[email protected](patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])':+ '@vercel/[email protected](patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/node': 7.18.0([email protected]([email protected]([email protected]))([email protected]))([email protected])'@vercel/static-config': 3.2.0isbot: 5.1.37@@ -24969,9 +25144,9 @@ snapshots:react-dom: 18.3.1([email protected])ts-morph: 12.0.0- '@vercel/[email protected](patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])':+ '@vercel/[email protected](patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/node': 7.18.0([email protected]([email protected]([email protected]))([email protected]))([email protected])'@vercel/static-config': 3.2.0isbot: 5.1.37@@ -24979,9 +25154,9 @@ snapshots:react-dom: 18.3.1([email protected])ts-morph: 12.0.0- '@vercel/[email protected](patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])':+ '@vercel/[email protected](patch_hash=fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a)(@react-router/[email protected](patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([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])([email protected]([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/dev': 7.18.0(patch_hash=10eab9c1af1b5cc376e67a81f64216bb5d6fcd8a94fc807eb46ecf1982b2cde4)(@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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@react-router/node': 7.18.0([email protected]([email protected]([email protected]))([email protected]))([email protected])'@vercel/static-config': 3.2.0isbot: 5.1.37@@ -25085,61 +25260,69 @@ snapshots:chai: 6.2.2tinyrainbow: 3.1.0- '@vitest/[email protected]([email protected](@types/[email protected])([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])([email protected]))':+ dependencies:+ '@vitest/spy': 4.1.6+ estree-walker: 3.0.3+ magic-string: 0.30.21+ optionalDependencies:+ vite: 7.3.5(@types/[email protected])([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])([email protected]))':dependencies:'@vitest/spy': 4.1.6estree-walker: 3.0.3magic-string: 0.30.21optionalDependencies:- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([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])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([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: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([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])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([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: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([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])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([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: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([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])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([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: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([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])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([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.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([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])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([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.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'@vitest/[email protected]':dependencies:@@ -25270,6 +25453,44 @@ snapshots:d3-selection: 3.0.0d3-zoom: 3.0.0+ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-analyzer/[email protected]':+ optional: true++ '@yuku-toolchain/[email protected]': {}+@@ -25852,6 +26073,8 @@ snapshots:transitivePeerDependencies:- '@types/react'+ [email protected]: {}+@@ -26704,34 +26927,34 @@ snapshots:'@esbuild/win32-ia32': 0.27.7'@esbuild/win32-x64': 0.27.7- optionalDependencies:- '@esbuild/aix-ppc64': 0.28.0- '@esbuild/android-arm': 0.28.0- '@esbuild/android-arm64': 0.28.0- '@esbuild/android-x64': 0.28.0- '@esbuild/darwin-arm64': 0.28.0- '@esbuild/darwin-x64': 0.28.0- '@esbuild/freebsd-arm64': 0.28.0- '@esbuild/freebsd-x64': 0.28.0- '@esbuild/linux-arm': 0.28.0- '@esbuild/linux-arm64': 0.28.0- '@esbuild/linux-ia32': 0.28.0- '@esbuild/linux-loong64': 0.28.0- '@esbuild/linux-mips64el': 0.28.0- '@esbuild/linux-ppc64': 0.28.0- '@esbuild/linux-riscv64': 0.28.0- '@esbuild/linux-s390x': 0.28.0- '@esbuild/linux-x64': 0.28.0- '@esbuild/netbsd-arm64': 0.28.0- '@esbuild/netbsd-x64': 0.28.0- '@esbuild/openbsd-arm64': 0.28.0- '@esbuild/openbsd-x64': 0.28.0- '@esbuild/openharmony-arm64': 0.28.0- '@esbuild/sunos-x64': 0.28.0- '@esbuild/win32-arm64': 0.28.0- '@esbuild/win32-ia32': 0.28.0- '@esbuild/win32-x64': 0.28.0+ optionalDependencies:+ '@esbuild/aix-ppc64': 0.28.2+ '@esbuild/android-arm': 0.28.2+ '@esbuild/android-arm64': 0.28.2+ '@esbuild/android-x64': 0.28.2+ '@esbuild/darwin-arm64': 0.28.2+ '@esbuild/darwin-x64': 0.28.2+ '@esbuild/freebsd-arm64': 0.28.2+ '@esbuild/freebsd-x64': 0.28.2+ '@esbuild/linux-arm': 0.28.2+ '@esbuild/linux-arm64': 0.28.2+ '@esbuild/linux-ia32': 0.28.2+ '@esbuild/linux-loong64': 0.28.2+ '@esbuild/linux-mips64el': 0.28.2+ '@esbuild/linux-ppc64': 0.28.2+ '@esbuild/linux-riscv64': 0.28.2+ '@esbuild/linux-s390x': 0.28.2+ '@esbuild/linux-x64': 0.28.2+ '@esbuild/netbsd-arm64': 0.28.2+ '@esbuild/netbsd-x64': 0.28.2+ '@esbuild/openbsd-arm64': 0.28.2+ '@esbuild/openbsd-x64': 0.28.2+ '@esbuild/openharmony-arm64': 0.28.2+ '@esbuild/sunos-x64': 0.28.2+ '@esbuild/win32-arm64': 0.28.2+ '@esbuild/win32-ia32': 0.28.2+ '@esbuild/win32-x64': 0.28.2@@ -26973,6 +27196,10 @@ snapshots:optionalDependencies:picomatch: 4.0.4+ optionalDependencies:+ picomatch: 4.0.7+dependencies:fengari: 0.1.5@@ -27120,6 +27347,15 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ dependencies:+ motion-dom: 13.4.4+ motion-utils: 13.3.0+ tslib: 2.8.1+ optionalDependencies:+ react: 18.3.1+ react-dom: 18.3.1([email protected])+@@ -27148,32 +27384,34 @@ snapshots: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]):+ [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+ '@fumari/image-size': 0.1.1estree-util-value-to-estree: 3.5.0github-slugger: 2.0.0hast-util-to-estree: 3.1.3hast-util-to-jsx-runtime: 2.3.6- js-yaml: 4.3.1mdast-util-mdx: 3.0.0mdast-util-to-markdown: 2.1.2+ npm-to-yarn: 3.2.0remark: 15.0.1remark-gfm: 4.0.1remark-rehype: 11.1.2scroll-into-view-if-needed: 3.1.0- shiki: 4.2.0+ shiki: 4.4.3tinyglobby: 0.2.17unified: 11.0.5unist-util-visit: 5.1.0vfile: 6.0.3+ yaml: 2.9.1+ zbsearch: 4.0.0optionalDependencies:'@mdx-js/mdx': 3.1.1'@types/estree-jsx': 1.0.5- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/mdast': 4.0.4'@types/react': 18.3.28- lucide-react: 1.20.0([email protected])+ lucide-react: 1.48.0([email protected])next: 16.2.11(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])react: 18.3.1react-dom: 18.3.1([email protected])@@ -27182,25 +27420,28 @@ snapshots: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])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):+ [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](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@mdx-js/mdx': 3.1.1'@standard-schema/spec': 1.1.0chokidar: 5.0.0- esbuild: 0.28.0+ esbuild: 0.28.2estree-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.3.1+ fumadocs-core: 16.15.14(@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])+ github-slugger: 2.0.0+ magic-string: 1.4.2mdast-util-mdx: 3.0.0picocolors: 1.1.1- picomatch: 4.0.4- tinyexec: 1.2.4+ picomatch: 4.0.7+ tinyexec: 1.3.1tinyglobby: 0.2.17unified: 11.0.5unist-util-remove-position: 5.0.0unist-util-visit: 5.1.0vfile: 6.0.3- zod: 4.5.4+ yaml: 2.9.1+ yuku-analyzer: 0.10.2+ zod: 4.6.5optionalDependencies:'@types/mdast': 4.0.4'@types/mdx': 2.0.14@@ -27208,44 +27449,42 @@ snapshots:next: 16.2.11(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])react: 18.3.1rolldown: 1.0.3- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([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]):+ [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])+ '@fumadocs/tailwind': 0.1.2([email protected])+ '@radix-ui/react-accordion': 1.2.20(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collapsible': 1.1.20(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog': 1.1.23(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-direction': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-navigation-menu': 1.2.22(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover': 1.1.23(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-scroll-area': 1.2.18(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])+ '@radix-ui/react-tabs': 1.1.21(@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])+ cn: 0.3.3+ fumadocs-core: 16.15.14(@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.48.0([email protected])react: 18.3.1react-dom: 18.3.1([email protected])react-remove-scroll: 2.7.2(@types/[email protected])([email protected])rehype-raw: 7.0.0scroll-into-view-if-needed: 3.1.0- shiki: 4.2.0- tailwind-merge: 3.6.0+ shiki: 4.4.3unist-util-visit: 5.1.0optionalDependencies:'@types/mdx': 2.0.14'@types/react': 18.3.28next: 16.2.11(@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@@ -27423,7 +27662,7 @@ snapshots:dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/unist': 3.0.3devlop: 1.1.0hastscript: 9.0.1@@ -27434,11 +27673,11 @@ snapshots:dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/unist': 3.0.3'@ungap/structured-clone': 1.3.0hast-util-from-parse5: 8.0.3@@ -27454,7 +27693,7 @@ snapshots:dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@ungap/structured-clone': 1.3.0unist-util-position: 5.0.0@@ -27462,7 +27701,7 @@ snapshots:dependencies:'@types/estree': 1.0.8'@types/estree-jsx': 1.0.5- '@types/hast': 3.0.4+ '@types/hast': 3.0.5comma-separated-tokens: 2.0.3devlop: 1.1.0estree-util-attach-comments: 3.0.0@@ -27481,7 +27720,7 @@ snapshots:dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/unist': 3.0.3ccount: 2.0.1comma-separated-tokens: 2.0.3@@ -27496,7 +27735,7 @@ snapshots:dependencies:'@types/estree': 1.0.8- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/unist': 3.0.3comma-separated-tokens: 2.0.3devlop: 1.1.0@@ -27515,7 +27754,7 @@ snapshots:dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5comma-separated-tokens: 2.0.3devlop: 1.1.0property-information: 7.1.0@@ -27525,11 +27764,11 @@ snapshots:dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5comma-separated-tokens: 2.0.3hast-util-parse-selector: 4.0.0property-information: 7.1.0@@ -28433,7 +28672,7 @@ snapshots:dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5devlop: 1.1.0highlight.js: 11.11.1@@ -28449,7 +28688,7 @@ snapshots:dependencies:yallist: 4.0.0dependencies:react: 18.3.1@@ -28462,7 +28701,11 @@ snapshots:dependencies:- '@jridgewell/sourcemap-codec': 1.5.5+ '@jridgewell/sourcemap-codec': 1.6.0++ dependencies:+ '@jridgewell/sourcemap-codec': 1.6.0@@ -28585,7 +28828,7 @@ snapshots:dependencies:'@types/estree-jsx': 1.0.5- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/mdast': 4.0.4devlop: 1.1.0mdast-util-from-markdown: 2.0.3@@ -28596,7 +28839,7 @@ snapshots:dependencies:'@types/estree-jsx': 1.0.5- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/mdast': 4.0.4'@types/unist': 3.0.3ccount: 2.0.1@@ -28623,7 +28866,7 @@ snapshots:dependencies:'@types/estree-jsx': 1.0.5- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/mdast': 4.0.4devlop: 1.1.0mdast-util-from-markdown: 2.0.3@@ -28638,7 +28881,7 @@ snapshots:dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/mdast': 4.0.4'@ungap/structured-clone': 1.3.0devlop: 1.1.0@@ -29003,15 +29246,15 @@ snapshots:- [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])([email protected])([email protected])):dependencies:'@jridgewell/trace-mapping': 0.3.31jest-worker: 27.5.1schema-utils: 4.3.3terser: 5.48.0optionalDependencies:- esbuild: 0.28.0+ esbuild: 0.28.2lightningcss: 1.32.0postcss: 8.5.18@@ -29060,6 +29303,10 @@ snapshots:dependencies:motion-utils: 12.39.0+ dependencies:+ motion-utils: 13.3.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])@@ -29070,6 +29317,8 @@ snapshots:+ [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])@@ -29079,12 +29328,11 @@ 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.1optionalDependencies:- '@emotion/is-prop-valid': 1.4.0react: 18.3.1react-dom: 18.3.1([email protected])@@ -29277,6 +29525,8 @@ snapshots:dependencies:path-key: 4.0.0+ [email protected]: {}+@@ -29579,6 +29829,8 @@ snapshots:+ [email protected]: {}+@@ -29626,27 +29878,27 @@ snapshots:dependencies:lilconfig: 3.1.3- yaml: 2.8.3+ yaml: 2.9.1optionalDependencies:postcss: 8.5.18dependencies:lilconfig: 3.1.3optionalDependencies:jiti: 1.21.7postcss: 8.5.18tsx: 4.21.0- yaml: 2.8.3+ yaml: 2.9.1dependencies:lilconfig: 3.1.3optionalDependencies:jiti: 2.7.0postcss: 8.5.18tsx: 4.21.0- yaml: 2.8.3+ yaml: 2.9.1dependencies:@@ -30148,10 +30400,10 @@ snapshots:dependencies:'@react-pdf/renderer': 3.4.5([email protected])([email protected])- tailwindcss: 3.4.19([email protected])([email protected])+ tailwindcss: 3.4.19([email protected])([email protected])transitivePeerDependencies:- encoding- react@@ -30471,7 +30723,7 @@ snapshots:dependencies:'@types/estree': 1.0.8- '@types/hast': 3.0.4+ '@types/hast': 3.0.5hast-util-to-estree: 3.1.3transitivePeerDependencies:- supports-color@@ -30510,7 +30762,7 @@ snapshots:dependencies:- '@types/hast': 3.0.4+ '@types/hast': 3.0.5'@types/mdast': 4.0.4mdast-util-to-hast: 13.2.1unified: 11.0.5@@ -30898,6 +31150,17 @@ snapshots:'@shikijs/vscode-textmate': 10.0.2'@types/hast': 3.0.4+ dependencies:+ '@shikijs/core': 4.4.3+ '@shikijs/engine-javascript': 4.4.3+ '@shikijs/engine-oniguruma': 4.4.3+ '@shikijs/langs': 4.4.3+ '@shikijs/themes': 4.4.3+ '@shikijs/types': 4.4.3+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5+dependencies:es-errors: 1.3.0@@ -31316,8 +31579,6 @@ snapshots:- [email protected]: {}-dependencies:tailwindcss: 4.3.0@@ -31360,7 +31621,7 @@ snapshots:transitivePeerDependencies:- ts-nodedependencies:'@alloc/quick-lru': 5.2.0arg: 5.0.2@@ -31379,7 +31640,7 @@ snapshots:postcss: 8.5.18postcss-import: 15.1.0([email protected])postcss-js: 4.1.0([email protected])- 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])postcss-nested: 6.2.0([email protected])postcss-selector-parser: 6.1.2resolve: 1.22.11@@ -31493,7 +31754,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:@@ -31585,7 +31846,7 @@ snapshots:- [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@@ -31596,7 +31857,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@@ -31613,7 +31874,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@@ -31624,7 +31885,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@@ -31926,13 +32187,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]):+ [email protected](@types/[email protected])([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.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- '@types/node'- jiti@@ -31947,13 +32208,13 @@ snapshots:- tsx- yaml- [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])([email protected]):dependencies:cac: 6.7.14debug: 4.4.3([email protected])es-module-lexer: 1.7.0pathe: 2.0.3- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- '@types/node'- jiti@@ -31968,51 +32229,40 @@ snapshots:- tsx- yaml- [email protected]([email protected](@types/[email protected])([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: 7.3.5(@types/[email protected])([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])([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/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.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([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])([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/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.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([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])([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/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.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([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]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.27.7fdir: 6.5.0([email protected])@@ -32027,9 +32277,9 @@ snapshots:lightningcss: 1.32.0terser: 5.48.0tsx: 4.21.0- yaml: 2.8.3+ yaml: 2.9.1- [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])([email protected]):dependencies:esbuild: 0.27.7fdir: 6.5.0([email protected])@@ -32044,9 +32294,9 @@ snapshots:lightningcss: 1.32.0terser: 5.48.0tsx: 4.21.0- yaml: 2.8.3+ yaml: 2.9.1- [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])([email protected]):dependencies:esbuild: 0.27.7fdir: 6.5.0([email protected])@@ -32061,9 +32311,9 @@ snapshots:lightningcss: 1.32.0terser: 5.48.0tsx: 4.21.0- yaml: 2.8.3+ yaml: 2.9.1- [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])([email protected]):dependencies:esbuild: 0.27.7fdir: 6.5.0([email protected])@@ -32078,9 +32328,9 @@ snapshots:lightningcss: 1.32.0terser: 5.48.0tsx: 4.21.0- yaml: 2.8.3+ yaml: 2.9.1- [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])([email protected]):dependencies:esbuild: 0.27.7fdir: 6.5.0([email protected])@@ -32095,9 +32345,9 @@ snapshots:lightningcss: 1.32.0terser: 5.48.0tsx: 4.21.0- yaml: 2.8.3+ yaml: 2.9.1- [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])([email protected]):dependencies:lightningcss: 1.32.0picomatch: 4.0.4@@ -32106,14 +32356,14 @@ snapshots:tinyglobby: 0.2.17optionalDependencies:'@types/node': 24.12.2- esbuild: 0.28.0+ esbuild: 0.28.2fsevents: 2.3.3jiti: 2.7.0terser: 5.48.0tsx: 4.21.0- yaml: 2.8.3+ yaml: 2.9.1- [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])([email protected]):dependencies:lightningcss: 1.32.0picomatch: 4.0.4@@ -32127,9 +32377,9 @@ snapshots:jiti: 2.7.0terser: 5.48.0tsx: 4.21.0- yaml: 2.8.3+ yaml: 2.9.1- [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])([email protected]):dependencies:lightningcss: 1.32.0picomatch: 4.0.4@@ -32138,17 +32388,17 @@ snapshots:tinyglobby: 0.2.17optionalDependencies:'@types/node': 26.1.0- esbuild: 0.28.0+ esbuild: 0.28.2fsevents: 2.3.3jiti: 2.7.0terser: 5.48.0tsx: 4.21.0- yaml: 2.8.3+ yaml: 2.9.1- [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([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])([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])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([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@@ -32159,13 +32409,13 @@ snapshots:magic-string: 0.30.21obug: 2.1.1pathe: 2.0.3- picomatch: 4.0.4+ picomatch: 4.0.7std-env: 4.0.0tinybench: 2.9.0- tinyexec: 1.2.4+ tinyexec: 1.3.1tinyglobby: 0.2.17tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -32173,10 +32423,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])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([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])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([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@@ -32187,13 +32437,13 @@ snapshots:magic-string: 0.30.21obug: 2.1.1pathe: 2.0.3- picomatch: 4.0.4+ picomatch: 4.0.7std-env: 4.0.0tinybench: 2.9.0- tinyexec: 1.2.4+ tinyexec: 1.3.1tinyglobby: 0.2.17tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -32201,10 +32451,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])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([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])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([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@@ -32215,13 +32465,13 @@ snapshots:magic-string: 0.30.21obug: 2.1.1pathe: 2.0.3- picomatch: 4.0.4+ picomatch: 4.0.7std-env: 4.0.0tinybench: 2.9.0- tinyexec: 1.2.4+ tinyexec: 1.3.1tinyglobby: 0.2.17tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -32229,10 +32479,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])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([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])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([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@@ -32243,13 +32493,41 @@ snapshots:magic-string: 0.30.21obug: 2.1.1pathe: 2.0.3- picomatch: 4.0.4+ picomatch: 4.0.7+ std-env: 4.0.0+ tinybench: 2.9.0+ tinyexec: 1.3.1+ tinyglobby: 0.2.17+ tinyrainbow: 3.1.0+ vite: 8.0.16(@types/[email protected])([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])([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])([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.3.0+ expect-type: 1.3.0+ magic-string: 0.30.21+ obug: 2.1.1+ pathe: 2.0.3+ picomatch: 4.0.7std-env: 4.0.0tinybench: 2.9.0- tinyexec: 1.2.4+ tinyexec: 1.3.1tinyglobby: 0.2.17tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -32257,10 +32535,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])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([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])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([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@@ -32271,13 +32549,13 @@ snapshots:magic-string: 0.30.21obug: 2.1.1pathe: 2.0.3- picomatch: 4.0.4+ picomatch: 4.0.7std-env: 4.0.0tinybench: 2.9.0- tinyexec: 1.2.4+ tinyexec: 1.3.1tinyglobby: 0.2.17tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -32285,10 +32563,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])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([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])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([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@@ -32299,13 +32577,13 @@ snapshots:magic-string: 0.30.21obug: 2.1.1pathe: 2.0.3- picomatch: 4.0.4+ picomatch: 4.0.7std-env: 4.0.0tinybench: 2.9.0- tinyexec: 1.2.4+ tinyexec: 1.3.1tinyglobby: 0.2.17tinyrainbow: 3.1.0- vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -32313,10 +32591,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])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([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])([email protected]))+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([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@@ -32327,13 +32605,13 @@ snapshots:magic-string: 0.30.21obug: 2.1.1pathe: 2.0.3- picomatch: 4.0.4+ picomatch: 4.0.7std-env: 4.0.0tinybench: 2.9.0- tinyexec: 1.2.4+ tinyexec: 1.3.1tinyglobby: 0.2.17tinyrainbow: 3.1.0- vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.16(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.0@@ -32381,7 +32659,7 @@ snapshots:dependencies:'@types/estree': 1.0.8'@types/json-schema': 7.0.15@@ -32399,7 +32677,7 @@ snapshots:graceful-fs: 4.2.11loader-runner: 4.3.2mime-db: 1.54.0- minimizer-webpack-plugin: 5.6.1([email protected])([email protected])([email protected])([email protected]([email protected])([email protected])([email protected]))+ minimizer-webpack-plugin: 5.6.1([email protected])([email protected])([email protected])([email protected]([email protected])([email protected])([email protected]))neo-async: 2.6.2schema-utils: 4.3.3tapable: 2.3.3@@ -32538,6 +32816,8 @@ snapshots:+ [email protected]: {}+@@ -32558,6 +32838,28 @@ snapshots:+ dependencies:+ '@yuku-toolchain/types': 0.10.2+ yuku-ast: 0.10.2+ optionalDependencies:+ '@yuku-analyzer/binding-android-arm64': 0.10.2+ '@yuku-analyzer/binding-darwin-arm64': 0.10.2+ '@yuku-analyzer/binding-darwin-x64': 0.10.2+ '@yuku-analyzer/binding-freebsd-x64': 0.10.2+ '@yuku-analyzer/binding-linux-arm-gnu': 0.10.2+ '@yuku-analyzer/binding-linux-arm-musl': 0.10.2+ '@yuku-analyzer/binding-linux-arm64-gnu': 0.10.2+ '@yuku-analyzer/binding-linux-arm64-musl': 0.10.2+ '@yuku-analyzer/binding-linux-x64-gnu': 0.10.2+ '@yuku-analyzer/binding-linux-x64-musl': 0.10.2+ '@yuku-analyzer/binding-win32-arm64': 0.10.2+ '@yuku-analyzer/binding-win32-x64': 0.10.2++ dependencies:+ '@yuku-toolchain/types': 0.10.2+@@ -32581,6 +32883,8 @@ snapshots:+ [email protected]: {}+optionalDependencies:react: 18.3.1diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 251d5bc697..6affcd26c0 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -2,6 +2,7 @@ packages:- apps/*- ci- docs+ - docs/content- contrib/building/examples/*- packages/*@@ -82,9 +83,9 @@ catalog:'@react-router/dev': 7.18.0'@react-router/remix-routes-option-adapter': 7.18.0'@react-router/serve': 7.18.0- '@shikijs/langs': 4.0.2- '@shikijs/themes': 4.0.2- '@shikijs/types': 4.0.2+ '@shikijs/langs': 4.2.0+ '@shikijs/themes': 4.2.0+ '@shikijs/types': 4.2.0'@slack/web-api': 7.10.0'@supabase/functions-js': 2.1.5'@supabase/postgrest-js': 2.80.0diff --git a/scripts/generate-workflow-catalog.ts b/scripts/generate-workflow-catalog.tsindex ba6e5c5764..97f27036e5 100644--- a/scripts/generate-workflow-catalog.ts+++ b/scripts/generate-workflow-catalog.ts@@ -83,7 +83,7 @@ const labels = [// from plain Node, which check-workflow-catalog.ts relies on.const help = [HEADER,- `import type { TermId } from "@carbon/glossary";`,+ `import type { TermId } from "@carbon/content/glossary";`,``,`export const WORKFLOW_FIELD_HELP: Record<string, TermId> = ${JSON.stringify(sorted(built.help))};`,``diff --git a/scripts/repoint-ramp-webhook.ts b/scripts/repoint-ramp-webhook.tsindex afae254ff2..e81c3dc409 100644--- a/scripts/repoint-ramp-webhook.ts+++ b/scripts/repoint-ramp-webhook.ts@@ -24,7 +24,7 @@*/// Deep subpath, NOT the `@carbon/auth` barrel: the barrel transitively pulls-// `@carbon/react`, whose `LabelWithHelp` value-imports `@carbon/glossary`, whose+// `@carbon/react`, whose `LabelWithHelp` value-imports `@carbon/content/glossary`, whose// `msg` Lingui macro throws under plain tsx ("msg is not a function"). This// module is server-only and macro-free.import { getCarbonServiceRole } from "@carbon/auth/client.server";diff --git a/turbo.json b/turbo.jsonindex e3769cc660..329b5b3caa 100644--- a/turbo.json+++ b/turbo.json@@ -24,6 +24,7 @@"apps/erp/app/**","apps/mes/app/**","packages/react/src/**",+ "docs/content/src/glossary/**","packages/ee/src/workflows/**","packages/locale/locales/**/*.po"],