Skip to content

Commit ecdb4f5

Browse files
feat: run prettier
1 parent 2b40f2d commit ecdb4f5

File tree

8 files changed

+1118
-436
lines changed

8 files changed

+1118
-436
lines changed

core/config/usesFreeTrialApiKey.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const mockDecodeSecretLocation = jest.fn();
88
jest.unstable_mockModule("@continuedev/config-yaml", () => ({
99
SecretType: {
1010
User: "user",
11-
Organization: "organization",
11+
Organization: "organization",
1212
FreeTrial: "free_trial",
1313
},
1414
decodeSecretLocation: mockDecodeSecretLocation,
@@ -341,4 +341,4 @@ test("usesFreeTrialApiKey should handle empty modelsByRole object", () => {
341341
const result = usesFreeTrialApiKey(config);
342342
expect(result).toBe(false);
343343
expect(mockDecodeSecretLocation).not.toHaveBeenCalled();
344-
});
344+
});

core/data/log.test.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ const TEST_EVENT: DevDataLogEvent = {
2020
};
2121

2222
const TEST_AGENT_INTERACTION_EVENT: DevDataLogEvent = {
23-
name: 'chatInteraction',
23+
name: "chatInteraction",
2424
data: {
2525
prompt: "Hello, world!",
2626
completion: "Hello, world!",
2727
modelProvider: "openai",
2828
modelTitle: "gpt-4",
2929
sessionId: "1234",
30-
tools: ['test-tool1']
30+
tools: ["test-tool1"],
3131
},
32-
}
33-
32+
};
33+
3434
const SCHEMA = "0.2.0";
3535

3636
describe("DataLogger", () => {
@@ -171,22 +171,25 @@ describe("DataLogger", () => {
171171
expect(fileContent).toContain('"eventName":"tokensGenerated"');
172172
});
173173

174-
it('should write agent interaction data to local file', async () => {
174+
it("should write agent interaction data to local file", async () => {
175175
// Call the method to log data locally
176176
await dataLogger.logLocalData(TEST_AGENT_INTERACTION_EVENT);
177177

178178
// Verify the file was created
179-
const filepath = getDevDataFilePath(TEST_AGENT_INTERACTION_EVENT.name, SCHEMA);
179+
const filepath = getDevDataFilePath(
180+
TEST_AGENT_INTERACTION_EVENT.name,
181+
SCHEMA,
182+
);
180183
expect(fs.existsSync(filepath)).toBe(true);
181184

182185
// Read file contents and verify
183186
const fileContent = fs.readFileSync(filepath, "utf8");
184-
console.log('debug1 filecontent', fileContent)
187+
console.log("debug1 filecontent", fileContent);
185188
expect(fileContent).toContain('"eventName":"chatInteraction"');
186189
expect(fileContent).toContain('"prompt":"Hello, world!"');
187190
expect(fileContent).toContain('"completion":"Hello, world!"');
188191
expect(fileContent).toContain('"tools":["test-tool1"]');
189-
})
192+
});
190193
});
191194

192195
describe("logDevData", () => {

gui/src/components/StyledMarkdownPreview/markdown.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ body[data-color-mode*="light"] {
194194
}
195195
.wmde-markdown {
196196
-webkit-text-size-adjust: 100%;
197-
font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif,
197+
font-family:
198+
-apple-system, "Segoe UI", Helvetica, Arial, sans-serif,
198199
"Apple Color Emoji", "Segoe UI Emoji";
199200
font-size: 16px;
200201
line-height: 1.5;

gui/src/components/gui/Shortcut.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
}
77

88
.keyboard-key-normal {
9-
font-family: "JetBrains Mono", "SF Mono", Monaco, Menlo, Consolas,
10-
"Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New",
11-
monospace;
9+
font-family:
10+
"JetBrains Mono", "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono",
11+
"Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
1212
font-weight: 300;
1313
}
1414

gui/src/redux/thunks/streamNormalInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const streamNormalInput = createAsyncThunk<
8282
modelProvider: selectedChatModel.underlyingProviderName,
8383
modelTitle: selectedChatModel.title,
8484
sessionId: state.session.id,
85-
...(state.session.mode === 'agent' && {
85+
...(state.session.mode === "agent" && {
8686
tools: activeTools.map((tool) => tool.function.name),
8787
}),
8888
},

0 commit comments

Comments
 (0)