Repository navigation
feat: add SaaS case taxonomy and factory ledger exchange - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
工作台案例库按「服务模型 → 业务分类 → 标准主干 → 场景变体 → 参考实现/项目案例」组织,可检索共性、查看变体差异并复用已有代码。工厂工作台同时实现可执行的整包交换、模拟拍照核对和数据来源展示。
分类与案例资产
docs/domains.md。工厂工作台
保留申领、审批、发放、断针回收、销售拜访、完整审计和私有资产能力;身份、业务、资产与可选
LedgerExchange端口分别接入。Supabase 是一种部署组合,HTTP 提供方可使用 MySQL 或其他资产平台,不把分类或业务绑定云厂商。这次把交换规范落成实际前后端实现:
实现范围为同一工作区恢复;跨身份系统/提供方迁移、MySQL 后端、真实 OCR 及新增账号体系不在此实现中。格式模板不可直接执行清库;操作型数据包以当前工作区导出快照为基准。
迁移
20261014171026_ledger_exchange.sql已应用到个人试用 Supabase,文件名与远端版本对齐且 SQL 内容不变。新增 8 组云端回滚事务与权限检查通过,覆盖日常耗材闭环、快照恢复、幂等、重复 JSON 拒绝、旧版本冲突及成员/外部用户权限;结束后业务行和 Storage 对象均为零,数据指纹不变,匿名 RPC 返回 401/42501,安全检查无 WARN/ERROR。原有 10 组云端检查与本地 43 项 PGlite 回归保留各自验证范围,不声明本轮重新完成资产传输或多连接并发实测。所有者私有 Sites 试用站已发布,远端工具返回
succeeded,Supabase 已连接。邮箱确认保持开启,默认确认回跳与精确允许列表指向在线工厂入口,默认/显式目标的 303 回跳复测均匹配。首次应用注册由使用者自行进行,注册后的云端 UI 验收待完成。本机静态预览已验收;当前网络访问线上站点被 Cloudflare 托管边缘拦截,未进入工作台,因此不声明在线 UI 已验收。此说明不包含具体私有 URL、项目标识或密钥。
验证
npm ci:成功,依赖审计 0 个漏洞。npm run check:3 个应用构建、规格校验、24 项仓库测试、164 项案例单元测试、8 项 POC、43 项 SQL 回归全部通过;本轮代码不变,239 项测试重跑全部通过。npm run test:e2e:34 项通过(目录 11、MUSE 6、Persona Studio 8、工厂 9)。examples/saas/mes/factory-operations/evidence/verification.md。没有操作或清空外部 demo 的业务数据。运行目录:
npm ci && npm run demo,打开http://127.0.0.1:4173;工厂独立运行与数据平台配置见其 README。