Commit Graph
190 Commits
Author SHA1 Message Date
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
yunyingk 91d768afd2 Merge pull request #93 from yunyingk/refactor/commands-directories
refactor(cli): split the five oversized command files into directory form
2026-10-04 14:48:55 +08:00
gitea 8c6ee6ca89 refactor(cli): split commands/bill.ts into bill/{context,approve,search,flow,related,meta,index}.ts
The five closures that captured corp/client/confirmation state move
into a per-invocation createBillActionContext factory; case bodies
become ctx-taking handlers grouped by concern (approval write actions,
list/get, flow/risk/budget, refs/relations/attachments/download,
schema/link/spec). index.ts keeps the original switch semantics.
No behavior change: tsc clean, 316 tests pass.
2026-10-04 14:18:29 +08:00
gitea 6cb05ebc37 refactor(cli): split commands/platform.ts into platform/{shared,app-info,records,record-actions,index}.ts
Verbatim code moves grouped by concern: app metadata & permissions,
record query + ledger audit, and record write actions (incl. batch
safe edit). No behavior change: tsc clean, 316 tests pass.
2026-10-04 14:14:57 +08:00
gitea c8450b9908 refactor(cli): split commands/update.ts into update/{index,releases}.ts
releases.ts carries the GitHub/Gitea release infrastructure (types,
listing, mirrored download, archive extraction, semver compare);
index.ts keeps handleUpdateCommand and re-exports the previously
public members so update.test.ts stays source-compatible.
Verbatim code moves, no behavior change: tsc clean, 316 tests pass.
2026-10-04 14:12:03 +08:00
gitea 6f1f2623a3 refactor(cli): split commands/workflow.ts into directory form (list/lifecycle/draft/history/job/check/analyze)
Verbatim code moves; drops dead WORKFLOW_STATE_DIR const that was
declared but never read. No behavior change: tsc clean, 316 tests pass.
2026-10-04 14:09:34 +08:00
gitea 52342a9b8e refactor(cli): split commands/corps.ts into directory form mirroring domains layout
Pilot for the command-directory form: 1077-line corps.ts becomes
corps/{index,shared,query,context,link,credentials,probe}.ts with
verbatim code moves. index.ts keeps the dispatch switch plus
re-exports so auth.ts and registry.ts consumers stay source-compatible.

No behavior change: tsc clean, 316 tests pass.
2026-10-04 14:06:25 +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 fd24e844b0 docs(architecture): update AGENTS.md and README.domains.md with full layering and 14-domain matrix 2026-09-30 00:37:49 +08:00
gitea 88c57558e1 refactor(aipro): modularize 1181-line aipro-cli.ts into src/cli/commands/aipro and reuse shared CLI helpers 2026-09-30 00:35:27 +08:00
gitea fbdfbaa8d3 refactor(cli): introduce declarative CLI command registry and shared runtime helpers 2026-09-30 00:31:30 +08:00
gitea 27c86e052a refactor(core,packaging): relocate embedded assets and binary runtime to src/packaging and enforce core whitelist 2026-09-30 00:29:20 +08:00
gitea 3864f0ffd0 refactor(db,persistence): unify EventStore and WorkflowAlertStore onto core/db SQLite 2026-09-30 00:26:49 +08:00
gitea 5a0c277993 refactor(architecture): eliminate direct domains/*/api imports in CLI entrypoints and add boundary tests 2026-09-30 00:22:36 +08:00
gitea fb11fedb76 docs(architecture): sync core and domain READMEs with refactored modules and layering 2026-09-30 00:14:54 +08:00
gitea c15d622ba2 refactor(errors): unify EkbError hierarchy across domains and structured CLI error classification 2026-09-30 00:13:35 +08:00
gitea 2b220bc5d9 refactor(auth,config): split 2260-line login.ts into focused modules and normalize CorpConfig fields 2026-09-30 00:04:28 +08:00
gitea 2d744d283b perf(http,auth): persist EASO, Unity, and Piper tokens across CLI invocations via token-store 2026-09-29 23:45:38 +08:00
gitea 76f7832522 refactor(mcp): remove deprecated fine-grained MCP tool definitions and simplify server to single CLI gateway 2026-09-29 23:42:12 +08:00
gitea c60d49fb8c fix(cli): prevent boolean flags from swallowing positional args and unify aipro arg parsing 2026-09-29 23:36:18 +08:00
gitea d0af46b445 fix(security,config): enforce 0600 file permissions, dynamic account store path, and HTTP origin protection 2026-09-29 23:34:06 +08:00
gitea a0ec7f95a7 feat(platform,datalink,bill): add workflow job drilldown, safe record batch-edit, audit, and spec linkage diagnostics (v0.8.11) 2026-09-29 20:00:55 +08:00
gitea 96c5a3f242 feat(auth): support OpenAPI persistent credentials, auto-refresh, and Web login link generation (v0.8.10) 2026-09-28 16:50:18 +08:00
gitea 3573ef71aa fix(update): automatically ensure hose-aipro symlink exists upon binary update 2026-09-18 12:01:28 +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 8c444efc85 fix(auth): point account-store and token-store directly to ~/.config/hose-use 2026-09-18 11:22:41 +08:00
gitea edeb2a56f8 chore(release): bump version to v0.8.8 and update docs/skill 2026-09-17 16:02:48 +08:00
gitea bcb77feabb feat(bill): 支持服务端跨字段检索与 --search-fields 参数 2026-09-17 15:59:56 +08:00
gitea d0f3d2738a refactor(core): 全量语义化客户端迁移并移除历史兼容桥接层 2026-09-17 15:44:25 +08:00
gitea aa69b50e6e refactor(core): 抽象语义化 HTTP 客户端与统一防爬指纹管理 2026-09-17 15:32:56 +08:00
gitea 139e50395d feat(bill): expose raw filterBy, select, distinct, and join in search API and CLI 2026-09-17 15:08:38 +08:00
gitea ca713cfafc feat(bill): add server-side filterBy support and clarify status skill rules 2026-09-17 14:58:02 +08:00
gitea 43595e2410 fix: sqlite cache migration, bill timeout protection with --mine, and add-link overwrite UX (v0.8.7) 2026-09-17 10:06:08 +08:00
gitea ebed61d6b4 feat(skill): 合思系列统一入口,新增 MVEL 与节点开通子技能
- skills/hose-use 收敛为合思/易快报系列唯一入口,新增「本套件结构」路由表
- 新增子技能 multi/ekuaibao-mvel:工作流 MVEL 代码节点脚本生成与排错
- 新增子技能 multi/ekuaibao-nodes:工作流节点批量开通(自 curl 提取 token/corpId/baseUrl)
- 开通服务地址改为 HOSE_WORKFLOW_NODE_URL 环境变量,不再硬编码实例
- embedded-skill 内嵌清单 14 -> 18,installer 递归保留 multi/ 层级;测试同步更新
2026-09-15 16:21:15 +08:00
gitea 2ed9bf0236 feat: make development builds visibly identifiable 2026-09-13 14:24:27 +08:00
gitea 8e4535a812 chore(release): bump version to v0.8.6 2026-09-13 13:42:56 +08:00
gitea 33db72f863 fix: install skill only in canonical global directory 2026-09-12 23:02:25 +08:00
gitea f26eae7b08 fix: make dry-run next steps executable 2026-09-11 17:41:58 +08:00
gitea 1571c524c1 feat: protect all CLI state mutations 2026-09-11 17:40:47 +08:00
gitea 3e072b490e feat: install development build globally 2026-09-11 17:35:29 +08:00
gitea 7cfb68e434 feat: migrate legacy hose configuration paths 2026-09-11 17:24:08 +08:00
gitea 34983e1c07 feat: add layered CLI help registry 2026-09-11 17:18:39 +08:00
gitea a5c0146c8d feat: add semantic CLI exit codes 2026-09-11 17:11:51 +08:00
gitea 45eb83a609 feat: unify CLI dry-run and write confirmation 2026-09-11 16:53:14 +08:00
gitea 639aaa9271 feat: embed keys and store skill guidance 2026-09-11 16:35:21 +08:00
gitea 0cdd62161f feat: add workflow lifecycle controls and monitoring 2026-09-09 18:41:36 +08:00
gitea fb700a4c86 feat(feetype): add fee type domain CRUD CLI commands and specifications 2026-09-09 16:25:03 +08:00
gitea a415bf38c3 fix(test): clean up mock spies in platform.test.ts after each test 2026-09-09 16:02:55 +08:00
gitea 03d2337e13 chore(release): bump version to v0.8.4 2026-09-09 16:00:26 +08:00
gitea 97b67c71da feat(datalink): add record get, toggle, edit, and recompute actions and fix active display 2026-09-09 15:55:12 +08:00