From a6d6095c8c2aa9b7d9b5f9ca08a302d9ca84f825 Mon Sep 17 00:00:00 2001 From: nocoo Date: Wed, 15 Apr 2026 05:27:42 +0800 Subject: [PATCH] chore(quality): 6DQ L1+G1 compliance --- packages/agent/bunfig.toml | 4 ++++ packages/agent/package.json | 2 +- packages/discord/bunfig.toml | 4 ++++ packages/discord/package.json | 2 +- packages/gateway/bunfig.toml | 7 +++++++ packages/gateway/package.json | 2 +- packages/http/bunfig.toml | 6 ++++++ packages/http/package.json | 2 +- packages/storage/bunfig.toml | 6 ++++++ packages/storage/package.json | 2 +- packages/terminal/bunfig.toml | 6 ++++++ packages/terminal/package.json | 2 +- 12 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 packages/gateway/bunfig.toml create mode 100644 packages/http/bunfig.toml create mode 100644 packages/storage/bunfig.toml create mode 100644 packages/terminal/bunfig.toml diff --git a/packages/agent/bunfig.toml b/packages/agent/bunfig.toml index a862371..1c6eaf4 100644 --- a/packages/agent/bunfig.toml +++ b/packages/agent/bunfig.toml @@ -2,3 +2,7 @@ # Exclude e2e tests from coverage as they require real LLM API coverageSkipTestFiles = true coveragePathIgnorePatterns = ["src/e2e/**", "../storage/**"] + +[test.coverageThreshold] +line = 90 +function = 90 diff --git a/packages/agent/package.json b/packages/agent/package.json index 8117cd7..cae737d 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -9,7 +9,7 @@ "test:unit": "bun test src/core src/context src/heartbeat src/tools", "test:e2e": "bun test src/e2e/", "test:coverage": "bun test --coverage", - "lint": "biome check src", + "lint": "biome check src --error-on-warnings", "format": "biome format src --write" }, "dependencies": { diff --git a/packages/discord/bunfig.toml b/packages/discord/bunfig.toml index 7f82250..d826eff 100644 --- a/packages/discord/bunfig.toml +++ b/packages/discord/bunfig.toml @@ -2,3 +2,7 @@ # Exclude e2e utilities from coverage as they are tested via behavioral tests coverageSkipTestFiles = true coveragePathIgnorePatterns = ["src/e2e/**"] + +[test.coverageThreshold] +line = 90 +function = 90 diff --git a/packages/discord/package.json b/packages/discord/package.json index 43d088e..51d4ac4 100644 --- a/packages/discord/package.json +++ b/packages/discord/package.json @@ -18,7 +18,7 @@ "test:unit": "bun test src/", "test:e2e": "bun run src/e2e/runner.ts --core", "test:e2e:full": "bun run src/e2e/runner.ts", - "lint": "biome lint src", + "lint": "biome lint src --error-on-warnings", "format": "biome format src" }, "dependencies": { diff --git a/packages/gateway/bunfig.toml b/packages/gateway/bunfig.toml new file mode 100644 index 0000000..dc0dd6d --- /dev/null +++ b/packages/gateway/bunfig.toml @@ -0,0 +1,7 @@ +[test] +coverageSkipTestFiles = true +coveragePathIgnorePatterns = ["src/e2e/**", "../agent/**", "../discord/**", "../http/**", "../terminal/**", "../storage/**"] + +[test.coverageThreshold] +line = 90 +function = 90 diff --git a/packages/gateway/package.json b/packages/gateway/package.json index 1629a2b..99ebd53 100644 --- a/packages/gateway/package.json +++ b/packages/gateway/package.json @@ -17,7 +17,7 @@ "test:behavioral:memory": "bun run behavioral-tests/memory.test.ts", "test:behavioral:autonomy": "bun run behavioral-tests/agent-autonomy.test.ts", "test:behavioral:skills": "bun run behavioral-tests/skills.test.ts", - "lint": "biome lint src behavioral-tests", + "lint": "biome lint src behavioral-tests --error-on-warnings", "format": "biome format src behavioral-tests" }, "dependencies": { diff --git a/packages/http/bunfig.toml b/packages/http/bunfig.toml new file mode 100644 index 0000000..eafc4d5 --- /dev/null +++ b/packages/http/bunfig.toml @@ -0,0 +1,6 @@ +[test] +coverageSkipTestFiles = true + +[test.coverageThreshold] +line = 90 +function = 90 diff --git a/packages/http/package.json b/packages/http/package.json index 7616c3f..8b91649 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -10,7 +10,7 @@ "test": "bun test", "test:unit": "bun test src/", "test:e2e": "bun run src/e2e/runner.ts", - "lint": "biome lint src", + "lint": "biome lint src --error-on-warnings", "format": "biome format src" }, "dependencies": { diff --git a/packages/storage/bunfig.toml b/packages/storage/bunfig.toml new file mode 100644 index 0000000..eafc4d5 --- /dev/null +++ b/packages/storage/bunfig.toml @@ -0,0 +1,6 @@ +[test] +coverageSkipTestFiles = true + +[test.coverageThreshold] +line = 90 +function = 90 diff --git a/packages/storage/package.json b/packages/storage/package.json index edd74ab..65beab7 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -9,7 +9,7 @@ "test:unit": "bun test", "test:e2e": "bun run src/e2e/runner.ts", "test:coverage": "bun test --coverage", - "lint": "biome check src", + "lint": "biome check src --error-on-warnings", "format": "biome format src --write" }, "devDependencies": { diff --git a/packages/terminal/bunfig.toml b/packages/terminal/bunfig.toml new file mode 100644 index 0000000..eafc4d5 --- /dev/null +++ b/packages/terminal/bunfig.toml @@ -0,0 +1,6 @@ +[test] +coverageSkipTestFiles = true + +[test.coverageThreshold] +line = 90 +function = 90 diff --git a/packages/terminal/package.json b/packages/terminal/package.json index b584b94..2be1861 100644 --- a/packages/terminal/package.json +++ b/packages/terminal/package.json @@ -10,7 +10,7 @@ "test": "bun test", "test:unit": "bun test src/", "test:e2e": "bun run src/e2e/runner.ts", - "lint": "biome lint src", + "lint": "biome lint src --error-on-warnings", "format": "biome format src" }, "dependencies": {},