stratagem-x7 0.3.70 → 0.3.71
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 +98 -15
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -294627,7 +294627,10 @@ function AntigravityOAuthSetup({
|
|
|
294627
294627
|
const [status, setStatus] = React29.useState({
|
|
294628
294628
|
state: "disclosure"
|
|
294629
294629
|
});
|
|
294630
|
-
useKeybinding("confirm:no",
|
|
294630
|
+
useKeybinding("confirm:no", () => {
|
|
294631
|
+
if (status.state === "disclosure")
|
|
294632
|
+
onBack();
|
|
294633
|
+
});
|
|
294631
294634
|
const onConfiguredRef = React29.useRef(onConfigured);
|
|
294632
294635
|
React29.useEffect(() => {
|
|
294633
294636
|
onConfiguredRef.current = onConfigured;
|
|
@@ -294643,14 +294646,17 @@ function AntigravityOAuthSetup({
|
|
|
294643
294646
|
}
|
|
294644
294647
|
});
|
|
294645
294648
|
getAntigravityRotation().refresh();
|
|
294646
|
-
setStatus({ state: "
|
|
294647
|
-
await onConfiguredRef.current(account);
|
|
294649
|
+
setStatus({ state: "select-model", account });
|
|
294648
294650
|
} catch (err2) {
|
|
294649
294651
|
const message = err2 instanceof Error ? err2.message : String(err2);
|
|
294650
294652
|
setStatus({ state: "error", message });
|
|
294651
294653
|
}
|
|
294652
294654
|
})();
|
|
294653
294655
|
}, []);
|
|
294656
|
+
const finishWithModel = React29.useCallback(async (account, model) => {
|
|
294657
|
+
setStatus({ state: "done", account, model });
|
|
294658
|
+
await onConfiguredRef.current(account, model);
|
|
294659
|
+
}, []);
|
|
294654
294660
|
if (status.state === "disclosure") {
|
|
294655
294661
|
return /* @__PURE__ */ jsx_dev_runtime69.jsxDEV(ThemedBox_default, {
|
|
294656
294662
|
flexDirection: "column",
|
|
@@ -294723,6 +294729,44 @@ function AntigravityOAuthSetup({
|
|
|
294723
294729
|
]
|
|
294724
294730
|
}, undefined, true, undefined, this);
|
|
294725
294731
|
}
|
|
294732
|
+
if (status.state === "select-model") {
|
|
294733
|
+
return /* @__PURE__ */ jsx_dev_runtime69.jsxDEV(ThemedBox_default, {
|
|
294734
|
+
flexDirection: "column",
|
|
294735
|
+
gap: 1,
|
|
294736
|
+
children: [
|
|
294737
|
+
/* @__PURE__ */ jsx_dev_runtime69.jsxDEV(ThemedText, {
|
|
294738
|
+
color: "remember",
|
|
294739
|
+
bold: true,
|
|
294740
|
+
children: "Antigravity uplink — model selection (4/4)"
|
|
294741
|
+
}, undefined, false, undefined, this),
|
|
294742
|
+
/* @__PURE__ */ jsx_dev_runtime69.jsxDEV(ThemedText, {
|
|
294743
|
+
children: [
|
|
294744
|
+
"Linked as ",
|
|
294745
|
+
status.account.email,
|
|
294746
|
+
"."
|
|
294747
|
+
]
|
|
294748
|
+
}, undefined, true, undefined, this),
|
|
294749
|
+
/* @__PURE__ */ jsx_dev_runtime69.jsxDEV(ThemedText, {
|
|
294750
|
+
dimColor: true,
|
|
294751
|
+
children: "Pick the model to route this profile through. You can change it later via /model or by editing the profile in /provider."
|
|
294752
|
+
}, undefined, false, undefined, this),
|
|
294753
|
+
/* @__PURE__ */ jsx_dev_runtime69.jsxDEV(Select, {
|
|
294754
|
+
options: ANTIGRAVITY_MODEL_OPTIONS.map((m) => ({
|
|
294755
|
+
value: m.id,
|
|
294756
|
+
label: m.label,
|
|
294757
|
+
description: m.description
|
|
294758
|
+
})),
|
|
294759
|
+
onChange: (value) => {
|
|
294760
|
+
finishWithModel(status.account, value);
|
|
294761
|
+
},
|
|
294762
|
+
onCancel: () => {
|
|
294763
|
+
finishWithModel(status.account, "gemini-3-pro-preview");
|
|
294764
|
+
},
|
|
294765
|
+
visibleOptionCount: ANTIGRAVITY_MODEL_OPTIONS.length
|
|
294766
|
+
}, undefined, false, undefined, this)
|
|
294767
|
+
]
|
|
294768
|
+
}, undefined, true, undefined, this);
|
|
294769
|
+
}
|
|
294726
294770
|
if (status.state === "done") {
|
|
294727
294771
|
return /* @__PURE__ */ jsx_dev_runtime69.jsxDEV(ThemedBox_default, {
|
|
294728
294772
|
flexDirection: "column",
|
|
@@ -294746,6 +294790,13 @@ function AntigravityOAuthSetup({
|
|
|
294746
294790
|
status.account.projectId
|
|
294747
294791
|
]
|
|
294748
294792
|
}, undefined, true, undefined, this),
|
|
294793
|
+
/* @__PURE__ */ jsx_dev_runtime69.jsxDEV(ThemedText, {
|
|
294794
|
+
dimColor: true,
|
|
294795
|
+
children: [
|
|
294796
|
+
"Model: ",
|
|
294797
|
+
status.model
|
|
294798
|
+
]
|
|
294799
|
+
}, undefined, true, undefined, this),
|
|
294749
294800
|
/* @__PURE__ */ jsx_dev_runtime69.jsxDEV(ThemedText, {
|
|
294750
294801
|
dimColor: true,
|
|
294751
294802
|
children: "Finishing setup..."
|
|
@@ -295902,13 +295953,13 @@ function ProviderManager({ mode, onDone }) {
|
|
|
295902
295953
|
case "antigravity-oauth":
|
|
295903
295954
|
content = /* @__PURE__ */ jsx_dev_runtime69.jsxDEV(AntigravityOAuthSetup, {
|
|
295904
295955
|
onBack: () => setScreen("select-preset"),
|
|
295905
|
-
onConfigured: async (account) => {
|
|
295956
|
+
onConfigured: async (account, model) => {
|
|
295906
295957
|
const presetDefaults = getProviderPresetDefaults("antigravity");
|
|
295907
295958
|
const payload = {
|
|
295908
295959
|
provider: "antigravity",
|
|
295909
295960
|
name: presetDefaults.name,
|
|
295910
295961
|
baseUrl: presetDefaults.baseUrl,
|
|
295911
|
-
model
|
|
295962
|
+
model,
|
|
295912
295963
|
apiKey: ""
|
|
295913
295964
|
};
|
|
295914
295965
|
const existing = profiles.find((p) => p.provider === "antigravity");
|
|
@@ -295924,9 +295975,14 @@ function ProviderManager({ mode, onDone }) {
|
|
|
295924
295975
|
returnToMenu();
|
|
295925
295976
|
return;
|
|
295926
295977
|
}
|
|
295978
|
+
applyProviderProfileToProcessEnv(active);
|
|
295979
|
+
setAppState((prev) => ({
|
|
295980
|
+
...prev,
|
|
295981
|
+
mainLoopModel: getPrimaryModel(active.model)
|
|
295982
|
+
}));
|
|
295927
295983
|
const settingsOverrideError = clearStartupProviderOverrideFromUserSettings();
|
|
295928
295984
|
refreshProfiles();
|
|
295929
|
-
const message = settingsOverrideError ? `Antigravity uplink linked as ${account.email}. Warning: could not clear startup provider override (${settingsOverrideError}).` : `Antigravity uplink linked as ${account.email}.`;
|
|
295985
|
+
const message = settingsOverrideError ? `Antigravity uplink linked as ${account.email} (${model}). Warning: could not clear startup provider override (${settingsOverrideError}).` : `Antigravity uplink linked as ${account.email} (${model}).`;
|
|
295930
295986
|
if (mode === "first-run") {
|
|
295931
295987
|
onDone({
|
|
295932
295988
|
action: "saved",
|
|
@@ -296052,7 +296108,7 @@ function ProviderManager({ mode, onDone }) {
|
|
|
296052
296108
|
children: content
|
|
296053
296109
|
}, undefined, false, undefined, this);
|
|
296054
296110
|
}
|
|
296055
|
-
var React29, jsx_dev_runtime69, 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";
|
|
296111
|
+
var React29, jsx_dev_runtime69, 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", ANTIGRAVITY_MODEL_OPTIONS;
|
|
296056
296112
|
var init_ProviderManager = __esm(() => {
|
|
296057
296113
|
init_axios2();
|
|
296058
296114
|
init_figures();
|
|
@@ -296106,6 +296162,33 @@ var init_ProviderManager = __esm(() => {
|
|
|
296106
296162
|
optional: true
|
|
296107
296163
|
}
|
|
296108
296164
|
];
|
|
296165
|
+
ANTIGRAVITY_MODEL_OPTIONS = [
|
|
296166
|
+
{
|
|
296167
|
+
id: "gemini-3-pro-preview",
|
|
296168
|
+
label: "Gemini 3 Pro (preview)",
|
|
296169
|
+
description: "Google's flagship — best for long context + reasoning"
|
|
296170
|
+
},
|
|
296171
|
+
{
|
|
296172
|
+
id: "gemini-3.1-pro-preview",
|
|
296173
|
+
label: "Gemini 3.1 Pro (preview)",
|
|
296174
|
+
description: "Newer 3.1 Pro variant — same family, fresher snapshot"
|
|
296175
|
+
},
|
|
296176
|
+
{
|
|
296177
|
+
id: "gemini-3-flash-preview",
|
|
296178
|
+
label: "Gemini 3 Flash (preview)",
|
|
296179
|
+
description: "Faster + cheaper than Pro — good for tool-heavy loops"
|
|
296180
|
+
},
|
|
296181
|
+
{
|
|
296182
|
+
id: "claude-sonnet-4-6",
|
|
296183
|
+
label: "Claude Sonnet 4.6",
|
|
296184
|
+
description: "Anthropic Sonnet repackaged through Antigravity"
|
|
296185
|
+
},
|
|
296186
|
+
{
|
|
296187
|
+
id: "claude-opus-4-6-thinking",
|
|
296188
|
+
label: "Claude Opus 4.6 (thinking)",
|
|
296189
|
+
description: "Anthropic Opus with extended thinking — deepest reasoning"
|
|
296190
|
+
}
|
|
296191
|
+
];
|
|
296109
296192
|
});
|
|
296110
296193
|
|
|
296111
296194
|
// src/bridge/bridgeStatusUtil.ts
|
|
@@ -352264,7 +352347,7 @@ function getAnthropicEnvMetadata() {
|
|
|
352264
352347
|
function getBuildAgeMinutes() {
|
|
352265
352348
|
if (false)
|
|
352266
352349
|
;
|
|
352267
|
-
const buildTime = new Date("2026-05-08T14:
|
|
352350
|
+
const buildTime = new Date("2026-05-08T14:08:34.921Z").getTime();
|
|
352268
352351
|
if (isNaN(buildTime))
|
|
352269
352352
|
return;
|
|
352270
352353
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -420077,7 +420160,7 @@ function buildPrimarySection() {
|
|
|
420077
420160
|
}, undefined, false, undefined, this);
|
|
420078
420161
|
return [{
|
|
420079
420162
|
label: "Version",
|
|
420080
|
-
value: "0.3.
|
|
420163
|
+
value: "0.3.71"
|
|
420081
420164
|
}, {
|
|
420082
420165
|
label: "Session name",
|
|
420083
420166
|
value: nameValue
|
|
@@ -459774,7 +459857,7 @@ function getStartupLines(termWidth) {
|
|
|
459774
459857
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
459775
459858
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
459776
459859
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
459777
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
459860
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.71"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
459778
459861
|
out.push("");
|
|
459779
459862
|
return out;
|
|
459780
459863
|
}
|
|
@@ -488580,7 +488663,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
488580
488663
|
var call61 = async () => {
|
|
488581
488664
|
return {
|
|
488582
488665
|
type: "text",
|
|
488583
|
-
value: `${"99.0.0"} (built ${"2026-05-08T14:
|
|
488666
|
+
value: `${"99.0.0"} (built ${"2026-05-08T14:08:34.921Z"})`
|
|
488584
488667
|
};
|
|
488585
488668
|
}, version2, version_default;
|
|
488586
488669
|
var init_version = __esm(() => {
|
|
@@ -557406,7 +557489,7 @@ function WelcomeV2() {
|
|
|
557406
557489
|
dimColor: true,
|
|
557407
557490
|
children: [
|
|
557408
557491
|
"v",
|
|
557409
|
-
"0.3.
|
|
557492
|
+
"0.3.71",
|
|
557410
557493
|
" "
|
|
557411
557494
|
]
|
|
557412
557495
|
}, undefined, true, undefined, this)
|
|
@@ -576864,7 +576947,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
576864
576947
|
pendingHookMessages
|
|
576865
576948
|
}, renderAndRun);
|
|
576866
576949
|
}
|
|
576867
|
-
}).version("0.3.
|
|
576950
|
+
}).version("0.3.71 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
576868
576951
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
576869
576952
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
576870
576953
|
if (canUserConfigureAdvisor()) {
|
|
@@ -577325,7 +577408,7 @@ if (false) {}
|
|
|
577325
577408
|
async function main2() {
|
|
577326
577409
|
const args = process.argv.slice(2);
|
|
577327
577410
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
577328
|
-
console.log(`${"0.3.
|
|
577411
|
+
console.log(`${"0.3.71"} (STRATAGEM X7)`);
|
|
577329
577412
|
return;
|
|
577330
577413
|
}
|
|
577331
577414
|
if (args.includes("--provider")) {
|
|
@@ -577447,4 +577530,4 @@ async function main2() {
|
|
|
577447
577530
|
}
|
|
577448
577531
|
main2();
|
|
577449
577532
|
|
|
577450
|
-
//# debugId=
|
|
577533
|
+
//# debugId=00045E4D6A2E03FD64756E2164756E21
|