stratagem-x7 0.3.47 → 0.3.49

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +19 -19
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -188593,7 +188593,7 @@ function getAvailableEffortLevels(model) {
188593
188593
  }
188594
188594
  const levels = ["low", "medium", "high"];
188595
188595
  if (modelSupportsMaxEffort(model)) {
188596
- levels.push("xhigh", "max");
188596
+ levels.push("max");
188597
188597
  }
188598
188598
  return levels;
188599
188599
  }
@@ -188628,7 +188628,7 @@ function toPersistableEffort(value) {
188628
188628
  if (value === "low" || value === "medium" || value === "high") {
188629
188629
  return value;
188630
188630
  }
188631
- if (value === "max" || value === "xhigh") {
188631
+ if (value === "max") {
188632
188632
  return value;
188633
188633
  }
188634
188634
  return;
@@ -188760,7 +188760,6 @@ var init_effort = __esm(() => {
188760
188760
  "low",
188761
188761
  "medium",
188762
188762
  "high",
188763
- "xhigh",
188764
188763
  "max"
188765
188764
  ];
188766
188765
  OPENAI_EFFORT_LEVELS = [
@@ -292749,7 +292748,7 @@ function getKnownModelsForBaseUrl(baseUrl) {
292749
292748
  const lower = baseUrl.toLowerCase();
292750
292749
  if (lower.includes("api.anthropic.com") || lower.includes("anthropic")) {
292751
292750
  return [
292752
- "__subscription__",
292751
+ SUBSCRIPTION_MODEL_SENTINEL,
292753
292752
  "opus",
292754
292753
  "sonnet",
292755
292754
  "haiku",
@@ -293333,8 +293332,8 @@ function ProviderManager({ mode, onDone }) {
293333
293332
  const isActiveSavedProfile = getActiveProviderProfile()?.id === saved.id;
293334
293333
  const settingsOverrideError = isActiveSavedProfile ? clearStartupProviderOverrideFromUserSettings() : null;
293335
293334
  refreshProfiles();
293336
- if (isActiveSavedProfile && saved.model) {
293337
- const newModel = getPrimaryModel(saved.model);
293335
+ if (isActiveSavedProfile) {
293336
+ const newModel = saved.model ? getPrimaryModel(saved.model) : getDefaultMainLoopModel();
293338
293337
  setAppState((prev) => ({
293339
293338
  ...prev,
293340
293339
  mainLoopModel: newModel
@@ -293770,12 +293769,12 @@ function ProviderManager({ mode, onDone }) {
293770
293769
  flexDirection: "column",
293771
293770
  children: /* @__PURE__ */ jsx_dev_runtime70.jsxDEV(Select, {
293772
293771
  options: [
293773
- ...discoveredModels.filter((m) => m !== "__subscription__").map((m) => ({
293772
+ ...discoveredModels.filter((m) => m !== SUBSCRIPTION_MODEL_SENTINEL).map((m) => ({
293774
293773
  value: m,
293775
293774
  label: m
293776
293775
  })),
293777
- ...discoveredModels.includes("__subscription__") ? [{
293778
- value: "__subscription__",
293776
+ ...discoveredModels.includes(SUBSCRIPTION_MODEL_SENTINEL) ? [{
293777
+ value: SUBSCRIPTION_MODEL_SENTINEL,
293779
293778
  label: "⚡ Subscription default",
293780
293779
  description: "Uses your subscription tier model (OAuth)"
293781
293780
  }] : [],
@@ -293790,7 +293789,7 @@ function ProviderManager({ mode, onDone }) {
293790
293789
  setDiscoveredModels(null);
293791
293790
  return;
293792
293791
  }
293793
- if (value === "__subscription__") {
293792
+ if (value === SUBSCRIPTION_MODEL_SENTINEL) {
293794
293793
  handleFormSubmit("");
293795
293794
  return;
293796
293795
  }
@@ -294159,7 +294158,7 @@ function ProviderManager({ mode, onDone }) {
294159
294158
  children: content
294160
294159
  }, undefined, false, undefined, this);
294161
294160
  }
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";
294161
+ 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
294162
  var init_ProviderManager = __esm(() => {
294164
294163
  init_axios2();
294165
294164
  init_figures();
@@ -294168,6 +294167,7 @@ var init_ProviderManager = __esm(() => {
294168
294167
  init_useKeybinding();
294169
294168
  init_codexCredentials();
294170
294169
  init_envUtils();
294170
+ init_model();
294171
294171
  init_providerProfile2();
294172
294172
  init_providerProfiles();
294173
294173
  init_githubModelsCredentials();
@@ -350503,7 +350503,7 @@ function getAnthropicEnvMetadata() {
350503
350503
  function getBuildAgeMinutes() {
350504
350504
  if (false)
350505
350505
  ;
350506
- const buildTime = new Date("2026-05-07T13:48:14.618Z").getTime();
350506
+ const buildTime = new Date("2026-05-07T14:11:14.906Z").getTime();
350507
350507
  if (isNaN(buildTime))
350508
350508
  return;
350509
350509
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -417835,7 +417835,7 @@ function buildPrimarySection() {
417835
417835
  }, undefined, false, undefined, this);
417836
417836
  return [{
417837
417837
  label: "Version",
417838
- value: "0.3.47"
417838
+ value: "0.3.49"
417839
417839
  }, {
417840
417840
  label: "Session name",
417841
417841
  value: nameValue
@@ -457529,7 +457529,7 @@ function getStartupLines(termWidth) {
457529
457529
  const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
457530
457530
  out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
457531
457531
  out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
457532
- out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.47"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457532
+ out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.49"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457533
457533
  out.push("");
457534
457534
  return out;
457535
457535
  }
@@ -486202,7 +486202,7 @@ var init_bridge_kick = __esm(() => {
486202
486202
  var call60 = async () => {
486203
486203
  return {
486204
486204
  type: "text",
486205
- value: `${"99.0.0"} (built ${"2026-05-07T13:48:14.618Z"})`
486205
+ value: `${"99.0.0"} (built ${"2026-05-07T14:11:14.906Z"})`
486206
486206
  };
486207
486207
  }, version2, version_default;
486208
486208
  var init_version = __esm(() => {
@@ -554935,7 +554935,7 @@ function WelcomeV2() {
554935
554935
  dimColor: true,
554936
554936
  children: [
554937
554937
  "v",
554938
- "0.3.47",
554938
+ "0.3.49",
554939
554939
  " "
554940
554940
  ]
554941
554941
  }, undefined, true, undefined, this)
@@ -574393,7 +574393,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
574393
574393
  pendingHookMessages
574394
574394
  }, renderAndRun);
574395
574395
  }
574396
- }).version("0.3.47 (STRATAGEM X7)", "-v, --version", "Output the version number");
574396
+ }).version("0.3.49 (STRATAGEM X7)", "-v, --version", "Output the version number");
574397
574397
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
574398
574398
  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
574399
  if (canUserConfigureAdvisor()) {
@@ -574854,7 +574854,7 @@ if (false) {}
574854
574854
  async function main2() {
574855
574855
  const args = process.argv.slice(2);
574856
574856
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
574857
- console.log(`${"0.3.47"} (STRATAGEM X7)`);
574857
+ console.log(`${"0.3.49"} (STRATAGEM X7)`);
574858
574858
  return;
574859
574859
  }
574860
574860
  if (args.includes("--provider")) {
@@ -574976,4 +574976,4 @@ async function main2() {
574976
574976
  }
574977
574977
  main2();
574978
574978
 
574979
- //# debugId=905B2C77633396E864756E2164756E21
574979
+ //# debugId=49DB170D5232B35164756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagem-x7",
3
- "version": "0.3.47",
3
+ "version": "0.3.49",
4
4
  "description": "STRATAGEM X7 is a cyberpunk coding-agent CLI for cloud and local model providers",
5
5
  "type": "module",
6
6
  "bin": {