osborn 0.9.16 → 0.9.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/claude-llm.js +5 -2
- package/package.json +1 -1
package/dist/claude-llm.js
CHANGED
|
@@ -593,8 +593,11 @@ export class ClaudeLLM extends llm.LLM {
|
|
|
593
593
|
* @param callbacks - Event callbacks for the background consumer
|
|
594
594
|
*/
|
|
595
595
|
pushMessage(userText, sdkOptions, callbacks) {
|
|
596
|
-
//
|
|
597
|
-
|
|
596
|
+
// Auto-compact threshold — fires PreCompact when context fills to this %.
|
|
597
|
+
// Higher = uses more of the window before compacting (more context retained
|
|
598
|
+
// per turn, but less headroom for the next reply). 85% is the sweet spot
|
|
599
|
+
// before Claude starts hard-capping replies near the limit.
|
|
600
|
+
process.env.CLAUDE_AUTOCOMPACT_PCT_OVERRIDE = '85';
|
|
598
601
|
const userMessage = {
|
|
599
602
|
type: 'user',
|
|
600
603
|
message: { role: 'user', content: [{ type: 'text', text: userText }] },
|