@piceofpentogramm/alterclaude 0.1.4 → 0.1.5
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.
- package/dist/cli.mjs +48 -11
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -110703,7 +110703,8 @@ class OpenAIShimMessages {
|
|
|
110703
110703
|
}
|
|
110704
110704
|
headers["HTTP-Referer"] = process.env.OPENROUTER_REFERER ?? "https://github.com/PiceOfPentogramm/alterclaude";
|
|
110705
110705
|
headers["X-Title"] = process.env.OPENROUTER_TITLE ?? "AlterClaude";
|
|
110706
|
-
}
|
|
110706
|
+
}
|
|
110707
|
+
if (!isOpenRouter && apiKey) {
|
|
110707
110708
|
if (isAzure) {
|
|
110708
110709
|
headers["api-key"] = apiKey;
|
|
110709
110710
|
} else {
|
|
@@ -110714,6 +110715,23 @@ class OpenAIShimMessages {
|
|
|
110714
110715
|
headers.Accept = "application/vnd.github.v3+json";
|
|
110715
110716
|
headers["X-GitHub-Api-Version"] = GITHUB_API_VERSION;
|
|
110716
110717
|
}
|
|
110718
|
+
if (isOpenRouter && process.env.ALTERCLAUDE_DEBUG) {
|
|
110719
|
+
process.stderr.write(`
|
|
110720
|
+
[ALTERCLAUDE_DEBUG] OR key set: ${!!headers.Authorization}
|
|
110721
|
+
`);
|
|
110722
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] Auth header length: ${(headers.Authorization || "").length}
|
|
110723
|
+
`);
|
|
110724
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] Auth starts with: ${(headers.Authorization || "").slice(0, 15)}
|
|
110725
|
+
`);
|
|
110726
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] OPENROUTER_API_KEY env: ${!!process.env.OPENROUTER_API_KEY}
|
|
110727
|
+
`);
|
|
110728
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] OPENAI_API_KEY env: ${!!process.env.OPENAI_API_KEY}
|
|
110729
|
+
`);
|
|
110730
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] CLAUDE_CODE_USE_OPENROUTER: ${process.env.CLAUDE_CODE_USE_OPENROUTER}
|
|
110731
|
+
`);
|
|
110732
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] ANTHROPIC_AUTH_TOKEN env: ${!!process.env.ANTHROPIC_AUTH_TOKEN}
|
|
110733
|
+
`);
|
|
110734
|
+
}
|
|
110717
110735
|
let chatCompletionsUrl;
|
|
110718
110736
|
if (isAzure) {
|
|
110719
110737
|
const apiVersion = process.env.AZURE_OPENAI_API_VERSION ?? "2024-12-01-preview";
|
|
@@ -110728,6 +110746,25 @@ class OpenAIShimMessages {
|
|
|
110728
110746
|
} else {
|
|
110729
110747
|
chatCompletionsUrl = `${request.baseUrl}/chat/completions`;
|
|
110730
110748
|
}
|
|
110749
|
+
if (isOpenRouter && process.env.ALTERCLAUDE_DEBUG) {
|
|
110750
|
+
process.stderr.write(`
|
|
110751
|
+
[ALTERCLAUDE_DEBUG] OR key set: ${!!headers.Authorization}
|
|
110752
|
+
`);
|
|
110753
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] Auth header length: ${(headers.Authorization || "").length}
|
|
110754
|
+
`);
|
|
110755
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] Auth starts with: ${(headers.Authorization || "").slice(0, 15)}
|
|
110756
|
+
`);
|
|
110757
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] OPENROUTER_API_KEY env: ${!!process.env.OPENROUTER_API_KEY}
|
|
110758
|
+
`);
|
|
110759
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] OPENAI_API_KEY env: ${!!process.env.OPENAI_API_KEY}
|
|
110760
|
+
`);
|
|
110761
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] CLAUDE_CODE_USE_OPENROUTER: ${process.env.CLAUDE_CODE_USE_OPENROUTER}
|
|
110762
|
+
`);
|
|
110763
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] ANTHROPIC_AUTH_TOKEN env: ${!!process.env.ANTHROPIC_AUTH_TOKEN}
|
|
110764
|
+
`);
|
|
110765
|
+
process.stderr.write(`[ALTERCLAUDE_DEBUG] Chat URL: ${chatCompletionsUrl}
|
|
110766
|
+
`);
|
|
110767
|
+
}
|
|
110731
110768
|
const fetchInit = {
|
|
110732
110769
|
method: "POST",
|
|
110733
110770
|
headers,
|
|
@@ -120168,7 +120205,7 @@ function printStartupScreen() {
|
|
|
120168
120205
|
const sLen = ` ● ${sL} Ready — type /help to begin`.length;
|
|
120169
120206
|
out.push(boxRow(sRow, W2, sLen));
|
|
120170
120207
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
120171
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}alterclaude ${RESET}${rgb(...ACCENT)}v${"0.1.
|
|
120208
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}alterclaude ${RESET}${rgb(...ACCENT)}v${"0.1.5"}${RESET}`);
|
|
120172
120209
|
out.push("");
|
|
120173
120210
|
process.stdout.write(out.join(`
|
|
120174
120211
|
`) + `
|
|
@@ -358922,7 +358959,7 @@ function getAnthropicEnvMetadata() {
|
|
|
358922
358959
|
function getBuildAgeMinutes() {
|
|
358923
358960
|
if (false)
|
|
358924
358961
|
;
|
|
358925
|
-
const buildTime = new Date("2026-05-
|
|
358962
|
+
const buildTime = new Date("2026-05-29T16:09:32.962Z").getTime();
|
|
358926
358963
|
if (isNaN(buildTime))
|
|
358927
358964
|
return;
|
|
358928
358965
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -451514,7 +451551,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
451514
451551
|
var call58 = async () => {
|
|
451515
451552
|
return {
|
|
451516
451553
|
type: "text",
|
|
451517
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
451554
|
+
value: `${"99.0.0"} (built ${"2026-05-29T16:09:32.962Z"})`
|
|
451518
451555
|
};
|
|
451519
451556
|
}, version2, version_default;
|
|
451520
451557
|
var init_version = __esm(() => {
|
|
@@ -524655,7 +524692,7 @@ function WelcomeV2() {
|
|
|
524655
524692
|
dimColor: true,
|
|
524656
524693
|
children: [
|
|
524657
524694
|
"v",
|
|
524658
|
-
"0.1.
|
|
524695
|
+
"0.1.5",
|
|
524659
524696
|
" "
|
|
524660
524697
|
]
|
|
524661
524698
|
}, undefined, true, undefined, this)
|
|
@@ -524855,7 +524892,7 @@ function WelcomeV2() {
|
|
|
524855
524892
|
dimColor: true,
|
|
524856
524893
|
children: [
|
|
524857
524894
|
"v",
|
|
524858
|
-
"0.1.
|
|
524895
|
+
"0.1.5",
|
|
524859
524896
|
" "
|
|
524860
524897
|
]
|
|
524861
524898
|
}, undefined, true, undefined, this)
|
|
@@ -525081,7 +525118,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
525081
525118
|
dimColor: true,
|
|
525082
525119
|
children: [
|
|
525083
525120
|
"v",
|
|
525084
|
-
"0.1.
|
|
525121
|
+
"0.1.5",
|
|
525085
525122
|
" "
|
|
525086
525123
|
]
|
|
525087
525124
|
}, undefined, true, undefined, this);
|
|
@@ -525335,7 +525372,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
525335
525372
|
dimColor: true,
|
|
525336
525373
|
children: [
|
|
525337
525374
|
"v",
|
|
525338
|
-
"0.1.
|
|
525375
|
+
"0.1.5",
|
|
525339
525376
|
" "
|
|
525340
525377
|
]
|
|
525341
525378
|
}, undefined, true, undefined, this);
|
|
@@ -545883,7 +545920,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
545883
545920
|
pendingHookMessages
|
|
545884
545921
|
}, renderAndRun);
|
|
545885
545922
|
}
|
|
545886
|
-
}).version("0.1.
|
|
545923
|
+
}).version("0.1.5 (Alter Claude)", "-v, --version", "Output the version number");
|
|
545887
545924
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
545888
545925
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
545889
545926
|
if (canUserConfigureAdvisor()) {
|
|
@@ -546463,7 +546500,7 @@ function validateProviderEnvOrExit() {
|
|
|
546463
546500
|
async function main2() {
|
|
546464
546501
|
const args = process.argv.slice(2);
|
|
546465
546502
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
546466
|
-
console.log(`${"0.1.
|
|
546503
|
+
console.log(`${"0.1.5"} (Alter Claude)`);
|
|
546467
546504
|
return;
|
|
546468
546505
|
}
|
|
546469
546506
|
{
|
|
@@ -546575,4 +546612,4 @@ async function main2() {
|
|
|
546575
546612
|
}
|
|
546576
546613
|
main2();
|
|
546577
546614
|
|
|
546578
|
-
//# debugId=
|
|
546615
|
+
//# debugId=B46B148532D1933964756E2164756E21
|