vibe-coding-master 0.7.35 → 0.7.36
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/README.md
CHANGED
|
@@ -277,10 +277,10 @@ gateway from the native child process. Configure CCR without enabling its
|
|
|
277
277
|
global Claude Code or Claude App takeover if those clients should remain on
|
|
278
278
|
Anthropic.
|
|
279
279
|
|
|
280
|
-
CCR/GPT child processes use
|
|
281
|
-
VCM
|
|
282
|
-
|
|
283
|
-
context override.
|
|
280
|
+
CCR/GPT child processes use a hard context limit and auto-compaction window of
|
|
281
|
+
`258400` tokens. VCM sets Claude Code's proactive compaction threshold to `90%`
|
|
282
|
+
(about `232560` tokens), leaving headroom before the gateway limit. Native
|
|
283
|
+
Claude sessions receive no VCM-owned context override.
|
|
284
284
|
|
|
285
285
|
Resume keeps the provider recorded by the existing Session. Use Restart when
|
|
286
286
|
switching between a native Claude model and `GPT-5.6 Sol (CCR)`. If CCR is
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CCR_GATEWAY_BASE_URL, CCR_GPT_EFFECTIVE_CONTEXT_TOKENS, CCR_GPT_MODEL_ID, createSessionModelOptions, isCcrSessionModel } from "../../shared/types/session.js";
|
|
1
|
+
import { CCR_GATEWAY_BASE_URL, CCR_GPT_AUTO_COMPACT_PERCENT, CCR_GPT_AUTO_COMPACT_WINDOW_TOKENS, CCR_GPT_EFFECTIVE_CONTEXT_TOKENS, CCR_GPT_MODEL_ID, createSessionModelOptions, isCcrSessionModel } from "../../shared/types/session.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { VcmError } from "../errors.js";
|
|
@@ -163,6 +163,8 @@ export function createCcrIntegrationService(deps) {
|
|
|
163
163
|
ANTHROPIC_SMALL_FAST_MODEL: CCR_GPT_MODEL_ID,
|
|
164
164
|
CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY: "1",
|
|
165
165
|
CLAUDE_CODE_MAX_CONTEXT_TOKENS: String(CCR_GPT_EFFECTIVE_CONTEXT_TOKENS),
|
|
166
|
+
CLAUDE_CODE_AUTO_COMPACT_WINDOW: String(CCR_GPT_AUTO_COMPACT_WINDOW_TOKENS),
|
|
167
|
+
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE: String(CCR_GPT_AUTO_COMPACT_PERCENT),
|
|
166
168
|
CLAUDE_CONFIG_DIR: configDir,
|
|
167
169
|
NO_PROXY: noProxy,
|
|
168
170
|
no_proxy: noProxy
|
|
@@ -62,6 +62,8 @@ export const CCR_GATEWAY_BASE_URLS = [
|
|
|
62
62
|
export const CCR_GPT_MODEL_ID = "Codex API/gpt-5.6-sol";
|
|
63
63
|
export const CCR_GPT_SESSION_MODEL = `ccr:${CCR_GPT_MODEL_ID}`;
|
|
64
64
|
export const CCR_GPT_EFFECTIVE_CONTEXT_TOKENS = 258_400;
|
|
65
|
+
export const CCR_GPT_AUTO_COMPACT_WINDOW_TOKENS = CCR_GPT_EFFECTIVE_CONTEXT_TOKENS;
|
|
66
|
+
export const CCR_GPT_AUTO_COMPACT_PERCENT = 90;
|
|
65
67
|
export function isCcrSessionModel(model) {
|
|
66
68
|
return model === CCR_GPT_SESSION_MODEL;
|
|
67
69
|
}
|