stratagem-x7 0.3.40 → 0.3.42
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 +33 -12
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -116103,7 +116103,7 @@ async function prefetchFastModeStatus() {
|
|
|
116103
116103
|
inflightPrefetch = doFetch();
|
|
116104
116104
|
return inflightPrefetch;
|
|
116105
116105
|
}
|
|
116106
|
-
var FAST_MODE_MODEL_DISPLAY = "Opus 4.
|
|
116106
|
+
var FAST_MODE_MODEL_DISPLAY = "Opus 4.7", runtimeState, hasLoggedCooldownExpiry = false, cooldownTriggered, cooldownExpired, onCooldownTriggered, onCooldownExpired, overageRejection, onFastModeOverageRejection, orgStatus, orgFastModeChange, onOrgFastModeChanged, PREFETCH_MIN_INTERVAL_MS = 30000, lastPrefetchAt = 0, inflightPrefetch = null;
|
|
116107
116107
|
var init_fastMode = __esm(() => {
|
|
116108
116108
|
init_axios2();
|
|
116109
116109
|
init_oauth();
|
|
@@ -116600,15 +116600,15 @@ function getCanonicalName(fullModelName) {
|
|
|
116600
116600
|
function getClaudeAiUserDefaultModelDescription(fastMode = false) {
|
|
116601
116601
|
if (isMaxSubscriber() || isTeamPremiumSubscriber()) {
|
|
116602
116602
|
if (isOpus1mMergeEnabled()) {
|
|
116603
|
-
return `Opus 4.
|
|
116603
|
+
return `Opus 4.7 with 1M context · Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`;
|
|
116604
116604
|
}
|
|
116605
|
-
return `Opus 4.
|
|
116605
|
+
return `Opus 4.7 · Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`;
|
|
116606
116606
|
}
|
|
116607
116607
|
return "Sonnet 4.6 · Best for everyday tasks";
|
|
116608
116608
|
}
|
|
116609
116609
|
function renderDefaultModelSetting(setting) {
|
|
116610
116610
|
if (setting === "opusplan") {
|
|
116611
|
-
return "Opus 4.
|
|
116611
|
+
return "Opus 4.7 in plan mode, else Sonnet 4.6";
|
|
116612
116612
|
}
|
|
116613
116613
|
return renderModelName(parseUserSpecifiedModel(setting));
|
|
116614
116614
|
}
|
|
@@ -116676,6 +116676,10 @@ function getPublicModelDisplayName(model) {
|
|
|
116676
116676
|
return "GPT-5.4";
|
|
116677
116677
|
case "gpt-5.3-codex-spark":
|
|
116678
116678
|
return "GPT-5.3 Codex Spark";
|
|
116679
|
+
case getModelStrings2().opus47:
|
|
116680
|
+
return "Opus 4.7";
|
|
116681
|
+
case getModelStrings2().opus47 + "[1m]":
|
|
116682
|
+
return "Opus 4.7 (1M context)";
|
|
116679
116683
|
case getModelStrings2().opus46:
|
|
116680
116684
|
return "Opus 4.6";
|
|
116681
116685
|
case getModelStrings2().opus46 + "[1m]":
|
|
@@ -116825,6 +116829,9 @@ function getMarketingNameForModel(modelId) {
|
|
|
116825
116829
|
}
|
|
116826
116830
|
const has1m = modelId.toLowerCase().includes("[1m]");
|
|
116827
116831
|
const canonical = getCanonicalName(modelId);
|
|
116832
|
+
if (canonical.includes("claude-opus-4-7")) {
|
|
116833
|
+
return has1m ? "Opus 4.7 (with 1M context)" : "Opus 4.7";
|
|
116834
|
+
}
|
|
116828
116835
|
if (canonical.includes("claude-opus-4-6")) {
|
|
116829
116836
|
return has1m ? "Opus 4.6 (with 1M context)" : "Opus 4.6";
|
|
116830
116837
|
}
|
|
@@ -292739,6 +292746,20 @@ function profileSummary(profile, isActive) {
|
|
|
292739
292746
|
}
|
|
292740
292747
|
function getKnownModelsForBaseUrl(baseUrl) {
|
|
292741
292748
|
const lower = baseUrl.toLowerCase();
|
|
292749
|
+
if (lower.includes("api.anthropic.com") || lower.includes("anthropic")) {
|
|
292750
|
+
return [
|
|
292751
|
+
"opus",
|
|
292752
|
+
"sonnet",
|
|
292753
|
+
"haiku",
|
|
292754
|
+
"claude-opus-4-7",
|
|
292755
|
+
"claude-sonnet-4-6",
|
|
292756
|
+
"claude-haiku-4-5",
|
|
292757
|
+
"claude-opus-4-6",
|
|
292758
|
+
"claude-opus-4-5",
|
|
292759
|
+
"claude-opus-4-1",
|
|
292760
|
+
"claude-sonnet-4-5"
|
|
292761
|
+
];
|
|
292762
|
+
}
|
|
292742
292763
|
if (lower.includes("codex") || lower.includes("chatgpt.com")) {
|
|
292743
292764
|
return [
|
|
292744
292765
|
"gpt-5.5",
|
|
@@ -350470,7 +350491,7 @@ function getAnthropicEnvMetadata() {
|
|
|
350470
350491
|
function getBuildAgeMinutes() {
|
|
350471
350492
|
if (false)
|
|
350472
350493
|
;
|
|
350473
|
-
const buildTime = new Date("2026-05-07T03:
|
|
350494
|
+
const buildTime = new Date("2026-05-07T03:40:41.435Z").getTime();
|
|
350474
350495
|
if (isNaN(buildTime))
|
|
350475
350496
|
return;
|
|
350476
350497
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -417613,7 +417634,7 @@ function buildPrimarySection() {
|
|
|
417613
417634
|
}, undefined, false, undefined, this);
|
|
417614
417635
|
return [{
|
|
417615
417636
|
label: "Version",
|
|
417616
|
-
value: "0.3.
|
|
417637
|
+
value: "0.3.42"
|
|
417617
417638
|
}, {
|
|
417618
417639
|
label: "Session name",
|
|
417619
417640
|
value: nameValue
|
|
@@ -457307,7 +457328,7 @@ function getStartupLines(termWidth) {
|
|
|
457307
457328
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
457308
457329
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
457309
457330
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
457310
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
457331
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.42"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
457311
457332
|
out.push("");
|
|
457312
457333
|
return out;
|
|
457313
457334
|
}
|
|
@@ -485980,7 +486001,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
485980
486001
|
var call60 = async () => {
|
|
485981
486002
|
return {
|
|
485982
486003
|
type: "text",
|
|
485983
|
-
value: `${"99.0.0"} (built ${"2026-05-07T03:
|
|
486004
|
+
value: `${"99.0.0"} (built ${"2026-05-07T03:40:41.435Z"})`
|
|
485984
486005
|
};
|
|
485985
486006
|
}, version2, version_default;
|
|
485986
486007
|
var init_version = __esm(() => {
|
|
@@ -554713,7 +554734,7 @@ function WelcomeV2() {
|
|
|
554713
554734
|
dimColor: true,
|
|
554714
554735
|
children: [
|
|
554715
554736
|
"v",
|
|
554716
|
-
"0.3.
|
|
554737
|
+
"0.3.42",
|
|
554717
554738
|
" "
|
|
554718
554739
|
]
|
|
554719
554740
|
}, undefined, true, undefined, this)
|
|
@@ -574170,7 +574191,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
574170
574191
|
pendingHookMessages
|
|
574171
574192
|
}, renderAndRun);
|
|
574172
574193
|
}
|
|
574173
|
-
}).version("0.3.
|
|
574194
|
+
}).version("0.3.42 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
574174
574195
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
574175
574196
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
574176
574197
|
if (canUserConfigureAdvisor()) {
|
|
@@ -574631,7 +574652,7 @@ if (false) {}
|
|
|
574631
574652
|
async function main2() {
|
|
574632
574653
|
const args = process.argv.slice(2);
|
|
574633
574654
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
574634
|
-
console.log(`${"0.3.
|
|
574655
|
+
console.log(`${"0.3.42"} (STRATAGEM X7)`);
|
|
574635
574656
|
return;
|
|
574636
574657
|
}
|
|
574637
574658
|
if (args.includes("--provider")) {
|
|
@@ -574753,4 +574774,4 @@ async function main2() {
|
|
|
574753
574774
|
}
|
|
574754
574775
|
main2();
|
|
574755
574776
|
|
|
574756
|
-
//# debugId=
|
|
574777
|
+
//# debugId=1C00024DF388332D64756E2164756E21
|