Skip to content

Commit b471819

Browse files
committed
Merge branch 'main' of https://github.com/continuedev/continue into adarsh/enhancement/deduplication
2 parents 16c8288 + ee02d8b commit b471819

File tree

15 files changed

+541
-505
lines changed

15 files changed

+541
-505
lines changed

.github/workflows/submit-github-dependency-graph.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Submit Gradle Dependency Graph For Dependabot
22

33
on:
44
push:
5-
branches: ['main']
5+
branches: ["main"]
66

77
permissions:
88
contents: write
@@ -11,15 +11,15 @@ jobs:
1111
dependency-submission:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout sources
15-
uses: actions/checkout@v4
16-
- name: Setup Java
17-
uses: actions/setup-java@v4
18-
with:
19-
distribution: 'temurin'
20-
java-version: 17
21-
- name: Generate and submit dependency graph
22-
uses: gradle/actions/dependency-submission@v4
23-
with:
24-
# The gradle project is not in the root of the repository.
25-
build-root-directory: extensions/intellij
14+
- name: Checkout sources
15+
uses: actions/checkout@v4
16+
- name: Setup Java
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: "temurin"
20+
java-version: 17
21+
- name: Generate and submit dependency graph
22+
uses: gradle/actions/dependency-submission@v4
23+
with:
24+
# The gradle project is not in the root of the repository.
25+
build-root-directory: extensions/intellij

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", () => {

0 commit comments

Comments
 (0)