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:
gitea committed 2026-09-22 16:36:37 +08:00
1 parent d868a29c5d
commit ab9b9965e9
26 files changed
+6375 -4983

No files matched your search

+2 -2
View File
@@ -360,7 +360,7 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
source: { type: "native" }
} as any;
}
await handleRulesCommand(action, maybeName, null as any, corp, args);
await handleRulesCommand(action, maybeName, null, corp, args);
return;
}
@@ -377,7 +377,7 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
(action === "link" || action === "seal-link") &&
("from-link" in args.options || maybeName === "from-link")
) {
await handleAuthCommand(action, null as any, args);
await handleAuthCommand(action, null, args);
return;
}