发布 0.2.1 并完善工具边界与安全性

This commit is contained in:
mid
2026-08-10 14:49:43 +08:00
parent aca004c513
commit 32b7cc827c
47 changed files with 681 additions and 172 deletions
+7
View File
@@ -25,4 +25,11 @@ describe('tool catalog consistency', () => {
expect(navigationToolIds.sort()).toEqual(catalog.tools.map(({ id }) => id).sort())
expect(new Set(navigationToolIds).size).toBe(navigationToolIds.length)
})
it('places checksum tools before cryptographic tools by default', () => {
const categoryIds = defaultNavigation.categories.map(({ id }) => id)
expect(categoryIds.indexOf('checksum')).toBeGreaterThanOrEqual(0)
expect(categoryIds.indexOf('crypto')).toBeGreaterThanOrEqual(0)
expect(categoryIds.indexOf('checksum')).toBeLessThan(categoryIds.indexOf('crypto'))
})
})