stratagem-x7 0.3.37 → 0.3.38

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 +12 -45
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -112143,7 +112143,7 @@ var init_bedrock = __esm(() => {
112143
112143
  });
112144
112144
 
112145
112145
  // src/utils/model/configs.ts
112146
- var CLAUDE_3_7_SONNET_CONFIG, CLAUDE_3_5_V2_SONNET_CONFIG, CLAUDE_3_5_HAIKU_CONFIG, CLAUDE_HAIKU_4_5_CONFIG, CLAUDE_SONNET_4_CONFIG, CLAUDE_SONNET_4_5_CONFIG, CLAUDE_OPUS_4_CONFIG, CLAUDE_OPUS_4_1_CONFIG, CLAUDE_OPUS_4_5_CONFIG, CLAUDE_OPUS_4_6_CONFIG, CLAUDE_OPUS_4_7_CONFIG, CLAUDE_SONNET_4_6_CONFIG, ALL_MODEL_CONFIGS, CANONICAL_MODEL_IDS, CANONICAL_ID_TO_KEY;
112146
+ var CLAUDE_3_7_SONNET_CONFIG, CLAUDE_3_5_V2_SONNET_CONFIG, CLAUDE_3_5_HAIKU_CONFIG, CLAUDE_HAIKU_4_5_CONFIG, CLAUDE_SONNET_4_CONFIG, CLAUDE_SONNET_4_5_CONFIG, CLAUDE_OPUS_4_CONFIG, CLAUDE_OPUS_4_1_CONFIG, CLAUDE_OPUS_4_5_CONFIG, CLAUDE_OPUS_4_6_CONFIG, CLAUDE_SONNET_4_6_CONFIG, ALL_MODEL_CONFIGS, CANONICAL_MODEL_IDS, CANONICAL_ID_TO_KEY;
112147
112147
  var init_configs = __esm(() => {
112148
112148
  CLAUDE_3_7_SONNET_CONFIG = {
112149
112149
  firstParty: "claude-3-7-sonnet-20250219",
@@ -112285,20 +112285,6 @@ var init_configs = __esm(() => {
112285
112285
  mistral: "devstral-latest",
112286
112286
  opencode: "gpt-5.4"
112287
112287
  };
112288
- CLAUDE_OPUS_4_7_CONFIG = {
112289
- firstParty: "claude-opus-4-7",
112290
- bedrock: "us.anthropic.claude-opus-4-7-v1",
112291
- vertex: "claude-opus-4-7",
112292
- foundry: "claude-opus-4-7",
112293
- openai: "gpt-4o",
112294
- gemini: "gemini-2.5-pro-preview-03-25",
112295
- github: "github:copilot",
112296
- codex: "gpt-5.5",
112297
- "nvidia-nim": "nvidia/llama-3.1-nemotron-70b-instruct",
112298
- minimax: "MiniMax-M2.5",
112299
- mistral: "devstral-latest",
112300
- opencode: "gpt-5.5"
112301
- };
112302
112288
  CLAUDE_SONNET_4_6_CONFIG = {
112303
112289
  firstParty: "claude-sonnet-4-6",
112304
112290
  bedrock: "us.anthropic.claude-sonnet-4-6",
@@ -112324,8 +112310,7 @@ var init_configs = __esm(() => {
112324
112310
  opus40: CLAUDE_OPUS_4_CONFIG,
112325
112311
  opus41: CLAUDE_OPUS_4_1_CONFIG,
112326
112312
  opus45: CLAUDE_OPUS_4_5_CONFIG,
112327
- opus46: CLAUDE_OPUS_4_6_CONFIG,
112328
- opus47: CLAUDE_OPUS_4_7_CONFIG
112313
+ opus46: CLAUDE_OPUS_4_6_CONFIG
112329
112314
  };
112330
112315
  CANONICAL_MODEL_IDS = Object.values(ALL_MODEL_CONFIGS).map((c5) => c5.firstParty);
112331
112316
  CANONICAL_ID_TO_KEY = Object.fromEntries(Object.entries(ALL_MODEL_CONFIGS).map(([key, cfg]) => [cfg.firstParty, key]));
@@ -113902,7 +113887,6 @@ var init_openaiContextWindows = __esm(() => {
113902
113887
  "github:copilot:claude-sonnet-4.6": 200000,
113903
113888
  "github:copilot:claude-opus-4": 200000,
113904
113889
  "github:copilot:claude-opus-4.6": 200000,
113905
- "github:copilot:claude-opus-4.7": 200000,
113906
113890
  "github:copilot:gpt-3.5-turbo": 16384,
113907
113891
  "github:copilot:gpt-4": 32768,
113908
113892
  "github:copilot:gpt-4-0125-preview": 128000,
@@ -113925,7 +113909,6 @@ var init_openaiContextWindows = __esm(() => {
113925
113909
  "github:copilot:grok-code-fast-1": 256000,
113926
113910
  "github_copilot/claude-sonnet-4.6": 200000,
113927
113911
  "github_copilot/claude-opus-4.6": 200000,
113928
- "github_copilot/claude-opus-4.7": 200000,
113929
113912
  "github_copilot/claude-haiku-4.5": 144000,
113930
113913
  "github_copilot/gpt-4.1": 128000,
113931
113914
  "github_copilot/gpt-4o": 128000,
@@ -114045,7 +114028,6 @@ var init_openaiContextWindows = __esm(() => {
114045
114028
  "github:copilot:claude-sonnet-4.6": 32000,
114046
114029
  "github:copilot:claude-opus-4": 32000,
114047
114030
  "github:copilot:claude-opus-4.6": 32000,
114048
- "github:copilot:claude-opus-4.7": 32000,
114049
114031
  "github:copilot:gpt-3.5-turbo": 4096,
114050
114032
  "github:copilot:gpt-4": 4096,
114051
114033
  "github:copilot:gpt-4-0125-preview": 4096,
@@ -114068,7 +114050,6 @@ var init_openaiContextWindows = __esm(() => {
114068
114050
  "github:copilot:grok-code-fast-1": 64000,
114069
114051
  "github_copilot/claude-sonnet-4.6": 32000,
114070
114052
  "github_copilot/claude-opus-4.6": 32000,
114071
- "github_copilot/claude-opus-4.7": 32000,
114072
114053
  "github_copilot/claude-haiku-4.5": 32768,
114073
114054
  "github_copilot/gpt-4.1": 16384,
114074
114055
  "github_copilot/gpt-4o": 4096,
@@ -116408,7 +116389,7 @@ function getSmallFastModel() {
116408
116389
  return getDefaultHaikuModel();
116409
116390
  }
116410
116391
  function isNonCustomOpusModel(model) {
116411
- return model === getModelStrings2().opus40 || model === getModelStrings2().opus41 || model === getModelStrings2().opus45 || model === getModelStrings2().opus46 || model === getModelStrings2().opus47;
116392
+ return model === getModelStrings2().opus40 || model === getModelStrings2().opus41 || model === getModelStrings2().opus45 || model === getModelStrings2().opus46;
116412
116393
  }
116413
116394
  function getUserSpecifiedModelSetting() {
116414
116395
  let specifiedModel;
@@ -116548,9 +116529,6 @@ function getDefaultMainLoopModel() {
116548
116529
  }
116549
116530
  function firstPartyNameToCanonical(name) {
116550
116531
  name = name.toLowerCase();
116551
- if (name.includes("claude-opus-4-7")) {
116552
- return "claude-opus-4-7";
116553
- }
116554
116532
  if (name.includes("claude-opus-4-6")) {
116555
116533
  return "claude-opus-4-6";
116556
116534
  }
@@ -116661,7 +116639,6 @@ function getPublicModelDisplayName(model) {
116661
116639
  "gpt-5.1-codex-mini": "GPT-5.1 Codex mini",
116662
116640
  "gpt-4o": "GPT-4o",
116663
116641
  "gpt-4.1": "GPT-4.1",
116664
- "claude-opus-4.7": "Claude Opus 4.7",
116665
116642
  "claude-opus-4.6": "Claude Opus 4.6",
116666
116643
  "claude-opus-4.5": "Claude Opus 4.5",
116667
116644
  "claude-sonnet-4.6": "Claude Sonnet 4.6",
@@ -116682,10 +116659,6 @@ function getPublicModelDisplayName(model) {
116682
116659
  return "GPT-5.4";
116683
116660
  case "gpt-5.3-codex-spark":
116684
116661
  return "GPT-5.3 Codex Spark";
116685
- case getModelStrings2().opus47:
116686
- return "Opus 4.7";
116687
- case getModelStrings2().opus47 + "[1m]":
116688
- return "Opus 4.7 (1M context)";
116689
116662
  case getModelStrings2().opus46:
116690
116663
  return "Opus 4.6";
116691
116664
  case getModelStrings2().opus46 + "[1m]":
@@ -116835,9 +116808,6 @@ function getMarketingNameForModel(modelId) {
116835
116808
  }
116836
116809
  const has1m = modelId.toLowerCase().includes("[1m]");
116837
116810
  const canonical = getCanonicalName(modelId);
116838
- if (canonical.includes("claude-opus-4-7")) {
116839
- return has1m ? "Opus 4.7 (with 1M context)" : "Opus 4.7";
116840
- }
116841
116811
  if (canonical.includes("claude-opus-4-6")) {
116842
116812
  return has1m ? "Opus 4.6 (with 1M context)" : "Opus 4.6";
116843
116813
  }
@@ -188500,7 +188470,7 @@ function modelSupportsAdaptiveThinking(model) {
188500
188470
  return supported3P;
188501
188471
  }
188502
188472
  const canonical = getCanonicalName(model);
188503
- if (canonical.includes("opus-4-7") || canonical.includes("opus-4-6") || canonical.includes("sonnet-4-6")) {
188473
+ if (canonical.includes("opus-4-6") || canonical.includes("sonnet-4-6")) {
188504
188474
  return true;
188505
188475
  }
188506
188476
  if (canonical.includes("opus") || canonical.includes("sonnet") || canonical.includes("haiku")) {
@@ -350483,7 +350453,7 @@ function getAnthropicEnvMetadata() {
350483
350453
  function getBuildAgeMinutes() {
350484
350454
  if (false)
350485
350455
  ;
350486
- const buildTime = new Date("2026-05-06T08:20:32.269Z").getTime();
350456
+ const buildTime = new Date("2026-05-06T14:05:53.272Z").getTime();
350487
350457
  if (isNaN(buildTime))
350488
350458
  return;
350489
350459
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -417626,7 +417596,7 @@ function buildPrimarySection() {
417626
417596
  }, undefined, false, undefined, this);
417627
417597
  return [{
417628
417598
  label: "Version",
417629
- value: "0.3.37"
417599
+ value: "0.3.38"
417630
417600
  }, {
417631
417601
  label: "Session name",
417632
417602
  value: nameValue
@@ -457320,7 +457290,7 @@ function getStartupLines(termWidth) {
457320
457290
  const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
457321
457291
  out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
457322
457292
  out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
457323
- out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.37"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457293
+ out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.38"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457324
457294
  out.push("");
457325
457295
  return out;
457326
457296
  }
@@ -485993,7 +485963,7 @@ var init_bridge_kick = __esm(() => {
485993
485963
  var call60 = async () => {
485994
485964
  return {
485995
485965
  type: "text",
485996
- value: `${"99.0.0"} (built ${"2026-05-06T08:20:32.269Z"})`
485966
+ value: `${"99.0.0"} (built ${"2026-05-06T14:05:53.272Z"})`
485997
485967
  };
485998
485968
  }, version2, version_default;
485999
485969
  var init_version = __esm(() => {
@@ -488611,9 +488581,6 @@ function get3PFallbackSuggestion(model) {
488611
488581
  return;
488612
488582
  }
488613
488583
  const lowerModel = model.toLowerCase();
488614
- if (lowerModel.includes("opus-4-7") || lowerModel.includes("opus_4_7")) {
488615
- return getModelStrings2().opus46;
488616
- }
488617
488584
  if (lowerModel.includes("opus-4-6") || lowerModel.includes("opus_4_6")) {
488618
488585
  return getModelStrings2().opus41;
488619
488586
  }
@@ -554729,7 +554696,7 @@ function WelcomeV2() {
554729
554696
  dimColor: true,
554730
554697
  children: [
554731
554698
  "v",
554732
- "0.3.37",
554699
+ "0.3.38",
554733
554700
  " "
554734
554701
  ]
554735
554702
  }, undefined, true, undefined, this)
@@ -574186,7 +574153,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
574186
574153
  pendingHookMessages
574187
574154
  }, renderAndRun);
574188
574155
  }
574189
- }).version("0.3.37 (STRATAGEM X7)", "-v, --version", "Output the version number");
574156
+ }).version("0.3.38 (STRATAGEM X7)", "-v, --version", "Output the version number");
574190
574157
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
574191
574158
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
574192
574159
  if (canUserConfigureAdvisor()) {
@@ -574647,7 +574614,7 @@ if (false) {}
574647
574614
  async function main2() {
574648
574615
  const args = process.argv.slice(2);
574649
574616
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
574650
- console.log(`${"0.3.37"} (STRATAGEM X7)`);
574617
+ console.log(`${"0.3.38"} (STRATAGEM X7)`);
574651
574618
  return;
574652
574619
  }
574653
574620
  if (args.includes("--provider")) {
@@ -574769,4 +574736,4 @@ async function main2() {
574769
574736
  }
574770
574737
  main2();
574771
574738
 
574772
- //# debugId=C2CDBB8658F0148D64756E2164756E21
574739
+ //# debugId=CA7DCB5A5B8120DB64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagem-x7",
3
- "version": "0.3.37",
3
+ "version": "0.3.38",
4
4
  "description": "STRATAGEM X7 is a cyberpunk coding-agent CLI for cloud and local model providers",
5
5
  "type": "module",
6
6
  "bin": {