Clear repository lint warnings
This commit is contained in:
1 parent
b84162246a
commit
cbef47f1ad
7 files changed
+12
-16
No files matched your search
@@ -432,7 +432,7 @@ describe("Process Recovery -- Context Preservation (D-02)", () => {
|
||||
|
||||
it("session handoff markdown generated on crash", () => {
|
||||
const s = scaffold(db);
|
||||
const { taskId, runId } = createAndStartRun(db, {
|
||||
const { runId } = createAndStartRun(db, {
|
||||
companyId: s.companyId,
|
||||
agentId: s.agentId,
|
||||
workspaceId: s.workspaceId,
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user