@gitlawb/openclaude 0.2.2 → 0.2.3
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/cli.mjs +37 -15
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -110056,7 +110056,17 @@ var init_openaiContextWindows = __esm(() => {
|
|
|
110056
110056
|
"devstral-latest": 256000,
|
|
110057
110057
|
"ministral-3b-latest": 256000,
|
|
110058
110058
|
"MiniMax-M2.7": 204800,
|
|
110059
|
+
"MiniMax-M2.7-highspeed": 204800,
|
|
110060
|
+
"MiniMax-M2.5": 204800,
|
|
110061
|
+
"MiniMax-M2.5-highspeed": 204800,
|
|
110062
|
+
"MiniMax-M2.1": 204800,
|
|
110063
|
+
"MiniMax-M2.1-highspeed": 204800,
|
|
110059
110064
|
"minimax-m2.7": 204800,
|
|
110065
|
+
"minimax-m2.7-highspeed": 204800,
|
|
110066
|
+
"minimax-m2.5": 204800,
|
|
110067
|
+
"minimax-m2.5-highspeed": 204800,
|
|
110068
|
+
"minimax-m2.1": 204800,
|
|
110069
|
+
"minimax-m2.1-highspeed": 204800,
|
|
110060
110070
|
"google/gemini-2.0-flash": 1048576,
|
|
110061
110071
|
"google/gemini-2.5-pro": 1048576,
|
|
110062
110072
|
"gemini-2.0-flash": 1048576,
|
|
@@ -110142,7 +110152,17 @@ var init_openaiContextWindows = __esm(() => {
|
|
|
110142
110152
|
"mistral-large-latest": 32768,
|
|
110143
110153
|
"mistral-small-latest": 32768,
|
|
110144
110154
|
"MiniMax-M2.7": 131072,
|
|
110155
|
+
"MiniMax-M2.7-highspeed": 131072,
|
|
110156
|
+
"MiniMax-M2.5": 131072,
|
|
110157
|
+
"MiniMax-M2.5-highspeed": 131072,
|
|
110158
|
+
"MiniMax-M2.1": 131072,
|
|
110159
|
+
"MiniMax-M2.1-highspeed": 131072,
|
|
110145
110160
|
"minimax-m2.7": 131072,
|
|
110161
|
+
"minimax-m2.7-highspeed": 131072,
|
|
110162
|
+
"minimax-m2.5": 131072,
|
|
110163
|
+
"minimax-m2.5-highspeed": 131072,
|
|
110164
|
+
"minimax-m2.1": 131072,
|
|
110165
|
+
"minimax-m2.1-highspeed": 131072,
|
|
110146
110166
|
"google/gemini-2.0-flash": 8192,
|
|
110147
110167
|
"google/gemini-2.5-pro": 65536,
|
|
110148
110168
|
"gemini-2.0-flash": 8192,
|
|
@@ -110198,8 +110218,8 @@ function getContextWindowForModel(model, betas) {
|
|
|
110198
110218
|
if (openaiWindow !== undefined) {
|
|
110199
110219
|
return openaiWindow;
|
|
110200
110220
|
}
|
|
110201
|
-
console.error(`[context] Warning: model "${model}" not in context window table — using conservative
|
|
110202
|
-
return
|
|
110221
|
+
console.error(`[context] Warning: model "${model}" not in context window table — using conservative 128k default. ` + "Add it to src/utils/model/openaiContextWindows.ts for accurate compaction.");
|
|
110222
|
+
return OPENAI_FALLBACK_CONTEXT_WINDOW;
|
|
110203
110223
|
}
|
|
110204
110224
|
const cap = getModelCapability(model);
|
|
110205
110225
|
if (cap?.max_input_tokens && cap.max_input_tokens >= 1e5) {
|
|
@@ -110305,7 +110325,7 @@ function getModelMaxOutputTokens(model) {
|
|
|
110305
110325
|
function getMaxThinkingTokensForModel(model) {
|
|
110306
110326
|
return getModelMaxOutputTokens(model).upperLimit - 1;
|
|
110307
110327
|
}
|
|
110308
|
-
var MODEL_CONTEXT_WINDOW_DEFAULT = 200000, COMPACT_MAX_OUTPUT_TOKENS = 20000, MAX_OUTPUT_TOKENS_DEFAULT = 32000, MAX_OUTPUT_TOKENS_UPPER_LIMIT = 64000, CAPPED_DEFAULT_MAX_TOKENS = 8000, ESCALATED_MAX_TOKENS = 64000;
|
|
110328
|
+
var MODEL_CONTEXT_WINDOW_DEFAULT = 200000, OPENAI_FALLBACK_CONTEXT_WINDOW = 128000, COMPACT_MAX_OUTPUT_TOKENS = 20000, MAX_OUTPUT_TOKENS_DEFAULT = 32000, MAX_OUTPUT_TOKENS_UPPER_LIMIT = 64000, CAPPED_DEFAULT_MAX_TOKENS = 8000, ESCALATED_MAX_TOKENS = 64000;
|
|
110309
110329
|
var init_context = __esm(() => {
|
|
110310
110330
|
init_betas();
|
|
110311
110331
|
init_config();
|
|
@@ -113074,7 +113094,7 @@ function printStartupScreen() {
|
|
|
113074
113094
|
const sLen = ` ● ${sL} Ready — type /help to begin`.length;
|
|
113075
113095
|
out.push(boxRow(sRow, W2, sLen));
|
|
113076
113096
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
113077
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}openclaude ${RESET}${rgb(...ACCENT)}v${"0.2.
|
|
113097
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}openclaude ${RESET}${rgb(...ACCENT)}v${"0.2.3"}${RESET}`);
|
|
113078
113098
|
out.push("");
|
|
113079
113099
|
process.stdout.write(out.join(`
|
|
113080
113100
|
`) + `
|
|
@@ -373867,7 +373887,7 @@ function getAnthropicEnvMetadata() {
|
|
|
373867
373887
|
function getBuildAgeMinutes() {
|
|
373868
373888
|
if (false)
|
|
373869
373889
|
;
|
|
373870
|
-
const buildTime = new Date("2026-04-
|
|
373890
|
+
const buildTime = new Date("2026-04-12T18:08:11.921Z").getTime();
|
|
373871
373891
|
if (isNaN(buildTime))
|
|
373872
373892
|
return;
|
|
373873
373893
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -376325,7 +376345,9 @@ function getEffectiveContextWindowSize(model) {
|
|
|
376325
376345
|
contextWindow = Math.min(contextWindow, parsed);
|
|
376326
376346
|
}
|
|
376327
376347
|
}
|
|
376328
|
-
|
|
376348
|
+
const autocompactBuffer = 13000;
|
|
376349
|
+
const effectiveContext = contextWindow - reservedTokensForSummary;
|
|
376350
|
+
return Math.max(effectiveContext, reservedTokensForSummary + autocompactBuffer);
|
|
376329
376351
|
}
|
|
376330
376352
|
function getAutoCompactThreshold(model) {
|
|
376331
376353
|
const effectiveContextWindow = getEffectiveContextWindowSize(model);
|
|
@@ -400792,7 +400814,7 @@ function buildPrimarySection() {
|
|
|
400792
400814
|
}, undefined, false, undefined, this);
|
|
400793
400815
|
return [{
|
|
400794
400816
|
label: "Version",
|
|
400795
|
-
value: "0.2.
|
|
400817
|
+
value: "0.2.3"
|
|
400796
400818
|
}, {
|
|
400797
400819
|
label: "Session name",
|
|
400798
400820
|
value: nameValue
|
|
@@ -467386,7 +467408,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
467386
467408
|
var call59 = async () => {
|
|
467387
467409
|
return {
|
|
467388
467410
|
type: "text",
|
|
467389
|
-
value: `${"99.0.0"} (built ${"2026-04-
|
|
467411
|
+
value: `${"99.0.0"} (built ${"2026-04-12T18:08:11.921Z"})`
|
|
467390
467412
|
};
|
|
467391
467413
|
}, version2, version_default;
|
|
467392
467414
|
var init_version = __esm(() => {
|
|
@@ -541673,7 +541695,7 @@ function WelcomeV2() {
|
|
|
541673
541695
|
dimColor: true,
|
|
541674
541696
|
children: [
|
|
541675
541697
|
"v",
|
|
541676
|
-
"0.2.
|
|
541698
|
+
"0.2.3",
|
|
541677
541699
|
" "
|
|
541678
541700
|
]
|
|
541679
541701
|
}, undefined, true, undefined, this)
|
|
@@ -541873,7 +541895,7 @@ function WelcomeV2() {
|
|
|
541873
541895
|
dimColor: true,
|
|
541874
541896
|
children: [
|
|
541875
541897
|
"v",
|
|
541876
|
-
"0.2.
|
|
541898
|
+
"0.2.3",
|
|
541877
541899
|
" "
|
|
541878
541900
|
]
|
|
541879
541901
|
}, undefined, true, undefined, this)
|
|
@@ -542099,7 +542121,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
542099
542121
|
dimColor: true,
|
|
542100
542122
|
children: [
|
|
542101
542123
|
"v",
|
|
542102
|
-
"0.2.
|
|
542124
|
+
"0.2.3",
|
|
542103
542125
|
" "
|
|
542104
542126
|
]
|
|
542105
542127
|
}, undefined, true, undefined, this);
|
|
@@ -542353,7 +542375,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
542353
542375
|
dimColor: true,
|
|
542354
542376
|
children: [
|
|
542355
542377
|
"v",
|
|
542356
|
-
"0.2.
|
|
542378
|
+
"0.2.3",
|
|
542357
542379
|
" "
|
|
542358
542380
|
]
|
|
542359
542381
|
}, undefined, true, undefined, this);
|
|
@@ -562235,7 +562257,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
562235
562257
|
pendingHookMessages
|
|
562236
562258
|
}, renderAndRun);
|
|
562237
562259
|
}
|
|
562238
|
-
}).version("0.2.
|
|
562260
|
+
}).version("0.2.3 (Open Claude)", "-v, --version", "Output the version number");
|
|
562239
562261
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
562240
562262
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
562241
562263
|
if (canUserConfigureAdvisor()) {
|
|
@@ -562883,7 +562905,7 @@ if (false) {}
|
|
|
562883
562905
|
async function main2() {
|
|
562884
562906
|
const args = process.argv.slice(2);
|
|
562885
562907
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
562886
|
-
console.log(`${"0.2.
|
|
562908
|
+
console.log(`${"0.2.3"} (Open Claude)`);
|
|
562887
562909
|
return;
|
|
562888
562910
|
}
|
|
562889
562911
|
if (args.includes("--provider")) {
|
|
@@ -563007,4 +563029,4 @@ async function main2() {
|
|
|
563007
563029
|
}
|
|
563008
563030
|
main2();
|
|
563009
563031
|
|
|
563010
|
-
//# debugId=
|
|
563032
|
+
//# debugId=72EFBEFBBF676F0464756E2164756E21
|