Skip to content

Commit a7472e6

Browse files
committed
Merge branch 'main' into cte/benchmark-monorepo
2 parents b27189f + a414c7d commit a7472e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2902
-1889
lines changed

.changeset/lazy-ducks-hang.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Show requesty key balance on the settings screen

.changeset/lucky-hairs-join.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Wrangle our settings-related types and add support for settings import / export

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,5 @@
448448
"webview-ui/**/*.{ts,tsx}": [
449449
"npx eslint -c webview-ui/.eslintrc.json --max-warnings=0 --fix"
450450
]
451-
},
452-
"packageManager": "[email protected]+sha512.cdf928fca20832cd59ec53826492b7dc25dc524d4370b6b4adbf65803d32efaa6c1c88147c0ae4e8d579a6c9eec715757b50d4fa35eea179d868eada4ed043af"
451+
}
453452
}

src/core/Cline.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ export class Cline extends EventEmitter<ClineEvents> {
994994
}
995995
}
996996

997-
const { terminalOutputLineLimit } = (await this.providerRef.deref()?.getState()) ?? {}
997+
const { terminalOutputLineLimit = 500 } = (await this.providerRef.deref()?.getState()) ?? {}
998998

999999
process.on("line", (line) => {
10001000
if (!didContinue) {
@@ -2339,7 +2339,7 @@ export class Cline extends EventEmitter<ClineEvents> {
23392339
}
23402340

23412341
// Get the maxReadFileLine setting
2342-
const { maxReadFileLine } = (await this.providerRef.deref()?.getState()) ?? {}
2342+
const { maxReadFileLine = 500 } = (await this.providerRef.deref()?.getState()) ?? {}
23432343

23442344
// Count total lines in the file
23452345
let totalLines = 0
@@ -2480,13 +2480,14 @@ export class Cline extends EventEmitter<ClineEvents> {
24802480
this.consecutiveMistakeCount = 0
24812481
const absolutePath = path.resolve(this.cwd, relDirPath)
24822482
const [files, didHitLimit] = await listFiles(absolutePath, recursive, 200)
2483-
const { showRooIgnoredFiles } = (await this.providerRef.deref()?.getState()) ?? {}
2483+
const { showRooIgnoredFiles = true } =
2484+
(await this.providerRef.deref()?.getState()) ?? {}
24842485
const result = formatResponse.formatFilesList(
24852486
absolutePath,
24862487
files,
24872488
didHitLimit,
24882489
this.rooIgnoreController,
2489-
showRooIgnoredFiles ?? true,
2490+
showRooIgnoredFiles,
24902491
)
24912492
const completeMessage = JSON.stringify({
24922493
...sharedMessageProps,
@@ -3759,15 +3760,16 @@ export class Cline extends EventEmitter<ClineEvents> {
37593760
async getEnvironmentDetails(includeFileDetails: boolean = false) {
37603761
let details = ""
37613762

3762-
const { terminalOutputLineLimit, maxWorkspaceFiles } = (await this.providerRef.deref()?.getState()) ?? {}
3763+
const { terminalOutputLineLimit = 500, maxWorkspaceFiles = 200 } =
3764+
(await this.providerRef.deref()?.getState()) ?? {}
37633765

37643766
// It could be useful for cline to know if the user went from one or no file to another between messages, so we always include this context
37653767
details += "\n\n# VSCode Visible Files"
37663768
const visibleFilePaths = vscode.window.visibleTextEditors
37673769
?.map((editor) => editor.document?.uri?.fsPath)
37683770
.filter(Boolean)
37693771
.map((absolutePath) => path.relative(this.cwd, absolutePath))
3770-
.slice(0, maxWorkspaceFiles ?? 200)
3772+
.slice(0, maxWorkspaceFiles)
37713773

37723774
// Filter paths through rooIgnoreController
37733775
const allowedVisibleFiles = this.rooIgnoreController
@@ -3979,7 +3981,7 @@ export class Cline extends EventEmitter<ClineEvents> {
39793981
} else {
39803982
const maxFiles = maxWorkspaceFiles ?? 200
39813983
const [files, didHitLimit] = await listFiles(this.cwd, true, maxFiles)
3982-
const { showRooIgnoredFiles } = (await this.providerRef.deref()?.getState()) ?? {}
3984+
const { showRooIgnoredFiles = true } = (await this.providerRef.deref()?.getState()) ?? {}
39833985
const result = formatResponse.formatFilesList(
39843986
this.cwd,
39853987
files,

src/core/config/ConfigManager.ts

Lines changed: 0 additions & 260 deletions
This file was deleted.

0 commit comments

Comments
 (0)