feat(tools): 2.0 phase 5 wave 4 - office, ebooks, data, archives (14 tools) (#224)

This commit is contained in:
SnapOtter
2026-06-13 10:19:11 +08:00
parent 638288e196
commit fc7c1f850e
93 changed files with 7636 additions and 817 deletions
+5 -1
View File
@@ -24,7 +24,11 @@ describe("modality metadata", () => {
for (const tool of TOOLS) {
expect(validModalities).toContain(tool.modality);
expect(Array.isArray(tool.acceptedInputs)).toBe(true);
expect(tool.acceptedInputs.length).toBeGreaterThan(0);
// Empty acceptedInputs is valid for file-modality tools that accept any file
// (e.g. create-zip); the factory 415 gate skips when the list is empty.
if (tool.modality !== "file" || tool.acceptedInputs.length > 0) {
expect(tool.acceptedInputs.length).toBeGreaterThan(0);
}
expect(["fast", "long"]).toContain(tool.executionHint);
}
});