stratagem-x7 0.3.47 → 0.3.48

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