Commit Graph
21 Commits
Author SHA1 Message Date
gitea 01fcebdb1c fix: 恢复工作流 JSON Schema 导出
在导出视图中明确 alarm 转换后的可空对象结构,保留业务解析行为和输出契约。
重新生成 Schema,补齐真实导出、可重现性与递归引用回归,更新说明和修复报告。

验证:930 项测试通过,类型与版本检查通过,导出脚本及新增测试单独类型检查通过。
2026-10-30 14:24:32 +08:00
gitea c71b20c25b chore: 按用途整理工程脚本与验证入口
将内部脚本归入 build、release、generate、dev 和 checks,保留公开安装脚本路径。
同步命令、CI、发布流程、脚本间调用及根目录定位,补齐脚本说明与完成报告。

验证:929 项测试、类型与版本检查通过;二进制及插件构建、冒烟与打包通过。
OpenAPI 产物不变;工作流 Schema 导出存在基线即可复现的 Zod transform 错误,单独记录。
2026-10-30 14:15:32 +08:00
gitea 613fe3476c fix: 修复真实验收中的企业范围与草稿复制问题
显式企业身份核验只访问指定企业,避免回退到全量查询。
复制只清空源单存在的发票与附件字段,避免通用模板拒绝未知属性。
补充隔离回归与指定测试企业验收记录,测试数据已清理。

验证:929 项测试通过,类型检查及版本一致性检查通过。
2026-10-29 22:04:36 +08:00
gitea 6249feee23 fix: 保留系统字段语义并固化架构示例检查
修正 DataLink 公共 SDK 示例,直接提取 README 中的示例与实际 SDK 一起编译。架构依赖扫描改为 AST,覆盖项目别名、再导出、动态与类型导入,新增单据 Session 传输收口卡点。
收尾回归保留未声明系统键的读取/透传语义,防止 active 被模糊匹配到 inactive 业务标签。同步模块导航、单工具 MCP 与认证说明,记录七项问题的实际修复、兼容选择和验证范围。

验证:bun test 926 通过、0 失败(119 文件、4379 断言);bun run check、bun run check:version、git diff --check 与文档链接检查通过。版本维持 0.8.21,未操作真实企业。
2026-10-29 18:31:02 +08:00
gitea bb703620f2 docs: 整理合思内部接口规范并移除历史迁移清单
将未跟踪的 specs/hose 改名为 specs/hose-close-api,纳入接口清单、维护说明和五份 JSON Schema,同步 Schema 标识及文档引用。
删除 README 的已迁移功能历史清单,补充 specs 的含义和新目录入口。临时抓包完整保留在本地并由 Git 忽略,避免提交租户业务资料。

验证:bun test(892 通过、0 失败)、bun run check、git diff --check;五份 Schema、17 个内部引用及相关文档链接校验通过。
2026-10-29 16:01:21 +08:00
gitea ebeec98f6d fix: 整合本地单据校验与离线身份修复
从旧审查分支选择仍未进入主分支的单据修复,保留主分支较新的工作流与插件分发实现。
兼容费用类型包装树,统一创建预演与执行,修正核销净支付,并将真实规格校验接入复制及送审。
注册 whoami 离线参数,补充写入契约和完整入口回归,保留旧分支与工作区。

验证:bun test 876 pass / 0 fail;bun run check、check:version、git diff --check 通过。
2026-10-28 15:00:37 +08:00
gitea a7974abb08 fix: address Codex PR review findings 2026-10-25 22:32:45 +08:00
gitea 9d895866e6 fix(packaging): use runtime filename for reproducible plugin bundles 2026-10-20 23:21:47 +08:00
gitea 3c1237ff31 docs: record global review fixes and validation 2026-10-20 23:06:58 +08:00
gitea 95eb8ee676 chore(legacy): remove ekb-mcp migration layer, approval db compat shim, and stale daily notes
The ekb-mcp -> hose-use rename migration (LEGACY_* constants,
syncLegacyEnterprisesDir/syncLegacyGlobalConfig with 7-day grace
cleanup, dual-source enterprises resolution) has completed its job:
legacy data self-deleted on active machines years of grace ago.
Config resolution now returns the single primary
~/.config/hose-use source; startup no longer scans the legacy dir.

- core/config/loader.ts: drop legacy constants, sync functions, and
  LEGACY path from diagnostics candidates; loader.test.ts drops the
  three legacy-migration cases
- domains/approval/db.ts deleted: pure pass-through over core/db whose
  consumers (repository.ts) already call core/db directly; the four
  test files now import getDatabase/closeDatabase from core/db
- scripts/dev-hygiene.ts: drop the config.legacy finding and
  legacyConfig snapshot field
- docs/daily/* removed: Python-era (ekb-cli/ekb-mcp) notes describing
  commands and architecture that no longer exist (preserved in git
  history)

No behavior change on machines without legacy data: tsc clean,
313 tests pass (316 minus the 3 removed legacy cases).
2026-10-05 16:29:19 +08:00
gitea a3b64d8c8d chore(repo): consolidate spec artifacts into specs/ and complete README coverage
- Move generated OpenAPI bundles out of dist/ into committed specs/
  (specs/openapi.json, specs/openapi.raw.json); source YAML tree moves
  openapi/ -> specs/openapi/; schemas/workflow-schema.json joins as
  specs/workflow-schema.json
- Update all generators/consumers: bundle-openapi, generate-raw-openapi,
  check-version-sync, bump-version, export-workflow-schema,
  packaging/embedded-openapi
- Rewrite stale .env.example with current HOSE_* environment variables
- Archive stale repo-local enterprise configs (superseded by
  ~/.config/hose-use/enterprises) out of the repo; root enterprises/
  keeps only the tracked example.json plus an explanatory README
- Add missing directory READMEs: approval/contact/message/task/events
  domains, cli/, http/, packaging/
- Fix stale domain doc links in README.domains.md and
  docs/modules/platform.md
2026-10-04 14:00:03 +08:00
gitea 0cdd62161f feat: add workflow lifecycle controls and monitoring 2026-09-09 18:41:36 +08:00
gitea 893fc47ac6 feat(datalink): add generic app object and record queries 2026-09-09 13:57:45 +08:00
gitea 2085a97e34 refactor: 移除 SealAI 相关业务域、认证与文档 2026-08-27 10:21:16 +08:00
gitea 0b2a060763 docs: 重写 Platform/SealAI 模块文档并补充目录入口
- 重写 docs/modules/platform.md 为当前 TS MCP 结构
- 重写 docs/modules/sealai.md 为当前 MCP tool 清单
- 新增 src/domains/README.domains.md、platform/README.platform.md、sealai/README.sealai.md
- 新增 src/core/README.core.md
- 确保 AGENTS.md 引用的下级文档全部存在
2026-07-17 16:54:09 +08:00
gitea 58c8a92d8e docs: 添加数据库选型讨论日报和环境变量配置示例
- 添加 .gitignore 规则:忽略数据库文件和环境变量
- 添加 .env.example:简化配置示例,移除数据库相关配置
- 添加日报:记录数据库选型讨论和最终决策(内存缓存 + JSON 文件)
2026-05-19 19:37:19 +08:00
gitea 28568b80e1 docs(platform): 新增 platform 模块说明,记录认证链路与待验证的全量工作流接口 2026-04-20 17:19:01 +08:00
gitea ef076898ea SealAI 审核规则 CLI + HTTP 路由全部完成,补充模块文档 2026-04-14 18:15:58 +08:00
gitea 6f5c93f387 日报:2026-04-08 写操作命令与 API 层重构 2026-04-08 00:45:06 +08:00
gitea 0f5b4c6272 日报:文件名加入截止 commit hash(792314a) 2026-04-06 01:28:42 +08:00
gitea 792314a8c1 日报:2026-04-06 项目创建首日工作汇报 2026-04-06 01:27:42 +08:00