Audit cleanup: shared tool-arg validation, no dead exports, 500-line ceiling
Deliverable and document tools move to agent-deliverable-tools, the three argument validators deduplicate into agent-tool-args (they had grown three copies across tool modules), and chat-helpers drops isRootMessage and countMessagesIn, which lost their last callers in the conversation-list rework. agent-tools lands at 404 lines; every source file is back under the ceiling.
This commit is contained in:
1 parent
d64cf22feb
commit
2350f744e3
6 files changed
+103
-113
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { optionalString } from "./agent-tool-args";
|
||||
import type { AgentToolContext, AgentToolDeps } from "./agent-tools";
|
||||
import type { JsonRecord } from "./provider-http";
|
||||
|
||||
@@ -71,7 +72,3 @@ function recentMessagesIn(
|
||||
`).all(spaceId, orgId, limit) as Array<{ body_md: string; sender_name: string; thread_id: string }>;
|
||||
return rows.reverse();
|
||||
}
|
||||
|
||||
function optionalString(value: unknown): string | null {
|
||||
return typeof value === "string" && value.trim() ? value.trim() : null;
|
||||
}
|
||||
Reference in new issue
Block a user