Skip to content

Commit 9be2f06

Browse files
authored
Merge pull request RooCodeInc#1275 from RooVetGit/last_message_tokens
Estimate the number of tokens in the last message for sliding window math
2 parents b3c1a9f + e009d5f commit 9be2f06

File tree

8 files changed

+279
-33
lines changed

8 files changed

+279
-33
lines changed

e2e/.vscode-test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { defineConfig } from '@vscode/test-cli';
66

77
export default defineConfig({
88
label: 'integrationTest',
9-
files: 'out/e2e/src/suite/**/*.test.js',
9+
files: 'out/suite/**/*.test.js',
1010
workspaceFolder: '.',
1111
mocha: {
1212
ui: 'tdd',

e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"compile": "tsc -p tsconfig.json",
88
"lint": "eslint src --ext ts",
99
"check-types": "tsc --noEmit",
10-
"test": "npm run compile && npx dotenvx run -f .env.integration -- node ./out/e2e/src/runTest.js",
10+
"test": "npm run compile && npx dotenvx run -f .env.integration -- node ./out/runTest.js",
1111
"ci": "npm run build && npm run test"
1212
},
1313
"dependencies": {},

e2e/src/runTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ async function main() {
66
try {
77
// The folder containing the Extension Manifest package.json
88
// Passed to `--extensionDevelopmentPath`
9-
const extensionDevelopmentPath = path.resolve(__dirname, "../../../../")
9+
const extensionDevelopmentPath = path.resolve(__dirname, "../../")
1010

1111
// The path to the extension test script
1212
// Passed to --extensionTestsPath

e2e/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"useUnknownInCatchVariables": false,
1212
"outDir": "out"
1313
},
14-
"include": ["src", "../src/exports"],
14+
"include": ["src", "../src/exports/cline.d.ts"],
1515
"exclude": [".vscode-test", "**/node_modules/**", "out"]
1616
}

package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@
348348
"sound-play": "^1.1.0",
349349
"string-similarity": "^4.0.4",
350350
"strip-ansi": "^7.1.0",
351+
"js-tiktoken": "^1.0.19",
351352
"tmp": "^0.2.3",
352353
"tree-sitter-wasms": "^0.1.11",
353354
"turndown": "^7.2.0",

0 commit comments

Comments
 (0)