mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-16 18:16:10 +02:00
fix: stabilize opencode declarations across package managers
This commit is contained in:
parent
0f4f95b3de
commit
05acc27530
8 changed files with 31 additions and 15 deletions
|
|
@ -5,11 +5,11 @@
|
|||
* Supports common coverage report formats.
|
||||
*/
|
||||
|
||||
import { tool } from "@opencode-ai/plugin/tool"
|
||||
import { tool, type ToolDefinition } from "@opencode-ai/plugin/tool"
|
||||
import * as path from "path"
|
||||
import * as fs from "fs"
|
||||
|
||||
export default tool({
|
||||
const checkCoverageTool: ToolDefinition = tool({
|
||||
description:
|
||||
"Check test coverage against a threshold and identify files with low coverage. Reads coverage reports from common locations.",
|
||||
args: {
|
||||
|
|
@ -100,6 +100,8 @@ export default tool({
|
|||
},
|
||||
})
|
||||
|
||||
export default checkCoverageTool
|
||||
|
||||
interface CoverageSummary {
|
||||
total: {
|
||||
lines: number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue