stratagem-x7 0.3.20 → 0.3.22
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 +89 -16
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -382892,7 +382892,7 @@ function getAnthropicEnvMetadata() {
|
|
|
382892
382892
|
function getBuildAgeMinutes() {
|
|
382893
382893
|
if (false)
|
|
382894
382894
|
;
|
|
382895
|
-
const buildTime = new Date("2026-04-
|
|
382895
|
+
const buildTime = new Date("2026-04-29T03:22:58.895Z").getTime();
|
|
382896
382896
|
if (isNaN(buildTime))
|
|
382897
382897
|
return;
|
|
382898
382898
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -410069,7 +410069,7 @@ function buildPrimarySection() {
|
|
|
410069
410069
|
}, undefined, false, undefined, this);
|
|
410070
410070
|
return [{
|
|
410071
410071
|
label: "Version",
|
|
410072
|
-
value: "0.3.
|
|
410072
|
+
value: "0.3.22"
|
|
410073
410073
|
}, {
|
|
410074
410074
|
label: "Session name",
|
|
410075
410075
|
value: nameValue
|
|
@@ -411390,6 +411390,11 @@ function getCodexSparkOption() {
|
|
|
411390
411390
|
}
|
|
411391
411391
|
function getCodexModelOptions() {
|
|
411392
411392
|
return [
|
|
411393
|
+
{
|
|
411394
|
+
value: "gpt-5.5",
|
|
411395
|
+
label: "gpt-5.5",
|
|
411396
|
+
description: "GPT-5.5 — latest and strongest reasoning"
|
|
411397
|
+
},
|
|
411393
411398
|
{
|
|
411394
411399
|
value: "gpt-5.4",
|
|
411395
411400
|
label: "gpt-5.4",
|
|
@@ -411405,10 +411410,35 @@ function getCodexModelOptions() {
|
|
|
411405
411410
|
label: "gpt-5.3-codex-spark",
|
|
411406
411411
|
description: "GPT-5.3 Codex Spark for fast tool loops"
|
|
411407
411412
|
},
|
|
411413
|
+
{
|
|
411414
|
+
value: "gpt-5-mini",
|
|
411415
|
+
label: "gpt-5-mini",
|
|
411416
|
+
description: "GPT-5 Mini — fast and lightweight"
|
|
411417
|
+
},
|
|
411418
|
+
{
|
|
411419
|
+
value: "o4-mini",
|
|
411420
|
+
label: "o4-mini",
|
|
411421
|
+
description: "O4 Mini — fast reasoning model"
|
|
411422
|
+
},
|
|
411423
|
+
{
|
|
411424
|
+
value: "o3",
|
|
411425
|
+
label: "o3",
|
|
411426
|
+
description: "O3 — advanced reasoning"
|
|
411427
|
+
},
|
|
411408
411428
|
{
|
|
411409
411429
|
value: "codexspark",
|
|
411410
411430
|
label: "codexspark",
|
|
411411
|
-
description: "
|
|
411431
|
+
description: "Codex Spark alias for fast tool loops"
|
|
411432
|
+
},
|
|
411433
|
+
{
|
|
411434
|
+
value: "gpt-4.1",
|
|
411435
|
+
label: "gpt-4.1",
|
|
411436
|
+
description: "GPT-4.1 — solid general purpose"
|
|
411437
|
+
},
|
|
411438
|
+
{
|
|
411439
|
+
value: "gpt-4.1-mini",
|
|
411440
|
+
label: "gpt-4.1-mini",
|
|
411441
|
+
description: "GPT-4.1 Mini — fast and cheap"
|
|
411412
411442
|
},
|
|
411413
411443
|
{
|
|
411414
411444
|
value: "gpt-5.2-codex",
|
|
@@ -449695,7 +449725,7 @@ function getStartupLines(termWidth) {
|
|
|
449695
449725
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
449696
449726
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
449697
449727
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
449698
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
449728
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.22"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
449699
449729
|
out.push("");
|
|
449700
449730
|
return out;
|
|
449701
449731
|
}
|
|
@@ -449734,14 +449764,17 @@ var init_StartupScreen = __esm(() => {
|
|
|
449734
449764
|
|
|
449735
449765
|
// src/components/BreachHeader.tsx
|
|
449736
449766
|
function BreachHeader() {
|
|
449737
|
-
const { columns } = useTerminalSize();
|
|
449767
|
+
const { columns, rows } = useTerminalSize();
|
|
449738
449768
|
const lines = React85.useMemo(() => getStartupLines(columns), [columns]);
|
|
449739
449769
|
const logoLines = lines.slice(2, 8);
|
|
449740
449770
|
const taglineLines = lines.slice(9, 11);
|
|
449741
449771
|
const protocolLines = lines.slice(13, 23);
|
|
449772
|
+
const headerHeight = logoLines.length + taglineLines.length + protocolLines.length + 2;
|
|
449773
|
+
const availableSpace = rows - headerHeight - 6;
|
|
449774
|
+
const topPad = Math.max(1, Math.floor(availableSpace / 3));
|
|
449742
449775
|
return /* @__PURE__ */ jsx_dev_runtime252.jsxDEV(ThemedBox_default, {
|
|
449743
449776
|
flexDirection: "column",
|
|
449744
|
-
paddingTop:
|
|
449777
|
+
paddingTop: topPad,
|
|
449745
449778
|
children: [
|
|
449746
449779
|
logoLines.map((line, i3) => /* @__PURE__ */ jsx_dev_runtime252.jsxDEV(ThemedText, {
|
|
449747
449780
|
children: line
|
|
@@ -468774,15 +468807,55 @@ function CodexCredentialStep({
|
|
|
468774
468807
|
}, undefined, false, undefined, this);
|
|
468775
468808
|
}
|
|
468776
468809
|
const options2 = [
|
|
468810
|
+
{
|
|
468811
|
+
label: "gpt-5.5",
|
|
468812
|
+
value: "gpt-5.5",
|
|
468813
|
+
description: "Latest GPT-5.5 — strongest reasoning"
|
|
468814
|
+
},
|
|
468815
|
+
{
|
|
468816
|
+
label: "gpt-5.4",
|
|
468817
|
+
value: "gpt-5.4",
|
|
468818
|
+
description: "GPT-5.4 — high reasoning capacity"
|
|
468819
|
+
},
|
|
468820
|
+
{
|
|
468821
|
+
label: "gpt-5.3-codex",
|
|
468822
|
+
value: "gpt-5.3-codex",
|
|
468823
|
+
description: "GPT-5.3 Codex — optimized for code"
|
|
468824
|
+
},
|
|
468825
|
+
{
|
|
468826
|
+
label: "gpt-5-mini",
|
|
468827
|
+
value: "gpt-5-mini",
|
|
468828
|
+
description: "GPT-5 Mini — fast and lightweight"
|
|
468829
|
+
},
|
|
468777
468830
|
{
|
|
468778
468831
|
label: "codexplan",
|
|
468779
468832
|
value: "codexplan",
|
|
468780
|
-
description: "
|
|
468833
|
+
description: "Codex Plan — higher reasoning on Codex backend"
|
|
468781
468834
|
},
|
|
468782
468835
|
{
|
|
468783
468836
|
label: "codexspark",
|
|
468784
468837
|
value: "codexspark",
|
|
468785
|
-
description: "
|
|
468838
|
+
description: "Codex Spark — fast tool loop profile"
|
|
468839
|
+
},
|
|
468840
|
+
{
|
|
468841
|
+
label: "o4-mini",
|
|
468842
|
+
value: "o4-mini",
|
|
468843
|
+
description: "O4 Mini — fast reasoning model"
|
|
468844
|
+
},
|
|
468845
|
+
{
|
|
468846
|
+
label: "o3",
|
|
468847
|
+
value: "o3",
|
|
468848
|
+
description: "O3 — advanced reasoning"
|
|
468849
|
+
},
|
|
468850
|
+
{
|
|
468851
|
+
label: "gpt-4.1",
|
|
468852
|
+
value: "gpt-4.1",
|
|
468853
|
+
description: "GPT-4.1 — solid general purpose"
|
|
468854
|
+
},
|
|
468855
|
+
{
|
|
468856
|
+
label: "gpt-4.1-mini",
|
|
468857
|
+
value: "gpt-4.1-mini",
|
|
468858
|
+
description: "GPT-4.1 Mini — fast and cheap"
|
|
468786
468859
|
}
|
|
468787
468860
|
];
|
|
468788
468861
|
return /* @__PURE__ */ jsx_dev_runtime302.jsxDEV(Dialog, {
|
|
@@ -468802,10 +468875,10 @@ function CodexCredentialStep({
|
|
|
468802
468875
|
}, undefined, true, undefined, this),
|
|
468803
468876
|
/* @__PURE__ */ jsx_dev_runtime302.jsxDEV(Select, {
|
|
468804
468877
|
options: options2,
|
|
468805
|
-
defaultValue: "
|
|
468806
|
-
defaultFocusValue: "
|
|
468878
|
+
defaultValue: "gpt-5.5",
|
|
468879
|
+
defaultFocusValue: "gpt-5.5",
|
|
468807
468880
|
inlineDescriptions: true,
|
|
468808
|
-
visibleOptionCount: options2.length,
|
|
468881
|
+
visibleOptionCount: Math.min(8, options2.length),
|
|
468809
468882
|
onChange: (value) => {
|
|
468810
468883
|
const env4 = buildCodexProfileEnv({
|
|
468811
468884
|
model: value,
|
|
@@ -478241,7 +478314,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
478241
478314
|
var call60 = async () => {
|
|
478242
478315
|
return {
|
|
478243
478316
|
type: "text",
|
|
478244
|
-
value: `${"99.0.0"} (built ${"2026-04-
|
|
478317
|
+
value: `${"99.0.0"} (built ${"2026-04-29T03:22:58.895Z"})`
|
|
478245
478318
|
};
|
|
478246
478319
|
}, version2, version_default;
|
|
478247
478320
|
var init_version = __esm(() => {
|
|
@@ -553653,7 +553726,7 @@ function WelcomeV2() {
|
|
|
553653
553726
|
dimColor: true,
|
|
553654
553727
|
children: [
|
|
553655
553728
|
"v",
|
|
553656
|
-
"0.3.
|
|
553729
|
+
"0.3.22",
|
|
553657
553730
|
" "
|
|
553658
553731
|
]
|
|
553659
553732
|
}, undefined, true, undefined, this)
|
|
@@ -573670,7 +573743,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
573670
573743
|
pendingHookMessages
|
|
573671
573744
|
}, renderAndRun);
|
|
573672
573745
|
}
|
|
573673
|
-
}).version("0.3.
|
|
573746
|
+
}).version("0.3.22 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
573674
573747
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
573675
573748
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
573676
573749
|
if (canUserConfigureAdvisor()) {
|
|
@@ -574198,7 +574271,7 @@ if (false) {}
|
|
|
574198
574271
|
async function main2() {
|
|
574199
574272
|
const args = process.argv.slice(2);
|
|
574200
574273
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
574201
|
-
console.log(`${"0.3.
|
|
574274
|
+
console.log(`${"0.3.22"} (STRATAGEM X7)`);
|
|
574202
574275
|
return;
|
|
574203
574276
|
}
|
|
574204
574277
|
if (args.includes("--provider")) {
|
|
@@ -574320,4 +574393,4 @@ async function main2() {
|
|
|
574320
574393
|
}
|
|
574321
574394
|
main2();
|
|
574322
574395
|
|
|
574323
|
-
//# debugId=
|
|
574396
|
+
//# debugId=9073FC13BBA5355464756E2164756E21
|