stratagem-x7 0.3.42 → 0.3.44

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 +32 -20
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -188553,7 +188553,7 @@ function modelSupportsEffort(model) {
188553
188553
  if (modelUsesOpenAIEffort(model) && supportsCodexReasoningEffort(model)) {
188554
188554
  return true;
188555
188555
  }
188556
- if (m.includes("opus-4-6") || m.includes("sonnet-4-6")) {
188556
+ if (m.includes("opus-4-7") || m.includes("opus-4-6") || m.includes("sonnet-4-6")) {
188557
188557
  return true;
188558
188558
  }
188559
188559
  if (m.includes("haiku") || m.includes("sonnet") || m.includes("opus")) {
@@ -188566,7 +188566,7 @@ function modelSupportsMaxEffort(model) {
188566
188566
  if (supported3P !== undefined) {
188567
188567
  return supported3P;
188568
188568
  }
188569
- if (model.toLowerCase().includes("opus-4-6")) {
188569
+ if (model.toLowerCase().includes("opus-4-7") || model.toLowerCase().includes("opus-4-6")) {
188570
188570
  return true;
188571
188571
  }
188572
188572
  if (process.env.USER_TYPE === "ant" && resolveAntModel(model)) {
@@ -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) || value === "xhigh";
188579
188579
  }
188580
188580
  function isOpenAIEffortLevel(value) {
188581
188581
  return OPENAI_EFFORT_LEVELS.includes(value);
@@ -188593,7 +188593,7 @@ function getAvailableEffortLevels(model) {
188593
188593
  }
188594
188594
  const levels = ["low", "medium", "high"];
188595
188595
  if (modelSupportsMaxEffort(model)) {
188596
- levels.push("max");
188596
+ levels.push("xhigh", "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") {
188631
+ if (value === "max" || value === "xhigh") {
188632
188632
  return value;
188633
188633
  }
188634
188634
  return;
@@ -188694,7 +188694,7 @@ function getEffortLevelDescription(level) {
188694
188694
  case "high":
188695
188695
  return "Comprehensive implementation with extensive testing and documentation";
188696
188696
  case "max":
188697
- return "Maximum capability with deepest reasoning (Opus 4.6 only)";
188697
+ return "Maximum capability with deepest reasoning (Opus 4.7 / 4.6)";
188698
188698
  case "xhigh":
188699
188699
  return "Extra high reasoning effort for complex tasks (OpenAI/Codex)";
188700
188700
  }
@@ -188733,7 +188733,7 @@ function getDefaultEffortForModel(model) {
188733
188733
  }
188734
188734
  return;
188735
188735
  }
188736
- if (model.toLowerCase().includes("opus-4-6")) {
188736
+ if (model.toLowerCase().includes("opus-4-7") || model.toLowerCase().includes("opus-4-6")) {
188737
188737
  if (isProSubscriber()) {
188738
188738
  return "medium";
188739
188739
  }
@@ -188760,6 +188760,7 @@ var init_effort = __esm(() => {
188760
188760
  "low",
188761
188761
  "medium",
188762
188762
  "high",
188763
+ "xhigh",
188763
188764
  "max"
188764
188765
  ];
188765
188766
  OPENAI_EFFORT_LEVELS = [
@@ -292748,6 +292749,7 @@ function getKnownModelsForBaseUrl(baseUrl) {
292748
292749
  const lower = baseUrl.toLowerCase();
292749
292750
  if (lower.includes("api.anthropic.com") || lower.includes("anthropic")) {
292750
292751
  return [
292752
+ "__subscription__",
292751
292753
  "opus",
292752
292754
  "sonnet",
292753
292755
  "haiku",
@@ -293768,10 +293770,15 @@ function ProviderManager({ mode, onDone }) {
293768
293770
  flexDirection: "column",
293769
293771
  children: /* @__PURE__ */ jsx_dev_runtime70.jsxDEV(Select, {
293770
293772
  options: [
293771
- ...discoveredModels.map((m) => ({
293773
+ ...discoveredModels.filter((m) => m !== "__subscription__").map((m) => ({
293772
293774
  value: m,
293773
293775
  label: m
293774
293776
  })),
293777
+ ...discoveredModels.includes("__subscription__") ? [{
293778
+ value: "__subscription__",
293779
+ label: "⚡ Subscription default",
293780
+ description: "Uses your subscription tier model (OAuth)"
293781
+ }] : [],
293775
293782
  {
293776
293783
  value: "__manual__",
293777
293784
  label: "✎ Enter manually…",
@@ -293783,10 +293790,14 @@ function ProviderManager({ mode, onDone }) {
293783
293790
  setDiscoveredModels(null);
293784
293791
  return;
293785
293792
  }
293793
+ if (value === "__subscription__") {
293794
+ handleFormSubmit("");
293795
+ return;
293796
+ }
293786
293797
  handleFormSubmit(value);
293787
293798
  },
293788
293799
  onCancel: handleBackFromForm,
293789
- visibleOptionCount: Math.min(12, discoveredModels.length + 1)
293800
+ visibleOptionCount: Math.min(12, discoveredModels.length + 2)
293790
293801
  }, undefined, false, undefined, this)
293791
293802
  }, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime70.jsxDEV(ThemedBox_default, {
293792
293803
  flexDirection: "row",
@@ -294194,7 +294205,8 @@ var init_ProviderManager = __esm(() => {
294194
294205
  key: "model",
294195
294206
  label: "Default model",
294196
294207
  placeholder: "e.g. llama3.1:8b or glm-4.7, glm-4.7-flash",
294197
- helpText: "Model name(s) to use. Separate multiple with commas; first is default."
294208
+ helpText: "Model name(s) to use. Separate multiple with commas; first is default.",
294209
+ optional: true
294198
294210
  }
294199
294211
  ];
294200
294212
  });
@@ -350491,7 +350503,7 @@ function getAnthropicEnvMetadata() {
350491
350503
  function getBuildAgeMinutes() {
350492
350504
  if (false)
350493
350505
  ;
350494
- const buildTime = new Date("2026-05-07T03:40:41.435Z").getTime();
350506
+ const buildTime = new Date("2026-05-07T04:06:59.949Z").getTime();
350495
350507
  if (isNaN(buildTime))
350496
350508
  return;
350497
350509
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -417634,7 +417646,7 @@ function buildPrimarySection() {
417634
417646
  }, undefined, false, undefined, this);
417635
417647
  return [{
417636
417648
  label: "Version",
417637
- value: "0.3.42"
417649
+ value: "0.3.44"
417638
417650
  }, {
417639
417651
  label: "Session name",
417640
417652
  value: nameValue
@@ -457276,8 +457288,8 @@ function detectProvider() {
457276
457288
  return { name, model: displayModel, baseUrl, isLocal };
457277
457289
  }
457278
457290
  const settings = getSettings_DEPRECATED() || {};
457279
- const modelSetting = settings.model || process.env.ANTHROPIC_MODEL || process.env.CLAUDE_MODEL || "claude-sonnet-4-6";
457280
- const resolvedModel = parseUserSpecifiedModel(modelSetting);
457291
+ const modelSetting = settings.model || process.env.ANTHROPIC_MODEL || process.env.CLAUDE_MODEL;
457292
+ const resolvedModel = modelSetting ? parseUserSpecifiedModel(modelSetting) : getDefaultMainLoopModel();
457281
457293
  return { name: "Anthropic", model: resolvedModel, baseUrl: process.env.ANTHROPIC_BASE_URL || "https://api.anthropic.com", isLocal: false };
457282
457294
  }
457283
457295
  function boxRow(content, width, rawLen) {
@@ -457328,7 +457340,7 @@ function getStartupLines(termWidth) {
457328
457340
  const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
457329
457341
  out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
457330
457342
  out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
457331
- out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.42"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457343
+ out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.44"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457332
457344
  out.push("");
457333
457345
  return out;
457334
457346
  }
@@ -486001,7 +486013,7 @@ var init_bridge_kick = __esm(() => {
486001
486013
  var call60 = async () => {
486002
486014
  return {
486003
486015
  type: "text",
486004
- value: `${"99.0.0"} (built ${"2026-05-07T03:40:41.435Z"})`
486016
+ value: `${"99.0.0"} (built ${"2026-05-07T04:06:59.949Z"})`
486005
486017
  };
486006
486018
  }, version2, version_default;
486007
486019
  var init_version = __esm(() => {
@@ -554734,7 +554746,7 @@ function WelcomeV2() {
554734
554746
  dimColor: true,
554735
554747
  children: [
554736
554748
  "v",
554737
- "0.3.42",
554749
+ "0.3.44",
554738
554750
  " "
554739
554751
  ]
554740
554752
  }, undefined, true, undefined, this)
@@ -574191,7 +574203,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
574191
574203
  pendingHookMessages
574192
574204
  }, renderAndRun);
574193
574205
  }
574194
- }).version("0.3.42 (STRATAGEM X7)", "-v, --version", "Output the version number");
574206
+ }).version("0.3.44 (STRATAGEM X7)", "-v, --version", "Output the version number");
574195
574207
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
574196
574208
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
574197
574209
  if (canUserConfigureAdvisor()) {
@@ -574652,7 +574664,7 @@ if (false) {}
574652
574664
  async function main2() {
574653
574665
  const args = process.argv.slice(2);
574654
574666
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
574655
- console.log(`${"0.3.42"} (STRATAGEM X7)`);
574667
+ console.log(`${"0.3.44"} (STRATAGEM X7)`);
574656
574668
  return;
574657
574669
  }
574658
574670
  if (args.includes("--provider")) {
@@ -574774,4 +574786,4 @@ async function main2() {
574774
574786
  }
574775
574787
  main2();
574776
574788
 
574777
- //# debugId=1C00024DF388332D64756E2164756E21
574789
+ //# debugId=2C4EA6516A4304F664756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagem-x7",
3
- "version": "0.3.42",
3
+ "version": "0.3.44",
4
4
  "description": "STRATAGEM X7 is a cyberpunk coding-agent CLI for cloud and local model providers",
5
5
  "type": "module",
6
6
  "bin": {