@piceofpentogramm/alterclaude 0.1.5 → 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 +22 -26
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -110747,23 +110747,19 @@ class OpenAIShimMessages {
|
|
|
110747
110747
|
chatCompletionsUrl = `${request.baseUrl}/chat/completions`;
|
|
110748
110748
|
}
|
|
110749
110749
|
if (isOpenRouter && process.env.ALTERCLAUDE_DEBUG) {
|
|
110750
|
-
|
|
110751
|
-
|
|
110752
|
-
`
|
|
110753
|
-
|
|
110754
|
-
`)
|
|
110755
|
-
|
|
110756
|
-
`
|
|
110757
|
-
|
|
110758
|
-
`
|
|
110759
|
-
|
|
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}
|
|
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(`
|
|
110766
110761
|
`);
|
|
110762
|
+
fs2.appendFileSync("C:\\Users\\Kris\\alterclaude-debug.log", msg);
|
|
110767
110763
|
}
|
|
110768
110764
|
const fetchInit = {
|
|
110769
110765
|
method: "POST",
|
|
@@ -120205,7 +120201,7 @@ function printStartupScreen() {
|
|
|
120205
120201
|
const sLen = ` ● ${sL} Ready — type /help to begin`.length;
|
|
120206
120202
|
out.push(boxRow(sRow, W2, sLen));
|
|
120207
120203
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
120208
|
-
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}`);
|
|
120209
120205
|
out.push("");
|
|
120210
120206
|
process.stdout.write(out.join(`
|
|
120211
120207
|
`) + `
|
|
@@ -358959,7 +358955,7 @@ function getAnthropicEnvMetadata() {
|
|
|
358959
358955
|
function getBuildAgeMinutes() {
|
|
358960
358956
|
if (false)
|
|
358961
358957
|
;
|
|
358962
|
-
const buildTime = new Date("2026-05-29T16:
|
|
358958
|
+
const buildTime = new Date("2026-05-29T16:23:41.661Z").getTime();
|
|
358963
358959
|
if (isNaN(buildTime))
|
|
358964
358960
|
return;
|
|
358965
358961
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -451551,7 +451547,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
451551
451547
|
var call58 = async () => {
|
|
451552
451548
|
return {
|
|
451553
451549
|
type: "text",
|
|
451554
|
-
value: `${"99.0.0"} (built ${"2026-05-29T16:
|
|
451550
|
+
value: `${"99.0.0"} (built ${"2026-05-29T16:23:41.661Z"})`
|
|
451555
451551
|
};
|
|
451556
451552
|
}, version2, version_default;
|
|
451557
451553
|
var init_version = __esm(() => {
|
|
@@ -524692,7 +524688,7 @@ function WelcomeV2() {
|
|
|
524692
524688
|
dimColor: true,
|
|
524693
524689
|
children: [
|
|
524694
524690
|
"v",
|
|
524695
|
-
"0.1.
|
|
524691
|
+
"0.1.6",
|
|
524696
524692
|
" "
|
|
524697
524693
|
]
|
|
524698
524694
|
}, undefined, true, undefined, this)
|
|
@@ -524892,7 +524888,7 @@ function WelcomeV2() {
|
|
|
524892
524888
|
dimColor: true,
|
|
524893
524889
|
children: [
|
|
524894
524890
|
"v",
|
|
524895
|
-
"0.1.
|
|
524891
|
+
"0.1.6",
|
|
524896
524892
|
" "
|
|
524897
524893
|
]
|
|
524898
524894
|
}, undefined, true, undefined, this)
|
|
@@ -525118,7 +525114,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
525118
525114
|
dimColor: true,
|
|
525119
525115
|
children: [
|
|
525120
525116
|
"v",
|
|
525121
|
-
"0.1.
|
|
525117
|
+
"0.1.6",
|
|
525122
525118
|
" "
|
|
525123
525119
|
]
|
|
525124
525120
|
}, undefined, true, undefined, this);
|
|
@@ -525372,7 +525368,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
525372
525368
|
dimColor: true,
|
|
525373
525369
|
children: [
|
|
525374
525370
|
"v",
|
|
525375
|
-
"0.1.
|
|
525371
|
+
"0.1.6",
|
|
525376
525372
|
" "
|
|
525377
525373
|
]
|
|
525378
525374
|
}, undefined, true, undefined, this);
|
|
@@ -545920,7 +545916,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
545920
545916
|
pendingHookMessages
|
|
545921
545917
|
}, renderAndRun);
|
|
545922
545918
|
}
|
|
545923
|
-
}).version("0.1.
|
|
545919
|
+
}).version("0.1.6 (Alter Claude)", "-v, --version", "Output the version number");
|
|
545924
545920
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
545925
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.");
|
|
545926
545922
|
if (canUserConfigureAdvisor()) {
|
|
@@ -546500,7 +546496,7 @@ function validateProviderEnvOrExit() {
|
|
|
546500
546496
|
async function main2() {
|
|
546501
546497
|
const args = process.argv.slice(2);
|
|
546502
546498
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
546503
|
-
console.log(`${"0.1.
|
|
546499
|
+
console.log(`${"0.1.6"} (Alter Claude)`);
|
|
546504
546500
|
return;
|
|
546505
546501
|
}
|
|
546506
546502
|
{
|
|
@@ -546612,4 +546608,4 @@ async function main2() {
|
|
|
546612
546608
|
}
|
|
546613
546609
|
main2();
|
|
546614
546610
|
|
|
546615
|
-
//# debugId=
|
|
546611
|
+
//# debugId=DC92B0E25CDD070464756E2164756E21
|