stratagem-x7 0.3.60 → 0.3.62
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 +27 -97
- 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,96 +308314,18 @@ function OAuthStatusMessage({
|
|
|
308305
308314
|
setLoginWithClaudeAi
|
|
308306
308315
|
}) {
|
|
308307
308316
|
switch (oauthStatus.state) {
|
|
308308
|
-
case "idle": {
|
|
308309
|
-
const promptText = startingMessage || "Claude Code can be used with your Claude subscription or billed based on API usage through your Console account.";
|
|
308310
|
-
const loginOptions = [
|
|
308311
|
-
{
|
|
308312
|
-
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308313
|
-
children: [
|
|
308314
|
-
"Claude account with subscription ·",
|
|
308315
|
-
" ",
|
|
308316
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308317
|
-
dimColor: true,
|
|
308318
|
-
children: "Pro, Max, Team, or Enterprise"
|
|
308319
|
-
}, undefined, false, undefined, this),
|
|
308320
|
-
`
|
|
308321
|
-
`
|
|
308322
|
-
]
|
|
308323
|
-
}, undefined, true, undefined, this),
|
|
308324
|
-
value: "claudeai"
|
|
308325
|
-
},
|
|
308326
|
-
{
|
|
308327
|
-
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308328
|
-
children: [
|
|
308329
|
-
"Anthropic Console account ·",
|
|
308330
|
-
" ",
|
|
308331
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308332
|
-
dimColor: true,
|
|
308333
|
-
children: "API usage billing"
|
|
308334
|
-
}, undefined, false, undefined, this),
|
|
308335
|
-
`
|
|
308336
|
-
`
|
|
308337
|
-
]
|
|
308338
|
-
}, undefined, true, undefined, this),
|
|
308339
|
-
value: "console"
|
|
308340
|
-
},
|
|
308341
|
-
{
|
|
308342
|
-
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308343
|
-
children: [
|
|
308344
|
-
"3rd-party platform ·",
|
|
308345
|
-
" ",
|
|
308346
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308347
|
-
dimColor: true,
|
|
308348
|
-
children: "OpenAI, Gemini, Bedrock, Ollama, and more"
|
|
308349
|
-
}, undefined, false, undefined, this),
|
|
308350
|
-
`
|
|
308351
|
-
`
|
|
308352
|
-
]
|
|
308353
|
-
}, undefined, true, undefined, this),
|
|
308354
|
-
value: "platform"
|
|
308355
|
-
}
|
|
308356
|
-
];
|
|
308357
|
-
return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
|
|
308358
|
-
flexDirection: "column",
|
|
308359
|
-
gap: 1,
|
|
308360
|
-
marginTop: 1,
|
|
308361
|
-
children: [
|
|
308362
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308363
|
-
bold: true,
|
|
308364
|
-
children: promptText
|
|
308365
|
-
}, undefined, false, undefined, this),
|
|
308366
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308367
|
-
children: "Select login method:"
|
|
308368
|
-
}, undefined, false, undefined, this),
|
|
308369
|
-
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
|
|
308370
|
-
children: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(Select, {
|
|
308371
|
-
options: loginOptions,
|
|
308372
|
-
onChange: (value) => {
|
|
308373
|
-
if (value === "platform") {
|
|
308374
|
-
logEvent("tengu_oauth_platform_selected", {});
|
|
308375
|
-
setOAuthStatus({ state: "platform_setup" });
|
|
308376
|
-
return;
|
|
308377
|
-
}
|
|
308378
|
-
setOAuthStatus({ state: "ready_to_start" });
|
|
308379
|
-
if (value === "claudeai") {
|
|
308380
|
-
logEvent("tengu_oauth_claudeai_selected", {});
|
|
308381
|
-
setLoginWithClaudeAi(true);
|
|
308382
|
-
} else {
|
|
308383
|
-
logEvent("tengu_oauth_console_selected", {});
|
|
308384
|
-
setLoginWithClaudeAi(false);
|
|
308385
|
-
}
|
|
308386
|
-
}
|
|
308387
|
-
}, undefined, false, undefined, this)
|
|
308388
|
-
}, undefined, false, undefined, this)
|
|
308389
|
-
]
|
|
308390
|
-
}, undefined, true, undefined, this);
|
|
308391
|
-
}
|
|
308392
308317
|
case "platform_setup":
|
|
308393
308318
|
return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ProviderManager, {
|
|
308394
308319
|
mode: "first-run",
|
|
308395
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
|
+
}
|
|
308396
308327
|
if (!result || result.action !== "saved" || !result.message) {
|
|
308397
|
-
setOAuthStatus({ state: "
|
|
308328
|
+
setOAuthStatus({ state: "platform_setup" });
|
|
308398
308329
|
return;
|
|
308399
308330
|
}
|
|
308400
308331
|
setOAuthStatus({
|
|
@@ -308559,7 +308490,6 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
308559
308490
|
init_log3();
|
|
308560
308491
|
init_settings2();
|
|
308561
308492
|
init_ProviderManager();
|
|
308562
|
-
init_select();
|
|
308563
308493
|
init_KeyboardShortcutHint();
|
|
308564
308494
|
init_Spinner2();
|
|
308565
308495
|
init_TextInput();
|
|
@@ -350336,7 +350266,7 @@ function getAnthropicEnvMetadata() {
|
|
|
350336
350266
|
function getBuildAgeMinutes() {
|
|
350337
350267
|
if (false)
|
|
350338
350268
|
;
|
|
350339
|
-
const buildTime = new Date("2026-05-08T02:
|
|
350269
|
+
const buildTime = new Date("2026-05-08T02:50:29.288Z").getTime();
|
|
350340
350270
|
if (isNaN(buildTime))
|
|
350341
350271
|
return;
|
|
350342
350272
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -418149,7 +418079,7 @@ function buildPrimarySection() {
|
|
|
418149
418079
|
}, undefined, false, undefined, this);
|
|
418150
418080
|
return [{
|
|
418151
418081
|
label: "Version",
|
|
418152
|
-
value: "0.3.
|
|
418082
|
+
value: "0.3.62"
|
|
418153
418083
|
}, {
|
|
418154
418084
|
label: "Session name",
|
|
418155
418085
|
value: nameValue
|
|
@@ -457836,7 +457766,7 @@ function getStartupLines(termWidth) {
|
|
|
457836
457766
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
457837
457767
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
457838
457768
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
457839
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
457769
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.62"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
457840
457770
|
out.push("");
|
|
457841
457771
|
return out;
|
|
457842
457772
|
}
|
|
@@ -486587,7 +486517,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
486587
486517
|
var call61 = async () => {
|
|
486588
486518
|
return {
|
|
486589
486519
|
type: "text",
|
|
486590
|
-
value: `${"99.0.0"} (built ${"2026-05-08T02:
|
|
486520
|
+
value: `${"99.0.0"} (built ${"2026-05-08T02:50:29.288Z"})`
|
|
486591
486521
|
};
|
|
486592
486522
|
}, version2, version_default;
|
|
486593
486523
|
var init_version = __esm(() => {
|
|
@@ -555413,7 +555343,7 @@ function WelcomeV2() {
|
|
|
555413
555343
|
dimColor: true,
|
|
555414
555344
|
children: [
|
|
555415
555345
|
"v",
|
|
555416
|
-
"0.3.
|
|
555346
|
+
"0.3.62",
|
|
555417
555347
|
" "
|
|
555418
555348
|
]
|
|
555419
555349
|
}, undefined, true, undefined, this)
|
|
@@ -574871,7 +574801,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
574871
574801
|
pendingHookMessages
|
|
574872
574802
|
}, renderAndRun);
|
|
574873
574803
|
}
|
|
574874
|
-
}).version("0.3.
|
|
574804
|
+
}).version("0.3.62 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
574875
574805
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
574876
574806
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
574877
574807
|
if (canUserConfigureAdvisor()) {
|
|
@@ -575332,7 +575262,7 @@ if (false) {}
|
|
|
575332
575262
|
async function main2() {
|
|
575333
575263
|
const args = process.argv.slice(2);
|
|
575334
575264
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
575335
|
-
console.log(`${"0.3.
|
|
575265
|
+
console.log(`${"0.3.62"} (STRATAGEM X7)`);
|
|
575336
575266
|
return;
|
|
575337
575267
|
}
|
|
575338
575268
|
if (args.includes("--provider")) {
|
|
@@ -575454,4 +575384,4 @@ async function main2() {
|
|
|
575454
575384
|
}
|
|
575455
575385
|
main2();
|
|
575456
575386
|
|
|
575457
|
-
//# debugId=
|
|
575387
|
+
//# debugId=40703F982E7F18CB64756E2164756E21
|