stratagem-x7 0.3.22 → 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 +88 -10
- 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-29T03:
|
|
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
|
|
@@ -449725,7 +449803,7 @@ function getStartupLines(termWidth) {
|
|
|
449725
449803
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
449726
449804
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
449727
449805
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
449728
|
-
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));
|
|
449729
449807
|
out.push("");
|
|
449730
449808
|
return out;
|
|
449731
449809
|
}
|
|
@@ -478314,7 +478392,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
478314
478392
|
var call60 = async () => {
|
|
478315
478393
|
return {
|
|
478316
478394
|
type: "text",
|
|
478317
|
-
value: `${"99.0.0"} (built ${"2026-04-29T03:
|
|
478395
|
+
value: `${"99.0.0"} (built ${"2026-04-29T03:31:13.511Z"})`
|
|
478318
478396
|
};
|
|
478319
478397
|
}, version2, version_default;
|
|
478320
478398
|
var init_version = __esm(() => {
|
|
@@ -553726,7 +553804,7 @@ function WelcomeV2() {
|
|
|
553726
553804
|
dimColor: true,
|
|
553727
553805
|
children: [
|
|
553728
553806
|
"v",
|
|
553729
|
-
"0.3.
|
|
553807
|
+
"0.3.23",
|
|
553730
553808
|
" "
|
|
553731
553809
|
]
|
|
553732
553810
|
}, undefined, true, undefined, this)
|
|
@@ -573743,7 +573821,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
573743
573821
|
pendingHookMessages
|
|
573744
573822
|
}, renderAndRun);
|
|
573745
573823
|
}
|
|
573746
|
-
}).version("0.3.
|
|
573824
|
+
}).version("0.3.23 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
573747
573825
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
573748
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.");
|
|
573749
573827
|
if (canUserConfigureAdvisor()) {
|
|
@@ -574271,7 +574349,7 @@ if (false) {}
|
|
|
574271
574349
|
async function main2() {
|
|
574272
574350
|
const args = process.argv.slice(2);
|
|
574273
574351
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
574274
|
-
console.log(`${"0.3.
|
|
574352
|
+
console.log(`${"0.3.23"} (STRATAGEM X7)`);
|
|
574275
574353
|
return;
|
|
574276
574354
|
}
|
|
574277
574355
|
if (args.includes("--provider")) {
|
|
@@ -574393,4 +574471,4 @@ async function main2() {
|
|
|
574393
574471
|
}
|
|
574394
574472
|
main2();
|
|
574395
574473
|
|
|
574396
|
-
//# debugId=
|
|
574474
|
+
//# debugId=42DBD89575FFBCEC64756E2164756E21
|