stratagem-x7 0.3.75 → 0.3.77
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 +64 -29
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -288589,7 +288589,8 @@ function Select(t0) {
|
|
|
288589
288589
|
const isDisabled = t1 === undefined ? false : t1;
|
|
288590
288590
|
const hideIndexes = t2 === undefined ? false : t2;
|
|
288591
288591
|
const visibleOptionCount = t3 === undefined ? 5 : t3;
|
|
288592
|
-
const
|
|
288592
|
+
const requestedLayout = t4 === undefined ? "compact" : t4;
|
|
288593
|
+
const layout = (process.stdout.columns ?? 80) < 70 && requestedLayout === "compact" ? "compact-vertical" : requestedLayout;
|
|
288593
288594
|
const disableSelection = t5 === undefined ? false : t5;
|
|
288594
288595
|
const inlineDescriptions = t6 === undefined ? false : t6;
|
|
288595
288596
|
const [imagesSelected, setImagesSelected] = import_react60.useState(false);
|
|
@@ -353870,7 +353871,7 @@ function getAnthropicEnvMetadata() {
|
|
|
353870
353871
|
function getBuildAgeMinutes() {
|
|
353871
353872
|
if (false)
|
|
353872
353873
|
;
|
|
353873
|
-
const buildTime = new Date("2026-05-
|
|
353874
|
+
const buildTime = new Date("2026-05-09T13:50:15.727Z").getTime();
|
|
353874
353875
|
if (isNaN(buildTime))
|
|
353875
353876
|
return;
|
|
353876
353877
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -421683,7 +421684,7 @@ function buildPrimarySection() {
|
|
|
421683
421684
|
}, undefined, false, undefined, this);
|
|
421684
421685
|
return [{
|
|
421685
421686
|
label: "Version",
|
|
421686
|
-
value: "0.3.
|
|
421687
|
+
value: "0.3.77"
|
|
421687
421688
|
}, {
|
|
421688
421689
|
label: "Session name",
|
|
421689
421690
|
value: nameValue
|
|
@@ -461593,53 +461594,81 @@ function boxRow(content, width, rawLen) {
|
|
|
461593
461594
|
}
|
|
461594
461595
|
function getStartupLines(termWidth) {
|
|
461595
461596
|
const p = detectProvider();
|
|
461596
|
-
const
|
|
461597
|
-
const
|
|
461597
|
+
const tw = termWidth ?? process.stdout.columns ?? 84;
|
|
461598
|
+
const W2 = Math.max(30, Math.min(84, tw - 2));
|
|
461598
461599
|
const out = [];
|
|
461599
461600
|
out.push("");
|
|
461600
461601
|
out.push("");
|
|
461601
|
-
const
|
|
461602
|
-
|
|
461603
|
-
|
|
461604
|
-
|
|
461605
|
-
|
|
461606
|
-
|
|
461607
|
-
|
|
461608
|
-
|
|
461602
|
+
const logo = tw >= 84 ? LOGO_STX7 : tw >= 30 ? LOGO_STX7_MINI : null;
|
|
461603
|
+
if (logo) {
|
|
461604
|
+
const total = logo.length;
|
|
461605
|
+
for (let i3 = 0;i3 < total; i3++) {
|
|
461606
|
+
const t = total > 1 ? i3 / (total - 1) : 0;
|
|
461607
|
+
if (logo[i3] === "") {
|
|
461608
|
+
out.push("");
|
|
461609
|
+
} else {
|
|
461610
|
+
out.push(centerAnsiLine(paintLine(logo[i3], SUNSET_GRAD, t), tw));
|
|
461611
|
+
}
|
|
461609
461612
|
}
|
|
461613
|
+
} else {
|
|
461614
|
+
out.push("");
|
|
461615
|
+
out.push(centerAnsiLine(paintLine(LOGO_TINY, SUNSET_GRAD, 0.5), tw));
|
|
461616
|
+
out.push("");
|
|
461610
461617
|
}
|
|
461611
461618
|
out.push("");
|
|
461612
|
-
|
|
461613
|
-
out.push(centerAnsiLine(`${rgb3(...
|
|
461619
|
+
const taglineDashes = Math.max(2, Math.min(14, Math.floor((tw - 12) / 2)));
|
|
461620
|
+
out.push(centerAnsiLine(`${DIM2}${rgb3(...DIMCOL)}${"─".repeat(taglineDashes)}${RESET2} ${rgb3(...ACCENT)}NET//TECH${RESET2} ${DIM2}${rgb3(...DIMCOL)}${"─".repeat(taglineDashes)}${RESET2}`, tw));
|
|
461621
|
+
if (tw >= 60) {
|
|
461622
|
+
out.push(centerAnsiLine(`${rgb3(...ACCENT)}◢${RESET2} ${rgb3(...CREAM)}STRATAGEM X7 // breach shell // protocol online.${RESET2} ${rgb3(...CYAN)}◣${RESET2}`, tw));
|
|
461623
|
+
} else if (tw >= 40) {
|
|
461624
|
+
out.push(centerAnsiLine(`${rgb3(...ACCENT)}◢${RESET2} ${rgb3(...CREAM)}breach shell // online${RESET2} ${rgb3(...CYAN)}◣${RESET2}`, tw));
|
|
461625
|
+
}
|
|
461614
461626
|
out.push("");
|
|
461615
461627
|
out.push("");
|
|
461616
|
-
const
|
|
461628
|
+
const fullTitle = " BREACH PROTOCOL INTERFACE ";
|
|
461629
|
+
const shortTitle = " BREACH INTERFACE ";
|
|
461630
|
+
const title = W2 >= fullTitle.length ? fullTitle : shortTitle;
|
|
461617
461631
|
out.push(centerAnsiLine(`${bg(...BORDER)}${rgb3(...PANEL_BG)}${title}${" ".repeat(Math.max(0, W2 - title.length))}${RESET2}`, tw));
|
|
461618
461632
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}┌${"─".repeat(W2 - 2)}┐${RESET2}`, tw));
|
|
461619
461633
|
const lbl = (k, v, c6 = CREAM) => {
|
|
461620
461634
|
const padK = k.padEnd(9);
|
|
461621
461635
|
return [` ${DIM2}${rgb3(...DIMCOL)}${padK}${RESET2} ${rgb3(...c6)}${v}${RESET2}`, ` ${padK} ${v}`.length];
|
|
461622
461636
|
};
|
|
461637
|
+
const maxVal = Math.max(8, W2 - 14);
|
|
461638
|
+
const truncate4 = (s) => s.length > maxVal ? s.slice(0, Math.max(3, maxVal - 3)) + "..." : s;
|
|
461623
461639
|
const provC = p.isLocal ? [160, 255, 214] : CYAN;
|
|
461624
|
-
let [r, l] = lbl("Provider", p.name, provC);
|
|
461640
|
+
let [r, l] = lbl("Provider", truncate4(p.name), provC);
|
|
461625
461641
|
out.push(centerAnsiLine(boxRow(r, W2, l), tw));
|
|
461626
|
-
[r, l] = lbl("Model", p.model);
|
|
461642
|
+
[r, l] = lbl("Model", truncate4(p.model));
|
|
461627
461643
|
out.push(centerAnsiLine(boxRow(r, W2, l), tw));
|
|
461628
|
-
|
|
461629
|
-
[r, l] = lbl("Uplink", ep);
|
|
461644
|
+
[r, l] = lbl("Uplink", truncate4(p.baseUrl));
|
|
461630
461645
|
out.push(centerAnsiLine(boxRow(r, W2, l), tw));
|
|
461631
461646
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}├${"─".repeat(W2 - 2)}┤${RESET2}`, tw));
|
|
461632
461647
|
const sC = p.isLocal ? [160, 255, 214] : CYAN;
|
|
461633
461648
|
const sL = p.isLocal ? "local" : "cloud";
|
|
461634
|
-
|
|
461635
|
-
|
|
461649
|
+
let sRow;
|
|
461650
|
+
let sLen;
|
|
461651
|
+
if (W2 >= 60) {
|
|
461652
|
+
sRow = ` ${rgb3(...sC)}●${RESET2} ${DIM2}${rgb3(...DIMCOL)}${sL}${RESET2} ${rgb3(...ACCENT)}buffer ready${RESET2} ${DIM2}${rgb3(...DIMCOL)}— /help for breach controls${RESET2}`;
|
|
461653
|
+
sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
461654
|
+
} else if (W2 >= 40) {
|
|
461655
|
+
sRow = ` ${rgb3(...sC)}●${RESET2} ${DIM2}${rgb3(...DIMCOL)}${sL}${RESET2} ${rgb3(...ACCENT)}buffer ready${RESET2}`;
|
|
461656
|
+
sLen = ` ● ${sL} buffer ready`.length;
|
|
461657
|
+
} else {
|
|
461658
|
+
sRow = ` ${rgb3(...sC)}●${RESET2} ${rgb3(...ACCENT)}buffer ready${RESET2}`;
|
|
461659
|
+
sLen = ` ● buffer ready`.length;
|
|
461660
|
+
}
|
|
461636
461661
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
461637
461662
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
461638
|
-
|
|
461663
|
+
if (tw >= 50) {
|
|
461664
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.77"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
461665
|
+
} else {
|
|
461666
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STX7${RESET2} ${rgb3(...ACCENT)}v${"0.3.77"}${RESET2}`, tw));
|
|
461667
|
+
}
|
|
461639
461668
|
out.push("");
|
|
461640
461669
|
return out;
|
|
461641
461670
|
}
|
|
461642
|
-
var ESC3 = "\x1B[", RESET2, DIM2, rgb3 = (r, g, b) => `${ESC3}38;2;${r};${g};${b}m`, bg = (r, g, b) => `${ESC3}48;2;${r};${g};${b}m`, ANSI_PATTERN, SUNSET_GRAD, ACCENT, CYAN, CREAM, DIMCOL, BORDER, PANEL_BG, LOGO_STX7
|
|
461671
|
+
var ESC3 = "\x1B[", RESET2, DIM2, rgb3 = (r, g, b) => `${ESC3}38;2;${r};${g};${b}m`, bg = (r, g, b) => `${ESC3}48;2;${r};${g};${b}m`, ANSI_PATTERN, SUNSET_GRAD, ACCENT, CYAN, CREAM, DIMCOL, BORDER, PANEL_BG, LOGO_STX7, LOGO_STX7_MINI, LOGO_TINY = `◢ STRATAGEM X7 ◣`;
|
|
461643
461672
|
var init_StartupScreen = __esm(() => {
|
|
461644
461673
|
init_providerConfig();
|
|
461645
461674
|
init_providerDiscovery();
|
|
@@ -461671,6 +461700,12 @@ var init_StartupScreen = __esm(() => {
|
|
|
461671
461700
|
` ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝`,
|
|
461672
461701
|
` ═══ X7 ═══ `
|
|
461673
461702
|
];
|
|
461703
|
+
LOGO_STX7_MINI = [
|
|
461704
|
+
`┏━━━┳━┏━┓┏━┓━┳━┏━┓┏━╸┏━╸┏┳┓`,
|
|
461705
|
+
`┗━┓ ┃ ┣┳┛┣━┫ ┃ ┣━┫┃╺┓┣╸ ┃┃┃`,
|
|
461706
|
+
`━━┛ ╹ ╹┗╸╹ ╹ ╹ ╹ ╹┗━┛┗━╸╹┻╹`,
|
|
461707
|
+
` ═══ X7 ═══ `
|
|
461708
|
+
];
|
|
461674
461709
|
});
|
|
461675
461710
|
|
|
461676
461711
|
// src/components/BreachHeader.tsx
|
|
@@ -490441,7 +490476,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
490441
490476
|
var call61 = async () => {
|
|
490442
490477
|
return {
|
|
490443
490478
|
type: "text",
|
|
490444
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
490479
|
+
value: `${"99.0.0"} (built ${"2026-05-09T13:50:15.727Z"})`
|
|
490445
490480
|
};
|
|
490446
490481
|
}, version2, version_default;
|
|
490447
490482
|
var init_version = __esm(() => {
|
|
@@ -559357,7 +559392,7 @@ function WelcomeV2() {
|
|
|
559357
559392
|
dimColor: true,
|
|
559358
559393
|
children: [
|
|
559359
559394
|
"v",
|
|
559360
|
-
"0.3.
|
|
559395
|
+
"0.3.77",
|
|
559361
559396
|
" "
|
|
559362
559397
|
]
|
|
559363
559398
|
}, undefined, true, undefined, this)
|
|
@@ -578815,7 +578850,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
578815
578850
|
pendingHookMessages
|
|
578816
578851
|
}, renderAndRun);
|
|
578817
578852
|
}
|
|
578818
|
-
}).version("0.3.
|
|
578853
|
+
}).version("0.3.77 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
578819
578854
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
578820
578855
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
578821
578856
|
if (canUserConfigureAdvisor()) {
|
|
@@ -579276,7 +579311,7 @@ if (false) {}
|
|
|
579276
579311
|
async function main2() {
|
|
579277
579312
|
const args = process.argv.slice(2);
|
|
579278
579313
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
579279
|
-
console.log(`${"0.3.
|
|
579314
|
+
console.log(`${"0.3.77"} (STRATAGEM X7)`);
|
|
579280
579315
|
return;
|
|
579281
579316
|
}
|
|
579282
579317
|
if (args.includes("--provider")) {
|
|
@@ -579398,4 +579433,4 @@ async function main2() {
|
|
|
579398
579433
|
}
|
|
579399
579434
|
main2();
|
|
579400
579435
|
|
|
579401
|
-
//# debugId=
|
|
579436
|
+
//# debugId=5ED8D6DAAC1862E264756E2164756E21
|