@amirtechai/xclaude 0.2.3 → 0.2.4

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 +35 -13
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -120358,7 +120358,7 @@ function printStartupScreen() {
120358
120358
  const sLen = ` ● ${sL} Ready — type /help to begin`.length;
120359
120359
  out.push(boxRow(sRow, W2, sLen));
120360
120360
  out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
120361
- out.push(` ${DIM}${rgb(...DIMCOL)}xclaude ${RESET}${rgb(...ACCENT)}v${"0.2.3"}${RESET}`);
120361
+ out.push(` ${DIM}${rgb(...DIMCOL)}xclaude ${RESET}${rgb(...ACCENT)}v${"0.2.4"}${RESET}`);
120362
120362
  out.push("");
120363
120363
  process.stdout.write(out.join(`
120364
120364
  `) + `
@@ -144381,6 +144381,13 @@ var init_TerminalSizeContext = __esm(() => {
144381
144381
  });
144382
144382
 
144383
144383
  // src/ink/components/App.tsx
144384
+ import { appendFileSync as appendFileSync4 } from "fs";
144385
+ function xclaudeDebug(msg) {
144386
+ try {
144387
+ appendFileSync4("/tmp/xclaude-debug.log", `[${new Date().toISOString()}] ${msg}
144388
+ `);
144389
+ } catch {}
144390
+ }
144384
144391
  function processKeysInBatch(app, items, _unused1, _unused2) {
144385
144392
  if (items.some((i2) => i2.kind === "key" || i2.kind === "mouse" && !((i2.button & 32) !== 0 && (i2.button & 3) === 3))) {
144386
144393
  updateLastInteractionTime();
@@ -144631,6 +144638,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
144631
144638
  stdin.setEncoding("utf8");
144632
144639
  if (isEnabled) {
144633
144640
  if (this.rawModeEnabledCount === 0) {
144641
+ xclaudeDebug(`handleSetRawMode(true): isTTY=${stdin.isTTY} rawModeCount=${this.rawModeEnabledCount} stdinMode=${this.stdinMode}`);
144634
144642
  stopCapturingEarlyInput();
144635
144643
  stdin.ref();
144636
144644
  stdin.setRawMode(true);
@@ -144696,6 +144704,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
144696
144704
  }
144697
144705
  };
144698
144706
  handleReadable = () => {
144707
+ xclaudeDebug("handleReadable: event fired");
144699
144708
  const now2 = Date.now();
144700
144709
  if (now2 - this.lastStdinTime > STDIN_RESUME_GAP_MS) {
144701
144710
  this.props.onStdinResume?.();
@@ -370543,7 +370552,7 @@ function getAnthropicEnvMetadata() {
370543
370552
  function getBuildAgeMinutes() {
370544
370553
  if (false)
370545
370554
  ;
370546
- const buildTime = new Date("2026-04-12T10:32:18.586Z").getTime();
370555
+ const buildTime = new Date("2026-04-12T10:40:01.484Z").getTime();
370547
370556
  if (isNaN(buildTime))
370548
370557
  return;
370549
370558
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -397301,7 +397310,7 @@ function buildPrimarySection() {
397301
397310
  }, undefined, false, undefined, this);
397302
397311
  return [{
397303
397312
  label: "Version",
397304
- value: "0.2.3"
397313
+ value: "0.2.4"
397305
397314
  }, {
397306
397315
  label: "Session name",
397307
397316
  value: nameValue
@@ -462408,7 +462417,7 @@ var init_bridge_kick = __esm(() => {
462408
462417
  var call58 = async () => {
462409
462418
  return {
462410
462419
  type: "text",
462411
- value: `${"99.0.0"} (built ${"2026-04-12T10:32:18.586Z"})`
462420
+ value: `${"99.0.0"} (built ${"2026-04-12T10:40:01.484Z"})`
462412
462421
  };
462413
462422
  }, version2, version_default;
462414
462423
  var init_version = __esm(() => {
@@ -535361,7 +535370,7 @@ function WelcomeV2() {
535361
535370
  dimColor: true,
535362
535371
  children: [
535363
535372
  "v",
535364
- "0.2.3",
535373
+ "0.2.4",
535365
535374
  " "
535366
535375
  ]
535367
535376
  }, undefined, true, undefined, this)
@@ -535561,7 +535570,7 @@ function WelcomeV2() {
535561
535570
  dimColor: true,
535562
535571
  children: [
535563
535572
  "v",
535564
- "0.2.3",
535573
+ "0.2.4",
535565
535574
  " "
535566
535575
  ]
535567
535576
  }, undefined, true, undefined, this)
@@ -535787,7 +535796,7 @@ function AppleTerminalWelcomeV2(t0) {
535787
535796
  dimColor: true,
535788
535797
  children: [
535789
535798
  "v",
535790
- "0.2.3",
535799
+ "0.2.4",
535791
535800
  " "
535792
535801
  ]
535793
535802
  }, undefined, true, undefined, this);
@@ -536041,7 +536050,7 @@ function AppleTerminalWelcomeV2(t0) {
536041
536050
  dimColor: true,
536042
536051
  children: [
536043
536052
  "v",
536044
- "0.2.3",
536053
+ "0.2.4",
536045
536054
  " "
536046
536055
  ]
536047
536056
  }, undefined, true, undefined, this);
@@ -537536,7 +537545,7 @@ var init_ClaudeInChromeOnboarding = __esm(() => {
537536
537545
  });
537537
537546
 
537538
537547
  // src/interactiveHelpers.tsx
537539
- import { appendFileSync as appendFileSync4 } from "fs";
537548
+ import { appendFileSync as appendFileSync5 } from "fs";
537540
537549
  function completeOnboarding() {
537541
537550
  saveGlobalConfig((current) => ({
537542
537551
  ...current,
@@ -537721,7 +537730,7 @@ function getRenderContext(exitOnCtrlC) {
537721
537730
  cpu: process.cpuUsage()
537722
537731
  }) + `
537723
537732
  `;
537724
- appendFileSync4(frameTimingLogPath, line);
537733
+ appendFileSync5(frameTimingLogPath, line);
537725
537734
  }
537726
537735
  if (isSynchronizedOutputSupported()) {
537727
537736
  return;
@@ -554652,6 +554661,7 @@ __export(exports_main, {
554652
554661
  });
554653
554662
  import { readFileSync as readFileSync12 } from "fs";
554654
554663
  import { resolve as resolve41 } from "path";
554664
+ import { appendFileSync as _dbgAppend } from "fs";
554655
554665
  function logManagedSettings() {
554656
554666
  try {
554657
554667
  const policySettings = getSettingsForSource("policySettings");
@@ -554870,7 +554880,14 @@ function initializeEntrypoint(isNonInteractive) {
554870
554880
  }
554871
554881
  process.env.CLAUDE_CODE_ENTRYPOINT = isNonInteractive ? "sdk-cli" : "cli";
554872
554882
  }
554883
+ function _xdbg(msg) {
554884
+ try {
554885
+ _dbgAppend("/tmp/xclaude-debug.log", `[${new Date().toISOString()}] MAIN: ${msg}
554886
+ `);
554887
+ } catch {}
554888
+ }
554873
554889
  async function main() {
554890
+ _xdbg(`main() called — stdout.isTTY=${process.stdout.isTTY} stdin.isTTY=${process.stdin.isTTY}`);
554874
554891
  profileCheckpoint("main_function_start");
554875
554892
  process.env.NoDefaultCurrentDirectoryInExePath = "1";
554876
554893
  initializeWarningHandler();
@@ -554897,6 +554914,7 @@ async function main() {
554897
554914
  stopCapturingEarlyInput();
554898
554915
  }
554899
554916
  const isInteractive = !isNonInteractive;
554917
+ _xdbg(`isNonInteractive=${isNonInteractive} isInteractive=${isInteractive} (hasPrintFlag=${hasPrintFlag} hasInitOnly=${hasInitOnlyFlag} stdout.isTTY=${process.stdout.isTTY})`);
554900
554918
  setIsInteractive(isInteractive);
554901
554919
  initializeEntrypoint(isNonInteractive);
554902
554920
  const clientType = (() => {
@@ -555674,12 +555692,15 @@ ${customInstructions}` : customInstructions;
555674
555692
  createRoot: createRoot3
555675
555693
  } = await Promise.resolve().then(() => (init_ink2(), exports_ink));
555676
555694
  root2 = await createRoot3(ctx.renderOptions);
555695
+ _xdbg("createRoot done");
555677
555696
  logEvent("tengu_timer", {
555678
555697
  event: "startup",
555679
555698
  durationMs: Math.round(process.uptime() * 1000)
555680
555699
  });
555681
555700
  const setupScreensStart = Date.now();
555701
+ _xdbg("calling showSetupScreens");
555682
555702
  const onboardingShown = await showSetupScreens(root2, permissionMode, allowDangerouslySkipPermissions, commands, enableClaudeInChrome, devChannels);
555703
+ _xdbg(`showSetupScreens done, onboardingShown=${onboardingShown}`);
555683
555704
  if (false) {}
555684
555705
  if (false) {}
555685
555706
  if (onboardingShown && prompt2?.trim().toLowerCase() === "/login") {
@@ -556598,6 +556619,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
556598
556619
  let deepLinkBanner = null;
556599
556620
  if (false) {}
556600
556621
  const initialMessages = deepLinkBanner ? [deepLinkBanner, ...hookMessages] : hookMessages.length > 0 ? hookMessages : undefined;
556622
+ _xdbg("calling launchRepl (main path)");
556601
556623
  await launchRepl(root2, {
556602
556624
  getFpsMetrics,
556603
556625
  stats: stats2,
@@ -556608,7 +556630,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
556608
556630
  pendingHookMessages
556609
556631
  }, renderAndRun);
556610
556632
  }
556611
- }).version("0.2.3 (Xclaude)", "-v, --version", "Output the version number");
556633
+ }).version("0.2.4 (Xclaude)", "-v, --version", "Output the version number");
556612
556634
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
556613
556635
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
556614
556636
  if (canUserConfigureAdvisor()) {
@@ -557178,7 +557200,7 @@ function validateProviderEnvOrExit() {
557178
557200
  async function main2() {
557179
557201
  const args = process.argv.slice(2);
557180
557202
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
557181
- console.log(`${"0.2.3"} (Xclaude)`);
557203
+ console.log(`${"0.2.4"} (Xclaude)`);
557182
557204
  return;
557183
557205
  }
557184
557206
  if (args.includes("--setup") || args[0] === "setup") {
@@ -557310,4 +557332,4 @@ async function main2() {
557310
557332
  }
557311
557333
  main2();
557312
557334
 
557313
- //# debugId=EA0AD9D6E2112D4664756E2164756E21
557335
+ //# debugId=750CCE499995432D64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amirtechai/xclaude",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Claude Code opened to any LLM — OpenAI, Gemini, DeepSeek, Groq, Ollama, and 200+ models",
5
5
  "type": "module",
6
6
  "bin": {