stratagem-x7 0.3.33 → 0.3.34

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 +58 -25
  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_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_OPUS_4_7_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,6 +112285,20 @@ 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
+ };
112288
112302
  CLAUDE_SONNET_4_6_CONFIG = {
112289
112303
  firstParty: "claude-sonnet-4-6",
112290
112304
  bedrock: "us.anthropic.claude-sonnet-4-6",
@@ -112310,7 +112324,8 @@ var init_configs = __esm(() => {
112310
112324
  opus40: CLAUDE_OPUS_4_CONFIG,
112311
112325
  opus41: CLAUDE_OPUS_4_1_CONFIG,
112312
112326
  opus45: CLAUDE_OPUS_4_5_CONFIG,
112313
- opus46: CLAUDE_OPUS_4_6_CONFIG
112327
+ opus46: CLAUDE_OPUS_4_6_CONFIG,
112328
+ opus47: CLAUDE_OPUS_4_7_CONFIG
112314
112329
  };
112315
112330
  CANONICAL_MODEL_IDS = Object.values(ALL_MODEL_CONFIGS).map((c5) => c5.firstParty);
112316
112331
  CANONICAL_ID_TO_KEY = Object.fromEntries(Object.entries(ALL_MODEL_CONFIGS).map(([key, cfg]) => [cfg.firstParty, key]));
@@ -113887,6 +113902,7 @@ var init_openaiContextWindows = __esm(() => {
113887
113902
  "github:copilot:claude-sonnet-4.6": 200000,
113888
113903
  "github:copilot:claude-opus-4": 200000,
113889
113904
  "github:copilot:claude-opus-4.6": 200000,
113905
+ "github:copilot:claude-opus-4.7": 200000,
113890
113906
  "github:copilot:gpt-3.5-turbo": 16384,
113891
113907
  "github:copilot:gpt-4": 32768,
113892
113908
  "github:copilot:gpt-4-0125-preview": 128000,
@@ -113909,6 +113925,7 @@ var init_openaiContextWindows = __esm(() => {
113909
113925
  "github:copilot:grok-code-fast-1": 256000,
113910
113926
  "github_copilot/claude-sonnet-4.6": 200000,
113911
113927
  "github_copilot/claude-opus-4.6": 200000,
113928
+ "github_copilot/claude-opus-4.7": 200000,
113912
113929
  "github_copilot/claude-haiku-4.5": 144000,
113913
113930
  "github_copilot/gpt-4.1": 128000,
113914
113931
  "github_copilot/gpt-4o": 128000,
@@ -114028,6 +114045,7 @@ var init_openaiContextWindows = __esm(() => {
114028
114045
  "github:copilot:claude-sonnet-4.6": 32000,
114029
114046
  "github:copilot:claude-opus-4": 32000,
114030
114047
  "github:copilot:claude-opus-4.6": 32000,
114048
+ "github:copilot:claude-opus-4.7": 32000,
114031
114049
  "github:copilot:gpt-3.5-turbo": 4096,
114032
114050
  "github:copilot:gpt-4": 4096,
114033
114051
  "github:copilot:gpt-4-0125-preview": 4096,
@@ -114050,6 +114068,7 @@ var init_openaiContextWindows = __esm(() => {
114050
114068
  "github:copilot:grok-code-fast-1": 64000,
114051
114069
  "github_copilot/claude-sonnet-4.6": 32000,
114052
114070
  "github_copilot/claude-opus-4.6": 32000,
114071
+ "github_copilot/claude-opus-4.7": 32000,
114053
114072
  "github_copilot/claude-haiku-4.5": 32768,
114054
114073
  "github_copilot/gpt-4.1": 16384,
114055
114074
  "github_copilot/gpt-4o": 4096,
@@ -116389,7 +116408,7 @@ function getSmallFastModel() {
116389
116408
  return getDefaultHaikuModel();
116390
116409
  }
116391
116410
  function isNonCustomOpusModel(model) {
116392
- return model === getModelStrings2().opus40 || model === getModelStrings2().opus41 || model === getModelStrings2().opus45 || model === getModelStrings2().opus46;
116411
+ return model === getModelStrings2().opus40 || model === getModelStrings2().opus41 || model === getModelStrings2().opus45 || model === getModelStrings2().opus46 || model === getModelStrings2().opus47;
116393
116412
  }
116394
116413
  function getUserSpecifiedModelSetting() {
116395
116414
  let specifiedModel;
@@ -116439,7 +116458,7 @@ function getDefaultOpusModel() {
116439
116458
  if (getAPIProvider() !== "firstParty") {
116440
116459
  return getModelStrings2().opus46;
116441
116460
  }
116442
- return getModelStrings2().opus46;
116461
+ return getModelStrings2().opus47;
116443
116462
  }
116444
116463
  function getDefaultSonnetModel() {
116445
116464
  if (process.env.ANTHROPIC_DEFAULT_SONNET_MODEL) {
@@ -116529,6 +116548,9 @@ function getDefaultMainLoopModel() {
116529
116548
  }
116530
116549
  function firstPartyNameToCanonical(name) {
116531
116550
  name = name.toLowerCase();
116551
+ if (name.includes("claude-opus-4-7")) {
116552
+ return "claude-opus-4-7";
116553
+ }
116532
116554
  if (name.includes("claude-opus-4-6")) {
116533
116555
  return "claude-opus-4-6";
116534
116556
  }
@@ -116583,15 +116605,15 @@ function getCanonicalName(fullModelName) {
116583
116605
  function getClaudeAiUserDefaultModelDescription(fastMode = false) {
116584
116606
  if (isMaxSubscriber() || isTeamPremiumSubscriber()) {
116585
116607
  if (isOpus1mMergeEnabled()) {
116586
- return `Opus 4.6 with 1M context · Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`;
116608
+ return `Opus 4.7 with 1M context · Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`;
116587
116609
  }
116588
- return `Opus 4.6 · Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`;
116610
+ return `Opus 4.7 · Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`;
116589
116611
  }
116590
116612
  return "Sonnet 4.6 · Best for everyday tasks";
116591
116613
  }
116592
116614
  function renderDefaultModelSetting(setting) {
116593
116615
  if (setting === "opusplan") {
116594
- return "Opus 4.6 in plan mode, else Sonnet 4.6";
116616
+ return "Opus 4.7 in plan mode, else Sonnet 4.6";
116595
116617
  }
116596
116618
  return renderModelName(parseUserSpecifiedModel(setting));
116597
116619
  }
@@ -116639,6 +116661,7 @@ function getPublicModelDisplayName(model) {
116639
116661
  "gpt-5.1-codex-mini": "GPT-5.1 Codex mini",
116640
116662
  "gpt-4o": "GPT-4o",
116641
116663
  "gpt-4.1": "GPT-4.1",
116664
+ "claude-opus-4.7": "Claude Opus 4.7",
116642
116665
  "claude-opus-4.6": "Claude Opus 4.6",
116643
116666
  "claude-opus-4.5": "Claude Opus 4.5",
116644
116667
  "claude-sonnet-4.6": "Claude Sonnet 4.6",
@@ -116659,6 +116682,10 @@ function getPublicModelDisplayName(model) {
116659
116682
  return "GPT-5.4";
116660
116683
  case "gpt-5.3-codex-spark":
116661
116684
  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)";
116662
116689
  case getModelStrings2().opus46:
116663
116690
  return "Opus 4.6";
116664
116691
  case getModelStrings2().opus46 + "[1m]":
@@ -116808,6 +116835,9 @@ function getMarketingNameForModel(modelId) {
116808
116835
  }
116809
116836
  const has1m = modelId.toLowerCase().includes("[1m]");
116810
116837
  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
+ }
116811
116841
  if (canonical.includes("claude-opus-4-6")) {
116812
116842
  return has1m ? "Opus 4.6 (with 1M context)" : "Opus 4.6";
116813
116843
  }
@@ -188470,7 +188500,7 @@ function modelSupportsAdaptiveThinking(model) {
188470
188500
  return supported3P;
188471
188501
  }
188472
188502
  const canonical = getCanonicalName(model);
188473
- if (canonical.includes("opus-4-6") || canonical.includes("sonnet-4-6")) {
188503
+ if (canonical.includes("opus-4-7") || canonical.includes("opus-4-6") || canonical.includes("sonnet-4-6")) {
188474
188504
  return true;
188475
188505
  }
188476
188506
  if (canonical.includes("opus") || canonical.includes("sonnet") || canonical.includes("haiku")) {
@@ -350453,7 +350483,7 @@ function getAnthropicEnvMetadata() {
350453
350483
  function getBuildAgeMinutes() {
350454
350484
  if (false)
350455
350485
  ;
350456
- const buildTime = new Date("2026-05-05T05:48:15.030Z").getTime();
350486
+ const buildTime = new Date("2026-05-06T07:37:29.365Z").getTime();
350457
350487
  if (isNaN(buildTime))
350458
350488
  return;
350459
350489
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -417596,7 +417626,7 @@ function buildPrimarySection() {
417596
417626
  }, undefined, false, undefined, this);
417597
417627
  return [{
417598
417628
  label: "Version",
417599
- value: "0.3.33"
417629
+ value: "0.3.34"
417600
417630
  }, {
417601
417631
  label: "Session name",
417602
417632
  value: nameValue
@@ -418819,8 +418849,8 @@ function getOpus46Option(fastMode = false) {
418819
418849
  return {
418820
418850
  value: is3P ? getModelStrings2().opus46 : "opus",
418821
418851
  label: "Opus",
418822
- description: `Opus 4.6 · Most capable for complex work${getOpus46PricingSuffix(fastMode)}`,
418823
- descriptionForModel: "Opus 4.6 - most capable for complex work"
418852
+ description: `Opus 4.7 · Most capable for complex work${getOpus46PricingSuffix(fastMode)}`,
418853
+ descriptionForModel: "Opus 4.7 - most capable for complex work"
418824
418854
  };
418825
418855
  }
418826
418856
  function getSonnet46_1MOption() {
@@ -418837,8 +418867,8 @@ function getOpus46_1MOption(fastMode = false) {
418837
418867
  return {
418838
418868
  value: is3P ? getModelStrings2().opus46 + "[1m]" : "opus[1m]",
418839
418869
  label: "Opus (1M context)",
418840
- description: `Opus 4.6 for long sessions${getOpus46PricingSuffix(fastMode)}`,
418841
- descriptionForModel: "Opus 4.6 with 1M context window - for long sessions with large codebases"
418870
+ description: `Opus 4.7 for long sessions${getOpus46PricingSuffix(fastMode)}`,
418871
+ descriptionForModel: "Opus 4.7 with 1M context window - for long sessions with large codebases"
418842
418872
  };
418843
418873
  }
418844
418874
  function getCustomHaikuOption() {
@@ -418879,7 +418909,7 @@ function getMaxOpusOption(fastMode = false) {
418879
418909
  return {
418880
418910
  value: "opus",
418881
418911
  label: "Opus",
418882
- description: `Opus 4.6 · Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`
418912
+ description: `Opus 4.7 · Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`
418883
418913
  };
418884
418914
  }
418885
418915
  function getMaxSonnet46_1MOption() {
@@ -418896,7 +418926,7 @@ function getMaxOpus46_1MOption(fastMode = false) {
418896
418926
  return {
418897
418927
  value: "opus[1m]",
418898
418928
  label: "Opus (1M context)",
418899
- description: `Opus 4.6 with 1M context${billingInfo}${getOpus46PricingSuffix(fastMode)}`
418929
+ description: `Opus 4.7 with 1M context${billingInfo}${getOpus46PricingSuffix(fastMode)}`
418900
418930
  };
418901
418931
  }
418902
418932
  function getMergedOpus1MOption(fastMode = false) {
@@ -418904,15 +418934,15 @@ function getMergedOpus1MOption(fastMode = false) {
418904
418934
  return {
418905
418935
  value: is3P ? getModelStrings2().opus46 + "[1m]" : "opus[1m]",
418906
418936
  label: "Opus (1M context)",
418907
- description: `Opus 4.6 with 1M context · Most capable for complex work${!is3P && fastMode ? getOpus46PricingSuffix(fastMode) : ""}`,
418908
- descriptionForModel: "Opus 4.6 with 1M context - most capable for complex work"
418937
+ description: `Opus 4.7 with 1M context · Most capable for complex work${!is3P && fastMode ? getOpus46PricingSuffix(fastMode) : ""}`,
418938
+ descriptionForModel: "Opus 4.7 with 1M context - most capable for complex work"
418909
418939
  };
418910
418940
  }
418911
418941
  function getOpusPlanOption() {
418912
418942
  return {
418913
418943
  value: "opusplan",
418914
418944
  label: "Opus Plan Mode",
418915
- description: "Use Opus 4.6 in plan mode, Sonnet 4.6 otherwise"
418945
+ description: "Use Opus 4.7 in plan mode, Sonnet 4.6 otherwise"
418916
418946
  };
418917
418947
  }
418918
418948
  function getCodexPlanOption() {
@@ -457290,7 +457320,7 @@ function getStartupLines(termWidth) {
457290
457320
  const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
457291
457321
  out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
457292
457322
  out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
457293
- out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.33"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457323
+ out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.34"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457294
457324
  out.push("");
457295
457325
  return out;
457296
457326
  }
@@ -485963,7 +485993,7 @@ var init_bridge_kick = __esm(() => {
485963
485993
  var call60 = async () => {
485964
485994
  return {
485965
485995
  type: "text",
485966
- value: `${"99.0.0"} (built ${"2026-05-05T05:48:15.030Z"})`
485996
+ value: `${"99.0.0"} (built ${"2026-05-06T07:37:29.365Z"})`
485967
485997
  };
485968
485998
  }, version2, version_default;
485969
485999
  var init_version = __esm(() => {
@@ -488581,6 +488611,9 @@ function get3PFallbackSuggestion(model) {
488581
488611
  return;
488582
488612
  }
488583
488613
  const lowerModel = model.toLowerCase();
488614
+ if (lowerModel.includes("opus-4-7") || lowerModel.includes("opus_4_7")) {
488615
+ return getModelStrings2().opus46;
488616
+ }
488584
488617
  if (lowerModel.includes("opus-4-6") || lowerModel.includes("opus_4_6")) {
488585
488618
  return getModelStrings2().opus41;
488586
488619
  }
@@ -554696,7 +554729,7 @@ function WelcomeV2() {
554696
554729
  dimColor: true,
554697
554730
  children: [
554698
554731
  "v",
554699
- "0.3.33",
554732
+ "0.3.34",
554700
554733
  " "
554701
554734
  ]
554702
554735
  }, undefined, true, undefined, this)
@@ -574153,7 +574186,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
574153
574186
  pendingHookMessages
574154
574187
  }, renderAndRun);
574155
574188
  }
574156
- }).version("0.3.33 (STRATAGEM X7)", "-v, --version", "Output the version number");
574189
+ }).version("0.3.34 (STRATAGEM X7)", "-v, --version", "Output the version number");
574157
574190
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
574158
574191
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
574159
574192
  if (canUserConfigureAdvisor()) {
@@ -574614,7 +574647,7 @@ if (false) {}
574614
574647
  async function main2() {
574615
574648
  const args = process.argv.slice(2);
574616
574649
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
574617
- console.log(`${"0.3.33"} (STRATAGEM X7)`);
574650
+ console.log(`${"0.3.34"} (STRATAGEM X7)`);
574618
574651
  return;
574619
574652
  }
574620
574653
  if (args.includes("--provider")) {
@@ -574736,4 +574769,4 @@ async function main2() {
574736
574769
  }
574737
574770
  main2();
574738
574771
 
574739
- //# debugId=5DA7E47DD0456A5B64756E2164756E21
574772
+ //# debugId=CEA98090F2123E2664756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagem-x7",
3
- "version": "0.3.33",
3
+ "version": "0.3.34",
4
4
  "description": "STRATAGEM X7 is a cyberpunk coding-agent CLI for cloud and local model providers",
5
5
  "type": "module",
6
6
  "bin": {