Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/estimate-code-context-at-plan-exit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kilocode/cli": patch
---

Show the estimated Code-mode context usage and recommend a fresh session when continuing a plan is near automatic compaction.
2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/ar.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/br.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/bs.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/da.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ export const dict = {
"plan.followup.question": "Bereit zur Umsetzung?",
"plan.followup.answer.newSession": "Neue Sitzung starten",
"plan.followup.answer.newSession.description": "In einer neuen Sitzung mit leerem Kontext umsetzen",
"plan.followup.answer.newSession.recommended.description": "In einer neuen Sitzung mit leerem Kontext umsetzen (Empfohlen)",
"plan.followup.answer.continue": "Hier fortfahren",
"plan.followup.answer.continue.description": "Den Plan in dieser Sitzung umsetzen",
"plan.followup.answer.continue.estimated.description": "Den Plan in dieser Sitzung umsetzen ({{0}}% des Code-Kontextes verwendet)",
"plan.followup.answer.keepRefining": "Weiter verfeinern",
"plan.followup.answer.keepRefining.description": "Weiter planen, ohne jetzt zu implementieren",

Expand Down
2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ export const dict = {
"plan.followup.question": "Ready to implement?",
"plan.followup.answer.newSession": "Start new session",
"plan.followup.answer.newSession.description": "Implement in a fresh session with a clean context",
"plan.followup.answer.newSession.recommended.description": "Implement in a fresh session with a clean context (Recommended)",
"plan.followup.answer.continue": "Continue here",
"plan.followup.answer.continue.description": "Implement the plan in this session",
"plan.followup.answer.continue.estimated.description": "Implement the plan in this session (using {{0}}% of Code mode context)",
"plan.followup.answer.keepRefining": "Keep refining",
"plan.followup.answer.keepRefining.description": "Keep planning without implementing yet",

Expand Down
2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/es.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/fr.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/it.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/ja.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/ko.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/nl.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/no.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/pl.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/ru.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/th.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/tr.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/uk.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/zh.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/kilo-i18n/src/zht.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,7 @@ object KiloCliDataParser {
description = oo.str("description") ?: "",
labelKey = oo.str("labelKey"),
descriptionKey = oo.str("descriptionKey"),
descriptionArgs = oo["descriptionArgs"]?.arr()?.mapNotNull { it.jsonPrimitive.contentOrNull } ?: emptyList(),
mode = oo.str("mode"),
)
} ?: emptyList()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ class KiloCliDataParserTest {
"labelKey": "plan.followup.answer.continue",
"description": "Implement the plan in this session",
"descriptionKey": "plan.followup.answer.continue.description",
"descriptionArgs": ["75"],
"mode": "code"
}]
}],
Expand All @@ -930,6 +931,7 @@ class KiloCliDataParserTest {
val opt = item.options.single()
assertEquals("plan.followup.answer.continue", opt.labelKey)
assertEquals("plan.followup.answer.continue.description", opt.descriptionKey)
assertEquals(listOf("75"), opt.descriptionArgs)
assertEquals("code", opt.mode)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ object KiloBundle : DynamicBundle(BUNDLE) {
return getMessage(key, *params)
}

fun optional(key: String): String? {
fun optional(key: String, vararg params: Any): String? {
if (!containsKey(key)) return null
return getMessage(key)
return getMessage(key, *params)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2469,6 +2469,7 @@ private fun toQuestion(dto: QuestionRequestDto): Question {
description = opt.description,
labelKey = opt.labelKey,
descriptionKey = opt.descriptionKey,
descriptionArgs = opt.descriptionArgs,
mode = opt.mode,
)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ data class QuestionOption(
val description: String,
val labelKey: String? = null,
val descriptionKey: String? = null,
val descriptionArgs: List<String> = emptyList(),
val mode: String? = null,
)
Loading