Skip to content

Commit 8496939

Browse files
committed
fix: lint formatting
1 parent 05a317d commit 8496939

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

packages/plugin/src/features/magic-context/storage-tags.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,14 @@ export function insertTag(
146146
tagNumber: number,
147147
reasoningByteSize: number = 0,
148148
): number {
149-
getInsertTagStatement(db).run(sessionId, messageId, type, byteSize, reasoningByteSize, tagNumber);
149+
getInsertTagStatement(db).run(
150+
sessionId,
151+
messageId,
152+
type,
153+
byteSize,
154+
reasoningByteSize,
155+
tagNumber,
156+
);
150157

151158
return tagNumber;
152159
}

packages/plugin/src/hooks/magic-context/tag-messages.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ export function tagMessages(
172172
contentId,
173173
textOrdinal,
174174
);
175-
const reasoningBytes = textOrdinal === 0 ? getReasoningByteSize(thinkingParts) : 0;
175+
const reasoningBytes =
176+
textOrdinal === 0 ? getReasoningByteSize(thinkingParts) : 0;
176177
const tagId = tagger.assignTag(
177178
sessionId,
178179
contentId,

packages/plugin/src/hooks/magic-context/transform-operations.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { tmpdir } from "node:os";
66
import { join } from "node:path";
77
import { closeDatabase, getTagById, openDatabase } from "../../features/magic-context/storage";
88
import { createTagger } from "../../features/magic-context/tagger";
9-
import { clearOldReasoning, tagMessages } from "./transform-operations";
109
import { byteSize } from "./tag-content-primitives";
10+
import { clearOldReasoning, tagMessages } from "./transform-operations";
1111

1212
type TextPart = { type: "text"; text: string };
1313
type ToolPart = { type: "tool"; callID: string; state: { output: string } };
@@ -69,7 +69,9 @@ describe("tagMessages", () => {
6969
},
7070
{
7171
info: { id: "m-tool", role: "tool" },
72-
parts: [{ type: "tool", callID: "call-1", state: { output: "command output" } }],
72+
parts: [
73+
{ type: "tool", callID: "call-1", state: { output: "command output" } },
74+
],
7375
},
7476
];
7577

0 commit comments

Comments
 (0)