Clear repository lint warnings

This commit is contained in:
ZacharyZhang-NY committed 2026-04-22 20:47:01 -04:00
1 parent b84162246a
commit cbef47f1ad
7 files changed
+12 -16

No files matched your search

+5 -5
View File
@@ -110,7 +110,7 @@ describe("Edge Case: Session Rotation During Execution (D-05.3)", () => {
});
it("rotation triggered when run count exceeds maxRuns threshold", () => {
const { companyId, agentId, taskId } = scaffold(db);
const { companyId, agentId } = scaffold(db);
const sessionService = createSessionManagementService({ db, logger: mockLogger });
// Create a session
@@ -137,7 +137,7 @@ describe("Edge Case: Session Rotation During Execution (D-05.3)", () => {
});
it("rotation triggered when token count exceeds maxTokens threshold", () => {
const { companyId, agentId, taskId } = scaffold(db);
const { companyId, agentId } = scaffold(db);
const sessionService = createSessionManagementService({ db, logger: mockLogger });
const sessionId = db.core.tasks.createNewSession({
@@ -214,7 +214,7 @@ describe("Edge Case: Session Rotation During Execution (D-05.3)", () => {
});
it("new session created after rotation with clean counters", () => {
const { companyId, agentId, taskId } = scaffold(db);
const { companyId, agentId } = scaffold(db);
// Create initial session
const oldSessionId = db.core.tasks.createNewSession({
@@ -249,7 +249,7 @@ describe("Edge Case: Session Rotation During Execution (D-05.3)", () => {
});
it("claude connector triggers rotation under pi-mono (no native exemption)", () => {
const { companyId, agentId, taskId } = scaffold(db, "gemini-cli");
const { companyId, agentId } = scaffold(db, "gemini-cli");
const sessionService = createSessionManagementService({ db, logger: mockLogger });
const sessionId = db.core.tasks.createNewSession({
@@ -271,7 +271,7 @@ describe("Edge Case: Session Rotation During Execution (D-05.3)", () => {
});
it("codex connector triggers rotation under pi-mono (no native exemption)", () => {
const { companyId, agentId, taskId } = scaffold(db, "gemini-cli");
const { companyId, agentId } = scaffold(db, "gemini-cli");
const sessionService = createSessionManagementService({ db, logger: mockLogger });
const sessionId = db.core.tasks.createNewSession({
+3 -3
View File
@@ -400,7 +400,7 @@ describe("session management service", () => {
// -------------------------------------------------------------------------
describe("token accumulation", () => {
it("accumulateTokenUsage calls db.incrementSessionUsage with correct args", () => {
const { taskId, companyId, agentId } = scaffold(db);
const { companyId, agentId } = scaffold(db);
const sessionId = db.core.tasks.createNewSession({
companyId,
agentId,
@@ -467,7 +467,7 @@ describe("session management service", () => {
// -------------------------------------------------------------------------
describe("session rotation", () => {
it("rotateSession archives old session, creates new, copies session_params", () => {
const { taskId, companyId, agentId } = scaffold(db);
const { companyId, agentId } = scaffold(db);
const oldSessionId = db.core.tasks.createNewSession({
companyId,
agentId,
@@ -543,7 +543,7 @@ describe("session management service", () => {
// -------------------------------------------------------------------------
describe("usage delta", () => {
it("getUsageDelta returns token difference between snapshot and current totals", () => {
const { taskId, companyId, agentId } = scaffold(db);
const { companyId, agentId } = scaffold(db);
const sessionId = db.core.tasks.createNewSession({
companyId,
agentId,