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).
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.
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.
- 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
- Implement hose-use corps search <keyword> with case-insensitive fuzzy matching across id, name, corpId, staffId, staffName, and accountId
- Format terminal table output with matched cell brackets, hit labels, active corp markers, and friendly no-match fallback
- Support --json structured output conforming to CliResult specification
- Add intuitive aliases for frequently guessed commands: auth list -> auth accounts, corps find -> corps search, config show -> config paths
- Enhance CorpSummary and CorpContext with corpId, staffName, and getAllCorps
- Add comprehensive unit tests in corps.test.ts, auth.test.ts, and config.test.ts