@piceofpentogramm/alterclaude 0.1.4 → 0.1.6
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 +44 -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,21 @@ class OpenAIShimMessages {
|
|
|
110728
110746
|
} else {
|
|
110729
110747
|
chatCompletionsUrl = `${request.baseUrl}/chat/completions`;
|
|
110730
110748
|
}
|
|
110749
|
+
if (isOpenRouter && process.env.ALTERCLAUDE_DEBUG) {
|
|
110750
|
+
const fs2 = await import("fs");
|
|
110751
|
+
const msg = [
|
|
110752
|
+
`
|
|
110753
|
+
[ALTERCLAUDE_DEBUG] OR key set: ${!!headers.Authorization}`,
|
|
110754
|
+
`[ALTERCLAUDE_DEBUG] Auth header: ${headers.Authorization || "(none)"}`,
|
|
110755
|
+
`[ALTERCLAUDE_DEBUG] OPENROUTER_API_KEY env: ${!!process.env.OPENROUTER_API_KEY}`,
|
|
110756
|
+
`[ALTERCLAUDE_DEBUG] OPENAI_API_KEY env: ${!!process.env.OPENAI_API_KEY}`,
|
|
110757
|
+
`[ALTERCLAUDE_DEBUG] CLAUDE_CODE_USE_OPENROUTER: ${process.env.CLAUDE_CODE_USE_OPENROUTER}`,
|
|
110758
|
+
`[ALTERCLAUDE_DEBUG] ANTHROPIC_AUTH_TOKEN env: ${!!process.env.ANTHROPIC_AUTH_TOKEN}`,
|
|
110759
|
+
`[ALTERCLAUDE_DEBUG] Chat URL: ${chatCompletionsUrl}`
|
|
110760
|
+
].join(`
|
|
110761
|
+
`);
|
|
110762
|
+
fs2.appendFileSync("C:\\Users\\Kris\\alterclaude-debug.log", msg);
|
|
110763
|
+
}
|
|
110731
110764
|
const fetchInit = {
|
|
110732
110765
|
method: "POST",
|
|
110733
110766
|
headers,
|
|
@@ -120168,7 +120201,7 @@ function printStartupScreen() {
|
|
|
120168
120201
|
const sLen = ` ● ${sL} Ready — type /help to begin`.length;
|
|
120169
120202
|
out.push(boxRow(sRow, W2, sLen));
|
|
120170
120203
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
120171
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}alterclaude ${RESET}${rgb(...ACCENT)}v${"0.1.
|
|
120204
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}alterclaude ${RESET}${rgb(...ACCENT)}v${"0.1.6"}${RESET}`);
|
|
120172
120205
|
out.push("");
|
|
120173
120206
|
process.stdout.write(out.join(`
|
|
120174
120207
|
`) + `
|
|
@@ -358922,7 +358955,7 @@ function getAnthropicEnvMetadata() {
|
|
|
358922
358955
|
function getBuildAgeMinutes() {
|
|
358923
358956
|
if (false)
|
|
358924
358957
|
;
|
|
358925
|
-
const buildTime = new Date("2026-05-
|
|
358958
|
+
const buildTime = new Date("2026-05-29T16:23:41.661Z").getTime();
|
|
358926
358959
|
if (isNaN(buildTime))
|
|
358927
358960
|
return;
|
|
358928
358961
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -451514,7 +451547,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
451514
451547
|
var call58 = async () => {
|
|
451515
451548
|
return {
|
|
451516
451549
|
type: "text",
|
|
451517
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
451550
|
+
value: `${"99.0.0"} (built ${"2026-05-29T16:23:41.661Z"})`
|
|
451518
451551
|
};
|
|
451519
451552
|
}, version2, version_default;
|
|
451520
451553
|
var init_version = __esm(() => {
|
|
@@ -524655,7 +524688,7 @@ function WelcomeV2() {
|
|
|
524655
524688
|
dimColor: true,
|
|
524656
524689
|
children: [
|
|
524657
524690
|
"v",
|
|
524658
|
-
"0.1.
|
|
524691
|
+
"0.1.6",
|
|
524659
524692
|
" "
|
|
524660
524693
|
]
|
|
524661
524694
|
}, undefined, true, undefined, this)
|
|
@@ -524855,7 +524888,7 @@ function WelcomeV2() {
|
|
|
524855
524888
|
dimColor: true,
|
|
524856
524889
|
children: [
|
|
524857
524890
|
"v",
|
|
524858
|
-
"0.1.
|
|
524891
|
+
"0.1.6",
|
|
524859
524892
|
" "
|
|
524860
524893
|
]
|
|
524861
524894
|
}, undefined, true, undefined, this)
|
|
@@ -525081,7 +525114,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
525081
525114
|
dimColor: true,
|
|
525082
525115
|
children: [
|
|
525083
525116
|
"v",
|
|
525084
|
-
"0.1.
|
|
525117
|
+
"0.1.6",
|
|
525085
525118
|
" "
|
|
525086
525119
|
]
|
|
525087
525120
|
}, undefined, true, undefined, this);
|
|
@@ -525335,7 +525368,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
525335
525368
|
dimColor: true,
|
|
525336
525369
|
children: [
|
|
525337
525370
|
"v",
|
|
525338
|
-
"0.1.
|
|
525371
|
+
"0.1.6",
|
|
525339
525372
|
" "
|
|
525340
525373
|
]
|
|
525341
525374
|
}, undefined, true, undefined, this);
|
|
@@ -545883,7 +545916,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
545883
545916
|
pendingHookMessages
|
|
545884
545917
|
}, renderAndRun);
|
|
545885
545918
|
}
|
|
545886
|
-
}).version("0.1.
|
|
545919
|
+
}).version("0.1.6 (Alter Claude)", "-v, --version", "Output the version number");
|
|
545887
545920
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
545888
545921
|
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
545922
|
if (canUserConfigureAdvisor()) {
|
|
@@ -546463,7 +546496,7 @@ function validateProviderEnvOrExit() {
|
|
|
546463
546496
|
async function main2() {
|
|
546464
546497
|
const args = process.argv.slice(2);
|
|
546465
546498
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
546466
|
-
console.log(`${"0.1.
|
|
546499
|
+
console.log(`${"0.1.6"} (Alter Claude)`);
|
|
546467
546500
|
return;
|
|
546468
546501
|
}
|
|
546469
546502
|
{
|
|
@@ -546575,4 +546608,4 @@ async function main2() {
|
|
|
546575
546608
|
}
|
|
546576
546609
|
main2();
|
|
546577
546610
|
|
|
546578
|
-
//# debugId=
|
|
546611
|
+
//# debugId=DC92B0E25CDD070464756E2164756E21
|