stratagem-x7 0.3.60 → 0.3.61

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 +70 -28
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -308306,52 +308306,98 @@ function OAuthStatusMessage({
308306
308306
  }) {
308307
308307
  switch (oauthStatus.state) {
308308
308308
  case "idle": {
308309
- const promptText = startingMessage || "Claude Code can be used with your Claude subscription or billed based on API usage through your Console account.";
308310
- const loginOptions = [
308309
+ const promptText = startingMessage || "Connect STRATAGEM X7 to your provider. Anthropic supports Claude Pro/Max subscription OAuth or Console API key; other providers use API keys.";
308310
+ const providerOptions = [
308311
308311
  {
308312
308312
  label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308313
308313
  children: [
308314
- "Claude account with subscription ·",
308314
+ "Anthropic ·",
308315
308315
  " ",
308316
308316
  /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308317
308317
  dimColor: true,
308318
- children: "Pro, Max, Team, or Enterprise"
308318
+ children: "Claude Pro/Max subscription or Console API key"
308319
308319
  }, undefined, false, undefined, this),
308320
308320
  `
308321
308321
  `
308322
308322
  ]
308323
308323
  }, undefined, true, undefined, this),
308324
- value: "claudeai"
308324
+ value: "anthropic"
308325
308325
  },
308326
308326
  {
308327
308327
  label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308328
308328
  children: [
308329
- "Anthropic Console account ·",
308329
+ "Other provider ·",
308330
308330
  " ",
308331
308331
  /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308332
308332
  dimColor: true,
308333
- children: "API usage billing"
308333
+ children: "OpenAI, Gemini, Bedrock, Ollama, Codex, and more"
308334
308334
  }, undefined, false, undefined, this),
308335
308335
  `
308336
308336
  `
308337
308337
  ]
308338
308338
  }, undefined, true, undefined, this),
308339
- value: "console"
308339
+ value: "platform"
308340
+ }
308341
+ ];
308342
+ return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
308343
+ flexDirection: "column",
308344
+ gap: 1,
308345
+ marginTop: 1,
308346
+ children: [
308347
+ /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308348
+ bold: true,
308349
+ children: promptText
308350
+ }, undefined, false, undefined, this),
308351
+ /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308352
+ children: "Select provider:"
308353
+ }, undefined, false, undefined, this),
308354
+ /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
308355
+ children: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(Select, {
308356
+ options: providerOptions,
308357
+ onChange: (value) => {
308358
+ if (value === "platform") {
308359
+ logEvent("tengu_oauth_platform_selected", {});
308360
+ setOAuthStatus({ state: "platform_setup" });
308361
+ return;
308362
+ }
308363
+ setOAuthStatus({ state: "anthropic_auth" });
308364
+ }
308365
+ }, undefined, false, undefined, this)
308366
+ }, undefined, false, undefined, this)
308367
+ ]
308368
+ }, undefined, true, undefined, this);
308369
+ }
308370
+ case "anthropic_auth": {
308371
+ const anthropicAuthOptions = [
308372
+ {
308373
+ label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308374
+ children: [
308375
+ "Claude account with subscription ·",
308376
+ " ",
308377
+ /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308378
+ dimColor: true,
308379
+ children: "Pro, Max, Team, or Enterprise"
308380
+ }, undefined, false, undefined, this),
308381
+ `
308382
+ `
308383
+ ]
308384
+ }, undefined, true, undefined, this),
308385
+ value: "claudeai"
308340
308386
  },
308341
308387
  {
308342
308388
  label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308343
308389
  children: [
308344
- "3rd-party platform ·",
308390
+ "Anthropic Console account ·",
308345
308391
  " ",
308346
308392
  /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308347
308393
  dimColor: true,
308348
- children: "OpenAI, Gemini, Bedrock, Ollama, and more"
308394
+ children: "API usage billing"
308349
308395
  }, undefined, false, undefined, this),
308350
308396
  `
308351
308397
  `
308352
308398
  ]
308353
308399
  }, undefined, true, undefined, this),
308354
- value: "platform"
308400
+ value: "console"
308355
308401
  }
308356
308402
  ];
308357
308403
  return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
@@ -308361,20 +308407,15 @@ function OAuthStatusMessage({
308361
308407
  children: [
308362
308408
  /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308363
308409
  bold: true,
308364
- children: promptText
308410
+ children: "Anthropic authentication"
308365
308411
  }, undefined, false, undefined, this),
308366
308412
  /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308367
- children: "Select login method:"
308413
+ children: "Select auth method:"
308368
308414
  }, undefined, false, undefined, this),
308369
308415
  /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
308370
308416
  children: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(Select, {
308371
- options: loginOptions,
308417
+ options: anthropicAuthOptions,
308372
308418
  onChange: (value) => {
308373
- if (value === "platform") {
308374
- logEvent("tengu_oauth_platform_selected", {});
308375
- setOAuthStatus({ state: "platform_setup" });
308376
- return;
308377
- }
308378
308419
  setOAuthStatus({ state: "ready_to_start" });
308379
308420
  if (value === "claudeai") {
308380
308421
  logEvent("tengu_oauth_claudeai_selected", {});
@@ -308383,7 +308424,8 @@ function OAuthStatusMessage({
308383
308424
  logEvent("tengu_oauth_console_selected", {});
308384
308425
  setLoginWithClaudeAi(false);
308385
308426
  }
308386
- }
308427
+ },
308428
+ onCancel: () => setOAuthStatus({ state: "idle" })
308387
308429
  }, undefined, false, undefined, this)
308388
308430
  }, undefined, false, undefined, this)
308389
308431
  ]
@@ -350336,7 +350378,7 @@ function getAnthropicEnvMetadata() {
350336
350378
  function getBuildAgeMinutes() {
350337
350379
  if (false)
350338
350380
  ;
350339
- const buildTime = new Date("2026-05-08T02:26:11.339Z").getTime();
350381
+ const buildTime = new Date("2026-05-08T02:37:06.728Z").getTime();
350340
350382
  if (isNaN(buildTime))
350341
350383
  return;
350342
350384
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -418149,7 +418191,7 @@ function buildPrimarySection() {
418149
418191
  }, undefined, false, undefined, this);
418150
418192
  return [{
418151
418193
  label: "Version",
418152
- value: "0.3.60"
418194
+ value: "0.3.61"
418153
418195
  }, {
418154
418196
  label: "Session name",
418155
418197
  value: nameValue
@@ -457836,7 +457878,7 @@ function getStartupLines(termWidth) {
457836
457878
  const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
457837
457879
  out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
457838
457880
  out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
457839
- out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.60"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457881
+ out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.61"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457840
457882
  out.push("");
457841
457883
  return out;
457842
457884
  }
@@ -486587,7 +486629,7 @@ var init_bridge_kick = __esm(() => {
486587
486629
  var call61 = async () => {
486588
486630
  return {
486589
486631
  type: "text",
486590
- value: `${"99.0.0"} (built ${"2026-05-08T02:26:11.339Z"})`
486632
+ value: `${"99.0.0"} (built ${"2026-05-08T02:37:06.728Z"})`
486591
486633
  };
486592
486634
  }, version2, version_default;
486593
486635
  var init_version = __esm(() => {
@@ -555413,7 +555455,7 @@ function WelcomeV2() {
555413
555455
  dimColor: true,
555414
555456
  children: [
555415
555457
  "v",
555416
- "0.3.60",
555458
+ "0.3.61",
555417
555459
  " "
555418
555460
  ]
555419
555461
  }, undefined, true, undefined, this)
@@ -574871,7 +574913,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
574871
574913
  pendingHookMessages
574872
574914
  }, renderAndRun);
574873
574915
  }
574874
- }).version("0.3.60 (STRATAGEM X7)", "-v, --version", "Output the version number");
574916
+ }).version("0.3.61 (STRATAGEM X7)", "-v, --version", "Output the version number");
574875
574917
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
574876
574918
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
574877
574919
  if (canUserConfigureAdvisor()) {
@@ -575332,7 +575374,7 @@ if (false) {}
575332
575374
  async function main2() {
575333
575375
  const args = process.argv.slice(2);
575334
575376
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
575335
- console.log(`${"0.3.60"} (STRATAGEM X7)`);
575377
+ console.log(`${"0.3.61"} (STRATAGEM X7)`);
575336
575378
  return;
575337
575379
  }
575338
575380
  if (args.includes("--provider")) {
@@ -575454,4 +575496,4 @@ async function main2() {
575454
575496
  }
575455
575497
  main2();
575456
575498
 
575457
- //# debugId=D5777F805277E58A64756E2164756E21
575499
+ //# debugId=88C52A19098A92A864756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagem-x7",
3
- "version": "0.3.60",
3
+ "version": "0.3.61",
4
4
  "description": "STRATAGEM X7 is a cyberpunk coding-agent CLI for cloud and local model providers",
5
5
  "type": "module",
6
6
  "bin": {