EM

energee/mgr-zero

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 质量 57 趋势 20AGPL-3.0

MGR 是一个多租户酿酒厂运营系统,基于Next.js(App Router、TypeScript)和 Supabase(Postgres、Auth、RLS):目录、不可变库存账本、分配/ATP、分阶段 CSV 导入,...

概览

MGR是一个多租户酿酒厂运营系统,基于Next.js(App Router、TypeScript)和Supabase(Postgres、Auth、RLS):目录、不可变库存账本、分配/ATP、分阶段CSV导入、员工和买家邀请(现有账户登录后接受待处理邀请)、订单、发货、开票、客户门户、酿造、采购、合规、QuickBooks(手动付款同步)、Square POS、Slack通知和Ask MGR聊天。员工和门户指南在内容/文档/下描述了当前的服务内容。 - 文档:content/docs/ — Fumadocs MDX 在 /docs 提供(index.mdx 在员工和客户门户指南和 /docs/api 的 HTTP API 参考之间选择,后者的操作由命令注册表和屏幕生成,由 bun run docs:api 生成;可在 /api/search 搜索)- 规范:.agents/superpowers/specs/2026-08-30-mgr-slice1-core-orders-design.md - 历史计划(已替换):.agents/superpowers/plans/2026-08-30-slice1a-foundation。

概述(AI 翻译)

MGR是一个基于Next.js(App)构建的多租户酿酒厂运营系统 Router、TypeScript)和Supabase(Postgres、认证、RLS):目录、不可变 库存分类账、分配/ATP、分阶段CSV导入、员工和采购 邀请(现有账户登录后接受待处理的邀请), 订单、发货、发票、客户门户、酿造、采购, 合规、QuickBooks(手动支付同步)、Square POS、Slack通知, 以及问 MGR 聊天。工作人员和门户指南在 content/docs/ 下描述了 如今存在的。

  • 文档:content/docs/ — Fumadocs MDX 在 /docs 提供服务([index.mdx 在员工和客户门户指南和 /docs/api 的 HTTP API 引用之间选择,HTTP API 的操作由 bun run docs:api 从命令注册表和界面生成;搜索见 /api/search)
  • 专长:.agents/superpowers/specs/2026-08-30-mgr-slice1-core-orders-design.md
  • 历史计划(已取代):.agents/superpowers/plans/2026-08-30-slice1a-foundation.md
  • 模式:.agents/superpowers/specs/2026-08-31-mgr-schema-design.md(表格)和2026-08-31-mgr-schema-decisions.md(为什么)

铁王统治

参见“.agents/ARCHITECTURE.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MGR

MGR is a multi-tenant brewery operations system built on Next.js (App Router, TypeScript) and Supabase (Postgres, Auth, RLS): catalog, immutable inventory ledger, allocations/ATP, staged CSV import, staff and buyer invitations (existing accounts accept a pending invitation after signing in), orders, shipments, invoicing, the customer portal, brewing, purchasing, compliance, QuickBooks (manual payment sync), Square POS, Slack notifications, and Ask MGR chat. The staff and portal guides under content/docs/ describe what exists today.

  • Documentation: content/docs/ — Fumadocs MDX served at /docs (index.mdx chooses between the staff and customer-portal guides and the HTTP API reference at /docs/api, whose operations are generated from the command registry and the screens by bun run docs:api; search at /api/search)
  • Spec: .agents/superpowers/specs/2026-08-30-mgr-slice1-core-orders-design.md
  • Historical plan (superseded): .agents/superpowers/plans/2026-08-30-slice1a-foundation.md
  • Schema: .agents/superpowers/specs/2026-08-31-mgr-schema-design.md (tables) and 2026-08-31-mgr-schema-decisions.md (why)

Iron rules

See .agents/ARCHITECTURE.md for the ownership map and the five iron rules (commands-only, append-only ledger, RLS everywhere, admin client confined, multi-row writes are one Postgres function) and what enforces each one. Agents start at AGENTS.md.

Local development

Requires Node.js 24.x and Bun 1.3.x. The repository pins Node in .node-version and package.json, and Bun in .bun-version / packageManager; use Bun for installs and scripts, and Node 24 as the Next.js runtime.

bunx tsc --noEmit uses TypeScript 7 through the @typescript/native alias. ESLint, Next.js tooling, and screen-composition tests still need the TypeScript 6 compiler API, supplied by Microsoft’s @typescript/typescript6 compatibility package under the typescript name. It uses the official npm tarball because Bun 1.3.10 resolves the nested npm alias back to the compatibility package when the compatibility package itself is installed through an npm alias. See Microsoft’s side-by-side guidance. Node type definitions stay on the latest 24.x release to match the runtime.

Local Supabase runs on non-default ports (54341/54342/54343) configured in the committed supabase/config.toml. These ports are used by every developer and in CI — they were chosen to avoid colliding with a default-port Supabase project running alongside locally. Verify the live values with bunx supabase status:

API URL:  http://127.0.0.1:54341
DB URL:   postgresql://postgres:[email protected]:54342/postgres
Studio:   http://127.0.0.1:54343

CI (.github/workflows/ci.yml) derives env vars from bunx supabase status -o env rather than hardcoding them, so the setup automatically adapts to the values in config.toml.

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add energee/mgr-zero
新手?先看 mcpskill.org 教程 →