stratagem-x7 0.3.46 → 0.3.48
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 +21 -20
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -188575,7 +188575,7 @@ function modelSupportsMaxEffort(model) {
|
|
|
188575
188575
|
return false;
|
|
188576
188576
|
}
|
|
188577
188577
|
function isEffortLevel(value) {
|
|
188578
|
-
return EFFORT_LEVELS.includes(value)
|
|
188578
|
+
return EFFORT_LEVELS.includes(value);
|
|
188579
188579
|
}
|
|
188580
188580
|
function isOpenAIEffortLevel(value) {
|
|
188581
188581
|
return OPENAI_EFFORT_LEVELS.includes(value);
|
|
@@ -292749,7 +292749,7 @@ function getKnownModelsForBaseUrl(baseUrl) {
|
|
|
292749
292749
|
const lower = baseUrl.toLowerCase();
|
|
292750
292750
|
if (lower.includes("api.anthropic.com") || lower.includes("anthropic")) {
|
|
292751
292751
|
return [
|
|
292752
|
-
|
|
292752
|
+
SUBSCRIPTION_MODEL_SENTINEL,
|
|
292753
292753
|
"opus",
|
|
292754
292754
|
"sonnet",
|
|
292755
292755
|
"haiku",
|
|
@@ -293333,8 +293333,8 @@ function ProviderManager({ mode, onDone }) {
|
|
|
293333
293333
|
const isActiveSavedProfile = getActiveProviderProfile()?.id === saved.id;
|
|
293334
293334
|
const settingsOverrideError = isActiveSavedProfile ? clearStartupProviderOverrideFromUserSettings() : null;
|
|
293335
293335
|
refreshProfiles();
|
|
293336
|
-
if (isActiveSavedProfile
|
|
293337
|
-
const newModel = getPrimaryModel(saved.model);
|
|
293336
|
+
if (isActiveSavedProfile) {
|
|
293337
|
+
const newModel = saved.model ? getPrimaryModel(saved.model) : getDefaultMainLoopModel();
|
|
293338
293338
|
setAppState((prev) => ({
|
|
293339
293339
|
...prev,
|
|
293340
293340
|
mainLoopModel: newModel
|
|
@@ -293770,12 +293770,12 @@ function ProviderManager({ mode, onDone }) {
|
|
|
293770
293770
|
flexDirection: "column",
|
|
293771
293771
|
children: /* @__PURE__ */ jsx_dev_runtime70.jsxDEV(Select, {
|
|
293772
293772
|
options: [
|
|
293773
|
-
...discoveredModels.filter((m) => m !==
|
|
293773
|
+
...discoveredModels.filter((m) => m !== SUBSCRIPTION_MODEL_SENTINEL).map((m) => ({
|
|
293774
293774
|
value: m,
|
|
293775
293775
|
label: m
|
|
293776
293776
|
})),
|
|
293777
|
-
...discoveredModels.includes(
|
|
293778
|
-
value:
|
|
293777
|
+
...discoveredModels.includes(SUBSCRIPTION_MODEL_SENTINEL) ? [{
|
|
293778
|
+
value: SUBSCRIPTION_MODEL_SENTINEL,
|
|
293779
293779
|
label: "⚡ Subscription default",
|
|
293780
293780
|
description: "Uses your subscription tier model (OAuth)"
|
|
293781
293781
|
}] : [],
|
|
@@ -293790,7 +293790,7 @@ function ProviderManager({ mode, onDone }) {
|
|
|
293790
293790
|
setDiscoveredModels(null);
|
|
293791
293791
|
return;
|
|
293792
293792
|
}
|
|
293793
|
-
if (value ===
|
|
293793
|
+
if (value === SUBSCRIPTION_MODEL_SENTINEL) {
|
|
293794
293794
|
handleFormSubmit("");
|
|
293795
293795
|
return;
|
|
293796
293796
|
}
|
|
@@ -294159,7 +294159,7 @@ function ProviderManager({ mode, onDone }) {
|
|
|
294159
294159
|
children: content
|
|
294160
294160
|
}, undefined, false, undefined, this);
|
|
294161
294161
|
}
|
|
294162
|
-
var React29, jsx_dev_runtime70, FORM_STEPS, GITHUB_PROVIDER_ID = "__github_models__", GITHUB_PROVIDER_LABEL = "GitHub Models", GITHUB_PROVIDER_DEFAULT_MODEL = "github:copilot", GITHUB_PROVIDER_DEFAULT_BASE_URL = "https://models.github.ai/inference", CODEX_OAUTH_PROVIDER_NAME = "Codex OAuth", CODEX_OAUTH_PROVIDER_MODEL = "codexplan";
|
|
294162
|
+
var React29, jsx_dev_runtime70, SUBSCRIPTION_MODEL_SENTINEL = "__subscription__", FORM_STEPS, GITHUB_PROVIDER_ID = "__github_models__", GITHUB_PROVIDER_LABEL = "GitHub Models", GITHUB_PROVIDER_DEFAULT_MODEL = "github:copilot", GITHUB_PROVIDER_DEFAULT_BASE_URL = "https://models.github.ai/inference", CODEX_OAUTH_PROVIDER_NAME = "Codex OAuth", CODEX_OAUTH_PROVIDER_MODEL = "codexplan";
|
|
294163
294163
|
var init_ProviderManager = __esm(() => {
|
|
294164
294164
|
init_axios2();
|
|
294165
294165
|
init_figures();
|
|
@@ -294168,6 +294168,7 @@ var init_ProviderManager = __esm(() => {
|
|
|
294168
294168
|
init_useKeybinding();
|
|
294169
294169
|
init_codexCredentials();
|
|
294170
294170
|
init_envUtils();
|
|
294171
|
+
init_model();
|
|
294171
294172
|
init_providerProfile2();
|
|
294172
294173
|
init_providerProfiles();
|
|
294173
294174
|
init_githubModelsCredentials();
|
|
@@ -350503,7 +350504,7 @@ function getAnthropicEnvMetadata() {
|
|
|
350503
350504
|
function getBuildAgeMinutes() {
|
|
350504
350505
|
if (false)
|
|
350505
350506
|
;
|
|
350506
|
-
const buildTime = new Date("2026-05-
|
|
350507
|
+
const buildTime = new Date("2026-05-07T13:58:07.214Z").getTime();
|
|
350507
350508
|
if (isNaN(buildTime))
|
|
350508
350509
|
return;
|
|
350509
350510
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -417835,7 +417836,7 @@ function buildPrimarySection() {
|
|
|
417835
417836
|
}, undefined, false, undefined, this);
|
|
417836
417837
|
return [{
|
|
417837
417838
|
label: "Version",
|
|
417838
|
-
value: "0.3.
|
|
417839
|
+
value: "0.3.48"
|
|
417839
417840
|
}, {
|
|
417840
417841
|
label: "Session name",
|
|
417841
417842
|
value: nameValue
|
|
@@ -419056,7 +419057,7 @@ function getOpus41Option() {
|
|
|
419056
419057
|
function getOpus46Option(fastMode = false) {
|
|
419057
419058
|
const is3P = getAPIProvider() !== "firstParty";
|
|
419058
419059
|
return {
|
|
419059
|
-
value: is3P ? getModelStrings2().
|
|
419060
|
+
value: is3P ? getModelStrings2().opus47 : "opus",
|
|
419060
419061
|
label: "Opus",
|
|
419061
419062
|
description: `Opus 4.7 · Most capable for complex work${getOpus46PricingSuffix(fastMode)}`,
|
|
419062
419063
|
descriptionForModel: "Opus 4.7 - most capable for complex work"
|
|
@@ -419074,7 +419075,7 @@ function getSonnet46_1MOption() {
|
|
|
419074
419075
|
function getOpus46_1MOption(fastMode = false) {
|
|
419075
419076
|
const is3P = getAPIProvider() !== "firstParty";
|
|
419076
419077
|
return {
|
|
419077
|
-
value: is3P ? getModelStrings2().
|
|
419078
|
+
value: is3P ? getModelStrings2().opus47 + "[1m]" : "opus[1m]",
|
|
419078
419079
|
label: "Opus (1M context)",
|
|
419079
419080
|
description: `Opus 4.7 for long sessions${getOpus46PricingSuffix(fastMode)}`,
|
|
419080
419081
|
descriptionForModel: "Opus 4.7 with 1M context window - for long sessions with large codebases"
|
|
@@ -419141,7 +419142,7 @@ function getMaxOpus46_1MOption(fastMode = false) {
|
|
|
419141
419142
|
function getMergedOpus1MOption(fastMode = false) {
|
|
419142
419143
|
const is3P = getAPIProvider() !== "firstParty";
|
|
419143
419144
|
return {
|
|
419144
|
-
value: is3P ? getModelStrings2().
|
|
419145
|
+
value: is3P ? getModelStrings2().opus47 + "[1m]" : "opus[1m]",
|
|
419145
419146
|
label: "Opus (1M context)",
|
|
419146
419147
|
description: `Opus 4.7 with 1M context · Most capable for complex work${!is3P && fastMode ? getOpus46PricingSuffix(fastMode) : ""}`,
|
|
419147
419148
|
descriptionForModel: "Opus 4.7 with 1M context - most capable for complex work"
|
|
@@ -457529,7 +457530,7 @@ function getStartupLines(termWidth) {
|
|
|
457529
457530
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
457530
457531
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
457531
457532
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
457532
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
457533
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.48"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
457533
457534
|
out.push("");
|
|
457534
457535
|
return out;
|
|
457535
457536
|
}
|
|
@@ -486202,7 +486203,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
486202
486203
|
var call60 = async () => {
|
|
486203
486204
|
return {
|
|
486204
486205
|
type: "text",
|
|
486205
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
486206
|
+
value: `${"99.0.0"} (built ${"2026-05-07T13:58:07.214Z"})`
|
|
486206
486207
|
};
|
|
486207
486208
|
}, version2, version_default;
|
|
486208
486209
|
var init_version = __esm(() => {
|
|
@@ -554935,7 +554936,7 @@ function WelcomeV2() {
|
|
|
554935
554936
|
dimColor: true,
|
|
554936
554937
|
children: [
|
|
554937
554938
|
"v",
|
|
554938
|
-
"0.3.
|
|
554939
|
+
"0.3.48",
|
|
554939
554940
|
" "
|
|
554940
554941
|
]
|
|
554941
554942
|
}, undefined, true, undefined, this)
|
|
@@ -574393,7 +574394,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
574393
574394
|
pendingHookMessages
|
|
574394
574395
|
}, renderAndRun);
|
|
574395
574396
|
}
|
|
574396
|
-
}).version("0.3.
|
|
574397
|
+
}).version("0.3.48 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
574397
574398
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
574398
574399
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
574399
574400
|
if (canUserConfigureAdvisor()) {
|
|
@@ -574854,7 +574855,7 @@ if (false) {}
|
|
|
574854
574855
|
async function main2() {
|
|
574855
574856
|
const args = process.argv.slice(2);
|
|
574856
574857
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
574857
|
-
console.log(`${"0.3.
|
|
574858
|
+
console.log(`${"0.3.48"} (STRATAGEM X7)`);
|
|
574858
574859
|
return;
|
|
574859
574860
|
}
|
|
574860
574861
|
if (args.includes("--provider")) {
|
|
@@ -574976,4 +574977,4 @@ async function main2() {
|
|
|
574976
574977
|
}
|
|
574977
574978
|
main2();
|
|
574978
574979
|
|
|
574979
|
-
//# debugId=
|
|
574980
|
+
//# debugId=5A8035F673B40D9F64756E2164756E21
|