stratagem-x7 0.3.37 → 0.3.39
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 +24 -40
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -112286,18 +112286,18 @@ var init_configs = __esm(() => {
|
|
|
112286
112286
|
opencode: "gpt-5.4"
|
|
112287
112287
|
};
|
|
112288
112288
|
CLAUDE_OPUS_4_7_CONFIG = {
|
|
112289
|
-
firstParty: "claude-opus-4-7",
|
|
112289
|
+
firstParty: "claude-opus-4-7[1m]",
|
|
112290
112290
|
bedrock: "us.anthropic.claude-opus-4-7-v1",
|
|
112291
112291
|
vertex: "claude-opus-4-7",
|
|
112292
112292
|
foundry: "claude-opus-4-7",
|
|
112293
112293
|
openai: "gpt-4o",
|
|
112294
112294
|
gemini: "gemini-2.5-pro-preview-03-25",
|
|
112295
112295
|
github: "github:copilot",
|
|
112296
|
-
codex: "gpt-5.
|
|
112296
|
+
codex: "gpt-5.4",
|
|
112297
112297
|
"nvidia-nim": "nvidia/llama-3.1-nemotron-70b-instruct",
|
|
112298
112298
|
minimax: "MiniMax-M2.5",
|
|
112299
112299
|
mistral: "devstral-latest",
|
|
112300
|
-
opencode: "gpt-5.
|
|
112300
|
+
opencode: "gpt-5.4"
|
|
112301
112301
|
};
|
|
112302
112302
|
CLAUDE_SONNET_4_6_CONFIG = {
|
|
112303
112303
|
firstParty: "claude-sonnet-4-6",
|
|
@@ -113902,7 +113902,7 @@ var init_openaiContextWindows = __esm(() => {
|
|
|
113902
113902
|
"github:copilot:claude-sonnet-4.6": 200000,
|
|
113903
113903
|
"github:copilot:claude-opus-4": 200000,
|
|
113904
113904
|
"github:copilot:claude-opus-4.6": 200000,
|
|
113905
|
-
"github:copilot:claude-opus-4.7":
|
|
113905
|
+
"github:copilot:claude-opus-4.7": 1e6,
|
|
113906
113906
|
"github:copilot:gpt-3.5-turbo": 16384,
|
|
113907
113907
|
"github:copilot:gpt-4": 32768,
|
|
113908
113908
|
"github:copilot:gpt-4-0125-preview": 128000,
|
|
@@ -113925,7 +113925,6 @@ var init_openaiContextWindows = __esm(() => {
|
|
|
113925
113925
|
"github:copilot:grok-code-fast-1": 256000,
|
|
113926
113926
|
"github_copilot/claude-sonnet-4.6": 200000,
|
|
113927
113927
|
"github_copilot/claude-opus-4.6": 200000,
|
|
113928
|
-
"github_copilot/claude-opus-4.7": 200000,
|
|
113929
113928
|
"github_copilot/claude-haiku-4.5": 144000,
|
|
113930
113929
|
"github_copilot/gpt-4.1": 128000,
|
|
113931
113930
|
"github_copilot/gpt-4o": 128000,
|
|
@@ -114068,7 +114067,6 @@ var init_openaiContextWindows = __esm(() => {
|
|
|
114068
114067
|
"github:copilot:grok-code-fast-1": 64000,
|
|
114069
114068
|
"github_copilot/claude-sonnet-4.6": 32000,
|
|
114070
114069
|
"github_copilot/claude-opus-4.6": 32000,
|
|
114071
|
-
"github_copilot/claude-opus-4.7": 32000,
|
|
114072
114070
|
"github_copilot/claude-haiku-4.5": 32768,
|
|
114073
114071
|
"github_copilot/gpt-4.1": 16384,
|
|
114074
114072
|
"github_copilot/gpt-4o": 4096,
|
|
@@ -116408,7 +116406,7 @@ function getSmallFastModel() {
|
|
|
116408
116406
|
return getDefaultHaikuModel();
|
|
116409
116407
|
}
|
|
116410
116408
|
function isNonCustomOpusModel(model) {
|
|
116411
|
-
return model === getModelStrings2().opus40 || model === getModelStrings2().opus41 || model === getModelStrings2().opus45 || model === getModelStrings2().opus46
|
|
116409
|
+
return model === getModelStrings2().opus40 || model === getModelStrings2().opus41 || model === getModelStrings2().opus45 || model === getModelStrings2().opus46;
|
|
116412
116410
|
}
|
|
116413
116411
|
function getUserSpecifiedModelSetting() {
|
|
116414
116412
|
let specifiedModel;
|
|
@@ -116458,7 +116456,7 @@ function getDefaultOpusModel() {
|
|
|
116458
116456
|
if (getAPIProvider() !== "firstParty") {
|
|
116459
116457
|
return getModelStrings2().opus46;
|
|
116460
116458
|
}
|
|
116461
|
-
return getModelStrings2().
|
|
116459
|
+
return getModelStrings2().opus47;
|
|
116462
116460
|
}
|
|
116463
116461
|
function getDefaultSonnetModel() {
|
|
116464
116462
|
if (process.env.ANTHROPIC_DEFAULT_SONNET_MODEL) {
|
|
@@ -116548,9 +116546,6 @@ function getDefaultMainLoopModel() {
|
|
|
116548
116546
|
}
|
|
116549
116547
|
function firstPartyNameToCanonical(name) {
|
|
116550
116548
|
name = name.toLowerCase();
|
|
116551
|
-
if (name.includes("claude-opus-4-7")) {
|
|
116552
|
-
return "claude-opus-4-7";
|
|
116553
|
-
}
|
|
116554
116549
|
if (name.includes("claude-opus-4-6")) {
|
|
116555
116550
|
return "claude-opus-4-6";
|
|
116556
116551
|
}
|
|
@@ -116661,7 +116656,6 @@ function getPublicModelDisplayName(model) {
|
|
|
116661
116656
|
"gpt-5.1-codex-mini": "GPT-5.1 Codex mini",
|
|
116662
116657
|
"gpt-4o": "GPT-4o",
|
|
116663
116658
|
"gpt-4.1": "GPT-4.1",
|
|
116664
|
-
"claude-opus-4.7": "Claude Opus 4.7",
|
|
116665
116659
|
"claude-opus-4.6": "Claude Opus 4.6",
|
|
116666
116660
|
"claude-opus-4.5": "Claude Opus 4.5",
|
|
116667
116661
|
"claude-sonnet-4.6": "Claude Sonnet 4.6",
|
|
@@ -116682,10 +116676,6 @@ function getPublicModelDisplayName(model) {
|
|
|
116682
116676
|
return "GPT-5.4";
|
|
116683
116677
|
case "gpt-5.3-codex-spark":
|
|
116684
116678
|
return "GPT-5.3 Codex Spark";
|
|
116685
|
-
case getModelStrings2().opus47:
|
|
116686
|
-
return "Opus 4.7";
|
|
116687
|
-
case getModelStrings2().opus47 + "[1m]":
|
|
116688
|
-
return "Opus 4.7 (1M context)";
|
|
116689
116679
|
case getModelStrings2().opus46:
|
|
116690
116680
|
return "Opus 4.6";
|
|
116691
116681
|
case getModelStrings2().opus46 + "[1m]":
|
|
@@ -116835,9 +116825,6 @@ function getMarketingNameForModel(modelId) {
|
|
|
116835
116825
|
}
|
|
116836
116826
|
const has1m = modelId.toLowerCase().includes("[1m]");
|
|
116837
116827
|
const canonical = getCanonicalName(modelId);
|
|
116838
|
-
if (canonical.includes("claude-opus-4-7")) {
|
|
116839
|
-
return has1m ? "Opus 4.7 (with 1M context)" : "Opus 4.7";
|
|
116840
|
-
}
|
|
116841
116828
|
if (canonical.includes("claude-opus-4-6")) {
|
|
116842
116829
|
return has1m ? "Opus 4.6 (with 1M context)" : "Opus 4.6";
|
|
116843
116830
|
}
|
|
@@ -188500,7 +188487,7 @@ function modelSupportsAdaptiveThinking(model) {
|
|
|
188500
188487
|
return supported3P;
|
|
188501
188488
|
}
|
|
188502
188489
|
const canonical = getCanonicalName(model);
|
|
188503
|
-
if (canonical.includes("opus-4-
|
|
188490
|
+
if (canonical.includes("opus-4-6") || canonical.includes("sonnet-4-6")) {
|
|
188504
188491
|
return true;
|
|
188505
188492
|
}
|
|
188506
188493
|
if (canonical.includes("opus") || canonical.includes("sonnet") || canonical.includes("haiku")) {
|
|
@@ -350483,7 +350470,7 @@ function getAnthropicEnvMetadata() {
|
|
|
350483
350470
|
function getBuildAgeMinutes() {
|
|
350484
350471
|
if (false)
|
|
350485
350472
|
;
|
|
350486
|
-
const buildTime = new Date("2026-05-
|
|
350473
|
+
const buildTime = new Date("2026-05-07T03:02:33.762Z").getTime();
|
|
350487
350474
|
if (isNaN(buildTime))
|
|
350488
350475
|
return;
|
|
350489
350476
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -417626,7 +417613,7 @@ function buildPrimarySection() {
|
|
|
417626
417613
|
}, undefined, false, undefined, this);
|
|
417627
417614
|
return [{
|
|
417628
417615
|
label: "Version",
|
|
417629
|
-
value: "0.3.
|
|
417616
|
+
value: "0.3.39"
|
|
417630
417617
|
}, {
|
|
417631
417618
|
label: "Session name",
|
|
417632
417619
|
value: nameValue
|
|
@@ -418849,8 +418836,8 @@ function getOpus46Option(fastMode = false) {
|
|
|
418849
418836
|
return {
|
|
418850
418837
|
value: is3P ? getModelStrings2().opus46 : "opus",
|
|
418851
418838
|
label: "Opus",
|
|
418852
|
-
description: `Opus 4.
|
|
418853
|
-
descriptionForModel: "Opus 4.
|
|
418839
|
+
description: `Opus 4.7 · Most capable for complex work${getOpus46PricingSuffix(fastMode)}`,
|
|
418840
|
+
descriptionForModel: "Opus 4.7 - most capable for complex work"
|
|
418854
418841
|
};
|
|
418855
418842
|
}
|
|
418856
418843
|
function getSonnet46_1MOption() {
|
|
@@ -418867,8 +418854,8 @@ function getOpus46_1MOption(fastMode = false) {
|
|
|
418867
418854
|
return {
|
|
418868
418855
|
value: is3P ? getModelStrings2().opus46 + "[1m]" : "opus[1m]",
|
|
418869
418856
|
label: "Opus (1M context)",
|
|
418870
|
-
description: `Opus 4.
|
|
418871
|
-
descriptionForModel: "Opus 4.
|
|
418857
|
+
description: `Opus 4.7 for long sessions${getOpus46PricingSuffix(fastMode)}`,
|
|
418858
|
+
descriptionForModel: "Opus 4.7 with 1M context window - for long sessions with large codebases"
|
|
418872
418859
|
};
|
|
418873
418860
|
}
|
|
418874
418861
|
function getCustomHaikuOption() {
|
|
@@ -418909,7 +418896,7 @@ function getMaxOpusOption(fastMode = false) {
|
|
|
418909
418896
|
return {
|
|
418910
418897
|
value: "opus",
|
|
418911
418898
|
label: "Opus",
|
|
418912
|
-
description: `Opus 4.
|
|
418899
|
+
description: `Opus 4.7 · Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`
|
|
418913
418900
|
};
|
|
418914
418901
|
}
|
|
418915
418902
|
function getMaxSonnet46_1MOption() {
|
|
@@ -418926,7 +418913,7 @@ function getMaxOpus46_1MOption(fastMode = false) {
|
|
|
418926
418913
|
return {
|
|
418927
418914
|
value: "opus[1m]",
|
|
418928
418915
|
label: "Opus (1M context)",
|
|
418929
|
-
description: `Opus 4.
|
|
418916
|
+
description: `Opus 4.7 with 1M context${billingInfo}${getOpus46PricingSuffix(fastMode)}`
|
|
418930
418917
|
};
|
|
418931
418918
|
}
|
|
418932
418919
|
function getMergedOpus1MOption(fastMode = false) {
|
|
@@ -418934,15 +418921,15 @@ function getMergedOpus1MOption(fastMode = false) {
|
|
|
418934
418921
|
return {
|
|
418935
418922
|
value: is3P ? getModelStrings2().opus46 + "[1m]" : "opus[1m]",
|
|
418936
418923
|
label: "Opus (1M context)",
|
|
418937
|
-
description: `Opus 4.
|
|
418938
|
-
descriptionForModel: "Opus 4.
|
|
418924
|
+
description: `Opus 4.7 with 1M context · Most capable for complex work${!is3P && fastMode ? getOpus46PricingSuffix(fastMode) : ""}`,
|
|
418925
|
+
descriptionForModel: "Opus 4.7 with 1M context - most capable for complex work"
|
|
418939
418926
|
};
|
|
418940
418927
|
}
|
|
418941
418928
|
function getOpusPlanOption() {
|
|
418942
418929
|
return {
|
|
418943
418930
|
value: "opusplan",
|
|
418944
418931
|
label: "Opus Plan Mode",
|
|
418945
|
-
description: "Use Opus 4.
|
|
418932
|
+
description: "Use Opus 4.7 in plan mode, Sonnet 4.6 otherwise"
|
|
418946
418933
|
};
|
|
418947
418934
|
}
|
|
418948
418935
|
function getCodexPlanOption() {
|
|
@@ -457320,7 +457307,7 @@ function getStartupLines(termWidth) {
|
|
|
457320
457307
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
457321
457308
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
457322
457309
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
457323
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
457310
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.39"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
457324
457311
|
out.push("");
|
|
457325
457312
|
return out;
|
|
457326
457313
|
}
|
|
@@ -485993,7 +485980,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
485993
485980
|
var call60 = async () => {
|
|
485994
485981
|
return {
|
|
485995
485982
|
type: "text",
|
|
485996
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
485983
|
+
value: `${"99.0.0"} (built ${"2026-05-07T03:02:33.762Z"})`
|
|
485997
485984
|
};
|
|
485998
485985
|
}, version2, version_default;
|
|
485999
485986
|
var init_version = __esm(() => {
|
|
@@ -488611,9 +488598,6 @@ function get3PFallbackSuggestion(model) {
|
|
|
488611
488598
|
return;
|
|
488612
488599
|
}
|
|
488613
488600
|
const lowerModel = model.toLowerCase();
|
|
488614
|
-
if (lowerModel.includes("opus-4-7") || lowerModel.includes("opus_4_7")) {
|
|
488615
|
-
return getModelStrings2().opus46;
|
|
488616
|
-
}
|
|
488617
488601
|
if (lowerModel.includes("opus-4-6") || lowerModel.includes("opus_4_6")) {
|
|
488618
488602
|
return getModelStrings2().opus41;
|
|
488619
488603
|
}
|
|
@@ -554729,7 +554713,7 @@ function WelcomeV2() {
|
|
|
554729
554713
|
dimColor: true,
|
|
554730
554714
|
children: [
|
|
554731
554715
|
"v",
|
|
554732
|
-
"0.3.
|
|
554716
|
+
"0.3.39",
|
|
554733
554717
|
" "
|
|
554734
554718
|
]
|
|
554735
554719
|
}, undefined, true, undefined, this)
|
|
@@ -574186,7 +574170,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
574186
574170
|
pendingHookMessages
|
|
574187
574171
|
}, renderAndRun);
|
|
574188
574172
|
}
|
|
574189
|
-
}).version("0.3.
|
|
574173
|
+
}).version("0.3.39 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
574190
574174
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
574191
574175
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
574192
574176
|
if (canUserConfigureAdvisor()) {
|
|
@@ -574647,7 +574631,7 @@ if (false) {}
|
|
|
574647
574631
|
async function main2() {
|
|
574648
574632
|
const args = process.argv.slice(2);
|
|
574649
574633
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
574650
|
-
console.log(`${"0.3.
|
|
574634
|
+
console.log(`${"0.3.39"} (STRATAGEM X7)`);
|
|
574651
574635
|
return;
|
|
574652
574636
|
}
|
|
574653
574637
|
if (args.includes("--provider")) {
|
|
@@ -574769,4 +574753,4 @@ async function main2() {
|
|
|
574769
574753
|
}
|
|
574770
574754
|
main2();
|
|
574771
574755
|
|
|
574772
|
-
//# debugId=
|
|
574756
|
+
//# debugId=0415C0DAEC6CC33B64756E2164756E21
|