stratagem-x7 0.3.21 → 0.3.23
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 +164 -16
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -280927,6 +280927,79 @@ function profileSummary(profile, isActive) {
|
|
|
280927
280927
|
const modelDisplay = models.length <= 3 ? models.join(", ") : `${models[0]}, ${models[1]} + ${models.length - 2} more`;
|
|
280928
280928
|
return `${providerKind} · ${profile.baseUrl} · ${modelDisplay} · ${keyInfo}${activeSuffix}`;
|
|
280929
280929
|
}
|
|
280930
|
+
function getKnownModelsForBaseUrl(baseUrl) {
|
|
280931
|
+
const lower = baseUrl.toLowerCase();
|
|
280932
|
+
if (lower.includes("codex") || lower.includes("chatgpt.com")) {
|
|
280933
|
+
return [
|
|
280934
|
+
"gpt-5.5",
|
|
280935
|
+
"gpt-5.4",
|
|
280936
|
+
"gpt-5.3-codex",
|
|
280937
|
+
"gpt-5-mini",
|
|
280938
|
+
"codexplan",
|
|
280939
|
+
"codexspark",
|
|
280940
|
+
"o4-mini",
|
|
280941
|
+
"o3",
|
|
280942
|
+
"gpt-4.1",
|
|
280943
|
+
"gpt-4.1-mini",
|
|
280944
|
+
"gpt-5.4-mini",
|
|
280945
|
+
"gpt-5.2-codex",
|
|
280946
|
+
"gpt-5.1-codex-max",
|
|
280947
|
+
"gpt-5.1-codex-mini"
|
|
280948
|
+
];
|
|
280949
|
+
}
|
|
280950
|
+
if (lower.includes("api.openai.com")) {
|
|
280951
|
+
return [
|
|
280952
|
+
"gpt-5.5",
|
|
280953
|
+
"gpt-5.4",
|
|
280954
|
+
"gpt-5-mini",
|
|
280955
|
+
"o4-mini",
|
|
280956
|
+
"o3",
|
|
280957
|
+
"gpt-4.1",
|
|
280958
|
+
"gpt-4.1-mini",
|
|
280959
|
+
"gpt-4o",
|
|
280960
|
+
"gpt-4o-mini"
|
|
280961
|
+
];
|
|
280962
|
+
}
|
|
280963
|
+
if (lower.includes("generativelanguage.googleapis.com") || lower.includes("gemini")) {
|
|
280964
|
+
return [
|
|
280965
|
+
"gemini-2.5-pro",
|
|
280966
|
+
"gemini-2.5-flash",
|
|
280967
|
+
"gemini-2.0-flash",
|
|
280968
|
+
"gemini-2.0-flash-lite"
|
|
280969
|
+
];
|
|
280970
|
+
}
|
|
280971
|
+
if (lower.includes("mistral")) {
|
|
280972
|
+
return [
|
|
280973
|
+
"mistral-large-latest",
|
|
280974
|
+
"mistral-medium-latest",
|
|
280975
|
+
"mistral-small-latest",
|
|
280976
|
+
"codestral-latest"
|
|
280977
|
+
];
|
|
280978
|
+
}
|
|
280979
|
+
if (lower.includes("groq")) {
|
|
280980
|
+
return [
|
|
280981
|
+
"llama-3.3-70b-versatile",
|
|
280982
|
+
"llama-3.1-8b-instant",
|
|
280983
|
+
"mixtral-8x7b-32768",
|
|
280984
|
+
"gemma2-9b-it"
|
|
280985
|
+
];
|
|
280986
|
+
}
|
|
280987
|
+
if (lower.includes("deepseek")) {
|
|
280988
|
+
return [
|
|
280989
|
+
"deepseek-chat",
|
|
280990
|
+
"deepseek-reasoner",
|
|
280991
|
+
"deepseek-coder"
|
|
280992
|
+
];
|
|
280993
|
+
}
|
|
280994
|
+
if (lower.includes("x.ai") || lower.includes("grok")) {
|
|
280995
|
+
return [
|
|
280996
|
+
"grok-3",
|
|
280997
|
+
"grok-3-mini",
|
|
280998
|
+
"grok-2"
|
|
280999
|
+
];
|
|
281000
|
+
}
|
|
281001
|
+
return null;
|
|
281002
|
+
}
|
|
280930
281003
|
function getGithubCredentialSourceFromEnv(processEnv = process.env) {
|
|
280931
281004
|
if (processEnv.GITHUB_TOKEN?.trim() || processEnv.GH_TOKEN?.trim()) {
|
|
280932
281005
|
return "env";
|
|
@@ -281604,10 +281677,15 @@ function ProviderManager({ mode, onDone }) {
|
|
|
281604
281677
|
if (cancelled)
|
|
281605
281678
|
return;
|
|
281606
281679
|
const models = (response.data?.data ?? []).map((m) => m.id ?? "").filter((id) => id.length > 0);
|
|
281607
|
-
|
|
281680
|
+
if (models.length > 0) {
|
|
281681
|
+
setDiscoveredModels(models);
|
|
281682
|
+
} else {
|
|
281683
|
+
if (!cancelled)
|
|
281684
|
+
setDiscoveredModels(getKnownModelsForBaseUrl(baseUrl));
|
|
281685
|
+
}
|
|
281608
281686
|
} catch {
|
|
281609
281687
|
if (!cancelled)
|
|
281610
|
-
setDiscoveredModels(
|
|
281688
|
+
setDiscoveredModels(getKnownModelsForBaseUrl(baseUrl));
|
|
281611
281689
|
} finally {
|
|
281612
281690
|
if (!cancelled)
|
|
281613
281691
|
setModelDiscoveryLoading(false);
|
|
@@ -382892,7 +382970,7 @@ function getAnthropicEnvMetadata() {
|
|
|
382892
382970
|
function getBuildAgeMinutes() {
|
|
382893
382971
|
if (false)
|
|
382894
382972
|
;
|
|
382895
|
-
const buildTime = new Date("2026-04-
|
|
382973
|
+
const buildTime = new Date("2026-04-29T03:31:13.511Z").getTime();
|
|
382896
382974
|
if (isNaN(buildTime))
|
|
382897
382975
|
return;
|
|
382898
382976
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -410069,7 +410147,7 @@ function buildPrimarySection() {
|
|
|
410069
410147
|
}, undefined, false, undefined, this);
|
|
410070
410148
|
return [{
|
|
410071
410149
|
label: "Version",
|
|
410072
|
-
value: "0.3.
|
|
410150
|
+
value: "0.3.23"
|
|
410073
410151
|
}, {
|
|
410074
410152
|
label: "Session name",
|
|
410075
410153
|
value: nameValue
|
|
@@ -411390,6 +411468,11 @@ function getCodexSparkOption() {
|
|
|
411390
411468
|
}
|
|
411391
411469
|
function getCodexModelOptions() {
|
|
411392
411470
|
return [
|
|
411471
|
+
{
|
|
411472
|
+
value: "gpt-5.5",
|
|
411473
|
+
label: "gpt-5.5",
|
|
411474
|
+
description: "GPT-5.5 — latest and strongest reasoning"
|
|
411475
|
+
},
|
|
411393
411476
|
{
|
|
411394
411477
|
value: "gpt-5.4",
|
|
411395
411478
|
label: "gpt-5.4",
|
|
@@ -411405,10 +411488,35 @@ function getCodexModelOptions() {
|
|
|
411405
411488
|
label: "gpt-5.3-codex-spark",
|
|
411406
411489
|
description: "GPT-5.3 Codex Spark for fast tool loops"
|
|
411407
411490
|
},
|
|
411491
|
+
{
|
|
411492
|
+
value: "gpt-5-mini",
|
|
411493
|
+
label: "gpt-5-mini",
|
|
411494
|
+
description: "GPT-5 Mini — fast and lightweight"
|
|
411495
|
+
},
|
|
411496
|
+
{
|
|
411497
|
+
value: "o4-mini",
|
|
411498
|
+
label: "o4-mini",
|
|
411499
|
+
description: "O4 Mini — fast reasoning model"
|
|
411500
|
+
},
|
|
411501
|
+
{
|
|
411502
|
+
value: "o3",
|
|
411503
|
+
label: "o3",
|
|
411504
|
+
description: "O3 — advanced reasoning"
|
|
411505
|
+
},
|
|
411408
411506
|
{
|
|
411409
411507
|
value: "codexspark",
|
|
411410
411508
|
label: "codexspark",
|
|
411411
|
-
description: "
|
|
411509
|
+
description: "Codex Spark alias for fast tool loops"
|
|
411510
|
+
},
|
|
411511
|
+
{
|
|
411512
|
+
value: "gpt-4.1",
|
|
411513
|
+
label: "gpt-4.1",
|
|
411514
|
+
description: "GPT-4.1 — solid general purpose"
|
|
411515
|
+
},
|
|
411516
|
+
{
|
|
411517
|
+
value: "gpt-4.1-mini",
|
|
411518
|
+
label: "gpt-4.1-mini",
|
|
411519
|
+
description: "GPT-4.1 Mini — fast and cheap"
|
|
411412
411520
|
},
|
|
411413
411521
|
{
|
|
411414
411522
|
value: "gpt-5.2-codex",
|
|
@@ -449695,7 +449803,7 @@ function getStartupLines(termWidth) {
|
|
|
449695
449803
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
449696
449804
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
449697
449805
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
449698
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
449806
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.23"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
449699
449807
|
out.push("");
|
|
449700
449808
|
return out;
|
|
449701
449809
|
}
|
|
@@ -468777,15 +468885,55 @@ function CodexCredentialStep({
|
|
|
468777
468885
|
}, undefined, false, undefined, this);
|
|
468778
468886
|
}
|
|
468779
468887
|
const options2 = [
|
|
468888
|
+
{
|
|
468889
|
+
label: "gpt-5.5",
|
|
468890
|
+
value: "gpt-5.5",
|
|
468891
|
+
description: "Latest GPT-5.5 — strongest reasoning"
|
|
468892
|
+
},
|
|
468893
|
+
{
|
|
468894
|
+
label: "gpt-5.4",
|
|
468895
|
+
value: "gpt-5.4",
|
|
468896
|
+
description: "GPT-5.4 — high reasoning capacity"
|
|
468897
|
+
},
|
|
468898
|
+
{
|
|
468899
|
+
label: "gpt-5.3-codex",
|
|
468900
|
+
value: "gpt-5.3-codex",
|
|
468901
|
+
description: "GPT-5.3 Codex — optimized for code"
|
|
468902
|
+
},
|
|
468903
|
+
{
|
|
468904
|
+
label: "gpt-5-mini",
|
|
468905
|
+
value: "gpt-5-mini",
|
|
468906
|
+
description: "GPT-5 Mini — fast and lightweight"
|
|
468907
|
+
},
|
|
468780
468908
|
{
|
|
468781
468909
|
label: "codexplan",
|
|
468782
468910
|
value: "codexplan",
|
|
468783
|
-
description: "
|
|
468911
|
+
description: "Codex Plan — higher reasoning on Codex backend"
|
|
468784
468912
|
},
|
|
468785
468913
|
{
|
|
468786
468914
|
label: "codexspark",
|
|
468787
468915
|
value: "codexspark",
|
|
468788
|
-
description: "
|
|
468916
|
+
description: "Codex Spark — fast tool loop profile"
|
|
468917
|
+
},
|
|
468918
|
+
{
|
|
468919
|
+
label: "o4-mini",
|
|
468920
|
+
value: "o4-mini",
|
|
468921
|
+
description: "O4 Mini — fast reasoning model"
|
|
468922
|
+
},
|
|
468923
|
+
{
|
|
468924
|
+
label: "o3",
|
|
468925
|
+
value: "o3",
|
|
468926
|
+
description: "O3 — advanced reasoning"
|
|
468927
|
+
},
|
|
468928
|
+
{
|
|
468929
|
+
label: "gpt-4.1",
|
|
468930
|
+
value: "gpt-4.1",
|
|
468931
|
+
description: "GPT-4.1 — solid general purpose"
|
|
468932
|
+
},
|
|
468933
|
+
{
|
|
468934
|
+
label: "gpt-4.1-mini",
|
|
468935
|
+
value: "gpt-4.1-mini",
|
|
468936
|
+
description: "GPT-4.1 Mini — fast and cheap"
|
|
468789
468937
|
}
|
|
468790
468938
|
];
|
|
468791
468939
|
return /* @__PURE__ */ jsx_dev_runtime302.jsxDEV(Dialog, {
|
|
@@ -468805,10 +468953,10 @@ function CodexCredentialStep({
|
|
|
468805
468953
|
}, undefined, true, undefined, this),
|
|
468806
468954
|
/* @__PURE__ */ jsx_dev_runtime302.jsxDEV(Select, {
|
|
468807
468955
|
options: options2,
|
|
468808
|
-
defaultValue: "
|
|
468809
|
-
defaultFocusValue: "
|
|
468956
|
+
defaultValue: "gpt-5.5",
|
|
468957
|
+
defaultFocusValue: "gpt-5.5",
|
|
468810
468958
|
inlineDescriptions: true,
|
|
468811
|
-
visibleOptionCount: options2.length,
|
|
468959
|
+
visibleOptionCount: Math.min(8, options2.length),
|
|
468812
468960
|
onChange: (value) => {
|
|
468813
468961
|
const env4 = buildCodexProfileEnv({
|
|
468814
468962
|
model: value,
|
|
@@ -478244,7 +478392,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
478244
478392
|
var call60 = async () => {
|
|
478245
478393
|
return {
|
|
478246
478394
|
type: "text",
|
|
478247
|
-
value: `${"99.0.0"} (built ${"2026-04-
|
|
478395
|
+
value: `${"99.0.0"} (built ${"2026-04-29T03:31:13.511Z"})`
|
|
478248
478396
|
};
|
|
478249
478397
|
}, version2, version_default;
|
|
478250
478398
|
var init_version = __esm(() => {
|
|
@@ -553656,7 +553804,7 @@ function WelcomeV2() {
|
|
|
553656
553804
|
dimColor: true,
|
|
553657
553805
|
children: [
|
|
553658
553806
|
"v",
|
|
553659
|
-
"0.3.
|
|
553807
|
+
"0.3.23",
|
|
553660
553808
|
" "
|
|
553661
553809
|
]
|
|
553662
553810
|
}, undefined, true, undefined, this)
|
|
@@ -573673,7 +573821,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
573673
573821
|
pendingHookMessages
|
|
573674
573822
|
}, renderAndRun);
|
|
573675
573823
|
}
|
|
573676
|
-
}).version("0.3.
|
|
573824
|
+
}).version("0.3.23 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
573677
573825
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
573678
573826
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
573679
573827
|
if (canUserConfigureAdvisor()) {
|
|
@@ -574201,7 +574349,7 @@ if (false) {}
|
|
|
574201
574349
|
async function main2() {
|
|
574202
574350
|
const args = process.argv.slice(2);
|
|
574203
574351
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
574204
|
-
console.log(`${"0.3.
|
|
574352
|
+
console.log(`${"0.3.23"} (STRATAGEM X7)`);
|
|
574205
574353
|
return;
|
|
574206
574354
|
}
|
|
574207
574355
|
if (args.includes("--provider")) {
|
|
@@ -574323,4 +574471,4 @@ async function main2() {
|
|
|
574323
574471
|
}
|
|
574324
574472
|
main2();
|
|
574325
574473
|
|
|
574326
|
-
//# debugId=
|
|
574474
|
+
//# debugId=42DBD89575FFBCEC64756E2164756E21
|