Refactor seal tools into modular domains and fix layer inversions
- Split monolithic tools.ts (4,257 lines) into 11 domain-specific modules in src/domains/seal/tools/ - Extract helpers.ts containing 71 helper functions and shared tool types - Retain tools.ts as thin re-export for complete backward compatibility - Fix layer inversions: sink CliError to core/errors.ts, extract linter paths to core/paths.ts, move tenant-diagnose to domain - Eliminate null as any in runner.ts by widening signatures and adding proper runtime guards - Rebuild dist/mcp/server.js to satisfy pre-push bundle gate
This commit is contained in:
1 parent
d868a29c5d
commit
ab9b9965e9
26 files changed
+6375
-4983
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import { homedir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
|
||||
export const SEAL_CONFIG_DIR = join(homedir(), ".config", "seal-use");
|
||||
export const PRIMARY_LINTERS_DIR = join(SEAL_CONFIG_DIR, "linters");
|
||||
export const OFFICIAL_LINTERS_DIR = join(PRIMARY_LINTERS_DIR, "official");
|
||||
Reference in new issue
Block a user