@amirtechai/xclaude 0.1.8 → 0.1.9

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 +36 -19
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -109955,8 +109955,11 @@ async function performCodexRequest(options) {
109955
109955
  if (options.request.reasoning) {
109956
109956
  body.reasoning = options.request.reasoning;
109957
109957
  }
109958
- const isTargetModel = options.request.resolvedModel?.toLowerCase().includes("gpt") || options.request.resolvedModel?.toLowerCase().includes("codex");
109959
- if (!isTargetModel) {
109958
+ if (typeof options.params.max_tokens === "number" && options.params.max_tokens > 0) {
109959
+ body.max_output_tokens = options.params.max_tokens;
109960
+ }
109961
+ const isGptOrCodexModel = options.request.resolvedModel?.toLowerCase().includes("gpt") || options.request.resolvedModel?.toLowerCase().includes("codex");
109962
+ if (!isGptOrCodexModel) {
109960
109963
  if (options.params.temperature !== undefined) {
109961
109964
  body.temperature = options.params.temperature;
109962
109965
  }
@@ -109995,11 +109998,7 @@ async function* readSseEvents(response) {
109995
109998
  return;
109996
109999
  const decoder = new TextDecoder;
109997
110000
  let buffer = "";
109998
- while (true) {
109999
- const { done, value } = await reader.read();
110000
- if (done)
110001
- break;
110002
- buffer += decoder.decode(value, { stream: true });
110001
+ function* processBuffer() {
110003
110002
  const chunks = buffer.split(`
110004
110003
 
110005
110004
  `);
@@ -110030,6 +110029,20 @@ async function* readSseEvents(response) {
110030
110029
  yield { event, data };
110031
110030
  }
110032
110031
  }
110032
+ try {
110033
+ while (true) {
110034
+ const { done, value } = await reader.read();
110035
+ if (done) {
110036
+ buffer += decoder.decode();
110037
+ yield* processBuffer();
110038
+ break;
110039
+ }
110040
+ buffer += decoder.decode(value, { stream: true });
110041
+ yield* processBuffer();
110042
+ }
110043
+ } finally {
110044
+ reader.releaseLock();
110045
+ }
110033
110046
  }
110034
110047
  function determineStopReason(response, sawToolUse) {
110035
110048
  const output = Array.isArray(response?.output) ? response.output : [];
@@ -120075,7 +120088,7 @@ function printStartupScreen() {
120075
120088
  const sLen = ` ● ${sL} Ready — type /help to begin`.length;
120076
120089
  out.push(boxRow(sRow, W2, sLen));
120077
120090
  out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
120078
- out.push(` ${DIM}${rgb(...DIMCOL)}xclaude ${RESET}${rgb(...ACCENT)}v${"0.1.8"}${RESET}`);
120091
+ out.push(` ${DIM}${rgb(...DIMCOL)}xclaude ${RESET}${rgb(...ACCENT)}v${"0.1.9"}${RESET}`);
120079
120092
  out.push("");
120080
120093
  process.stdout.write(out.join(`
120081
120094
  `) + `
@@ -262886,7 +262899,7 @@ function resolveAgentProvider(name, subagentType, settings) {
262886
262899
  for (const [key, value] of Object.entries(routing)) {
262887
262900
  const nk = normalize9(key);
262888
262901
  if (normalizedRouting.has(nk)) {
262889
- console.error(`[agentRouting] Warning: routing key "${key}" collides with an existing key after normalization (both map to "${nk}"). First entry wins.`);
262902
+ logForDebugging2(`[agentRouting] Warning: routing key "${key}" collides with an existing key after normalization (both map to "${nk}"). First entry wins.`, { level: "warn" });
262890
262903
  }
262891
262904
  if (!normalizedRouting.has(nk)) {
262892
262905
  normalizedRouting.set(nk, value);
@@ -262912,6 +262925,9 @@ function resolveAgentProvider(name, subagentType, settings) {
262912
262925
  apiKey: modelConfig.api_key
262913
262926
  };
262914
262927
  }
262928
+ var init_agentRouting = __esm(() => {
262929
+ init_debug();
262930
+ });
262915
262931
 
262916
262932
  // src/utils/telemetry/perfettoTracing.ts
262917
262933
  function initializePerfettoTracing() {}
@@ -296247,6 +296263,7 @@ var init_runAgent = __esm(() => {
296247
296263
  init_hooks5();
296248
296264
  init_messages3();
296249
296265
  init_agent();
296266
+ init_agentRouting();
296250
296267
  init_settings2();
296251
296268
  init_sessionStorage();
296252
296269
  init_pluginOnlyPolicy();
@@ -370258,7 +370275,7 @@ function getAnthropicEnvMetadata() {
370258
370275
  function getBuildAgeMinutes() {
370259
370276
  if (false)
370260
370277
  ;
370261
- const buildTime = new Date("2026-04-06T17:42:21.676Z").getTime();
370278
+ const buildTime = new Date("2026-04-06T19:24:30.342Z").getTime();
370262
370279
  if (isNaN(buildTime))
370263
370280
  return;
370264
370281
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -397016,7 +397033,7 @@ function buildPrimarySection() {
397016
397033
  }, undefined, false, undefined, this);
397017
397034
  return [{
397018
397035
  label: "Version",
397019
- value: "0.1.8"
397036
+ value: "0.1.9"
397020
397037
  }, {
397021
397038
  label: "Session name",
397022
397039
  value: nameValue
@@ -462123,7 +462140,7 @@ var init_bridge_kick = __esm(() => {
462123
462140
  var call58 = async () => {
462124
462141
  return {
462125
462142
  type: "text",
462126
- value: `${"99.0.0"} (built ${"2026-04-06T17:42:21.676Z"})`
462143
+ value: `${"99.0.0"} (built ${"2026-04-06T19:24:30.342Z"})`
462127
462144
  };
462128
462145
  }, version2, version_default;
462129
462146
  var init_version = __esm(() => {
@@ -535069,7 +535086,7 @@ function WelcomeV2() {
535069
535086
  dimColor: true,
535070
535087
  children: [
535071
535088
  "v",
535072
- "0.1.8",
535089
+ "0.1.9",
535073
535090
  " "
535074
535091
  ]
535075
535092
  }, undefined, true, undefined, this)
@@ -535269,7 +535286,7 @@ function WelcomeV2() {
535269
535286
  dimColor: true,
535270
535287
  children: [
535271
535288
  "v",
535272
- "0.1.8",
535289
+ "0.1.9",
535273
535290
  " "
535274
535291
  ]
535275
535292
  }, undefined, true, undefined, this)
@@ -535495,7 +535512,7 @@ function AppleTerminalWelcomeV2(t0) {
535495
535512
  dimColor: true,
535496
535513
  children: [
535497
535514
  "v",
535498
- "0.1.8",
535515
+ "0.1.9",
535499
535516
  " "
535500
535517
  ]
535501
535518
  }, undefined, true, undefined, this);
@@ -535749,7 +535766,7 @@ function AppleTerminalWelcomeV2(t0) {
535749
535766
  dimColor: true,
535750
535767
  children: [
535751
535768
  "v",
535752
- "0.1.8",
535769
+ "0.1.9",
535753
535770
  " "
535754
535771
  ]
535755
535772
  }, undefined, true, undefined, this);
@@ -556316,7 +556333,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
556316
556333
  pendingHookMessages
556317
556334
  }, renderAndRun);
556318
556335
  }
556319
- }).version("0.1.8 (Xclaude)", "-v, --version", "Output the version number");
556336
+ }).version("0.1.9 (Xclaude)", "-v, --version", "Output the version number");
556320
556337
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
556321
556338
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
556322
556339
  if (canUserConfigureAdvisor()) {
@@ -556886,7 +556903,7 @@ function validateProviderEnvOrExit() {
556886
556903
  async function main2() {
556887
556904
  const args = process.argv.slice(2);
556888
556905
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
556889
- console.log(`${"0.1.8"} (Xclaude)`);
556906
+ console.log(`${"0.1.9"} (Xclaude)`);
556890
556907
  return;
556891
556908
  }
556892
556909
  if (args.includes("--provider")) {
@@ -557002,4 +557019,4 @@ async function main2() {
557002
557019
  }
557003
557020
  main2();
557004
557021
 
557005
- //# debugId=B4FF6725FC2D2F3E64756E2164756E21
557022
+ //# debugId=97B5108AA4BD867D64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amirtechai/xclaude",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Claude Code opened to any LLM — OpenAI, Gemini, DeepSeek, Groq, Ollama, and 200+ models",
5
5
  "type": "module",
6
6
  "bin": {