@piceofpentogramm/alterclaude 0.1.2 → 0.1.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 +21 -17
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -53385,7 +53385,7 @@ async function resolveProviderApiKeyHelpers(targetEnv) {
53385
53385
  }
53386
53386
  }
53387
53387
  function applyProfileEnvToProcessEnv(targetEnv, nextEnv) {
53388
- if (nextEnv.CLAUDE_CODE_USE_OPENROUTER && !targetEnv.OPENAI_API_KEY && nextEnv.OPENROUTER_API_KEY) {
53388
+ if (nextEnv.CLAUDE_CODE_USE_OPENROUTER && nextEnv.OPENROUTER_API_KEY) {
53389
53389
  nextEnv.OPENAI_API_KEY = nextEnv.OPENROUTER_API_KEY;
53390
53390
  nextEnv.OPENAI_BASE_URL = nextEnv.OPENAI_BASE_URL || nextEnv.OPENROUTER_BASE_URL;
53391
53391
  nextEnv.OPENAI_MODEL = nextEnv.OPENAI_MODEL || nextEnv.OPENROUTER_MODEL;
@@ -110692,9 +110692,18 @@ class OpenAIShimMessages {
110692
110692
  ...this.defaultHeaders,
110693
110693
  ...options?.headers ?? {}
110694
110694
  };
110695
+ delete headers.Authorization;
110695
110696
  const apiKey = process.env.OPENAI_API_KEY ?? "";
110696
110697
  const isAzure = /cognitiveservices\.azure\.com|openai\.azure\.com/.test(request.baseUrl);
110697
- if (apiKey) {
110698
+ const isOpenRouter = isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENROUTER);
110699
+ if (isOpenRouter) {
110700
+ const orKey = process.env.OPENROUTER_API_KEY ?? "";
110701
+ if (orKey) {
110702
+ headers.Authorization = `Bearer ${orKey}`;
110703
+ }
110704
+ headers["HTTP-Referer"] = process.env.OPENROUTER_REFERER ?? "https://github.com/PiceOfPentogramm/alterclaude";
110705
+ headers["X-Title"] = process.env.OPENROUTER_TITLE ?? "AlterClaude";
110706
+ } else if (apiKey) {
110698
110707
  if (isAzure) {
110699
110708
  headers["api-key"] = apiKey;
110700
110709
  } else {
@@ -110705,11 +110714,6 @@ class OpenAIShimMessages {
110705
110714
  headers.Accept = "application/vnd.github.v3+json";
110706
110715
  headers["X-GitHub-Api-Version"] = GITHUB_API_VERSION;
110707
110716
  }
110708
- const isOpenRouter = isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENROUTER);
110709
- if (isOpenRouter) {
110710
- headers["HTTP-Referer"] = process.env.OPENROUTER_REFERER ?? "https://github.com/PiceOfPentogramm/alterclaude";
110711
- headers["X-Title"] = process.env.OPENROUTER_TITLE ?? "AlterClaude";
110712
- }
110713
110717
  let chatCompletionsUrl;
110714
110718
  if (isAzure) {
110715
110719
  const apiVersion = process.env.AZURE_OPENAI_API_VERSION ?? "2024-12-01-preview";
@@ -120164,7 +120168,7 @@ function printStartupScreen() {
120164
120168
  const sLen = ` ● ${sL} Ready — type /help to begin`.length;
120165
120169
  out.push(boxRow(sRow, W2, sLen));
120166
120170
  out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
120167
- out.push(` ${DIM}${rgb(...DIMCOL)}alterclaude ${RESET}${rgb(...ACCENT)}v${"0.1.2"}${RESET}`);
120171
+ out.push(` ${DIM}${rgb(...DIMCOL)}alterclaude ${RESET}${rgb(...ACCENT)}v${"0.1.4"}${RESET}`);
120168
120172
  out.push("");
120169
120173
  process.stdout.write(out.join(`
120170
120174
  `) + `
@@ -358918,7 +358922,7 @@ function getAnthropicEnvMetadata() {
358918
358922
  function getBuildAgeMinutes() {
358919
358923
  if (false)
358920
358924
  ;
358921
- const buildTime = new Date("2026-05-29T15:25:34.035Z").getTime();
358925
+ const buildTime = new Date("2026-05-29T15:51:30.355Z").getTime();
358922
358926
  if (isNaN(buildTime))
358923
358927
  return;
358924
358928
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -451510,7 +451514,7 @@ var init_bridge_kick = __esm(() => {
451510
451514
  var call58 = async () => {
451511
451515
  return {
451512
451516
  type: "text",
451513
- value: `${"99.0.0"} (built ${"2026-05-29T15:25:34.035Z"})`
451517
+ value: `${"99.0.0"} (built ${"2026-05-29T15:51:30.355Z"})`
451514
451518
  };
451515
451519
  }, version2, version_default;
451516
451520
  var init_version = __esm(() => {
@@ -524651,7 +524655,7 @@ function WelcomeV2() {
524651
524655
  dimColor: true,
524652
524656
  children: [
524653
524657
  "v",
524654
- "0.1.2",
524658
+ "0.1.4",
524655
524659
  " "
524656
524660
  ]
524657
524661
  }, undefined, true, undefined, this)
@@ -524851,7 +524855,7 @@ function WelcomeV2() {
524851
524855
  dimColor: true,
524852
524856
  children: [
524853
524857
  "v",
524854
- "0.1.2",
524858
+ "0.1.4",
524855
524859
  " "
524856
524860
  ]
524857
524861
  }, undefined, true, undefined, this)
@@ -525077,7 +525081,7 @@ function AppleTerminalWelcomeV2(t0) {
525077
525081
  dimColor: true,
525078
525082
  children: [
525079
525083
  "v",
525080
- "0.1.2",
525084
+ "0.1.4",
525081
525085
  " "
525082
525086
  ]
525083
525087
  }, undefined, true, undefined, this);
@@ -525331,7 +525335,7 @@ function AppleTerminalWelcomeV2(t0) {
525331
525335
  dimColor: true,
525332
525336
  children: [
525333
525337
  "v",
525334
- "0.1.2",
525338
+ "0.1.4",
525335
525339
  " "
525336
525340
  ]
525337
525341
  }, undefined, true, undefined, this);
@@ -545879,7 +545883,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
545879
545883
  pendingHookMessages
545880
545884
  }, renderAndRun);
545881
545885
  }
545882
- }).version("0.1.2 (Alter Claude)", "-v, --version", "Output the version number");
545886
+ }).version("0.1.4 (Alter Claude)", "-v, --version", "Output the version number");
545883
545887
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
545884
545888
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
545885
545889
  if (canUserConfigureAdvisor()) {
@@ -546459,7 +546463,7 @@ function validateProviderEnvOrExit() {
546459
546463
  async function main2() {
546460
546464
  const args = process.argv.slice(2);
546461
546465
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
546462
- console.log(`${"0.1.2"} (Alter Claude)`);
546466
+ console.log(`${"0.1.4"} (Alter Claude)`);
546463
546467
  return;
546464
546468
  }
546465
546469
  {
@@ -546571,4 +546575,4 @@ async function main2() {
546571
546575
  }
546572
546576
  main2();
546573
546577
 
546574
- //# debugId=80A0EDD9FC28F08A64756E2164756E21
546578
+ //# debugId=843AF0364CFAD84764756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@piceofpentogramm/alterclaude",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Claude Code opened to any LLM — OpenAI, Gemini, DeepSeek, Ollama, and 200+ models",
5
5
  "type": "module",
6
6
  "bin": {