Commit Graph
41 Commits
Author SHA1 Message Date
gitea 3cb087b59d feat: 增加按目录权重检查 README 的全仓校验器
从 Git 跟踪成员推导目录,根目录始终检查,其余目录权重严格大于 5 时要求 README。
直接子目录和文件各计 1,README 不计数,同名脚本与唯一测试成对计 1。
新增独立命令、针对性测试、算法说明和实际缺口报告,不新增配置文件或批量生成文档。

验证:938 项测试通过,类型与版本检查通过,校验脚本及测试独立类型检查通过。
仓库审计:80 个目录中 28 个需要 README,11 个通过,17 个缺失。
2026-10-30 16:20:01 +08:00
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 b1e9c7eed3 chore: 统一对外接口规范目录为 hose-open-api
将 specs/openapi 迁移为 specs/hose-open-api,与内部接口规范目录命名对齐。
同步 README、规范打包、版本更新与版本一致性检查,以及发布验证夹具。

验证:929 项测试通过,类型检查和版本检查通过;打包 JSON 字节内容不变。
2026-10-30 14:11:17 +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 f4788375a1 fix(packaging): distribute plugin archives without tracking dist 2026-10-26 11:54: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 6269dd21ab merge: include shell fixture validation headroom 2026-10-20 23:01:26 +08:00
gitea 48ab35a8ac test: allow headroom for shell fixture subprocesses 2026-10-20 23:00:39 +08:00
gitea 2844fd49dd fix(workflow): isolate local scripts in bounded QuickJS runtime 2026-10-20 17:47:08 +08:00
gitea 9a9e857606 fix(release): retry bounded Gitea uploads and support mirror recovery 2026-10-18 00:46:40 +08:00
gitea 103ead0fe5 fix: harden CLI parsing, MCP startup and release integrity 2026-10-17 20:32:36 +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 64c0fafcf6 chore(release): bump version to v0.8.9 and prioritize archive updates 2026-09-18 11:43:55 +08:00
gitea aa5ec6b6ce fix(install): prioritize compressed archives with raw binary fallback and auto-extraction 2026-09-18 11:41:07 +08:00
gitea 2ed9bf0236 feat: make development builds visibly identifiable 2026-09-13 14:24:27 +08:00
gitea 134ebf0d2e fix: treat canonical skill symlinks as healthy 2026-09-12 23:34:50 +08:00
gitea 3db5907357 feat: add development hygiene checks and cleanup 2026-09-12 23:26:08 +08:00
gitea 3e072b490e feat: install development build globally 2026-09-11 17:35:29 +08:00
gitea d15fa65517 feat: sync release version plugin and OpenAPI artifacts 2026-09-11 17:21:41 +08:00
gitea 69c6396d38 fix(skill): align app and platform terminology and sync skill to v0.8.3 2026-09-09 15:21:18 +08:00
gitea a8e32cff32 feat(bill): support full invoice validation details, datalink cards, and department paths (v0.7.3) 2026-09-07 15:47:44 +08:00
gitea 2f8bcb90c9 refactor(cli): purge short hose alias and standardize on hose-use across docs, scripts, and prompts 2026-09-06 22:26:04 +08:00
gitea 9fa4cfe38f fix(approval): isolate runs by corp, handle execution error, bundle hose-aipro alias, and bump to v0.7.1 2026-09-06 21:57:53 +08:00
gitea 644c3d2005 fix(cli): unify hose-aipro as multicall symlink alias to hose-use binary 2026-09-06 19:05:07 +08:00
gitea 4e36a1d9a5 feat(approval): introduce sqlite rule engine, deterministic gateway, and hose-aipro cli (v0.7.0)
- Pure Rule Model & AST Parser:
  - Eliminate redundant title field; model rules purely via scope (scene index) and natural language body.
  - Implement AST parser for inline clauses: [action]{硬性|弹性|建议|特殊}.
  - Validate and enforce preference references with @{级别} syntax, strictly blocking invalid grammar.

- Embedded SQLite Database & Repository:
  - Native bun:sqlite integration with zero external dependencies, stored at ~/.config/hose-use/approval.db.
  - 5 core schemas: rules, preferences, approval_runs, approval_findings, and aipro_logs.
  - Support deduplicated scope indexing (listScopes with 1-based indices) and scope drill-down (getScopeDetail).

- Bill Requisition & Backlog Query Extension:
  - Add formatFlowAsBill adapter in domains/bill/tools.ts.
  - Fall back to flow and backlog inspection when bills are not found in invoice endpoints, unlocking full structured inspection for requisitions (such as S26000001) and loan requests.

- Deterministic Approval Gateway & Lifecycle:
  - Enforce mandatory approval lifecycle: points -> checklist -> review -> decide.
  - Physical gateway blocking: forbid decision if audit checklist is missing or empty, or if pending points remain unverified.
  - Hard tier severance: automatically sever and throw GatewayBlockError on approval attempts violating {硬性} clauses.

- Dedicated hose-aipro Global CLI & Immutable Audit Ledger:
  - Register secondary global binary hose-aipro alongside hose-use in package.json and build-binary.mjs.
  - Automatically record every AI Pro invocation, document context, args snapshot, operator, status, and verdict in aipro_logs.
  - Provide intuitive subcommands: points, checklist, review, decide, logs, rules.
  - Bump project version to v0.7.0 and regenerate OpenAPI bundles.
2026-09-06 19:03:06 +08:00
gitea 188a0fb5dc feat: release v0.5.1 with multi-file skill system and IDE plugin manifest
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
2026-09-03 15:32:01 +08:00
gitea 5cf6c9e014 feat(bill): 引入费控单据与费用明细检索(支持按单号精准查询与 DataLink 字典自动还原)并发布 v0.3.0
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
2026-08-27 11:48:20 +08:00
gitea b13959451a feat(openapi): 引入双层 OpenAPI 规范管理 (原始下游 & 包装层工具) 并升级版本至 v0.2.2
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
2026-08-27 11:29:32 +08:00
gitea 2dfcf67b00 feat(update): 实现多镜像源自更新机制 (update/upgrade) 并升级版本至 v0.2.1
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
2026-08-27 11:19:13 +08:00
gitea 6e73de697b docs: 更新仓库名称与一键安装链接至 yunyingk/hose-use 2026-08-27 11:10:06 +08:00
gitea dbeb422aeb chore(release): 更新项目与 CLI 名称为 hose-use,升级到 v0.2.0,增加二进制构建与 GitHub Actions Release 工作流,集成 Agent Skill
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
2026-08-27 11:09:18 +08:00
gitea e7aa8a86cc refactor: 全面转向 CLI 驱动架构与底层 SDK,裁撤繁杂 MCP 工具并参考 seal-home 规范 2026-08-27 10:56:45 +08:00
gitea 3d549e2e2f feat(auth): 完善多账号与企业分层管理模型,全面支持 F12/cURL 临时凭证导入与一键保活 2026-08-27 10:49:20 +08:00
gitea 255c7aee8d feat(auth): 实现三种登录覆盖矩阵与企业配置自动生成 (账密/短信/浏览器同步) 2026-08-27 10:43:27 +08:00
gitea 93360a8ef9 feat(platform): 新增工作流 JSON Schema 导出脚本
- 添加 scripts/export-workflow-schema.ts
- 输出 schemas/workflow-schema.json
- package.json 新增 export:workflow-schema 脚本
- README.md 补充 typecheck 和 schema 导出命令
2026-07-17 16:54:04 +08:00
gitea 00ad09e386 chore: 移除旧 Python CLI 项目
删除 ekb-cli Python 项目:
- pyproject.toml, uv.lock, .python-version
- src/ekb_cli/ 完整 Python 源码
- scripts/ 辅助脚本
- tmp_test/ 临时测试文件

为迁移到 TS + Bun MCP Server 做准备
2026-05-18 17:43:52 +08:00
gitea 760c04be00 feat(platform): 服务层跨应用聚合查询,新增按节点类型筛选工作流
- 新增 list_all_workflows / find_workflows_by_task_type 及其 _cmd 变体
- CLI 新增 workflow-search <task_type> 命令(--all 含停用)
- HTTP 新增 GET /platforms/workflows?task_type=http&enabled_only=true
- 修复 workflow_service.py 中重复定义的函数
2026-04-20 16:50:56 +08:00