stratagem-x7 0.3.75 → 0.3.76
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 +57 -28
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -353870,7 +353870,7 @@ function getAnthropicEnvMetadata() {
|
|
|
353870
353870
|
function getBuildAgeMinutes() {
|
|
353871
353871
|
if (false)
|
|
353872
353872
|
;
|
|
353873
|
-
const buildTime = new Date("2026-05-
|
|
353873
|
+
const buildTime = new Date("2026-05-09T13:14:45.269Z").getTime();
|
|
353874
353874
|
if (isNaN(buildTime))
|
|
353875
353875
|
return;
|
|
353876
353876
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -421683,7 +421683,7 @@ function buildPrimarySection() {
|
|
|
421683
421683
|
}, undefined, false, undefined, this);
|
|
421684
421684
|
return [{
|
|
421685
421685
|
label: "Version",
|
|
421686
|
-
value: "0.3.
|
|
421686
|
+
value: "0.3.76"
|
|
421687
421687
|
}, {
|
|
421688
421688
|
label: "Session name",
|
|
421689
421689
|
value: nameValue
|
|
@@ -461593,53 +461593,82 @@ function boxRow(content, width, rawLen) {
|
|
|
461593
461593
|
}
|
|
461594
461594
|
function getStartupLines(termWidth) {
|
|
461595
461595
|
const p = detectProvider();
|
|
461596
|
-
const
|
|
461597
|
-
const
|
|
461596
|
+
const tw = termWidth ?? process.stdout.columns ?? 84;
|
|
461597
|
+
const W2 = Math.max(30, Math.min(84, tw - 2));
|
|
461598
461598
|
const out = [];
|
|
461599
461599
|
out.push("");
|
|
461600
461600
|
out.push("");
|
|
461601
|
-
const
|
|
461602
|
-
|
|
461603
|
-
|
|
461604
|
-
const
|
|
461605
|
-
|
|
461606
|
-
|
|
461607
|
-
|
|
461608
|
-
|
|
461601
|
+
const useBlockLogo = tw >= 84;
|
|
461602
|
+
if (useBlockLogo) {
|
|
461603
|
+
const allLogo = LOGO_STX7;
|
|
461604
|
+
const total = allLogo.length;
|
|
461605
|
+
for (let i3 = 0;i3 < total; i3++) {
|
|
461606
|
+
const t = total > 1 ? i3 / (total - 1) : 0;
|
|
461607
|
+
if (allLogo[i3] === "") {
|
|
461608
|
+
out.push("");
|
|
461609
|
+
} else {
|
|
461610
|
+
out.push(centerAnsiLine(paintLine(allLogo[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.76"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
461665
|
+
} else {
|
|
461666
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STX7${RESET2} ${rgb3(...ACCENT)}v${"0.3.76"}${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_TINY = `◢ STRATAGEM X7 ◣`;
|
|
461643
461672
|
var init_StartupScreen = __esm(() => {
|
|
461644
461673
|
init_providerConfig();
|
|
461645
461674
|
init_providerDiscovery();
|
|
@@ -490441,7 +490470,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
490441
490470
|
var call61 = async () => {
|
|
490442
490471
|
return {
|
|
490443
490472
|
type: "text",
|
|
490444
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
490473
|
+
value: `${"99.0.0"} (built ${"2026-05-09T13:14:45.269Z"})`
|
|
490445
490474
|
};
|
|
490446
490475
|
}, version2, version_default;
|
|
490447
490476
|
var init_version = __esm(() => {
|
|
@@ -559357,7 +559386,7 @@ function WelcomeV2() {
|
|
|
559357
559386
|
dimColor: true,
|
|
559358
559387
|
children: [
|
|
559359
559388
|
"v",
|
|
559360
|
-
"0.3.
|
|
559389
|
+
"0.3.76",
|
|
559361
559390
|
" "
|
|
559362
559391
|
]
|
|
559363
559392
|
}, undefined, true, undefined, this)
|
|
@@ -578815,7 +578844,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
578815
578844
|
pendingHookMessages
|
|
578816
578845
|
}, renderAndRun);
|
|
578817
578846
|
}
|
|
578818
|
-
}).version("0.3.
|
|
578847
|
+
}).version("0.3.76 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
578819
578848
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
578820
578849
|
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
578850
|
if (canUserConfigureAdvisor()) {
|
|
@@ -579276,7 +579305,7 @@ if (false) {}
|
|
|
579276
579305
|
async function main2() {
|
|
579277
579306
|
const args = process.argv.slice(2);
|
|
579278
579307
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
579279
|
-
console.log(`${"0.3.
|
|
579308
|
+
console.log(`${"0.3.76"} (STRATAGEM X7)`);
|
|
579280
579309
|
return;
|
|
579281
579310
|
}
|
|
579282
579311
|
if (args.includes("--provider")) {
|
|
@@ -579398,4 +579427,4 @@ async function main2() {
|
|
|
579398
579427
|
}
|
|
579399
579428
|
main2();
|
|
579400
579429
|
|
|
579401
|
-
//# debugId=
|
|
579430
|
+
//# debugId=05BCEED68E09DCD764756E2164756E21
|