stratagem-x7 0.3.61 → 0.3.63
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 +29 -151
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -293400,10 +293400,15 @@ function ProviderManager({ mode, onDone }) {
|
|
|
293400
293400
|
function renderPresetSelection() {
|
|
293401
293401
|
const canUseCodexOAuth = !isBareMode();
|
|
293402
293402
|
const options2 = [
|
|
293403
|
+
{
|
|
293404
|
+
value: "anthropic-oauth",
|
|
293405
|
+
label: "Anthropic (subscription)",
|
|
293406
|
+
description: "Sign in with Claude Pro/Max — OAuth flow"
|
|
293407
|
+
},
|
|
293403
293408
|
{
|
|
293404
293409
|
value: "anthropic",
|
|
293405
|
-
label: "Anthropic",
|
|
293406
|
-
description: "
|
|
293410
|
+
label: "Anthropic (API key)",
|
|
293411
|
+
description: "Anthropic Console API key (x-api-key auth)"
|
|
293407
293412
|
},
|
|
293408
293413
|
{
|
|
293409
293414
|
value: "ollama",
|
|
@@ -293579,6 +293584,10 @@ function ProviderManager({ mode, onDone }) {
|
|
|
293579
293584
|
setScreen("codex-oauth");
|
|
293580
293585
|
return;
|
|
293581
293586
|
}
|
|
293587
|
+
if (value === "anthropic-oauth") {
|
|
293588
|
+
onDone({ action: "delegate-anthropic-oauth" });
|
|
293589
|
+
return;
|
|
293590
|
+
}
|
|
293582
293591
|
startCreateFromPreset(value);
|
|
293583
293592
|
},
|
|
293584
293593
|
onCancel: () => {
|
|
@@ -307996,7 +308005,7 @@ function ConsoleOAuthFlow({
|
|
|
307996
308005
|
};
|
|
307997
308006
|
}
|
|
307998
308007
|
return {
|
|
307999
|
-
state: "
|
|
308008
|
+
state: "platform_setup"
|
|
308000
308009
|
};
|
|
308001
308010
|
});
|
|
308002
308011
|
const [pastedCode, setPastedCode] = import_react74.useState("");
|
|
@@ -308305,138 +308314,18 @@ function OAuthStatusMessage({
|
|
|
308305
308314
|
setLoginWithClaudeAi
|
|
308306
308315
|
}) {
|
|
308307
308316
|
switch (oauthStatus.state) {
|
|
308308
|
-
case "idle": {
|
|
308309
|
-
const promptText = startingMessage || "Connect STRATAGEM X7 to your provider. Anthropic supports Claude Pro/Max subscription OAuth or Console API key; other providers use API keys.";
|
|
308310
|
-
const providerOptions = [
|
|
308311
|
-
{
|
|
308312
|
-
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308313
|
-
children: [
|
|
308314
|
-
"Anthropic ·",
|
|
308315
|
-
" ",
|
|
308316
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308317
|
-
dimColor: true,
|
|
308318
|
-
children: "Claude Pro/Max subscription or Console API key"
|
|
308319
|
-
}, undefined, false, undefined, this),
|
|
308320
|
-
`
|
|
308321
|
-
`
|
|
308322
|
-
]
|
|
308323
|
-
}, undefined, true, undefined, this),
|
|
308324
|
-
value: "anthropic"
|
|
308325
|
-
},
|
|
308326
|
-
{
|
|
308327
|
-
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308328
|
-
children: [
|
|
308329
|
-
"Other provider ·",
|
|
308330
|
-
" ",
|
|
308331
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308332
|
-
dimColor: true,
|
|
308333
|
-
children: "OpenAI, Gemini, Bedrock, Ollama, Codex, and more"
|
|
308334
|
-
}, undefined, false, undefined, this),
|
|
308335
|
-
`
|
|
308336
|
-
`
|
|
308337
|
-
]
|
|
308338
|
-
}, undefined, true, undefined, this),
|
|
308339
|
-
value: "platform"
|
|
308340
|
-
}
|
|
308341
|
-
];
|
|
308342
|
-
return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
|
|
308343
|
-
flexDirection: "column",
|
|
308344
|
-
gap: 1,
|
|
308345
|
-
marginTop: 1,
|
|
308346
|
-
children: [
|
|
308347
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308348
|
-
bold: true,
|
|
308349
|
-
children: promptText
|
|
308350
|
-
}, undefined, false, undefined, this),
|
|
308351
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308352
|
-
children: "Select provider:"
|
|
308353
|
-
}, undefined, false, undefined, this),
|
|
308354
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
|
|
308355
|
-
children: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(Select, {
|
|
308356
|
-
options: providerOptions,
|
|
308357
|
-
onChange: (value) => {
|
|
308358
|
-
if (value === "platform") {
|
|
308359
|
-
logEvent("tengu_oauth_platform_selected", {});
|
|
308360
|
-
setOAuthStatus({ state: "platform_setup" });
|
|
308361
|
-
return;
|
|
308362
|
-
}
|
|
308363
|
-
setOAuthStatus({ state: "anthropic_auth" });
|
|
308364
|
-
}
|
|
308365
|
-
}, undefined, false, undefined, this)
|
|
308366
|
-
}, undefined, false, undefined, this)
|
|
308367
|
-
]
|
|
308368
|
-
}, undefined, true, undefined, this);
|
|
308369
|
-
}
|
|
308370
|
-
case "anthropic_auth": {
|
|
308371
|
-
const anthropicAuthOptions = [
|
|
308372
|
-
{
|
|
308373
|
-
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308374
|
-
children: [
|
|
308375
|
-
"Claude account with subscription ·",
|
|
308376
|
-
" ",
|
|
308377
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308378
|
-
dimColor: true,
|
|
308379
|
-
children: "Pro, Max, Team, or Enterprise"
|
|
308380
|
-
}, undefined, false, undefined, this),
|
|
308381
|
-
`
|
|
308382
|
-
`
|
|
308383
|
-
]
|
|
308384
|
-
}, undefined, true, undefined, this),
|
|
308385
|
-
value: "claudeai"
|
|
308386
|
-
},
|
|
308387
|
-
{
|
|
308388
|
-
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308389
|
-
children: [
|
|
308390
|
-
"Anthropic Console account ·",
|
|
308391
|
-
" ",
|
|
308392
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308393
|
-
dimColor: true,
|
|
308394
|
-
children: "API usage billing"
|
|
308395
|
-
}, undefined, false, undefined, this),
|
|
308396
|
-
`
|
|
308397
|
-
`
|
|
308398
|
-
]
|
|
308399
|
-
}, undefined, true, undefined, this),
|
|
308400
|
-
value: "console"
|
|
308401
|
-
}
|
|
308402
|
-
];
|
|
308403
|
-
return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
|
|
308404
|
-
flexDirection: "column",
|
|
308405
|
-
gap: 1,
|
|
308406
|
-
marginTop: 1,
|
|
308407
|
-
children: [
|
|
308408
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308409
|
-
bold: true,
|
|
308410
|
-
children: "Anthropic authentication"
|
|
308411
|
-
}, undefined, false, undefined, this),
|
|
308412
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308413
|
-
children: "Select auth method:"
|
|
308414
|
-
}, undefined, false, undefined, this),
|
|
308415
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
|
|
308416
|
-
children: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(Select, {
|
|
308417
|
-
options: anthropicAuthOptions,
|
|
308418
|
-
onChange: (value) => {
|
|
308419
|
-
setOAuthStatus({ state: "ready_to_start" });
|
|
308420
|
-
if (value === "claudeai") {
|
|
308421
|
-
logEvent("tengu_oauth_claudeai_selected", {});
|
|
308422
|
-
setLoginWithClaudeAi(true);
|
|
308423
|
-
} else {
|
|
308424
|
-
logEvent("tengu_oauth_console_selected", {});
|
|
308425
|
-
setLoginWithClaudeAi(false);
|
|
308426
|
-
}
|
|
308427
|
-
},
|
|
308428
|
-
onCancel: () => setOAuthStatus({ state: "idle" })
|
|
308429
|
-
}, undefined, false, undefined, this)
|
|
308430
|
-
}, undefined, false, undefined, this)
|
|
308431
|
-
]
|
|
308432
|
-
}, undefined, true, undefined, this);
|
|
308433
|
-
}
|
|
308434
308317
|
case "platform_setup":
|
|
308435
308318
|
return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ProviderManager, {
|
|
308436
308319
|
mode: "first-run",
|
|
308437
308320
|
onDone: (result) => {
|
|
308321
|
+
if (result?.action === "delegate-anthropic-oauth") {
|
|
308322
|
+
logEvent("tengu_oauth_claudeai_selected", {});
|
|
308323
|
+
setLoginWithClaudeAi(true);
|
|
308324
|
+
setOAuthStatus({ state: "ready_to_start" });
|
|
308325
|
+
return;
|
|
308326
|
+
}
|
|
308438
308327
|
if (!result || result.action !== "saved" || !result.message) {
|
|
308439
|
-
setOAuthStatus({ state: "
|
|
308328
|
+
setOAuthStatus({ state: "platform_setup" });
|
|
308440
308329
|
return;
|
|
308441
308330
|
}
|
|
308442
308331
|
setOAuthStatus({
|
|
@@ -308601,7 +308490,6 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
308601
308490
|
init_log3();
|
|
308602
308491
|
init_settings2();
|
|
308603
308492
|
init_ProviderManager();
|
|
308604
|
-
init_select();
|
|
308605
308493
|
init_KeyboardShortcutHint();
|
|
308606
308494
|
init_Spinner2();
|
|
308607
308495
|
init_TextInput();
|
|
@@ -309820,11 +309708,8 @@ function AssistantTextMessage(t0) {
|
|
|
309820
309708
|
flexDirection: "column",
|
|
309821
309709
|
borderStyle: "single",
|
|
309822
309710
|
borderColor: "claude",
|
|
309823
|
-
borderLeft: true,
|
|
309824
|
-
borderTop: true,
|
|
309825
|
-
borderRight: false,
|
|
309826
|
-
borderBottom: false,
|
|
309827
309711
|
paddingLeft: 1,
|
|
309712
|
+
paddingRight: 1,
|
|
309828
309713
|
borderText: { content: " STRATAGEM ", position: "top", align: "start", offset: 1 },
|
|
309829
309714
|
children: /* @__PURE__ */ jsx_dev_runtime95.jsxDEV(ThemedBox_default, {
|
|
309830
309715
|
flexDirection: "row",
|
|
@@ -309966,11 +309851,8 @@ function AssistantThinkingMessage(t0) {
|
|
|
309966
309851
|
width: "100%",
|
|
309967
309852
|
borderStyle: "single",
|
|
309968
309853
|
borderColor: "dim",
|
|
309969
|
-
borderLeft: true,
|
|
309970
|
-
borderTop: true,
|
|
309971
|
-
borderRight: false,
|
|
309972
|
-
borderBottom: false,
|
|
309973
309854
|
paddingLeft: 1,
|
|
309855
|
+
paddingRight: 1,
|
|
309974
309856
|
borderText: { content: " TRACE // COGNITION ", position: "top", align: "start", offset: 1 },
|
|
309975
309857
|
children: t6
|
|
309976
309858
|
}, undefined, false, undefined, this);
|
|
@@ -312094,10 +311976,6 @@ ${tail}`;
|
|
|
312094
311976
|
paddingRight: useBriefLayout ? 0 : 1,
|
|
312095
311977
|
borderStyle: useBriefLayout ? undefined : "single",
|
|
312096
311978
|
borderColor: useBriefLayout ? undefined : "promptBorder",
|
|
312097
|
-
borderLeft: useBriefLayout ? false : true,
|
|
312098
|
-
borderTop: useBriefLayout ? false : true,
|
|
312099
|
-
borderRight: false,
|
|
312100
|
-
borderBottom: false,
|
|
312101
311979
|
borderText,
|
|
312102
311980
|
children: /* @__PURE__ */ jsx_dev_runtime110.jsxDEV(HighlightedThinkingText, {
|
|
312103
311981
|
text: displayText,
|
|
@@ -350378,7 +350256,7 @@ function getAnthropicEnvMetadata() {
|
|
|
350378
350256
|
function getBuildAgeMinutes() {
|
|
350379
350257
|
if (false)
|
|
350380
350258
|
;
|
|
350381
|
-
const buildTime = new Date("2026-05-
|
|
350259
|
+
const buildTime = new Date("2026-05-08T03:00:25.793Z").getTime();
|
|
350382
350260
|
if (isNaN(buildTime))
|
|
350383
350261
|
return;
|
|
350384
350262
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -418191,7 +418069,7 @@ function buildPrimarySection() {
|
|
|
418191
418069
|
}, undefined, false, undefined, this);
|
|
418192
418070
|
return [{
|
|
418193
418071
|
label: "Version",
|
|
418194
|
-
value: "0.3.
|
|
418072
|
+
value: "0.3.63"
|
|
418195
418073
|
}, {
|
|
418196
418074
|
label: "Session name",
|
|
418197
418075
|
value: nameValue
|
|
@@ -457878,7 +457756,7 @@ function getStartupLines(termWidth) {
|
|
|
457878
457756
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
457879
457757
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
457880
457758
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
457881
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
457759
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.63"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
457882
457760
|
out.push("");
|
|
457883
457761
|
return out;
|
|
457884
457762
|
}
|
|
@@ -486629,7 +486507,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
486629
486507
|
var call61 = async () => {
|
|
486630
486508
|
return {
|
|
486631
486509
|
type: "text",
|
|
486632
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
486510
|
+
value: `${"99.0.0"} (built ${"2026-05-08T03:00:25.793Z"})`
|
|
486633
486511
|
};
|
|
486634
486512
|
}, version2, version_default;
|
|
486635
486513
|
var init_version = __esm(() => {
|
|
@@ -555455,7 +555333,7 @@ function WelcomeV2() {
|
|
|
555455
555333
|
dimColor: true,
|
|
555456
555334
|
children: [
|
|
555457
555335
|
"v",
|
|
555458
|
-
"0.3.
|
|
555336
|
+
"0.3.63",
|
|
555459
555337
|
" "
|
|
555460
555338
|
]
|
|
555461
555339
|
}, undefined, true, undefined, this)
|
|
@@ -574913,7 +574791,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
574913
574791
|
pendingHookMessages
|
|
574914
574792
|
}, renderAndRun);
|
|
574915
574793
|
}
|
|
574916
|
-
}).version("0.3.
|
|
574794
|
+
}).version("0.3.63 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
574917
574795
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
574918
574796
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
574919
574797
|
if (canUserConfigureAdvisor()) {
|
|
@@ -575374,7 +575252,7 @@ if (false) {}
|
|
|
575374
575252
|
async function main2() {
|
|
575375
575253
|
const args = process.argv.slice(2);
|
|
575376
575254
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
575377
|
-
console.log(`${"0.3.
|
|
575255
|
+
console.log(`${"0.3.63"} (STRATAGEM X7)`);
|
|
575378
575256
|
return;
|
|
575379
575257
|
}
|
|
575380
575258
|
if (args.includes("--provider")) {
|
|
@@ -575496,4 +575374,4 @@ async function main2() {
|
|
|
575496
575374
|
}
|
|
575497
575375
|
main2();
|
|
575498
575376
|
|
|
575499
|
-
//# debugId=
|
|
575377
|
+
//# debugId=9EAF66A6DCD9CB7764756E2164756E21
|