Skip to content

Commit b8d41f0

Browse files
committed
chore(release): pre-release lint, meta, and automation fixes for v0.3.0
1 parent 109ed83 commit b8d41f0

33 files changed

+118
-138
lines changed

.github/metrics/frontmatter-metrics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Ajv from "ajv";
1111
import addFormats from "ajv-formats";
1212

1313
const __filename = fileURLToPath(import.meta.url);
14-
const __dirname = path.dirname(__filename);
14+
// Removed unused variable __dirname
1515

1616
async function readJSON(p) {
1717
return JSON.parse(await fs.readFile(p, "utf8"));

.jest-skip/agent-performance.test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,11 @@
1515
* ============================================================================
1616
*/
1717

18-
const fs = require("fs");
19-
const path = require("path");
2018
const {
2119
mockOctokit,
2220
mockContext,
2321
setTestEnv,
2422
resetTestEnv,
25-
mockPrPayload: _mockPrPayload,
26-
expectCommentPosted: _expectCommentPosted,
2723
} = require("../../tests/test-helpers");
2824

2925
describe("Agent Performance Benchmarks", () => {

.jest-skip/agent-workflows.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* - Update test data to match real GitHub events
1414
*/
1515

16-
const _fs = require("fs");
1716
const path = require("path");
1817
const { setTestEnv, resetTestEnv } = require("../../../tests/test-helpers");
1918
const {
@@ -23,7 +22,7 @@ const {
2322
} = require("../../../tests/test-helpers");
2423

2524
describe("Agent E2E Workflows", () => {
26-
const _agentsDir = path.join(__dirname, "..");
25+
// Removed unused variable _agentsDir
2726

2827
beforeAll(() => {
2928
setTestEnv({

.jest-skip/label-sync.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe("label-sync", () => {
5252
},
5353
];
5454

55-
const result = await syncLabelsWithCanonical(
55+
// Removed unused variable _result
5656
mockOctokit,
5757
"owner",
5858
"repo",
@@ -98,7 +98,7 @@ describe("label-sync", () => {
9898
},
9999
];
100100

101-
const result = await syncLabelsWithCanonical(
101+
// Removed unused variable _result
102102
mockOctokit,
103103
"owner",
104104
"repo",
@@ -143,7 +143,7 @@ describe("label-sync", () => {
143143
{ name: "bug", color: "ff0000", description: "Bug reports" },
144144
];
145145

146-
const result = await syncLabelsWithCanonical(
146+
// Removed unused variable _result
147147
mockOctokit,
148148
"owner",
149149
"repo",
@@ -183,7 +183,7 @@ describe("label-sync", () => {
183183
{ name: "bug", color: "ff0000", description: "Bug reports" },
184184
];
185185

186-
const result = await syncLabelsWithCanonical(
186+
// Removed unused variable _result
187187
mockOctokit,
188188
"owner",
189189
"repo",

.jest-skip/labeling.agent.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ const {
22
mockOctokit,
33
mockContext,
44
mockPrPayload,
5-
mockIssuePayload: _mockIssuePayload,
65
setTestEnv,
76
resetTestEnv,
8-
expectCommentPosted: _expectCommentPosted,
97
} = require("../../tests/test-helpers");
108
const { runLabelingAgent } = require("../labeling.agent.js");
119

.jest-skip/status-enforcer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ describe("status-enforcer.js", () => {
770770
* Moved from `tests/utility/status-enforcer.test.js` to consolidate under agents/includes.
771771
* TODO: Consider adding negative tests (duplicate status removal) & dry-run scenarios.
772772
*/
773-
const path = require("path");
773+
// Removed unused variable path
774774

775775
describe("status-enforcer (canonical)", () => {
776776
it("loads without error", () => {

.jest-skip/sync-version.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* TODO: Expand with assertions validating semantic version sync behavior.
55
*/
66
const fs = require("fs");
7-
const path = require("path");
7+
// Removed unused variable path
88

99
describe("sync-version (canonical includes)", () => {
1010
it("loads without error", () => {

.jest-skip/validate-frontmatter.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ invalid: yaml: content
162162

163163
describe("FrontmatterValidator", () => {
164164
let validator;
165-
let logger;
166165
let testSchema;
167166

168167
beforeEach(() => {
@@ -189,7 +188,6 @@ invalid: yaml: content
189188
fs.writeFileSync(schemaPath, JSON.stringify(testSchema, null, 2));
190189

191190
const logPath = path.join(tempDir, "test.log");
192-
logger = new Logger(logPath);
193191
validator = new FrontmatterValidator(schemaPath, logger);
194192
});
195193

@@ -321,7 +319,6 @@ No frontmatter here.`;
321319

322320
if (fs.existsSync(schemaPath)) {
323321
const logPath = path.join(tempDir, "integration.log");
324-
const logger = new Logger(logPath);
325322

326323
expect(() => {
327324
new FrontmatterValidator(schemaPath, logger);

scripts/agents/__tests__/mode-demonstrate-understanding.agent.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* @see ../mode-demonstrate-understanding.agent.js
44
*/
55
// Basic smoke test for mode-demonstrate-understanding.agent.js
6-
const agent = require('../mode-demonstrate-understanding.agent');
6+
const agent = require("../mode-demonstrate-understanding.agent");
77

8-
describe('mode-demonstrate-understanding.agent', () => {
9-
it('should be defined', () => {
8+
describe("mode-demonstrate-understanding.agent", () => {
9+
it("should be defined", () => {
1010
expect(agent).toBeDefined();
1111
});
1212
});

scripts/agents/__tests__/mode-document-reviewer.agent.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* @see ../mode-document-reviewer.agent.js
44
*/
55
// Basic smoke test for mode-document-reviewer.agent.js
6-
const agent = require('../mode-document-reviewer.agent');
6+
const agent = require("../mode-document-reviewer.agent");
77

8-
describe('mode-document-reviewer.agent', () => {
9-
it('should be defined', () => {
8+
describe("mode-document-reviewer.agent", () => {
9+
it("should be defined", () => {
1010
expect(agent).toBeDefined();
1111
});
1212
});

0 commit comments

Comments
 (0)