stratagem-x7 0.3.61 → 0.3.62

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 +27 -139
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -293400,10 +293400,15 @@ function ProviderManager({ mode, onDone }) {
293400
293400
  function renderPresetSelection() {
293401
293401
  const canUseCodexOAuth = !isBareMode();
293402
293402
  const options2 = [
293403
+ {
293404
+ value: "anthropic-oauth",
293405
+ label: "Anthropic (subscription)",
293406
+ description: "Sign in with Claude Pro/Max — OAuth flow"
293407
+ },
293403
293408
  {
293404
293409
  value: "anthropic",
293405
- label: "Anthropic",
293406
- description: "Native Anthropic uplink (x-api-key auth)"
293410
+ label: "Anthropic (API key)",
293411
+ description: "Anthropic Console API key (x-api-key auth)"
293407
293412
  },
293408
293413
  {
293409
293414
  value: "ollama",
@@ -293579,6 +293584,10 @@ function ProviderManager({ mode, onDone }) {
293579
293584
  setScreen("codex-oauth");
293580
293585
  return;
293581
293586
  }
293587
+ if (value === "anthropic-oauth") {
293588
+ onDone({ action: "delegate-anthropic-oauth" });
293589
+ return;
293590
+ }
293582
293591
  startCreateFromPreset(value);
293583
293592
  },
293584
293593
  onCancel: () => {
@@ -307996,7 +308005,7 @@ function ConsoleOAuthFlow({
307996
308005
  };
307997
308006
  }
307998
308007
  return {
307999
- state: "idle"
308008
+ state: "platform_setup"
308000
308009
  };
308001
308010
  });
308002
308011
  const [pastedCode, setPastedCode] = import_react74.useState("");
@@ -308305,138 +308314,18 @@ function OAuthStatusMessage({
308305
308314
  setLoginWithClaudeAi
308306
308315
  }) {
308307
308316
  switch (oauthStatus.state) {
308308
- case "idle": {
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
- {
308312
- label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308313
- children: [
308314
- "Anthropic ·",
308315
- " ",
308316
- /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308317
- dimColor: true,
308318
- children: "Claude Pro/Max subscription or Console API key"
308319
- }, undefined, false, undefined, this),
308320
- `
308321
- `
308322
- ]
308323
- }, undefined, true, undefined, this),
308324
- value: "anthropic"
308325
- },
308326
- {
308327
- label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308328
- children: [
308329
- "Other provider ·",
308330
- " ",
308331
- /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308332
- dimColor: true,
308333
- children: "OpenAI, Gemini, Bedrock, Ollama, Codex, and more"
308334
- }, undefined, false, undefined, this),
308335
- `
308336
- `
308337
- ]
308338
- }, undefined, true, undefined, this),
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"
308386
- },
308387
- {
308388
- label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308389
- children: [
308390
- "Anthropic Console account ·",
308391
- " ",
308392
- /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308393
- dimColor: true,
308394
- children: "API usage billing"
308395
- }, undefined, false, undefined, this),
308396
- `
308397
- `
308398
- ]
308399
- }, undefined, true, undefined, this),
308400
- value: "console"
308401
- }
308402
- ];
308403
- return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
308404
- flexDirection: "column",
308405
- gap: 1,
308406
- marginTop: 1,
308407
- children: [
308408
- /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308409
- bold: true,
308410
- children: "Anthropic authentication"
308411
- }, undefined, false, undefined, this),
308412
- /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
308413
- children: "Select auth method:"
308414
- }, undefined, false, undefined, this),
308415
- /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
308416
- children: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(Select, {
308417
- options: anthropicAuthOptions,
308418
- onChange: (value) => {
308419
- setOAuthStatus({ state: "ready_to_start" });
308420
- if (value === "claudeai") {
308421
- logEvent("tengu_oauth_claudeai_selected", {});
308422
- setLoginWithClaudeAi(true);
308423
- } else {
308424
- logEvent("tengu_oauth_console_selected", {});
308425
- setLoginWithClaudeAi(false);
308426
- }
308427
- },
308428
- onCancel: () => setOAuthStatus({ state: "idle" })
308429
- }, undefined, false, undefined, this)
308430
- }, undefined, false, undefined, this)
308431
- ]
308432
- }, undefined, true, undefined, this);
308433
- }
308434
308317
  case "platform_setup":
308435
308318
  return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ProviderManager, {
308436
308319
  mode: "first-run",
308437
308320
  onDone: (result) => {
308321
+ if (result?.action === "delegate-anthropic-oauth") {
308322
+ logEvent("tengu_oauth_claudeai_selected", {});
308323
+ setLoginWithClaudeAi(true);
308324
+ setOAuthStatus({ state: "ready_to_start" });
308325
+ return;
308326
+ }
308438
308327
  if (!result || result.action !== "saved" || !result.message) {
308439
- setOAuthStatus({ state: "idle" });
308328
+ setOAuthStatus({ state: "platform_setup" });
308440
308329
  return;
308441
308330
  }
308442
308331
  setOAuthStatus({
@@ -308601,7 +308490,6 @@ var init_ConsoleOAuthFlow = __esm(() => {
308601
308490
  init_log3();
308602
308491
  init_settings2();
308603
308492
  init_ProviderManager();
308604
- init_select();
308605
308493
  init_KeyboardShortcutHint();
308606
308494
  init_Spinner2();
308607
308495
  init_TextInput();
@@ -350378,7 +350266,7 @@ function getAnthropicEnvMetadata() {
350378
350266
  function getBuildAgeMinutes() {
350379
350267
  if (false)
350380
350268
  ;
350381
- const buildTime = new Date("2026-05-08T02:37:06.728Z").getTime();
350269
+ const buildTime = new Date("2026-05-08T02:50:29.288Z").getTime();
350382
350270
  if (isNaN(buildTime))
350383
350271
  return;
350384
350272
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -418191,7 +418079,7 @@ function buildPrimarySection() {
418191
418079
  }, undefined, false, undefined, this);
418192
418080
  return [{
418193
418081
  label: "Version",
418194
- value: "0.3.61"
418082
+ value: "0.3.62"
418195
418083
  }, {
418196
418084
  label: "Session name",
418197
418085
  value: nameValue
@@ -457878,7 +457766,7 @@ function getStartupLines(termWidth) {
457878
457766
  const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
457879
457767
  out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
457880
457768
  out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${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));
457769
+ out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.62"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
457882
457770
  out.push("");
457883
457771
  return out;
457884
457772
  }
@@ -486629,7 +486517,7 @@ var init_bridge_kick = __esm(() => {
486629
486517
  var call61 = async () => {
486630
486518
  return {
486631
486519
  type: "text",
486632
- value: `${"99.0.0"} (built ${"2026-05-08T02:37:06.728Z"})`
486520
+ value: `${"99.0.0"} (built ${"2026-05-08T02:50:29.288Z"})`
486633
486521
  };
486634
486522
  }, version2, version_default;
486635
486523
  var init_version = __esm(() => {
@@ -555455,7 +555343,7 @@ function WelcomeV2() {
555455
555343
  dimColor: true,
555456
555344
  children: [
555457
555345
  "v",
555458
- "0.3.61",
555346
+ "0.3.62",
555459
555347
  " "
555460
555348
  ]
555461
555349
  }, undefined, true, undefined, this)
@@ -574913,7 +574801,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
574913
574801
  pendingHookMessages
574914
574802
  }, renderAndRun);
574915
574803
  }
574916
- }).version("0.3.61 (STRATAGEM X7)", "-v, --version", "Output the version number");
574804
+ }).version("0.3.62 (STRATAGEM X7)", "-v, --version", "Output the version number");
574917
574805
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
574918
574806
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
574919
574807
  if (canUserConfigureAdvisor()) {
@@ -575374,7 +575262,7 @@ if (false) {}
575374
575262
  async function main2() {
575375
575263
  const args = process.argv.slice(2);
575376
575264
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
575377
- console.log(`${"0.3.61"} (STRATAGEM X7)`);
575265
+ console.log(`${"0.3.62"} (STRATAGEM X7)`);
575378
575266
  return;
575379
575267
  }
575380
575268
  if (args.includes("--provider")) {
@@ -575496,4 +575384,4 @@ async function main2() {
575496
575384
  }
575497
575385
  main2();
575498
575386
 
575499
- //# debugId=88C52A19098A92A864756E2164756E21
575387
+ //# debugId=40703F982E7F18CB64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagem-x7",
3
- "version": "0.3.61",
3
+ "version": "0.3.62",
4
4
  "description": "STRATAGEM X7 is a cyberpunk coding-agent CLI for cloud and local model providers",
5
5
  "type": "module",
6
6
  "bin": {