stratagem-x7 0.3.38 → 0.3.40
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 -20
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -112143,7 +112143,7 @@ var init_bedrock = __esm(() => {
|
|
|
112143
112143
|
});
|
|
112144
112144
|
|
|
112145
112145
|
// src/utils/model/configs.ts
|
|
112146
|
-
var CLAUDE_3_7_SONNET_CONFIG, CLAUDE_3_5_V2_SONNET_CONFIG, CLAUDE_3_5_HAIKU_CONFIG, CLAUDE_HAIKU_4_5_CONFIG, CLAUDE_SONNET_4_CONFIG, CLAUDE_SONNET_4_5_CONFIG, CLAUDE_OPUS_4_CONFIG, CLAUDE_OPUS_4_1_CONFIG, CLAUDE_OPUS_4_5_CONFIG, CLAUDE_OPUS_4_6_CONFIG, CLAUDE_SONNET_4_6_CONFIG, ALL_MODEL_CONFIGS, CANONICAL_MODEL_IDS, CANONICAL_ID_TO_KEY;
|
|
112146
|
+
var CLAUDE_3_7_SONNET_CONFIG, CLAUDE_3_5_V2_SONNET_CONFIG, CLAUDE_3_5_HAIKU_CONFIG, CLAUDE_HAIKU_4_5_CONFIG, CLAUDE_SONNET_4_CONFIG, CLAUDE_SONNET_4_5_CONFIG, CLAUDE_OPUS_4_CONFIG, CLAUDE_OPUS_4_1_CONFIG, CLAUDE_OPUS_4_5_CONFIG, CLAUDE_OPUS_4_6_CONFIG, CLAUDE_OPUS_4_7_CONFIG, CLAUDE_SONNET_4_6_CONFIG, ALL_MODEL_CONFIGS, CANONICAL_MODEL_IDS, CANONICAL_ID_TO_KEY;
|
|
112147
112147
|
var init_configs = __esm(() => {
|
|
112148
112148
|
CLAUDE_3_7_SONNET_CONFIG = {
|
|
112149
112149
|
firstParty: "claude-3-7-sonnet-20250219",
|
|
@@ -112285,6 +112285,20 @@ var init_configs = __esm(() => {
|
|
|
112285
112285
|
mistral: "devstral-latest",
|
|
112286
112286
|
opencode: "gpt-5.4"
|
|
112287
112287
|
};
|
|
112288
|
+
CLAUDE_OPUS_4_7_CONFIG = {
|
|
112289
|
+
firstParty: "claude-opus-4-7",
|
|
112290
|
+
bedrock: "us.anthropic.claude-opus-4-7-v1",
|
|
112291
|
+
vertex: "claude-opus-4-7",
|
|
112292
|
+
foundry: "claude-opus-4-7",
|
|
112293
|
+
openai: "gpt-4o",
|
|
112294
|
+
gemini: "gemini-2.5-pro-preview-03-25",
|
|
112295
|
+
github: "github:copilot",
|
|
112296
|
+
codex: "gpt-5.4",
|
|
112297
|
+
"nvidia-nim": "nvidia/llama-3.1-nemotron-70b-instruct",
|
|
112298
|
+
minimax: "MiniMax-M2.5",
|
|
112299
|
+
mistral: "devstral-latest",
|
|
112300
|
+
opencode: "gpt-5.4"
|
|
112301
|
+
};
|
|
112288
112302
|
CLAUDE_SONNET_4_6_CONFIG = {
|
|
112289
112303
|
firstParty: "claude-sonnet-4-6",
|
|
112290
112304
|
bedrock: "us.anthropic.claude-sonnet-4-6",
|
|
@@ -112310,7 +112324,8 @@ var init_configs = __esm(() => {
|
|
|
112310
112324
|
opus40: CLAUDE_OPUS_4_CONFIG,
|
|
112311
112325
|
opus41: CLAUDE_OPUS_4_1_CONFIG,
|
|
112312
112326
|
opus45: CLAUDE_OPUS_4_5_CONFIG,
|
|
112313
|
-
opus46: CLAUDE_OPUS_4_6_CONFIG
|
|
112327
|
+
opus46: CLAUDE_OPUS_4_6_CONFIG,
|
|
112328
|
+
opus47: CLAUDE_OPUS_4_7_CONFIG
|
|
112314
112329
|
};
|
|
112315
112330
|
CANONICAL_MODEL_IDS = Object.values(ALL_MODEL_CONFIGS).map((c5) => c5.firstParty);
|
|
112316
112331
|
CANONICAL_ID_TO_KEY = Object.fromEntries(Object.entries(ALL_MODEL_CONFIGS).map(([key, cfg]) => [cfg.firstParty, key]));
|
|
@@ -113887,6 +113902,7 @@ var init_openaiContextWindows = __esm(() => {
|
|
|
113887
113902
|
"github:copilot:claude-sonnet-4.6": 200000,
|
|
113888
113903
|
"github:copilot:claude-opus-4": 200000,
|
|
113889
113904
|
"github:copilot:claude-opus-4.6": 200000,
|
|
113905
|
+
"github:copilot:claude-opus-4.7": 1e6,
|
|
113890
113906
|
"github:copilot:gpt-3.5-turbo": 16384,
|
|
113891
113907
|
"github:copilot:gpt-4": 32768,
|
|
113892
113908
|
"github:copilot:gpt-4-0125-preview": 128000,
|
|
@@ -114028,6 +114044,7 @@ var init_openaiContextWindows = __esm(() => {
|
|
|
114028
114044
|
"github:copilot:claude-sonnet-4.6": 32000,
|
|
114029
114045
|
"github:copilot:claude-opus-4": 32000,
|
|
114030
114046
|
"github:copilot:claude-opus-4.6": 32000,
|
|
114047
|
+
"github:copilot:claude-opus-4.7": 32000,
|
|
114031
114048
|
"github:copilot:gpt-3.5-turbo": 4096,
|
|
114032
114049
|
"github:copilot:gpt-4": 4096,
|
|
114033
114050
|
"github:copilot:gpt-4-0125-preview": 4096,
|
|
@@ -116439,7 +116456,7 @@ function getDefaultOpusModel() {
|
|
|
116439
116456
|
if (getAPIProvider() !== "firstParty") {
|
|
116440
116457
|
return getModelStrings2().opus46;
|
|
116441
116458
|
}
|
|
116442
|
-
return getModelStrings2().
|
|
116459
|
+
return getModelStrings2().opus47;
|
|
116443
116460
|
}
|
|
116444
116461
|
function getDefaultSonnetModel() {
|
|
116445
116462
|
if (process.env.ANTHROPIC_DEFAULT_SONNET_MODEL) {
|
|
@@ -350453,7 +350470,7 @@ function getAnthropicEnvMetadata() {
|
|
|
350453
350470
|
function getBuildAgeMinutes() {
|
|
350454
350471
|
if (false)
|
|
350455
350472
|
;
|
|
350456
|
-
const buildTime = new Date("2026-05-
|
|
350473
|
+
const buildTime = new Date("2026-05-07T03:07:21.890Z").getTime();
|
|
350457
350474
|
if (isNaN(buildTime))
|
|
350458
350475
|
return;
|
|
350459
350476
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -417596,7 +417613,7 @@ function buildPrimarySection() {
|
|
|
417596
417613
|
}, undefined, false, undefined, this);
|
|
417597
417614
|
return [{
|
|
417598
417615
|
label: "Version",
|
|
417599
|
-
value: "0.3.
|
|
417616
|
+
value: "0.3.40"
|
|
417600
417617
|
}, {
|
|
417601
417618
|
label: "Session name",
|
|
417602
417619
|
value: nameValue
|
|
@@ -418819,8 +418836,8 @@ function getOpus46Option(fastMode = false) {
|
|
|
418819
418836
|
return {
|
|
418820
418837
|
value: is3P ? getModelStrings2().opus46 : "opus",
|
|
418821
418838
|
label: "Opus",
|
|
418822
|
-
description: `Opus 4.
|
|
418823
|
-
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"
|
|
418824
418841
|
};
|
|
418825
418842
|
}
|
|
418826
418843
|
function getSonnet46_1MOption() {
|
|
@@ -418837,8 +418854,8 @@ function getOpus46_1MOption(fastMode = false) {
|
|
|
418837
418854
|
return {
|
|
418838
418855
|
value: is3P ? getModelStrings2().opus46 + "[1m]" : "opus[1m]",
|
|
418839
418856
|
label: "Opus (1M context)",
|
|
418840
|
-
description: `Opus 4.
|
|
418841
|
-
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"
|
|
418842
418859
|
};
|
|
418843
418860
|
}
|
|
418844
418861
|
function getCustomHaikuOption() {
|
|
@@ -418879,7 +418896,7 @@ function getMaxOpusOption(fastMode = false) {
|
|
|
418879
418896
|
return {
|
|
418880
418897
|
value: "opus",
|
|
418881
418898
|
label: "Opus",
|
|
418882
|
-
description: `Opus 4.
|
|
418899
|
+
description: `Opus 4.7 · Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`
|
|
418883
418900
|
};
|
|
418884
418901
|
}
|
|
418885
418902
|
function getMaxSonnet46_1MOption() {
|
|
@@ -418896,7 +418913,7 @@ function getMaxOpus46_1MOption(fastMode = false) {
|
|
|
418896
418913
|
return {
|
|
418897
418914
|
value: "opus[1m]",
|
|
418898
418915
|
label: "Opus (1M context)",
|
|
418899
|
-
description: `Opus 4.
|
|
418916
|
+
description: `Opus 4.7 with 1M context${billingInfo}${getOpus46PricingSuffix(fastMode)}`
|
|
418900
418917
|
};
|
|
418901
418918
|
}
|
|
418902
418919
|
function getMergedOpus1MOption(fastMode = false) {
|
|
@@ -418904,15 +418921,15 @@ function getMergedOpus1MOption(fastMode = false) {
|
|
|
418904
418921
|
return {
|
|
418905
418922
|
value: is3P ? getModelStrings2().opus46 + "[1m]" : "opus[1m]",
|
|
418906
418923
|
label: "Opus (1M context)",
|
|
418907
|
-
description: `Opus 4.
|
|
418908
|
-
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"
|
|
418909
418926
|
};
|
|
418910
418927
|
}
|
|
418911
418928
|
function getOpusPlanOption() {
|
|
418912
418929
|
return {
|
|
418913
418930
|
value: "opusplan",
|
|
418914
418931
|
label: "Opus Plan Mode",
|
|
418915
|
-
description: "Use Opus 4.
|
|
418932
|
+
description: "Use Opus 4.7 in plan mode, Sonnet 4.6 otherwise"
|
|
418916
418933
|
};
|
|
418917
418934
|
}
|
|
418918
418935
|
function getCodexPlanOption() {
|
|
@@ -457290,7 +457307,7 @@ function getStartupLines(termWidth) {
|
|
|
457290
457307
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
457291
457308
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
457292
457309
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
457293
|
-
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.40"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
457294
457311
|
out.push("");
|
|
457295
457312
|
return out;
|
|
457296
457313
|
}
|
|
@@ -485963,7 +485980,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
485963
485980
|
var call60 = async () => {
|
|
485964
485981
|
return {
|
|
485965
485982
|
type: "text",
|
|
485966
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
485983
|
+
value: `${"99.0.0"} (built ${"2026-05-07T03:07:21.890Z"})`
|
|
485967
485984
|
};
|
|
485968
485985
|
}, version2, version_default;
|
|
485969
485986
|
var init_version = __esm(() => {
|
|
@@ -554696,7 +554713,7 @@ function WelcomeV2() {
|
|
|
554696
554713
|
dimColor: true,
|
|
554697
554714
|
children: [
|
|
554698
554715
|
"v",
|
|
554699
|
-
"0.3.
|
|
554716
|
+
"0.3.40",
|
|
554700
554717
|
" "
|
|
554701
554718
|
]
|
|
554702
554719
|
}, undefined, true, undefined, this)
|
|
@@ -574153,7 +574170,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
574153
574170
|
pendingHookMessages
|
|
574154
574171
|
}, renderAndRun);
|
|
574155
574172
|
}
|
|
574156
|
-
}).version("0.3.
|
|
574173
|
+
}).version("0.3.40 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
574157
574174
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
574158
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.");
|
|
574159
574176
|
if (canUserConfigureAdvisor()) {
|
|
@@ -574614,7 +574631,7 @@ if (false) {}
|
|
|
574614
574631
|
async function main2() {
|
|
574615
574632
|
const args = process.argv.slice(2);
|
|
574616
574633
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
574617
|
-
console.log(`${"0.3.
|
|
574634
|
+
console.log(`${"0.3.40"} (STRATAGEM X7)`);
|
|
574618
574635
|
return;
|
|
574619
574636
|
}
|
|
574620
574637
|
if (args.includes("--provider")) {
|
|
@@ -574736,4 +574753,4 @@ async function main2() {
|
|
|
574736
574753
|
}
|
|
574737
574754
|
main2();
|
|
574738
574755
|
|
|
574739
|
-
//# debugId=
|
|
574756
|
+
//# debugId=6941673D185E2EF664756E2164756E21
|